joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4485f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x448616
mov eax, esp
push eax
push 0x4485b8
call sub.user32.dll_EnumWindows
jmp 0x448629
mov eax, esp
push eax
push 0x448598
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4486b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x448708]
test si, 4
je 0x4486c9
or bl, 1
test si, 8
je 0x4486d3
or bl, 4
test si, 1
je 0x4486dd
or bl, 8
test si, 2
je 0x4486e7
or bl, 0x10
test si, 0x10
je 0x4486f1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448700
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44870c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x448748]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448726
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448735
or bl, 4
test esi, 0x20000000
je 0x448740
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4507b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4507c6
add esp, 0xfffffff0
call fcn.00403e68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a270
mov eax, dword [0x4597c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450b58
mov eax, dword [0x4597d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x450b64
mov eax, ebx
call fcn.00450b70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c018
push eax
push 0
push 0
mov eax, dword [0x459914]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41de04]
call fcn.0041f324
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41de04]
call fcn.0041f324
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41de04]
call fcn.0041f324
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450fe8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450eb8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450eb8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450eb8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450903
call fcn.00403ec0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450c9c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450e47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450e28
mov dl, 1
mov eax, dword [0x412444]
call fcn.00403b2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404970
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450e17
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442434
test al, al
je 0x450e0a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450e58
lea eax, [ebp - 0x254]
call fcn.004094a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450e0a
xor eax, eax
push ebp
push 0x450e03
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450e90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450dec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404be0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450dec
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450e0a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450d0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041611c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450e4e
lea eax, [ebp - 0x260]
call fcn.00404970
ret

Function at 0x4517c0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45ec94]
cmp byte [eax + 0xad], 0
jne 0x451831
cmp dword [0x45ecb0], 0
jne 0x4517f2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45177c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ecb0], eax
cmp dword [0x45ecac], 0
jne 0x45180d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ecac], eax
cmp dword [0x45ecb4], 0
jne 0x451831
push esp
push 0
push 0
push 0x451720
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ecb4], eax
pop edx
ret
Function at 0x451a34
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451a4b
add esp, 0xfffffff0
call fcn.00403e68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a270
mov eax, dword [0x459900]
cmp word [eax + 2], 0
jne 0x451a73
mov eax, dword [0x459900]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453724
mov eax, dword [0x4599a4]
cmp word [eax + 2], 0
jne 0x451a8d
mov eax, dword [0x4599a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453930
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412020]
call fcn.00403b2c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e5e0]
call fcn.004244ac
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x451c44
mov eax, dword [0x45982c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424880
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453ff4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45982c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cc3c
test eax, eax
je 0x451b94
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc70
test eax, eax
je 0x451ba8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404be0
mov byte [ebx + 0xd4], 0
push ebx
push 0x4531b0
call fcn.0041b3ec
mov dword [ebx + 0xc8], eax
mov eax, dword [0x459738]
cmp byte [eax], 0
jne 0x451bf9
mov eax, ebx
call fcn.00451d88
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00454208
mov eax, ebx
call fcn.00454d6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451c39
call fcn.00403ec0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452008
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4520a7
cmp dword [ebx + 0x94], 0
jne 0x4520a1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451f90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4520a1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452067
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4520a1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004143c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452076
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4522c0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x45ec94]
cmp dword [eax + 0x30], 0
je 0x45241d
test bl, bl
jne 0x45236e
cmp dword [esi + 0x9c], 0
jne 0x452363
mov eax, esi
call fcn.00454be8
push eax
push 0x4521ec
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x452334
mov eax, dword [0x45ec94]
call fcn.004551d8
test al, al
je 0x452334
mov eax, dword [0x45ecb8]
call fcn.0040582c
mov edi, eax
cmp edi, 0
jl 0x452334
push 0
mov eax, dword [0x45ecb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45231e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x452363
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004143c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x452343
inc dword [esi + 0x9c]
jmp 0x45241d
cmp dword [esi + 0x9c], 0
jle 0x45241d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45241d
cmp dword [esi + 0x44], 0
je 0x4523c9
mov eax, dword [0x45ec94]
call fcn.004551d8
test al, al
je 0x4523c9
mov eax, dword [0x45ecb8]
call fcn.0040582c
mov edi, eax
cmp edi, 0
jl 0x4523c9
push 5
mov eax, dword [0x45ecb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4523b3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4523f8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004143c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4523d8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x45ecb8
mov ecx, 1
mov edx, dword [0x4521cc]
call fcn.004059e0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x452f04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x452f6e
mov eax, ebx
call fcn.004551d8
test al, al
jne 0x452f6e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a60
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x452f5b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x452f7b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c4
jmp 0x452f7b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4543ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45445a
mov eax, esi
call fcn.0043d26c
test al, al
je 0x45445a
mov eax, dword [ebx + 0x84]
call fcn.0043cf70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45445a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45444e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cf70
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00435014
jmp 0x45445a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454228
pop esi
pop ebx
ret

Function at 0x455b8c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x455bd6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x455bf4
mov eax, dword [ebp - 8]
call fcn.00455ad0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x455be0
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x455c08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x455c59
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00455b8c
push ebx
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x455c65
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40103b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401072
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40106e
jmp 0x401060
cmp esi, eax
jae 0x401072
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x401079
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d089
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5eaeac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
call fcn.00464a07
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4045dd
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x404618
push 0x104
mov ecx, esi
call fcn.004013a0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push edi
push 0x104
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40464e
push ecx
push eax
call fcn.00563133
add esp, 8
test eax, eax
js 0x404701
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x404701
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404685
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046cb
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 0x4046ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x404790
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d0d0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5eaeac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.00464a07
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4047d6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
fld dword [ebp + 0x14]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x10]
push 0x5946ac
push ecx
mov byte [ebp - 4], 3
call fcn.00402fb0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov edi, dword [ebp + 0x10]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x40482d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004013a0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x104
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00563133
add esp, 8
test eax, eax
js 0x404914
cmp eax, dword [esi - 8]
jg 0x404914
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.005636f0
fstp dword [ebp - 0x10]
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404894
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
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 0x4048da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x404e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5eaeac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x404f48
nop
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x11]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0x3e5
je 0x404ed6
push str.ReadFile__
jmp 0x404ef3
mov ecx, dword [esi + 8]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x404efa
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call fcn.00404d00
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x88]
movzx eax, byte [ebp - 0x11]
mov ecx, dword [esi + 0x84]
push edx
mov edx, dword [ecx + 0x20]
push eax
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x404ea0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00563636
mov esp, ebp
pop ebp
ret