joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4724ac
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 0x472657
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x472638
mov dl, 1
mov eax, dword [0x419104]
call fcn.004045ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004054f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x472627
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.00464970
test al, al
je 0x47261a
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, 0x472668
lea eax, [ebp - 0x254]
call fcn.0040c098
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47261a
xor eax, eax
push ebp
push 0x472613
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 0x4726a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4725fc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405768
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 0x4725fc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47261a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47251d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041da88
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 0x47265e
lea eax, [ebp - 0x260]
call fcn.004054f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4f3ce0]
cmp byte [eax + 0xad], 0
jne 0x473041
cmp dword [0x4f3cfc], 0
jne 0x473002
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x472f8c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f3cfc], eax
cmp dword [0x4f3cf8], 0
jne 0x47301d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f3cf8], eax
cmp dword [0x4f3d00], 0
jne 0x473041
push esp
push 0
push 0
push 0x472f30
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4f3d00], eax
pop edx
ret
Function at 0x473214
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47322b
add esp, 0xfffffff0
call fcn.00404900
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422424
mov eax, dword [0x4ee098]
cmp word [eax + 2], 0
jne 0x473253
mov eax, dword [0x4ee098]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474e2c
mov eax, dword [0x4ee260]
cmp word [eax + 2], 0
jne 0x47326d
mov eax, dword [0x4ee260]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00475038
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418a98]
call fcn.004045ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418a98]
call fcn.004045ac
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x418a98]
call fcn.004045ac
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 [0x4270d0]
call fcn.0042f590
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x473424
mov eax, dword [0x4ede8c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f964
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47570c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ede8c]
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.0040ffcc
test eax, eax
je 0x473374
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b6a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00410000
test eax, eax
je 0x473388
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.00405768
mov byte [ebx + 0xd4], 0
push ebx
push 0x47493c
call fcn.004235b4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4edb8c]
cmp byte [eax], 0
jne 0x4733d9
mov eax, ebx
call fcn.00473568
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.004758e4
mov eax, ebx
call fcn.00476448
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x473419
call fcn.00404958
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4737e8
Capabilities:
Enumerate gui resources

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

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4f3ce0]
cmp dword [eax + 0x30], 0
je 0x473bfd
test bl, bl
jne 0x473b4e
cmp dword [esi + 0x9c], 0
jne 0x473b43
mov eax, esi
call fcn.004762c4
push eax
push 0x4739cc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x473b14
mov eax, dword [0x4f3ce0]
call fcn.004769a4
test al, al
je 0x473b14
mov eax, dword [0x4f3d04]
call fcn.00406a94
mov edi, eax
cmp edi, 0
jl 0x473b14
push 0
mov eax, dword [0x4f3d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x473afe
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473b43
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b168
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x473b23
inc dword [esi + 0x9c]
jmp 0x473bfd
cmp dword [esi + 0x9c], 0
jle 0x473bfd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x473bfd
cmp dword [esi + 0x44], 0
je 0x473ba9
mov eax, dword [0x4f3ce0]
call fcn.004769a4
test al, al
je 0x473ba9
mov eax, dword [0x4f3d04]
call fcn.00406a94
mov edi, eax
cmp edi, 0
jl 0x473ba9
push 5
mov eax, dword [0x4f3d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x473b93
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473bd8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b168
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x473bb8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4f3d04
mov ecx, 1
mov edx, dword [0x4739ac]
call fcn.00406c48
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x476fa4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408934]
call fcn.00406158
xor eax, eax
push ebp
push 0x477145
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e7a40], 0
jne 0x476fff
mov ecx, dword [0x4edbc4]
mov dl, 1
mov eax, dword [0x408f74]
call fcn.0040f054
call fcn.00404e50
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403bd0
mov eax, ebx
call fcn.00405ea0
mov dword [ebp - 0x24], eax
mov esi, 0x477154
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040736c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405eb0
test eax, eax
jle 0x4770e8
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4770d4
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405768
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x47707a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0040579c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x477090
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0040579c
mov eax, dword [ebp - 0x54]
call fcn.004059a4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405768
mov eax, dword [ebp - 0x58]
call fcn.004059a4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4770d6
xor eax, eax
test al, al
je 0x4770e1
mov ebx, 0x15
jmp 0x4770ed
mov ebx, 0x10
jmp 0x4770ed
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4e7a40]
call fcn.00476e24
mov eax, dword [ebp - 4]
call fcn.00476e24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47714c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.0040551c
lea eax, [ebp - 0xc]
mov edx, dword [0x408934]
call fcn.00406228
ret
Function at 0x48241c
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 0x48258d
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 0x482568
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.004056e0
lea eax, [ebp - 0x118]
mov edx, 0x4825a4
call fcn.004057e0
mov eax, dword [ebp - 0x118]
call fcn.004059a4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4824da
lea eax, [ebp - 0x111]
call fcn.0040b64c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004055e8
jmp 0x4824e1
mov eax, esi
call fcn.004054f8
cmp bl, 0x61
jae 0x482502
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040fe98
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040554c
jmp 0x48251c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040fe04
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040554c
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, 0x4825b0
call fcn.0040c118
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040554c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48256f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4a39f8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a3a52
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a39e8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a1640
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a1158
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3a59
lea eax, [ebp - 4]
call fcn.004054f8
ret
Function at 0x4abd08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ea0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4abd21
test al, 0x10
je 0x4abd25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4abd2c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00405e74
add esp, 0x20c
pop ebx
ret

Function at 0x4abd70
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405d1c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405ea0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4abdb5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405e14
jmp 0x4abdce
mov edx, ebx
dec edx
mov eax, esi
call fcn.004060f4
push ebx
mov eax, dword [esi]
call fcn.00405ea0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b1954
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x4b19ab
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
add esi, 4
loop 0x4b1969
mov ecx, edi
and ecx, 3
jecxz 0x4b19c3
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x4e953c]
loop 0x4b19b2
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x4c71cc
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.00405994
xor eax, eax
push ebp
push 0x4c722a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004c72a8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4c7212
lea eax, [ebp - 4]
call fcn.004c72a8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4c7214
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7231
lea eax, [ebp - 4]
call fcn.004054f8
ret

Function at 0x4c7238
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.00405994
xor eax, eax
push ebp
push 0x4c729c
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.004c72a8
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b88c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c72a3
lea eax, [ebp - 4]
call fcn.004054f8
ret

Function at 0x4c785c
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.00405994
xor eax, eax
push ebp
push 0x4c7955
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.004c6f5c
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.0040b430
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c822c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b2f0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c82a4
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 0x4c795c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040551c
ret
Function at 0x4c7964
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.00405994
xor eax, eax
push ebp
push 0x4c7a6d
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.004c6f5c
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 0x4c7a33
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b430
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c822c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b2f0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c82a4
jmp 0x4c7a45
xor edx, edx
mov eax, ebx
call fcn.004c822c
xor edx, edx
mov eax, ebx
call fcn.004c82a4
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 0x4c7a74
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040551c
ret

Function at 0x4ce35c
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.004ce598
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.004ce598
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4ce3d0
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 0x4ce3f6
inc esi
mov eax, edi
call fcn.004ce3b4
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.004ce35c
inc ebx
dec esi
jne 0x4ce3df
pop edi
pop esi
pop ebx
ret
Function at 0x4ce48c
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.00405994
xor eax, eax
push ebp
push 0x4ce502
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004ce3fc
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004ce3b4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004ce35c
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4ce4cc
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce509
lea eax, [ebp - 4]
call fcn.004054f8
ret