joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a853
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4aaa8b
call fcn.004a5b68
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x4d8f84]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42a8f5
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42a897
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x42a8f4
mov eax, dword [0x4d8f84]
add eax, 0xfffffff0
call fcn.0040591d
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0042a96d
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4d8f84]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00405905
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42b26b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x42b309
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b36c
cmp dword [ebp + 0xc], 1
je 0x42b345
cmp dword [ebp + 0xc], 2
je 0x42b345
push 0xd
pop eax
jmp 0x42b36c
test edi, edi
mov eax, dword [ebp - 4]
je 0x42b366
test eax, eax
je 0x42b362
test al, 1
jne 0x42b340
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x42b366
jmp 0x42b340
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x42b381
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
je 0x42b45d
cmp word [ecx], bx
je 0x42b45d
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x42b45d
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x42b453
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x42b453
lea ecx, [ebp - 0x14]
call fcn.0042b499
test eax, eax
je 0x42b453
add esi, 0xfffffffc
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42b453
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push dword [ebp - 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call edi
test eax, eax
je 0x42b453
mov edx, dword [ebp - 4]
call fcn.0042b464
test eax, eax
jge 0x42b453
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x42b464
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x42b493
test esi, esi
jbe 0x42b493
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x42b482
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x42b476
shl eax, 2
jmp 0x42b48c
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x42b487
xor eax, eax
ret
mov eax, 0x80004005
ret
Function at 0x42b932
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9ac0
call fcn.004a5b68
push esi
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x42b957
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4
cmp dword [ebp + 8], esi
jne 0x42b9b2
push 0x400000
lea ecx, [ebp + 8]
call fcn.0040a076
pop ecx
mov dword [ebp - 4], esi
lea esi, [ebx + 4]
mov edi, esi
call fcn.00404ead
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405905
push str.install.dat
push 0x104
call fcn.00405a36
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
test eax, eax
je 0x42b9a9
push eax
call fcn.0048bd2a
pop ecx
mov edx, esi
call fcn.004059fd
jmp 0x42b9be
push dword [ebp + 8]
lea esi, [ebx + 4]
push esi
call fcn.00405d90
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b9d1
xor eax, eax
jmp 0x42b947
mov eax, dword [0x4d8074]
mov ecx, 0x4d8074
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi]
push eax
call fcn.0042b8be
test eax, eax
jne 0x42ba07
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405905
jmp 0x42b9ca
lea edi, [ebx + 0x24]
lea eax, [ebp + 8]
call fcn.0042bee3
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0042ba52
test eax, eax
jne 0x42ba34
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405905
mov eax, esi
jmp 0x42b947
mov ecx, ebx
call fcn.0042baf0
mov eax, ebx
call fcn.0042bc80
mov esi, ebx
call fcn.0042bcc6
xor eax, eax
inc eax
mov dword [ebx], eax
mov esi, eax
jmp 0x42ba22
Function at 0x42bcc6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4a8dd8
call fcn.004a5b68
sub esp, 0x24
push ebx
push edi
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.0040495a
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00404a21
test al, al
je 0x42be9b
mov edi, 0x4b2b04
push edi
lea eax, [ebp - 0x30]
call fcn.00404e19
test al, al
je 0x42bd70
push edi
lea eax, [ebp - 0x30]
call fcn.00404e54
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405b75
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042b620
test eax, eax
je 0x42bd61
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405b75
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0042bf24
mov edi, eax
mov eax, ebx
call fcn.00404ead
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405905
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
mov edi, 0x4b2b10
push edi
lea eax, [ebp - 0x30]
call fcn.00404e19
test al, al
je 0x42bde3
push edi
lea eax, [ebp - 0x30]
call fcn.00404e54
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405b75
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042b620
test eax, eax
je 0x42bdd4
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405b75
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 8]
push eax
mov byte [ebp - 4], 4
call fcn.0042bf24
mov edi, eax
mov eax, ebx
call fcn.00404ead
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405905
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
mov edi, 0x4b2b1c
push edi
lea eax, [ebp - 0x30]
call fcn.00404e19
test al, al
je 0x42be41
push edi
lea eax, [ebp - 0x30]
call fcn.00404e54
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405b75
push edi
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.00405b75
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0042beb5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405905
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
mov edi, 0x4b2b28
push edi
lea eax, [ebp - 0x30]
call fcn.00404e19
test al, al
je 0x42be9b
push edi
lea eax, [ebp - 0x30]
call fcn.00404e54
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405b75
push edi
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.00405b75
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0042beb5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405905
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004049d6
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42e647
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x42e669
xor eax, eax
inc eax
jmp 0x42e6d3
cmp dword [edi], esi
je 0x42e672
xor ebx, ebx
inc ebx
jmp 0x42e6b7
lea eax, [ebp - 8]
push eax
push 0x4b8c94
push 1
push esi
push 0x4b8c84
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x42e691
push 2
jmp 0x42e6b6
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x42e6a6
push 3
jmp 0x42e6b6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x42e6b7
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x42e6c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x42e6d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x42e99f
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4a9431
call fcn.004a5b68
sub esp, 0x278
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00405b75
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x42e9fc
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405905
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 0x228
lea eax, [ebp - 0x280]
push edi
push eax
call fcn.0048b400
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push esi
mov dword [ebp - 0x284], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42ea37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x42e9dd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x54]
push eax
call fcn.00408570
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42ea57
xor edi, edi
mov eax, dword [ebp - 0x27c]
cmp eax, dword [ebp - 0x24]
je 0x42eae1
cmp eax, edi
je 0x42eae1
cmp eax, 4
je 0x42eae1
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42eae1
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004085da
mov esi, dword [ebp + 8]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x42ead3
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx - 0xc]
cmp eax, ecx
jl 0x42ead3
push ecx
push esi
push edx
call fcn.0048c6ed
add esp, 0xc
test eax, eax
jne 0x42ead3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x42eacd
push dword [ebp - 0x27c]
call fcn.0040885b
cmp eax, 1
pop ecx
jne 0x42ead0
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push edi
call ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405905
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42ea55
push dword [ebp - 0x1c]
call ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42eb09
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x34]
call fcn.00408b8d
lea esi, [ebp - 0x54]
call fcn.00408496
mov esi, dword [ebp - 0x14]
jmp 0x42e9de

