joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0040a61f
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40b66d
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x40b66c
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.0040a65e
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40b66c
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40b66c
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x40b61d
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x40b657
xor eax, eax
jmp 0x40b65e
push eax
call fcn.004873b0
pop ecx
mov edx, esi
call fcn.0040a684
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x40b67d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x40bff3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c018
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40c0d9
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.00489f10
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x40c088
lea eax, [ebp - 0x20c]
push 0x4e6c78
push eax
call fcn.0048c034
test eax, eax
pop ecx
pop ecx
je 0x40c07c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40c052
jmp 0x40c091
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40c091
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40c0b6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40c0d8
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40c0d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x40c1be
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x40c1d0
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00489f10
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40c213
cmp dword [ebp - 0x110], 5
jne 0x40c213
cmp dword [ebp - 0x10c], 0
je 0x40c220
push esi
call fcn.0040c0dc
test eax, eax
pop ecx
jne 0x40c220
leave
ret
push esi
call fcn.0040bff3
pop ecx
leave
ret

Function at 0x40c229
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40c2e9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40c28f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x40c2e8
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 2
push dword [ebp + 8]
call esi
test eax, eax
je 0x40c2dc
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40c2dc
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40c2d8
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x40c2ba
jmp 0x40c2dc
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x40c2e7
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x40c2f8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret
Function at 0x40c2fd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x40c36b
push 0x110
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00489f10
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40c365
cmp dword [ebp - 0x118], 6
jne 0x40c365
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40c3a0
mov dword [esi], edi
xor eax, eax
jmp 0x40c3a0
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp - 4], edi
push ebx
mov ebx, 0x490
jbe 0x40c397
lea edx, [ecx + 8]
cmp dword [edx], edi
je 0x40c38d
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x40c37e
jmp 0x40c397
imul eax, eax, 0xc
mov eax, dword [eax + ecx]
mov dword [esi], eax
xor ebx, ebx
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x40cd65
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
xor eax, eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x67452301
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
mov dword [ebp - 0x60], 0x10325476
call fcn.0040cb88
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x6c]
call fcn.0040cc4b
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0040cce7
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
leave
ret

Function at 0x40cfae
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
mov esi, eax
cmp dword [esi + 0x14], 0x104
push edi
jb 0x40cfce
xor al, al
jmp 0x40d05b
and word [esp + 0x28], 0
push 0x208
lea eax, [esp + 0x2e]
push 0
push eax
call fcn.00489f10
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40cff3
mov esi, dword [esi + 4]
jmp 0x40cff6
add esi, 4
push esi
lea eax, [esp + 0x2c]
push 0x105
push eax
call fcn.0048c6b7
and dword [esp + 0x14], 0
add esp, 0xc
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x40cfc7
test eax, eax
je 0x40d058
cmp eax, 2
je 0x40d058
cmp eax, 0x402
je 0x40d058
xor eax, eax
jmp 0x40d05b
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d09f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d10e8
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
push esi
push edi
mov esi, ecx
jne 0x40d0e0
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x40d108
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40d108
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40d0cc
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x40d114
or eax, 0xffffffff
jmp 0x40d0cc
cmp dword [esi + 0x3c], edi
jne 0x40d128
push eax
push ebx
call fcn.0040cf74
test al, al
pop ecx
pop ecx
je 0x40d10f
jmp 0x40d104
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.0040d720
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], edi
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40d238
cmp eax, 1
jg 0x40d260
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x40d1cd
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048d09c
add esp, 0x10
cmp edi, eax
jne 0x40d277
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x40d28e
test edi, edi
ja 0x40d1fb
cmp dword [esp + 0x58], 0x20
jae 0x40d277
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.004028e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x40d17b
jmp 0x40d277
cmp eax, 3
jne 0x40d277
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0040cf74
test al, al
pop ecx
pop ecx
jne 0x40d28e
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00404902
mov eax, esi
jmp 0x40d0cc
mov esi, dword [ebp + 8]
jmp 0x40d27a
Function at 0x40d7f7
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4d1ca5
call fcn.004cdff0
sub esp, 0x48
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40d907
cmp byte [esi + 0x41], 0
je 0x40d907
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40d831
xor al, al
jmp 0x40d909
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.0040d720
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
mov edi, dword [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
add edi, ebx
push edi
push dword [ebp - 0x14]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40d8a1
dec eax
je 0x40d8a5
dec eax
dec eax
je 0x40d903
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.00404902
mov al, bl
jmp 0x40d909
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x40d8e5
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040b7b4
mov ecx, eax
call fcn.0040d9e7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048d09c
add esp, 0x10
cmp edi, eax
jne 0x40d88f
cmp byte [esi + 0x41], 0
je 0x40d903
test edi, edi
jne 0x40d83f
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.004028e0
jmp 0x40d83f
mov bl, 1
jmp 0x40d891
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40e6fe
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
cmp dword [edi + 0xc], 0xffffffff
jne 0x40e762
push esi
lea esi, [ebp - 4]
call fcn.0040ef5f
push dword [eax]
push 0
push 0x4e7038
push str.basesetting
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00407fe5
test esi, esi
pop esi
je 0x40e753
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.0040e84f
test eax, eax
je 0x40e753
cmp dword [ebp - 4], 0
jne 0x40e75c
call fcn.0040f014
test eax, eax
je 0x40e75f
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
pop edi
leave
ret
Function at 0x40e8ed
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d38f2
call fcn.004cdff0
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
add edi, 0x1c
xor ebx, ebx
cmp eax, ebx
je 0x40e919
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x40ea41
mov eax, dword [0x50c868]
mov ecx, 0x50c868
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040ef5f
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x14]
call fcn.00408130
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407fe5
cmp dword [ebp - 0x14], ebx
jne 0x40e979
xor eax, eax
jmp 0x40e982
push dword [ebp - 0x14]
call fcn.0048a91e
pop ecx
lea edx, [ebp - 0x14]
call fcn.004080e0
mov esi, 0x4e6e74
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.0042c4d1
jmp 0x40ea1d
push eax
call fcn.0048dfa2
fstp qword [ebp - 0x24]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x40e9b9
xor ecx, ecx
jmp 0x40e9c1
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x40e9e1
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x40e9e1
mov eax, dword [edi + 8]
fld qword [ebp - 0x24]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x40e9fe
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x40e9ed
call fcn.0048990e
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.0042d778
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407fe5
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.0042c4d1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x40e9a4
add eax, 0xfffffff0
call fcn.00407fe5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407fe5
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40ec9b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x18], 0
jne 0x40ecd1
push esi
lea esi, [ebp - 4]
call fcn.0040ef5f
push dword [eax]
push 2
push 0x4e7048
push str.basesetting
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00407fe5
pop esi
mov eax, dword [edi + 0x18]
leave
ret

