joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469b28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x4fccdc]
cmp esi, dword [eax + 0x30]
jne 0x469b4f
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x469b7e
mov eax, dword [0x4fccdc]
cmp esi, dword [eax + 0x30]
jne 0x469b7a
mov eax, dword [0x4fccdc]
cmp byte [eax + 0x5b], 0
jne 0x469b7e
xor eax, eax
jmp 0x469b80
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x469b95
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x469bac
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x469bbb
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x469bca
test bl, bl
je 0x469be0
test bl, bl
je 0x469bd8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x469be0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x469e84
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x469eaa
mov eax, esp
push eax
push 0x469e4c
call sub.user32.dll_EnumWindows
jmp 0x469ebd
mov eax, esp
push eax
push 0x469e2c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x469f64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x469fb8]
test si, 4
je 0x469f79
or bl, 1
test si, 8
je 0x469f83
or bl, 4
test si, 1
je 0x469f8d
or bl, 8
test si, 2
je 0x469f97
or bl, 0x10
test si, 0x10
je 0x469fa1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x469fb0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x469fbc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x469ff8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x469fd6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x469fe5
or bl, 4
test esi, 0x20000000
je 0x469ff0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x471ee0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x471ef2
add esp, 0xfffffff0
call fcn.0040482c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423e3c
mov eax, dword [0x4f7520]
mov dword [eax + 4], ebx
mov dword [eax], 0x472284
mov eax, dword [0x4f7530]
mov dword [eax + 4], ebx
mov dword [eax], 0x472290
mov eax, ebx
call fcn.0047229c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
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, 0x46d930
push eax
push 0
push 0
mov eax, dword [0x4f77ac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427e88]
call fcn.0042977c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427e88]
call fcn.0042977c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427e88]
call fcn.0042977c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004726cc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47259c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47259c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47259c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47202f
call fcn.00404884
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x472380
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 0x47252b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47250c
mov dl, 1
mov eax, dword [0x41aba8]
call fcn.004044d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405408
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4724fb
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.00464630
test al, al
je 0x4724ee
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, 0x47253c
lea eax, [ebp - 0x254]
call fcn.0040bd9c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4724ee
xor eax, eax
push ebp
push 0x4724e7
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 0x472574
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4724d0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405678
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 0x4724d0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4724ee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4723f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041f52c
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 0x472532
lea eax, [ebp - 0x260]
call fcn.00405408
ret

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

