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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4564c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4564a9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4564b8
or bl, 4
test esi, 0x20000000
je 0x4564c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45cae4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45caf6
add esp, 0xfffffff0
call fcn.00403b84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426648
mov eax, dword [0x4b3f58]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ce88
mov eax, dword [0x4b3f6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ce94
mov eax, ebx
call fcn.0045cea0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
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, 0x459368
push eax
push 0
push 0
mov eax, dword [0x4b41c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428078]
call fcn.0042978c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428078]
call fcn.0042978c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428078]
call fcn.0042978c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045d2c0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d19c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d19c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d19c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cc33
call fcn.00403bdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45cf80
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 0x45d12b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45d10c
mov dl, 1
mov eax, dword [0x41bb18]
call fcn.004037f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404634
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45d0fb
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.0044a8b8
test al, al
je 0x45d0ee
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, 0x45d13c
lea eax, [ebp - 0x254]
call fcn.0040a070
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45d0ee
xor eax, eax
push ebp
push 0x45d0e7
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 0x45d174
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45d0d0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040489c
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 0x45d0d0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040489c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d0ee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45cff1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004204a4
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 0x45d132
lea eax, [ebp - 0x260]
call fcn.00404634
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b5c90]
cmp byte [eax + 0xa5], 0
jne 0x45dad1
cmp dword [0x4b5ca8], 0
jne 0x45da92
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45da1c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b5ca8], eax
cmp dword [0x4b5ca4], 0
jne 0x45daad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b5ca4], eax
cmp dword [0x4b5cac], 0
jne 0x45dad1
push esp
push 0
push 0
push 0x45d9c0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b5cac], eax
pop edx
ret
Function at 0x45dbc8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45dbdf
add esp, 0xfffffff0
call fcn.00403b84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426648
mov eax, dword [0x4b41a0]
cmp word [eax + 2], 0
jne 0x45dc07
mov eax, dword [0x4b41a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f2a4
mov eax, dword [0x4b42d8]
cmp word [eax + 2], 0
jne 0x45dc21
mov eax, dword [0x4b42d8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f49c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.004037f0
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], 0x80000018
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 [0x428af8]
call fcn.004301f0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45dda8
mov eax, dword [0x4b4020]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004305c0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45fa1c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b4020]
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.0040d82c
test eax, eax
je 0x45dd16
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004099b8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d854
test eax, eax
je 0x45dd2a
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.0040489c
mov eax, dword [0x4b3dbc]
cmp byte [eax], 0
jne 0x45dd5e
mov eax, ebx
call fcn.0045ded0
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.0045fbf8
mov eax, ebx
call fcn.004605a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45dd9e
call fcn.00403bdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e144
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b5c90]
cmp dword [eax + 0x30], 0
je 0x45e1ee
cmp dword [ebx + 0x94], 0
jne 0x45e1e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e0d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e1e8
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 0x45e1ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e1e8
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.0041ddac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e1bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45eccc
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 0x45ed01
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.00404724
jmp 0x45ed0e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404688
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45fdd4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45fe15
mov eax, esi
call fcn.00445ff4
test al, al
je 0x45fe15
mov eax, dword [ebx + 0x84]
call fcn.00445cf0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45fe15
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445cf0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x460dac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004609c0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404ae4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x460e0a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b41d0]
mov dl, 1
mov eax, dword [0x4608b8]
call fcn.0040cb78
call fcn.00403fec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x460e14
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.00404ae4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x460e6c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b4528]
mov dl, 1
mov eax, dword [0x4608b8]
call fcn.0040cb78
call fcn.00403fec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004609f0
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 0x464c74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ae4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x464c8d
test al, 0x10
jne 0x464c91
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x464c98
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.00404ad4
xor eax, eax
push ebp
push 0x464e73
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.00403138
mov edi, eax
cmp dword [ebp + 0x20], 0
je 0x464d41
cmp dword [ebp - 0x10], 0
je 0x464d41
mov eax, dword [ebp + 0x20]
call fcn.004092cc
test al, al
jne 0x464cf7
mov eax, dword [ebp + 0x20]
call fcn.00464c74
test al, al
je 0x464d1a
push 0x4000
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.00404ae4
push eax
call sub.shell32.dll_SHGetFileInfoA
jmp 0x464d3b
push 0x4010
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.00404ae4
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, dword [ebp - 0x174]
cmp byte [ebp + 0x1c], 0
je 0x464d68
push 0x4000
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
push 0x464e84
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
jmp 0x464d87
push 0x4001
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
push 0x464e84
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.comctl32.dll_ImageList_GetIconSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0041c764
test bl, bl
je 0x464dc7
cmp byte [ebp + 0x14], 0
jne 0x464dc7
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042a86c
push eax
push edi
push esi
call sub.comctl32.dll_ImageList_Draw
test byte [ebp + 0x14], bl
je 0x464e5d
mov dl, 1
mov eax, dword [0x4289b4]
call fcn.0042e70c
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
push 0
mov eax, ebx
call fcn.0042ecd4
call fcn.0042a86c
push eax
push edi
push esi
call sub.comctl32.dll_ImageList_Draw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x184], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call fcn.00402c0c
add eax, dword [ebp - 8]
mov dword [ebp - 0x180], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call fcn.00402c0c
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x17c], eax
mov ecx, ebx
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 4]
call fcn.00464b98
mov eax, ebx
call fcn.00403820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464e7a
lea eax, [ebp + 0x20]
call fcn.00404634
ret
Function at 0x46c340
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf8
mov edi, ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0046c8d8
test al, al
jne 0x46c36e
lea eax, [esp + 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
jmp 0x46c37c
lea eax, [esp + 0x104]
mov edx, esi
call fcn.00409a14
push esp
xor bl, 1
xor eax, eax
mov al, bl
push eax
push 0x46c3ac
lea eax, [esp + 0x110]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, edi
mov eax, esp
call fcn.00409b74
add esp, 0x208
pop edi
pop esi
pop ebx
ret

Function at 0x46c41c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46c4a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00409840
xor ebx, ebx
mov edx, dword [ebp - 0xc]
mov eax, 0x46c4c0
call fcn.00404c28
mov esi, eax
test esi, esi
jle 0x46c493
mov eax, dword [ebp - 0xc]
call fcn.004048ec
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
lea eax, [ebp - 0xc]
call fcn.00404b84
mov eax, dword [ebp - 0xc]
call fcn.004048ec
mov ecx, eax
lea eax, [ebp - 5]
mov edx, dword [ebp - 0xc]
call fcn.00409a38
lea eax, [ebp - 5]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c4b0
lea eax, [ebp - 0xc]
call fcn.00404634
ret

Function at 0x46c4c4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46c5aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x11c]
mov eax, ebx
call fcn.0040972c
lea eax, [ebp - 0x11c]
mov edx, 0x46c5c8
call fcn.004048f4
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.00409a14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x46c591
xor eax, eax
push ebp
push 0x46c56d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
imul dword [ebp - 0xc]
imul dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c591
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c5b1
lea eax, [ebp - 0x11c]
call fcn.00404634
ret
Function at 0x46c700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46c8b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040972c
cmp dword [ebp - 0xc], 0
jne 0x46c750
lea eax, [ebp - 0x10]
call fcn.00409954
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040972c
lea eax, [ebp - 0xc]
mov edx, 0x46c8c8
call fcn.004048f4
mov eax, ebx
call fcn.0046cda4
sub al, 2
jb 0x46c76f
je 0x46c782
jmp case.default.0x46c7d7
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
jmp case.default.0x46c7d7
mov edx, ebx
mov eax, 0x46c8d4
call fcn.00404c28
dec eax
jne 0x46c7c0
call fcn.0046c6a4
test al, al
je 0x46c7ad
mov eax, dword [ebp - 0xc]
call fcn.0046c5cc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp case.default.0x46c7d7
mov dword [ebp - 8], 0x7fffffff
mov dword [ebp - 4], 0
jmp case.default.0x46c7d7
mov eax, dword [ebp - 0xc]
call fcn.00404ae4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x46c7d7
jmp dword [eax*4 + 0x46c7de]
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
jmp case.default.0x46c7d7
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
jmp case.default.0x46c7d7
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
jmp case.default.0x46c7d7
mov eax, dword [ebp - 0xc]
call fcn.0046c4c4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp case.default.0x46c7d7
mov eax, dword [ebp - 0xc]
call fcn.0046c690
cdq
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp case.default.0x46c7d7
mov eax, dword [ebp - 0xc]
call fcn.0046c4c4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp case.default.0x46c7d7
mov eax, dword [ebp - 0xc]
call fcn.0046c5cc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xffffffff
jne 0x46c877
cmp dword [ebp - 8], 0xffffffff
jb 0x46c88c
jmp 0x46c879
jl 0x46c88c
cmp dword [ebp - 4], 0
jne 0x46c88a
cmp dword [ebp - 8], 0x7fffffff
jbe 0x46c893
jmp 0x46c88c
jle 0x46c893
mov ebx, 0x7fffffff
jmp 0x46c896
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c8b8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404658
ret