Function at 0x42f841
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0xc], 0xffffffff
jne 0x42f8a5
push ebx
push edi
lea ebx, [ebp - 4]
call fcn.0042fd8e
push dword [eax]
xor ebx, ebx
push ebx
push 0x4b8dcc
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405905
cmp edi, ebx
je 0x42f894
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.0042f992
test eax, eax
je 0x42f894
cmp dword [ebp - 4], ebx
jne 0x42f89d
call fcn.0042fe91
test eax, eax
je 0x42f8a0
xor eax, eax
inc eax
pop edi
mov dword [esi + 0xc], eax
pop ebx
mov eax, dword [esi + 0xc]
pop esi
leave
ret
Function at 0x42fa35
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4a8584
call fcn.004a5b68
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
add edi, 0x1c
test eax, eax
je 0x42fa5f
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x42fb8a
mov eax, dword [0x4d8074]
mov ecx, 0x4d8074
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x1c]
call fcn.0042fd8e
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x14]
call fcn.00405a36
push eax
push str.1.01.21.51.72.02.22.52.73.0
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405905
cmp dword [ebp - 0x14], ebx
jne 0x42fac2
xor eax, eax
jmp 0x42facb
push dword [ebp - 0x14]
call fcn.0048bd2a
pop ecx
lea edx, [ebp - 0x14]
call fcn.004059fd
mov esi, 0x4b8dc8
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.0042b53e
jmp 0x42fb66
push eax
call fcn.0048eb0a
fstp qword [ebp - 0x24]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x42fb02
xor ecx, ecx
jmp 0x42fb0a
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x42fb2a
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x42fb2a
mov eax, dword [edi + 8]
fld qword [ebp - 0x24]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x42fb47
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x42fb36
call fcn.00489924
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00441196
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405905
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.0042b53e
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x42faed
add eax, 0xfffffff0
call fcn.00405905
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42fd53
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x18], 0
jne 0x42fd89
push ebx
lea ebx, [ebp - 4]
call fcn.0042fd8e
push dword [eax]
push 2
push 0x4b8ddc
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405905
pop ebx
mov eax, dword [esi + 0x18]
leave
ret
Function at 0x42fd8e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a7b81
call fcn.004a5b68
push ecx
push ecx
and dword [ebp - 0x14], 0
push edi
lea edi, [ebp - 0x14]
call fcn.0045fd81
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x42fdcc
push 0x4b7480
push ebx
call fcn.00405b75
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
jmp 0x42fe37
add eax, 0xfffffff0
call fcn.0040591d
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.datadpiconfig.ini
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00406128
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fe11
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.00404ead
push str._ressrcchsdpisetting.ini
mov eax, edi
push eax
call fcn.00406128
push esi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040591d
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.00405905
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x42fe46
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, esi
call fcn.0042fcda
test eax, eax
jne 0x42fe5a
push 0x60
pop eax
leave
ret
cmp dword [esi + 8], 0xffffffff
jne 0x42fe8c
push ebx
lea ebx, [ebp - 4]
call fcn.0042fd8e
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405905
pop ebx
mov eax, dword [esi + 8]
leave
ret