Function at 0x40efc9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, edi
call fcn.0040ec22
test eax, eax
jne 0x40efdd
push 0x60
pop eax
leave
ret
cmp dword [edi + 8], 0xffffffff
jne 0x40f00f
push esi
lea esi, [ebp - 4]
call fcn.0040ef5f
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00407fe5
pop esi
mov eax, dword [edi + 8]
leave
ret
Function at 0x40f014
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 4], 0xffffffff
jne 0x40f04a
push esi
lea esi, [ebp - 4]
call fcn.0040ef5f
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00407fe5
pop esi
mov eax, dword [edi + 4]
leave
ret

Function at 0x40f04f
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d27dc
call fcn.004cdff0
push ecx
and dword [ebp - 0x10], 0
push edi
mov edi, ecx
add edi, 0x14
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40f0c3
push esi
lea esi, [ebp - 0x10]
call fcn.0040ef5f
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
mov esi, edi
call fcn.00408130
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.00407fe5
mov eax, dword [edi]
test eax, eax
pop esi
je 0x40f0bc
push eax
call fcn.0048a91e
pop ecx
mov edx, edi
call fcn.004080e0
mov eax, dword [edi]
sub eax, 0x10
call fcn.00407ffd
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40f24d
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 0x40f2d0
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40f299
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40f299
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x40f29d
xor eax, eax
jmp 0x40f2cf
mov esi, dword [ebp + 0x10]
push edi
lea edi, [ebx + 1]
push edi
call fcn.0040a65e
test eax, eax
je 0x40f2bb
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0048bbc0
add esp, 0xc
mov eax, edi
call fcn.0040b749
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 0x40f400
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4d1c60
call fcn.004cdff0
push ecx
push ecx
mov eax, dword [0x50c868]
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x50c868
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 0x40f438
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00407526
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x40f52e
mov eax, dword [0x50c868]
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.00408eea
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 0x40f523
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40f51a
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.0040a65e
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40f511
cmp dword [ebp + 8], edi
jne 0x40f511
mov eax, edi
call fcn.0040b749
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00407fe5
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407fe5
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.0040a684
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00407fe5
mov esi, dword [ebp - 0x14]
jmp 0x40f4f3
Function at 0x40f866
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d276d
call fcn.004cdff0
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040f838
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040f9a0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x40f989
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f986
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 0x40f973
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 0x40f93c
mov ecx, dword [ebp - 0x14]
push 0x40e3d7
push 0x40e3cd
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.0048e0d1
mov eax, edi
jmp 0x40f93e
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x40f973
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.0040e2fd
test eax, eax
jne 0x40f96e
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x40f96e
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x40f973
call fcn.0040f838
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.00407fe5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40faae
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.00489f10
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.0040826f
mov eax, dword [ebp + 8]
leave
ret 4