joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472e74
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x472e86
add esp, 0xfffffff0
call fcn.004046e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422b84
mov eax, dword [0x59b3fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x473218
mov eax, dword [0x59b40c]
mov dword [eax + 4], ebx
mov dword [eax], 0x473224
mov eax, ebx
call fcn.00473230
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
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, 0x46e8c4
push eax
push 0
push 0
mov eax, dword [0x59b684]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426b3c]
call fcn.00428430
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426b3c]
call fcn.00428430
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426b3c]
call fcn.00428430
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00473660
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473530
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473530
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473530
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x472fc3
call fcn.00404738
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x473314
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 0x4734bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4734a0
mov dl, 1
mov eax, dword [0x419580]
call fcn.0040438c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004052bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47348f
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.004651fc
test al, al
je 0x473482
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, 0x4734d0
lea eax, [ebp - 0x254]
call fcn.0040ba34
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x473482
xor eax, eax
push ebp
push 0x47347b
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 0x473508
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x473464
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040552c
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 0x473464
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040552c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473482
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x473385
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041e204
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 0x4734c6
lea eax, [ebp - 0x260]
call fcn.004052bc
ret

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

Disassembly:
push ecx
mov eax, dword [0x5a0cdc]
cmp byte [eax + 0xad], 0
jne 0x473ea9
cmp dword [0x5a0cf8], 0
jne 0x473e6a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x473df4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5a0cf8], eax
cmp dword [0x5a0cf4], 0
jne 0x473e85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5a0cf4], eax
cmp dword [0x5a0cfc], 0
jne 0x473ea9
push esp
push 0
push 0
push 0x473d98
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5a0cfc], eax
pop edx
ret
Function at 0x47407c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x474093
add esp, 0xfffffff0
call fcn.004046e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422b84
mov eax, dword [0x59b65c]
cmp word [eax + 2], 0
jne 0x4740bb
mov eax, dword [0x59b65c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00475c94
mov eax, dword [0x59b7a4]
cmp word [eax + 2], 0
jne 0x4740d5
mov eax, dword [0x59b7a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00475ea0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x418f14]
call fcn.0040438c
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 [0x4276ec]
call fcn.0042fe1c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x47428c
mov eax, dword [0x59b4c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004301f0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x476564
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x59b4c4]
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.0040fa80
test eax, eax
je 0x4741dc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b03c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fab4
test eax, eax
je 0x4741f0
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.0040552c
mov byte [ebx + 0xd4], 0
push ebx
push 0x4757a4
call fcn.00423d14
mov dword [ebx + 0xc8], eax
mov eax, dword [0x59b244]
cmp byte [eax], 0
jne 0x474241
mov eax, ebx
call fcn.004743d0
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.0047673c
mov eax, ebx
call fcn.004772a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474281
call fcn.00404738
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474650
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4746ef
cmp dword [ebx + 0x94], 0
jne 0x4746e9
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4745d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4746e9
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 0x4746af
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4746e9
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.0041b600
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4746be
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5a0cdc]
cmp dword [eax + 0x30], 0
je 0x474a65
test bl, bl
jne 0x4749b6
cmp dword [esi + 0x9c], 0
jne 0x4749ab
mov eax, esi
call fcn.0047711c
push eax
push 0x474834
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x47497c
mov eax, dword [0x5a0cdc]
call fcn.004777fc
test al, al
je 0x47497c
mov eax, dword [0x5a0d00]
call fcn.004066c0
mov edi, eax
cmp edi, 0
jl 0x47497c
push 0
mov eax, dword [0x5a0d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x474966
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4749ab
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b600
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x47498b
inc dword [esi + 0x9c]
jmp 0x474a65
cmp dword [esi + 0x9c], 0
jle 0x474a65
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x474a65
cmp dword [esi + 0x44], 0
je 0x474a11
mov eax, dword [0x5a0cdc]
call fcn.004777fc
test al, al
je 0x474a11
mov eax, dword [0x5a0d00]
call fcn.004066c0
mov edi, eax
cmp edi, 0
jl 0x474a11
push 5
mov eax, dword [0x5a0d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4749fb
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x474a40
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b600
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x474a20
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x5a0d00
mov ecx, 1
mov edx, dword [0x474814]
call fcn.00406874
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4754f8
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 0x475562
mov eax, ebx
call fcn.004777fc
test al, al
jne 0x475562
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.004053ac
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x47554f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47556f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405310
jmp 0x47556f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405310
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x476920
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47698e
mov eax, esi
call fcn.0045fe34
test al, al
je 0x47698e
mov eax, dword [ebx + 0x84]
call fcn.0045fa84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47698e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x476982
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045fa84
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004578f4
jmp 0x47698e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0047675c
pop esi
pop ebx
ret

Function at 0x47c91c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47ca8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ca68
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004054a4
lea eax, [ebp - 0x118]
mov edx, 0x47caa4
call fcn.00405588
mov eax, dword [ebp - 0x118]
call fcn.0040574c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47c9da
lea eax, [ebp - 0x111]
call fcn.0040afe8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004053ac
jmp 0x47c9e1
mov eax, esi
call fcn.004052bc
cmp bl, 0x61
jae 0x47ca02
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f94c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405310
jmp 0x47ca1c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f8b8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405310
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x47cab0
call fcn.0040bab4
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca6f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4820d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x482136
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004821b4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x48211e
lea eax, [ebp - 4]
call fcn.004821b4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x482120
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48213d
lea eax, [ebp - 4]
call fcn.004052bc
ret

Function at 0x482144
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4821a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004821b4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b228
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4821af
lea eax, [ebp - 4]
call fcn.004052bc
ret

Function at 0x482768
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x482861
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00481e68
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ae30
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00483138
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040acf0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004831b0
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482868
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004052e0
ret
Function at 0x482870
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x482979
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00481e68
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x48293f
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ae30
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00483138
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040acf0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004831b0
jmp 0x482951
xor edx, edx
mov eax, ebx
call fcn.00483138
xor edx, edx
mov eax, ebx
call fcn.004831b0
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482980
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004052e0
ret

Function at 0x489268
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004894a4
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004894a4
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4892dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x489302
inc esi
mov eax, edi
call fcn.004892c0
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.00489268
inc ebx
dec esi
jne 0x4892eb
pop edi
pop esi
pop ebx
ret
Function at 0x489398
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x48940e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00489308
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004892c0
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00489268
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4893d8
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489415
lea eax, [ebp - 4]
call fcn.004052bc
ret
Function at 0x48a0a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a28e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x48a24a
mov eax, dword [ebp - 4]
call fcn.0048ba50
cmp ebx, eax
jge 0x48a24a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.0048084c
mov edx, dword [0x482208]
call fcn.0040456c
mov esi, eax
mov eax, esi
call fcn.004830cc
test al, al
je 0x48a240
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x48a234
xor eax, eax
push ebp
push 0x48a22d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048a660
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041e328
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004059dc
mov eax, dword [ebp - 8]
call fcn.004057ac
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048a424
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a278
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x48a22c
mov eax, dword [ebp - 4]
call fcn.0048a6e4
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b228
jmp 0x48a278
mov eax, dword [ebp - 8]
call fcn.004052bc
jmp 0x48a278
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a678
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x418cec]
call fcn.0040ea88
call fcn.00404c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a295
lea eax, [ebp - 0x54]
call fcn.004052bc
ret