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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4dfdd8]
cmp byte [eax + 0xc], 0
je 0x4561d5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4561ce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e0ba4], 0
jne 0x4560bc
push 0x4561dc
call sub.kernel32.dll_GetModuleHandleA_3
mov ebx, eax
push 0x4561e4
push ebx
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0ba4], eax
cmp dword [0x4dcfd4], 0
jne 0x4561b7
push 0x4561f4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4dcfd4], eax
cmp dword [0x4dcfd4], 0
je 0x4561b7
push 0x456200
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0ba8], eax
push 0x456210
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bac], eax
push 0x456224
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bb0], eax
push 0x45623c
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bb4], eax
push 0x456254
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bb8], eax
push 0x456268
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bbc], eax
push 0x456280
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bc0], eax
push 0x456298
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bc4], eax
push 0x4562b4
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bc8], eax
push 0x4562c0
mov eax, dword [0x4dcfd4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4e0bcc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4561d5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45a07c
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.00404350
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45a0cb
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.004045c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4618b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x461908]
test si, 4
je 0x4618cc
or bl, 1
test si, 8
je 0x4618d6
or bl, 4
test si, 1
je 0x4618e0
or bl, 8
test si, 2
je 0x4618ea
or bl, 0x10
test si, 0x10
je 0x4618f4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461903
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46190c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x461944]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461925
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461934
or bl, 4
test esi, 0x20000000
je 0x46193f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x467fec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x467ffe
add esp, 0xfffffff0
call fcn.004037a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424b98
mov eax, dword [0x4df6d0]
mov dword [eax + 4], ebx
mov dword [eax], 0x468390
mov eax, dword [0x4df6e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x46839c
mov eax, ebx
call fcn.004683a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
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, 0x4647c4
push eax
push 0
push 0
mov eax, dword [0x4df9b8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426664]
call fcn.00427e78
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426664]
call fcn.00427e78
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426664]
call fcn.00427e78
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004687c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4686a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4686a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4686a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46813b
call fcn.004037f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x468488
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 0x468633
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x468614
mov dl, 1
mov eax, dword [0x41bfb8]
call fcn.0040344c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404350
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x468603
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.004563c8
test al, al
je 0x4685f6
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, 0x468644
lea eax, [ebp - 0x254]
call fcn.0040a48c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4685f6
xor eax, eax
push ebp
push 0x4685ef
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 0x46867c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4685d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045c0
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 0x4685d8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4685f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4684f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004206bc
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 0x46863a
lea eax, [ebp - 0x260]
call fcn.00404350
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e0bf0]
cmp byte [eax + 0xa5], 0
jne 0x468fd9
cmp dword [0x4e0c08], 0
jne 0x468f9a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x468f24
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e0c08], eax
cmp dword [0x4e0c04], 0
jne 0x468fb5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e0c04], eax
cmp dword [0x4e0c0c], 0
jne 0x468fd9
push esp
push 0
push 0
push 0x468ec8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e0c0c], eax
pop edx
ret
Function at 0x4690d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4690e7
add esp, 0xfffffff0
call fcn.004037a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424b98
mov eax, dword [0x4df998]
cmp word [eax + 2], 0
jne 0x46910f
mov eax, dword [0x4df998]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046a6d4
mov eax, dword [0x4dfb20]
cmp word [eax + 2], 0
jne 0x469129
mov eax, dword [0x4dfb20]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046a8cc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b954]
call fcn.0040344c
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 [0x4271e4]
call fcn.0042f024
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4692b0
mov eax, dword [0x4df7b4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f3f4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46ae6c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4df7b4]
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.0040e490
test eax, eax
je 0x46921e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409e6c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e4b8
test eax, eax
je 0x469232
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.004045c0
mov eax, dword [0x4df51c]
cmp byte [eax], 0
jne 0x469266
mov eax, ebx
call fcn.004693d8
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.0046b048
mov eax, ebx
call fcn.0046ba0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4692a6
call fcn.004037f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469658
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e0bf0]
cmp dword [eax + 0x30], 0
je 0x469702
cmp dword [ebx + 0x94], 0
jne 0x4696fc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4695e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4696fc
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 0x4696c2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4696fc
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.0041dfe8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4696d1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46a264
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 0x46a299
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.00404440
jmp 0x46a2a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46b224
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46b265
mov eax, esi
call fcn.004519f4
test al, al
je 0x46b265
mov eax, dword [ebx + 0x84]
call fcn.004516f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46b265
push 0
mov eax, dword [ebx + 0x84]
call fcn.004516f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x472584
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 [0x41aef4]
call fcn.00404e30
xor eax, eax
push ebp
push 0x4726c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dd2b4], 0
jne 0x4725d7
mov ecx, dword [0x4df548]
mov dl, 1
mov eax, dword [0x407e70]
call fcn.0040d550
call fcn.00403ccc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e18
mov eax, ebx
call fcn.00404be8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4726d8
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.00406224
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404bf8
test eax, eax
jle 0x47266f
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 0x472668
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004045d8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045c0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408cdc
test eax, eax
jne 0x472668
mov ebx, 0x15
jmp 0x472674
mov ebx, 0x10
jmp 0x472674
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 [0x4dd2b4]
call fcn.004724dc
mov eax, dword [ebp - 8]
call fcn.004724dc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040623c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4726cf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404374
lea eax, [ebp - 0x10]
mov edx, dword [0x41aef4]
call fcn.00404f00
ret

