joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4966f8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408374]
call fcn.00405d44
xor eax, eax
push ebp
push 0x496899
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4db5ec], 0
jne 0x496753
mov ecx, dword [0x4ded98]
mov dl, 1
mov eax, dword [0x4089cc]
call fcn.0040ddb0
call fcn.00404bd0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403ae0
mov eax, ebx
call fcn.00405bb4
mov dword [ebp - 0x24], eax
mov esi, 0x4968a8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406e60
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405bc4
test eax, eax
jle 0x49683c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x496828
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004054ac
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4967ce
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004054c4
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4967e4
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004054c4
mov eax, dword [ebp - 0x54]
call fcn.004056cc
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004054ac
mov eax, dword [ebp - 0x58]
call fcn.004056cc
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x49682a
xor eax, eax
test al, al
je 0x496835
mov ebx, 0x15
jmp 0x496841
mov ebx, 0x10
jmp 0x496841
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4db5ec]
call fcn.0049651c
mov eax, dword [ebp - 4]
call fcn.0049651c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4968a0
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405260
lea eax, [ebp - 0xc]
mov edx, dword [0x408374]
call fcn.00405e14
ret

Function at 0x4af070
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x4af091
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x4af091
xor eax, eax
ret
mov al, 1
ret
Function at 0x4b4840
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 0x4b49b1
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 0x4b498c
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.00405424
lea eax, [ebp - 0x118]
mov edx, 0x4b49c8
call fcn.00405508
mov eax, dword [ebp - 0x118]
call fcn.004056cc
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b48fe
lea eax, [ebp - 0x111]
call fcn.0040ab60
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0040532c
jmp 0x4b4905
mov eax, esi
call fcn.0040523c
cmp bl, 0x61
jae 0x4b4926
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040eba8
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405290
jmp 0x4b4940
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040eb14
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405290
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, 0x4b49d4
call fcn.0040b290
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4993
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4b8488
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 8
call fcn.00403ae0
mov eax, edi
call fcn.0040a3fc
test al, al
je 0x4b8595
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.004056cc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4b8595
mov eax, esi
call fcn.00402f5c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b858e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4b8533
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, edi
call fcn.004056cc
push eax
call sub.version.dll_GetFileVersionInfoA
call fcn.0040f58c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4b859c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
call fcn.0040f58c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8549
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebx], ax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 8]
mov word [ebx + 2], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebx + 4], ax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xc]
mov word [ebx + 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8595
mov eax, dword [ebp - 8]
call fcn.00402f78
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8eac
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4df100]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4b8ee4
mov edx, dword [0x4df100]
cmp byte [eax + 0x273], 1
je 0x4b8ee4
mov eax, dword [0x4df100]
mov eax, dword [eax]
call fcn.00473200
mov eax, dword [0x4df100]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0046fd70
push 0
mov eax, dword [0x4df100]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4b91ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x4b91e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x4b91c3
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x4b91d2
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x4b91e1
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x4c0a14
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c0bc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov dword [ebp - 8], 1
call sub.kernel32.dll_GetCurrentProcess
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcessAffinityMask
test eax, eax
je 0x4c0bac
xor eax, eax
push ebp
push 0x4c0ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4c0b8a
inc ebx
xor esi, esi
mov ecx, esi
mov edi, dword [ebp - 8]
shl edi, cl
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetProcessAffinityMask
test eax, eax
je 0x4c0b8a
call fcn.004c06e8
movzx edx, al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.0041c274
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x14]
mov edx, dword [edi + 8]
dec edx
mov eax, edi
call fcn.0041c3cc
test eax, eax
je 0x4c0b5b
push ebp
lea eax, [ebp - 0x3c]
call fcn.004c07e0
pop ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebp
lea eax, [ebp - 0x40]
call fcn.004c06fc
pop ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x44]
call fcn.004c099c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4c0b82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4c0ad2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0bac
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetProcessAffinityMask
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0bce
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405260
ret
Function at 0x4c0be8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [0x4df308]
cmp dword [eax], 2
jne 0x4c0d3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c0c3a
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 0x424]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x824], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x4c0c18
push 0
push 0x2c
lea eax, [ebp - 0x50]
push eax
push 0
call dword [0x4db834]
test eax, eax
je 0x4c0c55
mov ebx, 1
jmp 0x4c0c59
movzx ebx, byte [ebp - 0x28]
mov esi, ebx
shl esi, 4
lea esi, [esi + esi*2]
mov eax, esi
call fcn.00402f44
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
push 8
call dword [0x4db834]
dec ebx
test ebx, ebx
jl 0x4c0d35
inc ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
shl eax, 4
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [eax]
mov dword [edx + ecx*4 + 0x424], ebx
xor eax, eax
push ebp
push 0x4c0d13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub ebx, dword [eax + edx*4 + 0x824]
mov dword [ebp - 0x54], ebx
fild dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x58], eax
fild qword [ebp - 0x5c]
fdiv dword [0x4c0db4]
fdivp st(1)
fsubr dword [0x4c0db8]
fdiv dword [0x4c0db8]
fmul dword [0x4c0dbc]
call fcn.0040356c
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0d29
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x4c0c90
mov eax, dword [ebp - 0x10]
call fcn.00402f78
jmp 0x4c0da2
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push 0x4c0dc0
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4c0d98
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4c0dd4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4c0d8d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4c0da2
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x21], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c1768
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.00403ae0
ret
Function at 0x4c1cf0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c1e33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040523c
mov dl, 1
mov eax, dword [0x41a150]
call fcn.004042ec
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41a150]
call fcn.004042ec
mov esi, eax
lea eax, [ebp - 0x18]
call fcn.004c1a40
mov dword [ebp - 0x14], 0x1400
mov eax, dword [ebp - 0x14]
call fcn.00402f5c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4c1d6f
push eax
call sub.kernel32.dll_SetLastError
call fcn.0040f584
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 4]
lea edx, [ebx + 8]
mov ecx, 0x104
call fcn.004054ac
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jle 0x4c1de2
lea ecx, [ebp - 4]
lea eax, [ebx + 0x194]
mov edx, dword [ebx + 0x190]
call fcn.004c199c
lea eax, [ebp - 8]
lea edx, [ebx + 0x10c]
mov ecx, 0x84
call fcn.004054ac
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00409ac8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4c1dd4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4c1de2
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4c1d72
mov eax, dword [ebp - 0x10]
call fcn.00402f78
mov eax, esi
call fcn.004c1c08
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0040431c
mov eax, esi
call fcn.0040431c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1e3a
lea eax, [ebp - 0x1c]
call fcn.0040523c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405260
ret
Function at 0x4c1f38
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056bc
xor eax, eax
push ebp
push 0x4c20ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.004b8374
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.004b8394
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4c20b6
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.004054ac
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.0040a9a8
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.00409704
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.00409704
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00405664
je 0x4c2065
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.004054ac
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00409704
mov eax, dword [ebp - 0x148]
push eax
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 4]
call fcn.00409704
mov edx, dword [ebp - 0x150]
pop eax
call fcn.00405664
jne 0x4c20a2
xor eax, eax
push ebp
push 0x4c2098
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c20a2
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.004b83b4
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4c1fc0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c20f4
lea eax, [ebp - 0x150]
mov edx, 7
call fcn.00405260
lea eax, [ebp - 4]
call fcn.0040523c
ret
Function at 0x4c5c68
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.004056bc
xor eax, eax
push ebp
push 0x4c5cc6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004c5d44
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4c5cae
lea eax, [ebp - 4]
call fcn.004c5d44
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4c5cb0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5ccd
lea eax, [ebp - 4]
call fcn.0040523c
ret

