joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e84
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48c5b8]
cmp byte [eax + 0xc], 0
je 0x441ff1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441fea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48db68], 0
jne 0x441ed8
push 0x441ff8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442000
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db68], eax
cmp dword [0x48ad4c], 0
jne 0x441fd3
push 0x442010
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48ad4c], eax
cmp dword [0x48ad4c], 0
je 0x441fd3
push 0x44201c
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db6c], eax
push 0x44202c
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db70], eax
push 0x442040
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db74], eax
push 0x442058
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db78], eax
push 0x442070
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db7c], eax
push 0x442084
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db80], eax
push 0x44209c
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db84], eax
push 0x4420b4
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db88], eax
push 0x4420d0
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db8c], eax
push 0x4420dc
mov eax, dword [0x48ad4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441ff1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x445e7c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404038
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x445ecb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004042a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d608
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d658]
test si, 4
je 0x44d61c
or bl, 1
test si, 8
je 0x44d626
or bl, 4
test si, 1
je 0x44d630
or bl, 8
test si, 2
je 0x44d63a
or bl, 0x10
test si, 0x10
je 0x44d644
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d653
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d65c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d694]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d675
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d684
or bl, 4
test esi, 0x20000000
je 0x44d68f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453d3c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453d4e
add esp, 0xfffffff0
call fcn.0040360c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421eb4
mov eax, dword [0x48c0c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4540e0
mov eax, dword [0x48c0d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4540ec
mov eax, ebx
call fcn.004540f8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
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, 0x450514
push eax
push 0
push 0
mov eax, dword [0x48c2e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4238e0]
call fcn.00424d24
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4238e0]
call fcn.00424d24
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4238e0]
call fcn.00424d24
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454518
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4543f4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4543f4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4543f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453e8b
call fcn.00403664
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4541d8
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 0x454383
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454364
mov dl, 1
mov eax, dword [0x419bac]
call fcn.004032d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404038
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454353
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.004421e4
test al, al
je 0x454346
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, 0x454394
lea eax, [ebp - 0x254]
call fcn.004095cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454346
xor eax, eax
push ebp
push 0x45433f
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 0x4543cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454328
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a8
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 0x454328
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454346
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454249
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e0a4
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 0x45438a
lea eax, [ebp - 0x260]
call fcn.00404038
ret

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

Disassembly:
push ecx
mov eax, dword [0x48dbb4]
cmp byte [eax + 0xa5], 0
jne 0x454d29
cmp dword [0x48dbcc], 0
jne 0x454cea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454c74
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48dbcc], eax
cmp dword [0x48dbc8], 0
jne 0x454d05
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48dbc8], eax
cmp dword [0x48dbd0], 0
jne 0x454d29
push esp
push 0
push 0
push 0x454c18
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48dbd0], eax
pop edx
ret
Function at 0x454e20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454e37
add esp, 0xfffffff0
call fcn.0040360c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421eb4
mov eax, dword [0x48c2cc]
cmp word [eax + 2], 0
jne 0x454e5f
mov eax, dword [0x48c2cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004564f8
mov eax, dword [0x48c3c8]
cmp word [eax + 2], 0
jne 0x454e79
mov eax, dword [0x48c3c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004566f0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419548]
call fcn.004032d0
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424090]
call fcn.00429cd8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455000
mov eax, dword [0x48c154]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a0a8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456c90
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48c154]
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.0040d3b4
test eax, eax
je 0x454f6e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f90
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d3dc
test eax, eax
je 0x454f82
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042a8
mov eax, dword [0x48bfac]
cmp byte [eax], 0
jne 0x454fb6
mov eax, ebx
call fcn.00455128
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00456e6c
mov eax, ebx
call fcn.00457830
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454ff6
call fcn.00403664
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4553a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48dbb4]
cmp dword [eax + 0x30], 0
je 0x455452
cmp dword [ebx + 0x94], 0
jne 0x45544c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455338
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45544c
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 0x455412
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45544c
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.0041baf8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455421
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455fb4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x455fe9
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.00404128
jmp 0x455ff6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040408c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457048
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457089
mov eax, esi
call fcn.0043d958
test al, al
je 0x457089
mov eax, dword [ebx + 0x84]
call fcn.0043d654
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457089
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d654
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x479c2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x48bdae
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x479c83
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x48bdcf
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x479c79
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x479c87
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x41f3da
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x41f400
jmp 0x41f516
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x41f420
jmp 0x41f516
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042399c
add esp, 4
mov dword [0x42d0a0], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x41f46d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x41f48d
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x41f46a
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41f4f5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0042353f
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x41f4a9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41f51b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.004232f4
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042337c
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00423c52
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 2
jne 0x41f59e
cmp dword [0x42d2d2], 1
jne 0x41f59e
cmp dword [ebp - 0xc], 0
je 0x41f59e
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0041f3da
add esp, 8
jmp 0x41f5ad
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x14], eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x41f77c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x41f7c4
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x41f7ea
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x42d0a4], ecx
jne 0x41f7e8
cmp dword [ebp - 0xc], 0
je 0x41f7e6
mov eax, dword [ebp - 0xc]
add dword [eax + 8], 0xa
jmp 0x41f7ea
jmp 0x41f7c1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x41f88d
mov dword [ebp - 0x18], 0
jmp 0x41f818
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x41f88d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x42d0a4], ecx
jne 0x41f88b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx*4 + 0x42d1b2]
cmp dword [eax*4 + 0x42d13a], ecx
jb 0x41f87a
mov eax, dword [ebp - 0x10]
cmp dword [0x42d0a0], eax
je 0x41f868
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x42d11c]
push eax
call fcn.0042399c
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [0x42d0a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004234f3
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add dword [ecx*4 + 0x42d13a], eax
jmp 0x41f88d
jmp 0x41f815
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x41f89e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x41f8ec
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x41f94e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x42d0a4], ecx
jne 0x41f94c
mov eax, dword [ebp - 0xc]
cmp dword [0x42d0a0], eax
je 0x41f926
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x42d11c]
push eax
call fcn.0042399c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x42d0a0], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0042353f
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x41f94a
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x41f94e
jmp 0x41f8e9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x41f97c
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004234f3
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x4235d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x423612
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x4236e8
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x4236e3
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x423662
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x423662
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x4236e3
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0042399c
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x4236b5
mov dword [0x42d2d2], 1
mov dword [ebp - 0x10], 0
jmp 0x423698
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x4236b3
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x423695
jmp 0x4236bf
mov dword [0x42d2d2], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x4236e8
jmp 0x42360f
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x4236ff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x423829
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x42385b
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x423876
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x423858
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x4238c0
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x4238c0
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x4238c0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0042399c
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4238b7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x4238d0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x4238d5
pop edi
pop esi
pop ebx
leave
ret