joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445b98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445bd0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445bb1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445bc0
or bl, 4
test esi, 0x20000000
je 0x445bcb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c278
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c28a
add esp, 0xfffffff0
call fcn.00403448
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c608
mov eax, dword [0x453e58]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c61c
mov eax, dword [0x453e64]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c628
mov eax, ebx
call fcn.0044c634
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
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, 0x448a50
push eax
push 0
push 0
mov eax, dword [0x453fb0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e02c]
call fcn.0041f470
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e02c]
call fcn.0041f470
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e02c]
call fcn.0041f470
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ca54
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c930
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c930
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c930
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c3c7
call fcn.004034a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c714
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 0x44c8bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c8a0
mov dl, 1
mov eax, dword [0x414d1c]
call fcn.0040310c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e74
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c88f
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.0043a748
test al, al
je 0x44c882
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, 0x44c8d0
lea eax, [ebp - 0x254]
call fcn.00408b30
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c882
xor eax, eax
push ebp
push 0x44c87b
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 0x44c908
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c864
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040e4
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 0x44c864
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c882
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c785
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004187f8
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 0x44c8c6
lea eax, [ebp - 0x260]
call fcn.00403e74
ret

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

Disassembly:
push ecx
mov eax, dword [0x455bb4]
cmp byte [eax + 0xa5], 0
jne 0x44d265
cmp dword [0x455bcc], 0
jne 0x44d226
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d1b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455bcc], eax
cmp dword [0x455bc8], 0
jne 0x44d241
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455bc8], eax
cmp dword [0x455bd0], 0
jne 0x44d265
push esp
push 0
push 0
push 0x44d154
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455bd0], eax
pop edx
ret
Function at 0x44d35c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d373
add esp, 0xfffffff0
call fcn.00403448
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c608
mov eax, dword [0x453f9c]
cmp word [eax + 2], 0
jne 0x44d39b
mov eax, dword [0x453f9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e9b4
mov eax, dword [0x454048]
cmp word [eax + 2], 0
jne 0x44d3b5
mov eax, dword [0x454048]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ebac
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414900]
call fcn.0040310c
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 [0x41e7dc]
call fcn.00424424
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44d53c
mov eax, dword [0x453ebc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004247f4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f14c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453ebc]
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.0040c1e8
test eax, eax
je 0x44d4aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408524
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c210
test eax, eax
je 0x44d4be
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.004040e4
mov eax, dword [0x453da8]
cmp byte [eax], 0
jne 0x44d4f2
mov eax, ebx
call fcn.0044d664
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.0044f328
mov eax, ebx
call fcn.0044fcec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d532
call fcn.004034a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d8e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455bb4]
cmp dword [eax + 0x30], 0
je 0x44d98e
cmp dword [ebx + 0x94], 0
jne 0x44d988
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d874
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d988
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 0x44d94e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d988
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.00416c68
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d95d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e4f0
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 0x44e525
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.00403f64
jmp 0x44e532
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ec8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f504
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f545
mov eax, esi
call fcn.00435f50
test al, al
je 0x44f545
mov eax, dword [ebx + 0x84]
call fcn.00435cf0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f545
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435cf0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x450204
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414148]
call fcn.00404828
xor eax, eax
push ebp
push 0x450348
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453d44], 0
jne 0x450257
mov ecx, dword [0x453db8]
mov dl, 1
mov eax, dword [0x406f64]
call fcn.0040b520
call fcn.004038b0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b50
mov eax, ebx
call fcn.004046b0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x450358
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040577c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004046c0
test eax, eax
jle 0x4502ef
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4502e8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004040fc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004040e4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407d70
test eax, eax
jne 0x4502e8
mov ebx, 0x15
jmp 0x4502f4
mov ebx, 0x10
jmp 0x4502f4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x453d44]
call fcn.0045015c
mov eax, dword [ebp - 8]
call fcn.0045015c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45034f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403e98
lea eax, [ebp - 0x10]
mov edx, dword [0x414148]
call fcn.004048ec
ret
Function at 0x4037f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4037fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4038b7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
sub edi, 1
jne 0x403810
pop edi
test esi, esi
je 0x4038da
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
sub esi, 1
jne 0x4038c0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4040c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f1464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x404105
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404100
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x404132
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x404116
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.00549bd0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x404150
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b6c
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40413d
cmp byte [esi + 8], 0
je 0x40413d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b6c
mov esp, ebp
pop ebp
ret
Function at 0x404210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f1464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
cmp byte [ebx], 0
je 0x404263
cmp byte [ebx + 1], 0
je 0x404296
push 2
push 0
push 0
push dword [ebx + 4]
call esi
cmp byte [ebx], 0
je 0x404269
cmp byte [ebx + 1], 0
je 0x40425c
push 1
push 0
push 0
push dword [ebx + 4]
call esi
sub eax, dword [ebx + 0xc]
jmp 0x40426c
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x40427b
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov esi, 0xffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
cmp eax, esi
jae 0x404280
mov esi, eax
mov dword [ebp - 0x18], eax
push 0x404
call fcn.0054fe49
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4042aa
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b6c
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp esi, eax
jbe 0x4043b6
nop
mov edx, dword [ebp - 0x10]
add eax, 0x400
cmp eax, esi
mov ecx, esi
cmovbe ecx, eax
mov eax, 0x404
sub edx, ecx
mov dword [ebp - 0x24], ecx
cmp ecx, 0x404
mov dword [ebp - 0x20], edx
mov esi, ecx
cmova esi, eax
cmp byte [ebx], 0
mov dword [ebp - 0x1c], esi
je 0x404331
cmp byte [ebx + 1], 0
je 0x4043b6
mov eax, dword [ebx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebx], 0
mov edx, esi
je 0x404336
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40432c
mov byte [ebx + 8], 1
mov eax, dword [ebp - 8]
jmp 0x404367
mov dword [ebx + 0x1c], edx
mov edx, esi
mov edi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
lea eax, [edi + esi]
mov esi, dword [ebx + 0x18]
sub esi, edi
cmp eax, dword [ebx + 0x18]
cmovbe esi, edx
add ecx, edi
push esi
push ecx
push dword [ebp - 0x14]
call fcn.00549bd0
lea ecx, [esi + edi]
mov eax, esi
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov edi, dword [ebp - 0x14]
mov dword [ebx + 0x1c], ecx
xor edx, edx
div esi
cmp eax, 1
jne 0x4043b6
lea ecx, [esi - 3]
test ecx, ecx
js 0x4043a1
lea eax, [edi + 3]
add eax, ecx
nop dword [eax]
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x40439d
cmp byte [edx + edi], 0x4b
jne 0x40439d
cmp byte [eax - 1], 5
jne 0x40439d
cmp byte [eax], 6
je 0x4043d3
test ecx, ecx
jns 0x404380
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4043b6
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
cmp eax, esi
jb 0x4042c0
push edi
call fcn.0054fe2e
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00545b6c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x4043a4
Function at 0x404d50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x404f3a
cmp dword [edi + 0x18], 0
je 0x404f3a
push esi
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x404db0
mov eax, dword [esi]
test eax, eax
je 0x404d85
push eax
call fcn.0054fe2e
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x404d99
lea ecx, [esi + 4]
call fcn.00403a50
push esi
mov dword [esi + 0x40], 0
call fcn.0054fe2e
add esp, 4
mov dword [edi + 0x7c], 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00404af0
add esp, 8
test eax, eax
je 0x404dd5
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
call fcn.0054fe49
mov esi, eax
add esp, 4
test esi, esi
je 0x404e17
push 0x4000
call fcn.0054fe49
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x404e23
push esi
call fcn.0054fe2e
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x404e7b
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00403b30
test eax, eax
jne 0x404e7b
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x404e9f
mov al, byte [edi + 0x39]
jmp 0x404ea2
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x404f1b
mov al, byte [ebx]
test al, al
je 0x404f1b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d4298]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x404ed0
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5f1464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x405b05
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0054ff1f
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405aa4
sub ecx, edx
sar ecx, 1
je 0x405ae4
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x405ac7
cmp eax, 0x5c
jne 0x405ae4
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x405c15
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405b05
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x405c05
push esi
mov esi, edi
mov ecx, edi
mov edx, eax
cmp dx, 0x2f
je 0x405b24
cmp dx, 0x5c
jne 0x405b26
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x405b18
cmp esi, edi
je 0x405b71
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.00549bd0
add esp, 0xc
cmp esi, 0x208
jae 0x405c15
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.00405a60
xor eax, eax
mov word [ebp - 0x414], ax
pop esi
test ebx, ebx
je 0x405b99
push 0x104
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0054ff1f
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bb0
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push edi
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push eax
call fcn.0054ff1f
xor eax, eax
add esp, 0x10
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405c05
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00545b6c
mov esp, ebp
pop ebp
ret
call fcn.00545ca1
int3