Function at 0x46c8d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, eax
xor ebx, ebx
mov edx, esi
mov eax, 0x46c934
call fcn.00404c28
test eax, eax
jne 0x46c91e
mov edx, esi
mov eax, 0x46c940
call fcn.00404c28
test eax, eax
jne 0x46c91e
mov eax, esp
mov edx, esi
call fcn.00409a14
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x46c91e
test al, 0x10
je 0x46c91e
mov bl, 1
mov eax, ebx
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x46d760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [eax]
movzx ecx, cx
dec ecx
test ecx, ecx
jl 0x46d78f
inc ecx
mov ebx, esi
xor bl, byte [edx]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4b22cc]
shr esi, 8
and esi, 0xffffff
xor ebx, esi
mov esi, ebx
inc edx
dec ecx
jne 0x46d76d
mov dword [eax], esi
pop esi
pop ebx
ret

Function at 0x46eac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edx, dword [eax]
sub ecx, 1
jno 0x46ead1
call fcn.00403760
test ecx, ecx
jl 0x46eaf6
inc ecx
mov ebx, edx
xor bl, byte [esi]
and ebx, 0xff
mov edi, dword [0x4b3db4]
mov ebx, dword [edi + ebx*4]
shr edx, 8
xor ebx, edx
mov edx, ebx
add esi, 1
dec ecx
jne 0x46ead6
mov dword [eax], edx
pop edi
pop esi
pop ebx
ret

Function at 0x474b1c
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], eax
lea edi, [esp + 8]
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov dword [edi + 8], eax
mov ebx, edx
mov esi, dword [esp + 4]
dec esi
test esi, esi
jl 0x474ba5
inc esi
mov eax, dword [edi + 8]
and eax, 0xffff
or eax, 2
mov dl, byte [ebx]
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
mov byte [ebx], dl
mov edx, dword [edi]
mov al, byte [ebx]
call fcn.0046d794
mov ebp, eax
mov dword [edi], ebp
and ebp, 0xff
add dword [edi + 4], ebp
imul ebp, dword [edi + 4], 0x8088405
inc ebp
mov dword [edi + 4], ebp
mov eax, ebp
shr eax, 0x18
mov edx, dword [edi + 8]
call fcn.0046d794
mov dword [edi + 8], eax
inc ebx
dec esi
jne 0x474b54
mov eax, dword [esp]
mov edx, dword [edi]
mov dword [eax + 8], edx
mov eax, dword [esp]
mov edx, dword [edi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [esp]
mov edx, dword [edi + 8]
mov dword [eax + 0x10], edx
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x474bc8
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov edx, ecx
mov eax, ebx
call fcn.00474c58
mov dword [ebp - 8], 0xc
mov edi, dword [ebp - 4]
lea esi, [ebp - 0x14]
mov eax, dword [ebx + 0x10]
and eax, 0xffff
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor dl, byte [edi]
mov byte [esi], dl
mov edx, dword [ebx + 8]
mov al, byte [esi]
call fcn.0046d794
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.0046d794
mov dword [ebx + 0x10], eax
inc esi
inc edi
dec dword [ebp - 8]
jne 0x474bec
mov al, byte [ebp + 0xb]
cmp al, byte [ebp - 9]
sete al
mov byte [ebx + 4], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4