joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447b44
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x447b60
cmp dword [esi + 4], 0
je 0x447b8d
test byte [ebx + 0x55], 1
jne 0x447b7f
mov eax, ebx
call fcn.004466e4
test eax, eax
jne 0x447b7f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x447c9d
mov edx, esi
mov eax, ebx
call fcn.00447668
jmp 0x447c9d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x447c96
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00449a5c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00444380
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00447b44
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00449a5c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447c9d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e3d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c0fec]
cmp byte [eax + 0xc], 0
je 0x44e541
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e53a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c1b9c], 0
jne 0x44e428
push 0x44e548
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44e550
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1b9c], eax
cmp dword [0x4bedfc], 0
jne 0x44e523
push 0x44e560
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4bedfc], eax
cmp dword [0x4bedfc], 0
je 0x44e523
push 0x44e56c
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1ba0], eax
push 0x44e57c
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1ba4], eax
push 0x44e590
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1ba8], eax
push 0x44e5a8
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bac], eax
push 0x44e5c0
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bb0], eax
push 0x44e5d4
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bb4], eax
push 0x44e5ec
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bb8], eax
push 0x44e604
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bbc], eax
push 0x44e620
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bc0], eax
push 0x44e62c
mov eax, dword [0x4bedfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c1bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e541
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Function at 0x459c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x459c60]
test si, 4
je 0x459c24
or bl, 1
test si, 8
je 0x459c2e
or bl, 4
test si, 1
je 0x459c38
or bl, 8
test si, 2
je 0x459c42
or bl, 0x10
test si, 0x10
je 0x459c4c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x459c5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x459c64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x459c9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x459c7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x459c8c
or bl, 4
test esi, 0x20000000
je 0x459c97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x460360
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x460372
add esp, 0xfffffff0
call fcn.004040b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421cbc
mov eax, dword [0x4c088c]
mov dword [eax + 4], ebx
mov dword [eax], 0x460704
mov eax, dword [0x4c089c]
mov dword [eax + 4], ebx
mov dword [eax], 0x460710
mov eax, ebx
call fcn.0046071c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417ef8]
call fcn.00403d4c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417ef8]
call fcn.00403d4c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417ef8]
call fcn.00403d4c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417ef8]
call fcn.00403d4c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417ef8]
call fcn.00403d4c
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, 0x45cb34
push eax
push 0
push 0
mov eax, dword [0x4c0b80]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423e60]
call fcn.004255f8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423e60]
call fcn.004255f8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423e60]
call fcn.004255f8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00460b6c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460a34
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460a34
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460a34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4604af
call fcn.0040410c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x460818
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 0x4609c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4609a4
mov dl, 1
mov eax, dword [0x418708]
call fcn.00403d4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c8c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x460993
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.0044e734
test al, al
je 0x460986
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, 0x4609d4
lea eax, [ebp - 0x254]
call fcn.0040ac34
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x460986
xor eax, eax
push ebp
push 0x46097f
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 0x460a0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x460968
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f0c
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 0x460968
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460986
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x460889
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d684
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 0x4609ca
lea eax, [ebp - 0x260]
call fcn.00404c8c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c1be8]
cmp byte [eax + 0xa5], 0
jne 0x46137d
cmp dword [0x4c1c00], 0
jne 0x46133e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4612c8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c1c00], eax
cmp dword [0x4c1bfc], 0
jne 0x461359
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c1bfc], eax
cmp dword [0x4c1c04], 0
jne 0x46137d
push esp
push 0
push 0
push 0x46126c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4c1c04], eax
pop edx
ret
Function at 0x461a10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c1be8]
cmp dword [eax + 0x30], 0
je 0x461aba
cmp dword [ebx + 0x94], 0
jne 0x461ab4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4619a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461ab4
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 0x461a7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461ab4
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.0041a90c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461a89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462618
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 0x46264d
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.00404d7c
jmp 0x46265a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ce0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463698
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4636d9
mov eax, esi
call fcn.00449d60
test al, al
je 0x4636d9
mov eax, dword [ebx + 0x84]
call fcn.00449a5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4636d9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449a5c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4649e8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040514c
xor eax, eax
push ebp
push 0x464a66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040515c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x464a31
mov eax, dword [ebx + 4]
call fcn.0040515c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464a6d
lea eax, [ebp - 4]
call fcn.00404c8c
ret
Function at 0x465a68
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x465c05
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0040308c
cmp word [ebx + 0xa2], 0
je 0x465ab1
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x465ac5
lea esi, [ebp - 8]
jmp 0x465ac7
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x465ad4
xor edi, edi
jmp 0x465ae1
mov eax, dword [ebx + 0x80]
call fcn.0040515c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040515c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004651a0
mov eax, dword [ebp - 0x14]
call fcn.0040515c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040515c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040515c
push eax
mov eax, ebx
call fcn.004652d4
push eax
mov eax, ebx
call fcn.004652a8
push eax
mov eax, ebx
call fcn.0046525c
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0046506c
mov eax, dword [ebp - 0x18]
call fcn.0040515c
push eax
mov eax, dword [ebx + 8]
call fcn.0040515c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x465b6a
call fcn.0040f120
xor edx, edx
push ebp
push 0x465be3
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x465ba8
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x465b9e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x465bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465bea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x465c14
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x465c40
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040515c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x465c65
call fcn.0040f120
xor eax, eax
push ebp
push 0x465c9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x465c85
call fcn.0040f120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465ca3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x476c3c
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 0x476dad
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 0x476d88
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.00404e74
lea eax, [ebp - 0x118]
mov edx, 0x476dc4
call fcn.00404f64
mov eax, dword [ebp - 0x118]
call fcn.0040515c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x476cfa
lea eax, [ebp - 0x111]
call fcn.0040a560
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404d7c
jmp 0x476d01
mov eax, esi
call fcn.00404c8c
cmp bl, 0x61
jae 0x476d22
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e6ec
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404ce0
jmp 0x476d3c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e660
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404ce0
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, 0x476dd0
call fcn.0040accc
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476d8f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x47bfe4
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.0040514c
xor eax, eax
push ebp
push 0x47c0d4
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.0047de88
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.0040a29c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047c8e0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a180
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047c954
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 0x47c0db
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cb0
ret
Function at 0x47c0e4
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.0040514c
xor eax, eax
push ebp
push 0x47c1e4
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.0047de88
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 0x47c1aa
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a29c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047c8e0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a180
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047c954
jmp 0x47c1bc
xor edx, edx
mov eax, ebx
call fcn.0047c8e0
xor edx, edx
mov eax, ebx
call fcn.0047c954
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 0x47c1eb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cb0
ret

Function at 0x47e4a4
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.0040514c
xor eax, eax
push ebp
push 0x47e508
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.0047e5e0
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a7b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e50f
lea eax, [ebp - 4]
call fcn.00404c8c
ret

Function at 0x47e514
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.0040514c
xor eax, eax
push ebp
push 0x47e578
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x47e584
lea eax, [ebp - 4]
call fcn.0047e5e0
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.0047e370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e57f
lea eax, [ebp - 4]
call fcn.00404c8c
ret
Function at 0x484360
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.00484584
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.00484584
mov dword [edi + 0x150], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4843d4
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 0x4843f9
inc esi
mov eax, edi
call fcn.004843b8
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00484360
inc ebx
dec esi
jne 0x4843e3
pop edi
pop esi
pop ebx
ret

Function at 0x484488
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.0040514c
xor eax, eax
push ebp
push 0x4844fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00484400
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004843b8
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00484360
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4844c8
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484504
lea eax, [ebp - 4]
call fcn.00404c8c
ret