joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4a776f
call fcn.0046e4ca
mov edi, ecx
lea ecx, [edi + 4]
push 0x4e0004
mov dword [ebp - 0x3c], edi
mov dword [edi], vtable.CustResLoader.0
call fcn.0040145d
push str.CUSTDEF
xor ebx, ebx
push 0xd4
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x401f4f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x401f4f
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x401f4f
lea eax, [ebp - 0x2d]
push eax
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004018d4
push esi
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp - 0x20]
push eax
push edi
call fcn.0046d5f0
add esp, 0xc
push 8
push edi
lea ecx, [ebp - 0x40]
call fcn.0040179b
push 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401636
push 0x4b6854
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401331
mov ecx, dword [ebp - 0x34]
test eax, eax
setne byte [ebp - 0x2d]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004011af
cmp byte [ebp - 0x2d], bl
jne 0x401ebb
add esi, 0xfffffff6
push esi
add edi, 0xa
push edi
lea ecx, [ebp - 0x34]
call fcn.0040179b
mov esi, dword [ebp - 0x3c]
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 4
call fcn.0040195e
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004011af
mov eax, 0x4b6850
push eax
push eax
lea ecx, [esi + 4]
call fcn.004019fa
mov ecx, eax
call fcn.00401811
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004011af
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040167d
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x44]
call fcn.004134a0
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00401ce1
mov esi, eax
mov eax, dword [edi + 4]
push str.TQSRNL
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00413c60
cmp dword [eax + 0x14], 8
mov esi, dword [esi]
jb 0x401f19
mov eax, dword [eax]
push esi
push eax
push str.EncodeParam
push str.User_Configuration
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004015dc
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004011af
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004134b0
mov edi, dword [ebp - 0x3c]
mov eax, edi
call fcn.0046e54d
ret
Function at 0x402256
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7850
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.0046e870
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], eax
call fcn.004021fe
test eax, eax
je 0x402329
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.0046e590
lea eax, [ebp - 0x2014]
push eax
call fcn.00402154
add esp, 0x10
push dword [eax]
lea eax, [ebp - 0x2010]
push 0xfff
push eax
push edi
push dword [ebp - 0x201c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x2014]
add ecx, 0xfffffff0
call fcn.004011af
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2018]
call fcn.00402008
and dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0040195e
mov ecx, dword [ebp - 0x2018]
add ecx, 0xfffffff0
call fcn.004011af
jmp 0x402331
push edi
mov ecx, esi
call fcn.004019ae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e452
leave
ret
Function at 0x402c2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x4e2154]
push 0xf0
push eax
push esi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x402daf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402daf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402daf
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x402dad
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x114], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x402d22
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.0040287c
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x402d02
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x402d9a
push dword [ebp - 0x108]
call fcn.0046e92f
pop ecx
jmp 0x402d9a
mov ecx, 0x1234
cmp cx, ax
jne 0x402d9a
or dword [ebp - 0x134], 0xffffffff
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x108], eax
call fcn.0040287c
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x402d74
push eax
call fcn.0046e92f
pop ecx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x110]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x402d9a
and dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x402c99
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop esi
call fcn.0046e452
leave
ret 4
Function at 0x403574
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x220
mov eax, 0x4a7a9a
call fcn.0046e4ca
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x228]
push 0x4b6aac
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004033d0
push str.___autorun
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 1
call fcn.0040336c
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call fcn.00403315
add esp, 0x24
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004011af
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.004011af
lea eax, [ebp - 0x220]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x403698
cmp dword [ebp + 0x10], edi
je 0x40367e
mov eax, dword [esi]
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403651
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402858
test eax, eax
je 0x40368c
mov eax, dword [ebp - 0x21c]
mov ebx, dword [eax - 0xc]
push edi
lea ecx, [ebp - 0x21c]
call fcn.004015a3
lea ecx, [ebx + ebx]
push ecx
push eax
push 1
push edi
push dword [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40368c
push dword [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004011af
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.004011af
call fcn.0046e54d
ret 0x10

Function at 0x405131
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00404bad
mov ebx, eax
cmp ebx, esi
je 0x4051a2
lea ecx, [ebp - 0x214]
call fcn.00404b2a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e452
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4051c0
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00405131
cmp eax, esi
jne 0x405207
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x4051aa
lea ecx, [ebp - 0x214]
call fcn.00404b2a
push dword [ebp - 0x218]
mov ecx, edi
call fcn.00404aba
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00404b2a
mov eax, esi
jmp 0x405191
Function at 0x40ac2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4a8075
call fcn.0046e500
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40ac87
call fcn.004048c7
mov esi, eax
jmp 0x40ad5d
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40aca0
call fcn.004048c7
jmp 0x40ad4f
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40ac96
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40acda
mov esi, 0x8007000e
jmp 0x40ad51
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040575c
mov dword [ebp - 4], 1
jmp 0x40ad08
cmp dword [ebp - 0x418], esi
je 0x40acd3
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40ac96
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00406a44
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40ad76
lea ecx, [ebp - 0x418]
call fcn.0040236d
mov eax, esi
call fcn.0046e55c
ret 0x10
Function at 0x40fe50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
push 0
push 0
mov dword [esi], vtable.SingletonMutex.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fe92
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4102c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 4]
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x410306
mov eax, edi
push ebx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4102d7
mov ecx, dword [ebp + 8]
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
je 0x410306
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jle 0x410323
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x4102fe
pop edi
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x410330
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x41037d
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], 0
jle 0x410374
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab728
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x410a67
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x410adf
mov edx, dword [esi + 8]
cmp dword [edx - 0xc], 0
jle 0x410b0e
mov eax, dword [0x4e0004]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e0004
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push 0x4b7a18
push ecx
mov dword [ebp - 4], 0
call fcn.00401a85
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
mov esi, dword [esi + 0xc]
add esp, 0xc
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jne 0x410af5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410e20
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2220
call fcn.0046e870
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x2218], 0
mov edi, dword [esi + 4]
mov dword [ebp - 0x221c], eax
mov dword [ebp - 0x2214], ecx
test edi, edi
je 0x410efb
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x2218], 1
mov word [ebp - 0x20c], dx
call fcn.0046e590
add esp, 0xc
lea ecx, [ebp - 0x2220]
push ecx
mov ecx, dword [ebp - 0x221c]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x2218]
push eax
push 0
push ecx
push edi
mov dword [ebp - 0x2220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x2214]
test esi, esi
je 0x410eeb
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410ed0
sub eax, edx
sar eax, 1
jne 0x410eeb
push esi
mov ecx, ebx
call fcn.00402008
jmp 0x410f63
lea edx, [ebp - 0x20c]
push edx
mov ecx, ebx
call fcn.00402008
jmp 0x410f63
mov edi, dword [esi + 8]
cmp dword [edi - 0xc], 0
jle 0x410f57
xor eax, eax
push 0x2000
push eax
lea ecx, [ebp - 0x220e]
push ecx
mov word [ebp - 0x2210], ax
call fcn.0046e590
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp - 0x221c]
add esp, 0xc
push edi
push 0x1000
lea edx, [ebp - 0x2210]
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2210]
push eax
mov ecx, ebx
call fcn.00402008
jmp 0x410f63
push 0x4b6ad0
mov ecx, ebx
call fcn.004037ad
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0046e452
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4110c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8648
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x1000
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.00410460
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
push ecx
push 0xfff
push esi
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov edx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, edx
sub eax, esi
lea ecx, [ebx + 1]
sar eax, 1
mov dword [ebp - 0x10], edi
cmp ecx, eax
jbe 0x41114e
lea esi, [ebp - 0x10]
push esi
sub ecx, eax
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004104f0
mov esi, dword [ebp - 0x20]
jmp 0x41116b
jae 0x41116b
lea ecx, [esi + ecx*2]
mov dword [ebp - 0x10], ecx
cmp ecx, edx
je 0x41116b
push edi
push edx
push ecx
call fcn.00470c90
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp ebx, 0xfff
jbe 0x411183
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
sub esp, 0x10
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00410ca0
mov ebx, dword [ebp + 8]
push ebx
call fcn.00412e30
add esp, 0x14
cmp esi, edi
je 0x4111ad
push esi
call fcn.0046d5e2
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8818
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e0240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x4e0004]
mov edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4e0004
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
mov dword [ebp - 4], 0
jge 0x4119c7
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.00401485
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.0046e817
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00470c6c
add esp, 0x1c
test eax, eax
js 0x411a7b
cmp eax, dword [esi - 8]
jg 0x411a7b
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004033d0
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e452
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x411a90
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8858
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x411c05
push 0x4e1f5c
lea ecx, [ebp - 0x24]
call fcn.0040e700
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.00411950
add esp, 4
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411bf6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x411b35
push 0
push 0
push 0
push esi
call edi
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x4b7b58
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call edi
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00411800
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call fcn.0040336c
push 0x4b7b50
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040336c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x20
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411bb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x1c]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret