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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4626e0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4626c1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4626d0
or bl, 4
test esi, 0x20000000
je 0x4626db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x468da4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x468db6
add esp, 0xfffffff0
call fcn.00404304
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426cac
mov eax, dword [0x557fd8]
mov dword [eax + 4], ebx
mov dword [eax], 0x469148
mov eax, dword [0x557fec]
mov dword [eax + 4], ebx
mov dword [eax], 0x469154
mov eax, ebx
call fcn.00469160
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b320]
call fcn.00403f5c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b320]
call fcn.00403f5c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b320]
call fcn.00403f5c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b320]
call fcn.00403f5c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b320]
call fcn.00403f5c
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, 0x465578
push eax
push 0
push 0
mov eax, dword [0x5582e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4287e0]
call fcn.0042a018
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4287e0]
call fcn.0042a018
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4287e0]
call fcn.0042a018
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004695b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469478
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469478
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469478
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468ef3
call fcn.0040435c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46925c
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 0x469407
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4693e8
mov dl, 1
mov eax, dword [0x41b984]
call fcn.00403f5c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ddc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4693d7
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.00456b00
test al, al
je 0x4693ca
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, 0x469418
lea eax, [ebp - 0x254]
call fcn.0040b088
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4693ca
xor eax, eax
push ebp
push 0x4693c3
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 0x469450
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4693ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040504c
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 0x4693ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4693ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4692cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042051c
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 0x46940e
lea eax, [ebp - 0x260]
call fcn.00404ddc
ret

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

Disassembly:
push ecx
mov eax, dword [0x559b84]
cmp byte [eax + 0xa5], 0
jne 0x469dc1
cmp dword [0x559b9c], 0
jne 0x469d82
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x469d0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x559b9c], eax
cmp dword [0x559b98], 0
jne 0x469d9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x559b98], eax
cmp dword [0x559ba0], 0
jne 0x469dc1
push esp
push 0
push 0
push 0x469cb0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x559ba0], eax
pop edx
ret
Function at 0x46a454
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x559b84]
cmp dword [eax + 0x30], 0
je 0x46a4fe
cmp dword [ebx + 0x94], 0
jne 0x46a4f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a3e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46a4f8
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 0x46a4be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a4f8
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.0041dc8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46a4cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b05c
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 0x46b091
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.00404ecc
jmp 0x46b09e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e30
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c268
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c2a9
mov eax, esi
call fcn.00452054
test al, al
je 0x46c2a9
mov eax, dword [ebx + 0x84]
call fcn.00451d50
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c2a9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451d50
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46f818
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040529c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46f870
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x558768]
mov dl, 1
mov eax, dword [0x46f3d0]
call fcn.0040dc70
call fcn.0040476c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046f4d8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x480724
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 [0x41a8c0]
call fcn.004057d4
xor eax, eax
push ebp
push 0x480868
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5522d0], 0
jne 0x480777
mov ecx, dword [0x557e10]
mov dl, 1
mov eax, dword [0x4087d8]
call fcn.0040dc34
call fcn.0040476c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004037a4
mov eax, ebx
call fcn.00405680
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x480878
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.00406b80
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405690
test eax, eax
jle 0x48080f
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 0x480808
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00405064
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040504c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409668
test eax, eax
jne 0x480808
mov ebx, 0x15
jmp 0x480814
mov ebx, 0x10
jmp 0x480814
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 [0x5522d0]
call fcn.0048059c
mov eax, dword [ebp - 8]
call fcn.0048059c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48086f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404e00
lea eax, [ebp - 0x10]
mov edx, dword [0x41a8c0]
call fcn.004058a4
ret
Function at 0x489bd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov dword [esp], edx
mov esi, eax
push 0x489d9c
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x489da8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x489db8
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x489dc8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 4], eax
lea eax, [esp + 8]
push eax
push 5
lea eax, [esp + 0x18]
push eax
mov ebp, edi
push ebp
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp byte [esp + 0x10], 0xe9
jne 0x489cb8
mov ebx, dword [esp + 0x11]
add ebx, edi
add ebx, 5
lea eax, [esp + 8]
push eax
push 5
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp byte [esp + 0x10], 0x60
jne 0x489d91
lea eax, [esp + 8]
push eax
push 5
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 1]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp byte [esp + 0x10], 0xb8
jne 0x489d91
lea eax, [esp + 8]
push eax
push 5
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp byte [esp + 0x10], 0x50
jne 0x489d91
lea eax, [esp + 8]
push eax
push 4
lea eax, [esp + 8]
push eax
add ebx, 2
push ebx
push esi
call sub.kernel32.dll_WriteProcessMemory
jmp 0x489d91
lea eax, [esp + 8]
push eax
push 0x40
push 0xa
push ebp
push esi
call sub.kernel32.dll_VirtualProtectEx
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
call fcn.004031ac
mov eax, 0x379
call fcn.004037c4
add ebx, eax
lea eax, [esp + 8]
push eax
push 0xc8
push 0x489bb8
push ebx
push esi
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 8]
push eax
push 4
lea eax, [esp + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 8]
push eax
push 5
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0xf]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 8]
push eax
push 4
lea eax, [esp + 8]
push eax
lea eax, [ebx + 2]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
mov byte [esp + 0x10], 0xe9
lea eax, [ebx + 0x14]
mov edx, edi
sub edx, eax
mov dword [esp + 0x11], edx
lea edx, [esp + 8]
push edx
push 5
lea edx, [esp + 0x18]
push edx
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
mov byte [esp + 0x10], 0xe9
sub ebx, edi
sub ebx, 5
mov dword [esp + 0x11], ebx
lea eax, [esp + 8]
push eax
push 5
lea eax, [esp + 0x18]
push eax
push ebp
push esi
call sub.kernel32.dll_WriteProcessMemory
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a607c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a6084
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a6220
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, 0x4a6238
mov eax, esi
call fcn.004a3c00
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00404e30
lea ecx, [ebp - 0xc]
mov edx, 0x4a624c
mov eax, esi
call fcn.004a3c00
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x28]
call fcn.00404e30
lea ecx, [ebp - 0x10]
mov edx, 0x4a6264
mov eax, esi
call fcn.004a3c00
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x10]
call fcn.00404e30
lea ecx, [ebp - 0x14]
mov edx, 0x4a6280
mov eax, esi
call fcn.004a3c00
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
call fcn.00404e30
lea ecx, [ebp - 0x18]
mov edx, 0x4a629c
mov eax, esi
call fcn.004a3c00
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.00404e30
lea ecx, [ebp - 0x20]
mov edx, 0x4a62b4
mov eax, esi
call fcn.004a3c00
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004096d8
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.00409d04
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x24]
mov edx, 0x4a62cc
mov eax, esi
call fcn.004a3c00
mov eax, dword [ebp - 0x24]
call fcn.004a2cf0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x28]
mov edx, 0x4a62dc
mov eax, esi
call fcn.004a3c00
mov eax, dword [ebp - 0x28]
call fcn.004a2cf0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 4]
mov edx, 0x4a62f4
mov eax, esi
call fcn.004a3c00
mov eax, dword [ebp - 4]
call fcn.004a28a4
test al, al
je 0x4a61d7
mov eax, dword [ebp - 4]
call fcn.00409cc8
mov edi, eax
test edi, edi
jl 0x4a61cd
call fcn.0040bddc
mov dword [ebp - 0x2c], edi
fild dword [ebp - 0x2c]
fdiv dword [0x4a62fc]
faddp st(1)
fstp qword [ebx + 0x38]
wait
jmp 0x4a61e3
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x4a61e3
mov eax, dword [ebp - 4]
call fcn.004a2cf0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4a6308
mov eax, esi
call fcn.004a3c00
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x48]
call fcn.00404e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6227
lea eax, [ebp - 0x30]
call fcn.00404ddc
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404e00
ret

Function at 0x4b2d0c
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 0x4b2d66
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b2cfc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a17a4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a13a4
mov edx, dword [esi + 0xc]
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 0x4b2d6d
lea eax, [ebp - 4]
call fcn.00404ddc
ret
Function at 0x4b6cfc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00408174
ret

Function at 0x4b9714
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 0x4b9885
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 0x4b9860
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.00404fc4
lea eax, [ebp - 0x118]
mov edx, 0x4b989c
call fcn.004050a4
mov eax, dword [ebp - 0x118]
call fcn.0040529c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b97d2
lea eax, [ebp - 0x111]
call fcn.0040a9e0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404ecc
jmp 0x4b97d9
mov eax, esi
call fcn.00404ddc
cmp bl, 0x61
jae 0x4b97fa
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040ea64
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404e30
jmp 0x4b9814
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e9d8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404e30
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, 0x4b98a8
call fcn.0040b120
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9867
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4bfab8
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.0040528c
xor eax, eax
push ebp
push 0x4bfb16
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004bfc38
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4bfafe
lea eax, [ebp - 4]
call fcn.004bfc38
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4bfb00
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfb1d
lea eax, [ebp - 4]
call fcn.00404ddc
ret
Function at 0x4bfb24
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.0040528c
xor eax, eax
push ebp
push 0x4bfb88
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.004bfc38
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040ac08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfb8f
lea eax, [ebp - 4]
call fcn.00404ddc
ret

Function at 0x4bfb94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040528c
xor eax, eax
push ebp
push 0x4bfbf8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4bfc04
lea eax, [ebp - 4]
call fcn.004bfc38
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004bf984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfbff
lea eax, [ebp - 4]
call fcn.00404ddc
ret

Function at 0x4c0590
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.0040528c
xor eax, eax
push ebp
push 0x4c0689
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.004bf3ec
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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a71c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c1754
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a600
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c17c8
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 0x4c0690
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e00
ret
Function at 0x4c0698
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.0040528c
xor eax, eax
push ebp
push 0x4c07a1
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.004bf3ec
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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x4c0767
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a71c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c1754
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a600
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c17c8
jmp 0x4c0779
xor edx, edx
mov eax, ebx
call fcn.004c1754
xor edx, edx
mov eax, ebx
call fcn.004c17c8
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 0x4c07a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e00
ret

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

Function at 0x4c7d24
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 0x4c7d49
inc esi
mov eax, edi
call fcn.004c7d08
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004c7cb0
inc ebx
dec esi
jne 0x4c7d33
pop edi
pop esi
pop ebx
ret