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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x47031c
mov eax, esi
call fcn.00485ba0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47031c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x47031c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x47045b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x47035c
cmp eax, 0x108
ja 0x47035c
mov eax, esi
call fcn.00485ba0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x470452
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x47045b
jmp 0x470452
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x47043b
cmp eax, 0x20a
ja 0x47043b
test byte [esi + 0x50], 0x80
jne 0x47038e
sub eax, 0x203
je 0x47038b
sub eax, 3
je 0x47038b
sub eax, 3
jne 0x47038e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4703a2
dec eax
je 0x4703b7
dec eax
je 0x4703d4
dec eax
je 0x4703b7
jmp 0x4703db
mov ecx, ebx
mov eax, dword [0x4d461c]
mov eax, dword [eax]
mov edx, esi
call fcn.0048f478
jmp 0x470452
cmp byte [esi + 0x5d], 1
jne 0x4703cd
mov eax, esi
mov si, 0xffed
call fcn.00403f9c
jmp 0x47045b
or word [esi + 0x54], 1
jmp 0x470452
and word [esi + 0x54], 0xfffe
jmp 0x470452
mov eax, dword [0x4d725c]
cmp byte [eax + 0x20], 0
je 0x470452
mov eax, dword [0x4d725c]
cmp dword [eax + 0x1c], 0
je 0x470452
mov eax, dword [ebx]
mov edx, dword [0x4d725c]
cmp eax, dword [edx + 0x1c]
jne 0x470452
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00485ae4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403f9c
jmp 0x47045b
cmp eax, 0xb00b
jne 0x470452
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0046eba0
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a154
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d47cc]
cmp byte [eax + 0xc], 0
je 0x47a2c1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a2ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d72b0], 0
jne 0x47a1a8
push 0x47a2c8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x47a2d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72b0], eax
cmp dword [0x4d1204], 0
jne 0x47a2a3
push 0x47a2e0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4d1204], eax
cmp dword [0x4d1204], 0
je 0x47a2a3
push 0x47a2ec
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72b4], eax
push 0x47a2fc
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72b8], eax
push 0x47a310
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72bc], eax
push 0x47a328
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72c0], eax
push 0x47a340
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72c4], eax
push 0x47a354
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72c8], eax
push 0x47a36c
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72cc], eax
push 0x47a384
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72d0], eax
push 0x47a3a0
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72d4], eax
push 0x47a3ac
mov eax, dword [0x4d1204]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d72d8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a2c1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x47e14c
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.00404c88
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x47e19b
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.00404ef8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485a54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x485aa4]
test si, 4
je 0x485a68
or bl, 1
test si, 8
je 0x485a72
or bl, 4
test si, 1
je 0x485a7c
or bl, 8
test si, 2
je 0x485a86
or bl, 0x10
test si, 0x10
je 0x485a90
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x485a9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x485aa8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x485ae0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x485ac1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x485ad0
or bl, 4
test esi, 0x20000000
je 0x485adb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x48c1a4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x48c1b6
add esp, 0xfffffff0
call fcn.004040cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004217dc
mov eax, dword [0x4d43f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x48c548
mov eax, dword [0x4d43fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x48c554
mov eax, ebx
call fcn.0048c560
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419340]
call fcn.00403d64
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419340]
call fcn.00403d64
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419340]
call fcn.00403d64
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419340]
call fcn.00403d64
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419340]
call fcn.00403d64
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, 0x488978
push eax
push 0
push 0
mov eax, dword [0x4d4590]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x454fe8]
call fcn.00456878
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x454fe8]
call fcn.00456878
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x454fe8]
call fcn.00456878
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0048c9b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48c878
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48c878
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48c878
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48c2f3
call fcn.00404124
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48c65c
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 0x48c807
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48c7e8
mov dl, 1
mov eax, dword [0x41975c]
call fcn.00403d64
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48c7d7
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.0047a4b4
test al, al
je 0x48c7ca
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, 0x48c818
lea eax, [ebp - 0x254]
call fcn.0040a9a0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48c7ca
xor eax, eax
push ebp
push 0x48c7c3
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 0x48c850
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48c7ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ef8
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 0x48c7ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c7ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48c6cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d390
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 0x48c80e
lea eax, [ebp - 0x260]
call fcn.00404c88
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d72fc]
cmp byte [eax + 0xa5], 0
jne 0x48d1c1
cmp dword [0x4d7314], 0
jne 0x48d182
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48d10c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d7314], eax
cmp dword [0x4d7310], 0
jne 0x48d19d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d7310], eax
cmp dword [0x4d7318], 0
jne 0x48d1c1
push esp
push 0
push 0
push 0x48d0b0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d7318], eax
pop edx
ret
Function at 0x48d854
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d72fc]
cmp dword [eax + 0x30], 0
je 0x48d8fe
cmp dword [ebx + 0x94], 0
jne 0x48d8f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48d7e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48d8f8
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 0x48d8be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48d8f8
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.0041b704
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48d8cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48e45c
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 0x48e491
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.00404d78
jmp 0x48e49e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cdc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48f5c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48f601
mov eax, esi
call fcn.00475b74
test al, al
je 0x48f601
mov eax, dword [ebx + 0x84]
call fcn.00475870
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48f601
push 0
mov eax, dword [ebx + 0x84]
call fcn.00475870
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48ff64
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x492840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
push ebp
push 0x492a06
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
je 0x492890
call fcn.004046a4
jmp 0x492a0d
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, eax
imul edi, edx
dec edi
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.0049cea4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, bl
cmp eax, 5
ja case.default.0x4928c6
jmp dword [eax*4 + 0x4928cd]
add dword [ebp - 0xc], 2
mov ebx, edi
test ebx, ebx
jl case.default.0x4928c6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x4928f4
jmp case.default.0x4928c6
inc dword [ebp - 0xc]
mov ebx, edi
test ebx, ebx
jl case.default.0x4928c6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x49291b
jmp case.default.0x4928c6
mov ebx, edi
test ebx, ebx
jl case.default.0x4928c6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x49293f
jmp case.default.0x4928c6
add dword [ebp - 0xc], 3
mov ebx, edi
test ebx, ebx
jl case.default.0x4928c6
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
dec ebx
jne 0x492967
jmp case.default.0x4928c6
mov ebx, edi
test ebx, ebx
jl case.default.0x4928c6
inc ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, ecx
and eax, 0xff0000
shr eax, 0x10
mov edx, ecx
and edx, 0xff00
shr edx, 8
add eax, edx
and ecx, 0xff
add eax, ecx
mov ecx, eax
mov eax, ecx
mov ecx, 3
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov byte [eax], cl
inc dword [ebp - 0x10]
add dword [ebp - 8], 4
dec ebx
jne 0x492984
jmp case.default.0x4928c6
mov ebx, edi
test ebx, ebx
jl case.default.0x4928c6
inc ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0049b794
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc dword [ebp - 0x10]
add dword [ebp - 8], 4
dec ebx
jne 0x4929cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492a0d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae704
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040a520
add esp, 0x100
pop ebx
ret
Function at 0x4ccdec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cd036
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00409390
mov edx, dword [ebp - 0xc]
mov eax, 0x4cd04c
call fcn.004052a8
test eax, eax
jle 0x4cce35
mov edx, esi
mov eax, ebx
call fcn.004cdb18
jmp 0x4cd020
xor edx, edx
push ebp
push 0x4cd016
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x4b3e08]
call fcn.004b66c8
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x330]
call fcn.004bd8c4
mov eax, dword [ebx + 0x334]
call fcn.004ad08c
xor edx, edx
push ebp
push 0x4cd005
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x330]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebx + 0x334]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebx + 0x338]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebx + 0x33c]
mov edx, dword [ebx + 0x330]
mov dword [edx + 0x70], eax
mov cl, 1
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004b6874
lea eax, [ebx + 0x368]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
call fcn.00404cdc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x338]
mov esi, dword [eax]
call dword [esi + 0x2c]
mov byte [ebp - 5], 0
mov eax, dword [ebx + 0x330]
call fcn.004bda7c
mov esi, eax
dec esi
test esi, esi
jl 0x4ccf1b
inc esi
xor edi, edi
mov eax, dword [ebx + 0x330]
mov edx, edi
call fcn.004bda84
cmp byte [eax + 0x10], 0
je 0x4ccf17
mov byte [ebp - 5], 1
jmp 0x4ccf1b
inc edi
dec esi
jne 0x4ccefe
cmp byte [ebp - 5], 0
je 0x4ccf3a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x33c]
mov esi, dword [eax]
call dword [esi + 0x2c]
jmp 0x4ccf49
mov eax, dword [ebx + 0x33c]
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x2c]
mov eax, dword [ebx + 0x338]
call fcn.0049c458
mov eax, ebx
call fcn.004cd7d4
xor edx, edx
mov eax, ebx
call fcn.004cd684
mov eax, dword [ebx + 0x328]
call fcn.004c59c4
cmp dword [ebx + 0x368], 0
je 0x4ccfb8
mov eax, dword [ebx + 0x328]
add eax, 0x318
mov edx, dword [ebx + 0x368]
call fcn.00404cdc
mov eax, dword [ebx + 0x328]
mov dl, 1
call fcn.004c653c
mov eax, dword [ebx + 0x328]
mov byte [eax + 0x31e], 1
call fcn.004c5750
mov eax, dword [ebx + 0x328]
call fcn.004c5a8c
mov byte [ebx + 0x35c], 1
mov eax, dword [ebx + 0x308]
mov edx, dword [eax + 0x214]
cmp edx, dword [eax + 0x210]
jne 0x4ccfe2
mov eax, dword [ebx + 0x31c]
xor edx, edx
call fcn.004645c4
jmp 0x4ccfef
mov eax, dword [ebx + 0x31c]
mov dl, 1
call fcn.004645c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd00c
lea eax, [ebp - 4]
call fcn.0040f3f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd03d
lea eax, [ebp - 0xc]
call fcn.00404c88
ret
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x469008], 0x8088405
inc edx
mov dword [ebx + 0x469008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret