joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464070
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 0x46421b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4641fc
mov dl, 1
mov eax, dword [0x415358]
call fcn.00403a50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040482c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4641eb
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.004515e0
test al, al
je 0x4641de
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, 0x46422c
lea eax, [ebp - 0x254]
call fcn.0040a57c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4641de
xor eax, eax
push ebp
push 0x4641d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x464264
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4641c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404a94
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 0x4641c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4641de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4640e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041990c
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 0x464222
lea eax, [ebp - 0x260]
call fcn.0040482c
ret

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

Disassembly:
push ecx
mov eax, dword [0x51cc34]
cmp byte [eax + 0xa5], 0
jne 0x464c09
cmp dword [0x51cc4c], 0
jne 0x464bca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x464b54
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x51cc4c], eax
cmp dword [0x51cc48], 0
jne 0x464be5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x51cc48], eax
cmp dword [0x51cc50], 0
jne 0x464c09
push esp
push 0
push 0
push 0x464af8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x51cc50], eax
pop edx
ret
Function at 0x464d30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x464d47
add esp, 0xfffffff0
call fcn.00403de4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f30c
mov eax, dword [0x51b7ec]
cmp word [eax + 2], 0
jne 0x464d6f
mov eax, dword [0x51b7ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046640c
mov eax, dword [0x51b8e0]
cmp word [eax + 2], 0
jne 0x464d89
mov eax, dword [0x51b8e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466604
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414cf4]
call fcn.00403a50
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414cf4]
call fcn.00403a50
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 [0x421854]
call fcn.004294a8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x464f10
mov eax, dword [0x51b6cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004298b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466b84
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x51b6cc]
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.0040de04
test eax, eax
je 0x464e7e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409e5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040de2c
test eax, eax
je 0x464e92
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, 0x100
call fcn.00404a94
mov eax, dword [0x51b554]
cmp byte [eax], 0
jne 0x464ec6
mov eax, ebx
call fcn.00465038
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.00466d60
mov eax, ebx
call fcn.004676a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464f06
call fcn.00403e3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4652ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x51cc34]
cmp dword [eax + 0x30], 0
je 0x465356
cmp dword [ebx + 0x94], 0
jne 0x465350
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46523c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465350
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 0x465316
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465350
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.00417548
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x465325
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465e34
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 0x465e69
push 0x100
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.0040491c
jmp 0x465e76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404880
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466f3c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466f7d
mov eax, esi
call fcn.0044ccd4
test al, al
je 0x466f7d
mov eax, dword [ebx + 0x84]
call fcn.0044c9d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x466f7d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c9d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x467e34
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467f9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004048c4
mov eax, dword [ebp - 0x10]
call fcn.004678cc
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x467e86
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404d7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004683c4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x467f5b
xor eax, eax
push ebp
push 0x467f54
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00467a78
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00467fac
test al, al
je 0x467f32
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040491c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x467f32
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404cdc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x467f2c
mov eax, dword [ebp - 0x14]
call fcn.00404cdc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404a1c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00467e34
dec ebx
cmp ebx, 0xffffffff
jne 0x467ee5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467f5b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00467a78
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404cdc
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00467a64
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467fa4
lea eax, [ebp - 0x3c]
call fcn.0040482c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404850
ret

Function at 0x467fac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403298
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x51baa4]
cmp byte [edx + 0xc], 0
je 0x468010
mov edx, dword [0x51ba98]
cmp dword [edx], 2
jne 0x468010
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x468014
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4680cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00467fac
test al, al
je 0x4680ae
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0040491c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4680ae
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404cdc
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404cdc
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404a1c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x468067
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4680d3
lea eax, [ebp - 0x2c]
call fcn.0040482c
lea eax, [ebp - 0xc]
call fcn.0040482c
ret

Function at 0x4682d8
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.004678e0
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.00404cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x468336
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x51b814]
mov dl, 1
mov eax, dword [0x4677d8]
call fcn.0040d064
call fcn.0040424c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x468340
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.00404cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x468398
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x51bab0]
mov dl, 1
mov eax, dword [0x4677d8]
call fcn.0040d064
call fcn.0040424c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00467910
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 0x475f24
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475ffc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51ccb4], 0
jne 0x475fe0
lea eax, [ebp - 4]
mov edx, 0x476014
call fcn.004048c4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cdc
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x475fe0
mov eax, ebx
call fcn.00402788
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x475fd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x475fc3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x476024
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x475fc3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x51ccb4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475fe0
mov eax, dword [ebp - 0xc]
call fcn.004027a8
ret
mov ebx, dword [0x51ccb4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476003
lea eax, [ebp - 4]
call fcn.0040482c
ret
Function at 0x48b3dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
mov eax, dword [esi + 0x45]
cmp byte [eax], 0
jne 0x48b3fb
cmp dword [esi + 0x20], 0
je 0x48b3fb
cmp edi, 4
jg 0x48b3fb
test edi, edi
jge 0x48b405
mov eax, 0xfffffffe
jmp 0x48b634
mov ebx, dword [esi + 0x20]
cmp dword [esi + 0x10], 0
je 0x48b427
cmp dword [esi], 0
jne 0x48b419
cmp dword [esi + 4], 0
jne 0x48b427
cmp dword [ebx + 4], 0x29a
jne 0x48b431
cmp edi, 4
je 0x48b431
mov eax, 0xfffffffe
jmp 0x48b634
cmp dword [esi + 0x14], 0
jne 0x48b441
mov eax, 0xfffffffb
jmp 0x48b634
mov dword [ebx], esi
mov ebp, dword [ebx + 0x20]
mov dword [ebx + 0x20], edi
cmp dword [ebx + 4], 0x2a
jne 0x48b4d7
mov cx, word [ebx + 0x28]
sub cx, 8
shl ecx, 4
add cx, 8
shl ecx, 8
mov eax, dword [ebx + 0x78]
dec eax
shr eax, 1
cmp ax, 3
jbe 0x48b475
mov ax, 3
shl eax, 6
or cx, ax
cmp dword [ebx + 0x64], 0
je 0x48b485
or cx, 0x20
movzx eax, cx
push ecx
mov ecx, 0x1f
xor edx, edx
div ecx
pop ecx
mov ax, 0x1f
sub ax, dx
add cx, ax
mov dword [ebx + 4], 0x71
mov eax, ebx
mov edx, ecx
call fcn.0048b070
cmp dword [ebx + 0x64], 0
je 0x48b4d0
mov edx, dword [esi + 0x34]
shr edx, 0x10
mov eax, ebx
call fcn.0048b070
mov dx, word [esi + 0x34]
and dx, 0xffff
mov eax, ebx
call fcn.0048b070
mov dword [esi + 0x34], 1
cmp dword [ebx + 0x14], 0
je 0x48b4f8
mov eax, esi
call fcn.0048b09c
cmp dword [esi + 0x14], 0
jne 0x48b511
mov dword [ebx + 0x20], 0xffffffff
xor eax, eax
jmp 0x48b634
cmp dword [esi + 4], 0
jne 0x48b511
cmp ebp, edi
jl 0x48b511
cmp edi, 4
je 0x48b511
mov eax, 0xfffffffb
jmp 0x48b634
cmp dword [ebx + 4], 0x29a
jne 0x48b52a
cmp dword [esi + 4], 0
je 0x48b52a
mov eax, 0xfffffffb
jmp 0x48b634
cmp dword [esi + 4], 0
jne 0x48b54b
cmp dword [ebx + 0x6c], 0
jne 0x48b54b
test edi, edi
je 0x48b5e2
cmp dword [ebx + 4], 0x29a
je 0x48b5e2
mov eax, dword [ebx + 0x78]
lea eax, [eax + eax*2]
mov ebp, dword [eax*4 + 0x519500]
mov eax, ebx
mov edx, edi
call ebp
cmp al, 2
je 0x48b566
cmp al, 3
jne 0x48b56d
mov dword [ebx + 4], 0x29a
test al, al
je 0x48b575
cmp al, 2
jne 0x48b589
cmp dword [esi + 0x14], 0
jne 0x48b582
mov dword [ebx + 0x20], 0xffffffff
xor eax, eax
jmp 0x48b634
cmp al, 1
jne 0x48b5e2
cmp edi, 1
jne 0x48b59b
mov eax, ebx
call fcn.0048b1f4
jmp 0x48b5ca
push 0
mov eax, ebx
xor ecx, ecx
xor edx, edx
call fcn.0048b380
cmp edi, 3
jne 0x48b5ca
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], 0
mov eax, dword [ebx + 0x44]
dec eax
mov edx, eax
add edx, edx
mov eax, dword [ebx + 0x3c]
call fcn.0048b3d4
mov eax, esi
call fcn.0048b09c
cmp dword [esi + 0x14], 0
jne 0x48b5e2
mov dword [ebx + 0x20], 0xffffffff
xor eax, eax
jmp 0x48b634
cmp edi, 4
je 0x48b5eb
xor eax, eax
jmp 0x48b634
cmp dword [ebx + 0x18], 0
je 0x48b5f8
mov eax, 1
jmp 0x48b634
mov edx, dword [esi + 0x34]
shr edx, 0x10
mov edi, ebx
mov eax, edi
call fcn.0048b070
mov dx, word [esi + 0x34]
and dx, 0xffff
mov eax, edi
call fcn.0048b070
mov eax, esi
call fcn.0048b09c
mov dword [ebx + 0x18], 0xffffffff
cmp dword [ebx + 0x14], 0
je 0x48b62f
xor eax, eax
jmp 0x48b634
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48d4c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48d5af
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x48d503
bt edi, eax
jae 0x48d58a
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404a0c
lea eax, [ebp - 0x14]
mov edx, 0x48d5c8
call fcn.00404aec
mov eax, dword [ebp - 0x14]
call fcn.00404cdc
push eax
call sub.kernel32.dll_GetDriveTypeA
mov byte [ebp - 0xd], al
mov eax, ebx
call fcn.00402cb4
mov ebx, eax
mov al, byte [ebp - 0xd]
add al, 0xfd
sub al, 4
jae 0x48d58a
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.0040317c
mov edx, 0x48d5cc
lea eax, [ebp - 0x20]
mov cl, 2
call fcn.0040314c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.00404a88
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048dff8
inc esi
cmp esi, 0x1a
jne 0x48d4f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d5b6
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404850
ret
Function at 0x48f6f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404ccc
xor eax, eax
push ebp
push 0x48f755
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x48f738
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00492030
mov eax, dword [ebp - 8]
call fcn.00491f94
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
jmp 0x48f73a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f75c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404850
ret

Function at 0x48f764
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ccc
xor eax, eax
push ebp
push 0x48f830
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48f80b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x60]
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x48f7f0
push 0x100
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push 0x100
lea eax, [ebx + 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00492030
mov eax, dword [ebp - 0x10]
call fcn.00491f94
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x48f7f4
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f812
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x48fb8c
Capabilities:
Get file size

Disassembly:
push ebx
push ecx
push esp
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48fba9
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x48fba9
xor ebx, ebx
jmp 0x48fbb2
mov eax, dword [esp]
mov edx, eax
neg eax
add ebx, eax
mov eax, ebx
pop edx
pop ebx
ret

Function at 0x48fc68
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov edx, 0x51dea4
and eax, 0xff
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov ebx, dword [0x51b7e0]
mov ebx, dword [ebx + eax*4]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [edx], ebx
and ebx, 0xff
add dword [edx + 4], ebx
imul eax, dword [edx + 4], 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
mov ecx, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov ebx, dword [0x51b7e0]
mov eax, dword [ebx + eax*4]
shr ecx, 8
and ecx, 0xffffff
xor eax, ecx
mov dword [edx + 8], eax
pop ebx
ret

Function at 0x48fd88
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov ebx, edx
test ebx, ebx
jle 0x48fdb1
call fcn.0048fd68
mov edx, dword [esi]
xor byte [edx], al
mov eax, dword [esi]
mov al, byte [eax]
call fcn.0048fc68
inc dword [esi]
dec ebx
jne 0x48fd9a
pop esi
pop ebx
pop ecx
pop ebp
ret