Function at 0x4c5cd4
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.004056bc
xor eax, eax
push ebp
push 0x4c5d38
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.004c5d44
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040ada0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5d3f
lea eax, [ebp - 4]
call fcn.0040523c
ret

Function at 0x4c62f8
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.004056bc
xor eax, eax
push ebp
push 0x4c63f1
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.004c59f8
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.0040a9a8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c6cc8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a868
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c6d40
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 0x4c63f8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405260
ret
Function at 0x4c6400
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.004056bc
xor eax, eax
push ebp
push 0x4c6509
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.004c59f8
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 0x4c64cf
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a9a8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c6cc8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a868
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c6d40
jmp 0x4c64e1
xor edx, edx
mov eax, ebx
call fcn.004c6cc8
xor edx, edx
mov eax, ebx
call fcn.004c6d40
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 0x4c6510
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405260
ret

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

Function at 0x4cce6c
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 0x4cce92
inc esi
mov eax, edi
call fcn.004cce50
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.004ccdf8
inc ebx
dec esi
jne 0x4cce7b
pop edi
pop esi
pop ebx
ret
Function at 0x4ccf28
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.004056bc
xor eax, eax
push ebp
push 0x4ccf9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004cce98
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004cce50
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004ccdf8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4ccf68
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccfa5
lea eax, [ebp - 4]
call fcn.0040523c
ret