Disassembly:
push ecx
mov eax, dword [0x4fccdc]
cmp byte [eax + 0xad], 0
jne 0x472f15
cmp dword [0x4fccf8], 0
jne 0x472ed6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x472e60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4fccf8], eax
cmp dword [0x4fccf4], 0
jne 0x472ef1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4fccf4], eax
cmp dword [0x4fccfc], 0
jne 0x472f15
push esp
push 0
push 0
push 0x472e04
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4fccfc], eax
pop edx
ret
Function at 0x4730e8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4730ff
add esp, 0xfffffff0
call fcn.0040482c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423e3c
mov eax, dword [0x4f7780]
cmp word [eax + 2], 0
jne 0x473127
mov eax, dword [0x4f7780]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474d00
mov eax, dword [0x4f78b8]
cmp word [eax + 2], 0
jne 0x473141
mov eax, dword [0x4f78b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474f0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.004044d8
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 [0x428a38]
call fcn.004310a4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4732f8
mov eax, dword [0x4f75e8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00431478
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4755e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f75e8]
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.0040fde8
test eax, eax
je 0x473248
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b3a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fe1c
test eax, eax
je 0x47325c
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.00405678
mov byte [ebx + 0xd4], 0
push ebx
push 0x474810
call fcn.00424fcc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4f7384]
cmp byte [eax], 0
jne 0x4732ad
mov eax, ebx
call fcn.0047343c
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.004757b8
mov eax, ebx
call fcn.0047631c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4732ed
call fcn.00404884
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4736bc
Capabilities:
Enumerate gui resources

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

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4fccdc]
cmp dword [eax + 0x30], 0
je 0x473ad1
test bl, bl
jne 0x473a22
cmp dword [esi + 0x9c], 0
jne 0x473a17
mov eax, esi
call fcn.00476198
push eax
push 0x4738a0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4739e8
mov eax, dword [0x4fccdc]
call fcn.00476878
test al, al
je 0x4739e8
mov eax, dword [0x4fcd00]
call fcn.00406984
mov edi, eax
cmp edi, 0
jl 0x4739e8
push 0
mov eax, dword [0x4fcd00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4739d2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473a17
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041cc0c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4739f7
inc dword [esi + 0x9c]
jmp 0x473ad1
cmp dword [esi + 0x9c], 0
jle 0x473ad1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x473ad1
cmp dword [esi + 0x44], 0
je 0x473a7d
mov eax, dword [0x4fccdc]
call fcn.00476878
test al, al
je 0x473a7d
mov eax, dword [0x4fcd00]
call fcn.00406984
mov edi, eax
cmp edi, 0
jl 0x473a7d
push 5
mov eax, dword [0x4fcd00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x473a67
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473aac
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041cc0c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x473a8c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4fcd00
mov ecx, 1
mov edx, dword [0x473880]
call fcn.00406b38
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x474564
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4745ce
mov eax, ebx
call fcn.00476878
test al, al
jne 0x4745ce
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.004054f8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4745bb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4745db
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040545c
jmp 0x4745db
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040545c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x47599c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x475a0a
mov eax, esi
call fcn.0045f268
test al, al
je 0x475a0a
mov eax, dword [ebx + 0x84]
call fcn.0045eeb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475a0a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4759fe
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045eeb8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00456d58
jmp 0x475a0a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004757d8
pop esi
pop ebx
ret

Function at 0x47724c
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
xor ecx, ecx
mov edx, 0x40
call fcn.00403afc
ret
Function at 0x479a44
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 0x479bb5
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 0x479b90
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.004055f0
lea eax, [ebp - 0x118]
mov edx, 0x479bcc
call fcn.004056d4
mov eax, dword [ebp - 0x118]
call fcn.00405898
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x479b02
lea eax, [ebp - 0x111]
call fcn.0040b350
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004054f8
jmp 0x479b09
mov eax, esi
call fcn.00405408
cmp bl, 0x61
jae 0x479b2a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040fcb4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040545c
jmp 0x479b44
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040fc20
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040545c
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, 0x479bd8
call fcn.0040be1c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040545c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479b97
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x47f200
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.00405888
xor eax, eax
push ebp
push 0x47f25e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0047f2dc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x47f246
lea eax, [ebp - 4]
call fcn.0047f2dc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x47f248
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f265
lea eax, [ebp - 4]
call fcn.00405408
ret

Function at 0x47f26c
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.00405888
xor eax, eax
push ebp
push 0x47f2d0
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.0047f2dc
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f2d7
lea eax, [ebp - 4]
call fcn.00405408
ret
Function at 0x47f890
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.00405888
xor eax, eax
push ebp
push 0x47f989
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.0047ef90
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.0040b134
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00480260
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040aff4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004802d8
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 0x47f990
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040542c
ret
Function at 0x47f998
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.00405888
xor eax, eax
push ebp
push 0x47faa1
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.0047ef90
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 0x47fa67
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b134
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00480260
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040aff4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004802d8
jmp 0x47fa79
xor edx, edx
mov eax, ebx
call fcn.00480260
xor edx, edx
mov eax, ebx
call fcn.004802d8
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 0x47faa8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040542c
ret

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

Function at 0x486404
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 0x48642a
inc esi
mov eax, edi
call fcn.004863e8
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.00486390
inc ebx
dec esi
jne 0x486413
pop edi
pop esi
pop ebx
ret
Function at 0x4864c0
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.00405888
xor eax, eax
push ebp
push 0x486536
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00486430
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004863e8
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00486390
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x486500
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48653d
lea eax, [ebp - 4]
call fcn.00405408
ret