Function at 0x488494
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4884b9
cmp dword [esp + 4], 5
jb 0x4884b9
mov al, 1
jmp 0x4884bb
xor eax, eax
add esp, 0x94
ret
Function at 0x4b7ce0
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 0x4b7d3a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b7cd0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b5a7c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004b55d4
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 0x4b7d41
lea eax, [ebp - 4]
call fcn.00404350
ret
Function at 0x4bdcf0
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 0x4bde61
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 0x4bde3c
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.00404538
lea eax, [ebp - 0x118]
mov edx, 0x4bde78
call fcn.00404618
mov eax, dword [ebp - 0x118]
call fcn.00404810
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4bddae
lea eax, [ebp - 0x111]
call fcn.00409e30
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404440
jmp 0x4bddb5
mov eax, esi
call fcn.00404350
cmp bl, 0x61
jae 0x4bddd6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e364
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004043a4
jmp 0x4bddf0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e2d8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004043a4
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, 0x4bde84
call fcn.0040a50c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004043a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bde43
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4c2b28
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.00404800
xor eax, eax
push ebp
push 0x4c2b8c
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.004c2b98
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a01c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2b93
lea eax, [ebp - 4]
call fcn.00404350
ret
Function at 0x4c30d4
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.00404800
xor eax, eax
push ebp
push 0x4c31c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004c28cc
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
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, 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
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409c78
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c363c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409b5c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c36b0
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c31cb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404374
ret
Function at 0x4c31d4
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.00404800
xor eax, eax
push ebp
push 0x4c32d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004c28cc
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
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, 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
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x4c329a
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409c78
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c363c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409b5c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c36b0
jmp 0x4c32ac
xor edx, edx
mov eax, ebx
call fcn.004c363c
xor edx, edx
mov eax, ebx
call fcn.004c36b0
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c32db
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404374
ret

Function at 0x4c95b8
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 + 0x148]
mov edx, ebx
mov eax, edi
call fcn.004c97dc
mov esi, eax
mov dword [edi + 0x148], esi
and esi, 0xff
add dword [edi + 0x14c], esi
imul esi, dword [edi + 0x14c], 0x8088405
inc esi
mov dword [edi + 0x14c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x150]
mov eax, edi
call fcn.004c97dc
mov dword [edi + 0x150], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4c962c
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 0x4c9651
inc esi
mov eax, edi
call fcn.004c9610
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004c95b8
inc ebx
dec esi
jne 0x4c963b
pop edi
pop esi
pop ebx
ret
Function at 0x4c96e0
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.00404800
xor eax, eax
push ebp
push 0x4c9755
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004c9658
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004c9610
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004c95b8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4c9720
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c975c
lea eax, [ebp - 4]
call fcn.00404350
ret