Function at 0x42fe91
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x42fec7
push ebx
lea ebx, [ebp - 4]
call fcn.0042fd8e
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405905
pop ebx
mov eax, dword [esi + 4]
leave
ret

Function at 0x42fecc
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4aaa8b
call fcn.004a5b68
push ecx
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
add esi, 0x14
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x42ff3e
push ebx
lea ebx, [ebp - 0x10]
call fcn.0042fd8e
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
call fcn.00405a36
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405905
mov eax, dword [esi]
test eax, eax
pop ebx
je 0x42ff37
push eax
call fcn.0048bd2a
pop ecx
mov edx, esi
call fcn.004059fd
mov eax, dword [esi]
sub eax, 0x10
call fcn.0040591d
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4300c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43014b
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x430114
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x430114
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x430118
xor eax, eax
jmp 0x43014a
mov esi, dword [ebp + 0x10]
push edi
lea edi, [ebx + 1]
push edi
call fcn.0040801f
test eax, eax
je 0x430136
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048cd30
add esp, 0xc
mov eax, edi
call fcn.00409925
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43027b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4a7384
call fcn.004a5b68
push ecx
push ecx
mov eax, dword [0x4d8074]
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x4d8074
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
lea eax, [edi + 0xc]
jne 0x4302b3
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00404ead
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x4303a9
mov eax, dword [0x4d8074]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp + 0x14]
push edi
push str._s_d._s
call fcn.004066a7
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x43039e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x430395
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.0040801f
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x43038c
cmp dword [ebp + 8], edi
jne 0x43038c
mov eax, edi
call fcn.00409925
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00405905
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405905
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
xor eax, eax
mov edx, esi
call fcn.00408045
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00405905
mov esi, dword [ebp - 0x14]
jmp 0x43036e
Function at 0x4306e1
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a7d04
call fcn.004a5b68
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.004306b3
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0043081b
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x430804
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430801
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x4307ee
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x4307b7
mov ecx, dword [ebp - 0x14]
push 0x42f55b
push 0x42f551
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.0048e0a5
mov eax, edi
jmp 0x4307b9
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x4307ee
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.0042f481
test eax, eax
jne 0x4307e9
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x4307e9
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x4307ee
call fcn.004306b3
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405905
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x430929
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 4], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0048b400
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00405b75
mov eax, dword [ebp + 8]
leave
ret 4