joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4836c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4836f1
mov ecx, dword [0x5445d8]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a08
call fcn.00404fa8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x48371e
mov ecx, dword [0x544508]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a08
call fcn.00404fa8
xor eax, eax
push ebp
push 0x4837aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482c3c
mov eax, dword [ebp - 4]
call fcn.00482c78
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004048f0
cmp byte [ebp + 8], 0
je 0x483786
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00483510
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004831fc
jmp 0x4837a0
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00482cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4837c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4839a8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483b30
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x483b1a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4839f4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4839fe
call fcn.00405054
jmp 0x483b37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042475c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x483b0f
mov edx, dword [0x54c184]
mov eax, 0x54c190
mov ecx, 5
call fcn.00403534
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x483ac2
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x483aaf
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00483960
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x483b44]
cmp dl, byte [eax + 0x28]
je 0x483b16
call fcn.0041192c
jmp 0x483b16
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042477c
jmp 0x483b16
cmp edi, ebx
jge 0x483ade
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042477c
jmp 0x4839fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042475c
cmp edx, dword [esp + 4]
jne 0x483afe
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4839fe
push ebp
call fcn.00483960
pop ecx
jmp 0x483b16
push ebp
call fcn.00483960
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483b37
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483b48
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483c7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483c62
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x483b98
call fcn.00405054
jmp 0x483c69
mov edx, dword [0x54c184]
mov eax, 0x54c190
mov ecx, 5
call fcn.00403534
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x483c4c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x483c4c
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x483c4c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00411114
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x483c98
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x544798]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a44
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c69
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c86
lea eax, [ebp - 0x28]
call fcn.00405638
ret
Function at 0x483ce8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483e47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483e2a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x483d4d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x483d4d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x483e14
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x483d60
call fcn.00405054
jmp 0x483e31
mov edx, dword [0x54c188]
mov eax, 0x54c198
mov ecx, 5
call fcn.00403534
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x483e14
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x483e14
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x483e14
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00411114
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x483e60
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x544798]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a44
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e31
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e4e
lea eax, [ebp - 0x28]
call fcn.00405638
ret
Function at 0x485868
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push 0x485934
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x485931
push 0x485940
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54c188], eax
push 0x54c1b0
push 0x40
push 8
mov eax, dword [0x54c188]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4858b9
mov edx, 0x54c198
mov eax, dword [0x54c188]
mov ecx, 5
call fcn.00403534
push 0x485948
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54c184], eax
push 0x54c1a8
push 0x40
push 8
mov eax, dword [0x54c184]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4858f5
mov edx, 0x54c190
mov eax, dword [0x54c184]
mov ecx, 5
call fcn.00403534
push 0x485950
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54c18c], eax
push 0x54c1b8
push 0x40
push 8
mov eax, dword [0x54c18c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x485931
mov edx, 0x54c1a0
mov eax, dword [0x54c18c]
mov ecx, 5
call fcn.00403534
pop ebx
ret

Function at 0x4873c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4873f5
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x487474
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00485be0
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x487442
mov cx, word [esp]
sub cx, si
jmp 0x487444
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x48742b
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x48746a
mov cx, word [esp]
sub cx, si
jmp 0x48746c
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x487453
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4874d1
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0048709c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4874bc
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4874d1
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4873d2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a4ee8
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.00403de0
ret

Function at 0x4a8018
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.00405ac8
xor eax, eax
push ebp
push 0x4a8076
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004a8198
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4a805e
lea eax, [ebp - 4]
call fcn.004a8198
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4a8060
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a807d
lea eax, [ebp - 4]
call fcn.00405638
ret

Function at 0x4a8084
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.00405ac8
xor eax, eax
push ebp
push 0x4a80e8
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.004a8198
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040de84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a80ef
lea eax, [ebp - 4]
call fcn.00405638
ret

Function at 0x4a80f4
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.00405ac8
xor eax, eax
push ebp
push 0x4a8158
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4a8164
lea eax, [ebp - 4]
call fcn.004a8198
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004a7edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a815f
lea eax, [ebp - 4]
call fcn.00405638
ret
Function at 0x4a8acc
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.00405ac8
xor eax, eax
push ebp
push 0x4a8bc5
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.004a7920
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.0040d93c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004a9cdc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d7fc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004a9d54
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 0x4a8bcc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040565c
ret
Function at 0x4a8bd4
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.00405ac8
xor eax, eax
push ebp
push 0x4a8cdd
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.004a7920
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 0x4a8ca3
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d93c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004a9cdc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d7fc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004a9d54
jmp 0x4a8cb5
xor edx, edx
mov eax, ebx
call fcn.004a9cdc
xor edx, edx
mov eax, ebx
call fcn.004a9d54
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 0x4a8ce4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040565c
ret
Function at 0x4b0e30
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 0x4b0fa1
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 0x4b0f7c
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.00405820
lea eax, [ebp - 0x118]
mov edx, 0x4b0fb8
call fcn.00405914
mov eax, dword [ebp - 0x118]
call fcn.00405ad8
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b0eee
lea eax, [ebp - 0x111]
call fcn.0040dbe8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405728
jmp 0x4b0ef5
mov eax, esi
call fcn.00405638
cmp bl, 0x61
jae 0x4b0f16
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00412814
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040568c
jmp 0x4b0f30
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.00412780
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040568c
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, 0x4b0fc4
call fcn.0040e374
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040568c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0f83
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b59f4
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.004b5af8
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.004b5af8
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret
Function at 0x4b6728
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b690e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4b68ca
mov eax, dword [ebp - 4]
call fcn.004b7f14
cmp ebx, eax
jge 0x4b68ca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004a5fc8
mov edx, dword [0x4a856c]
call fcn.004048a4
mov esi, eax
mov eax, esi
call fcn.004a9c50
test al, al
je 0x4b68c0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4b68b4
xor eax, eax
push ebp
push 0x4b68ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b6bfc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0042475c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405d68
mov eax, dword [ebp - 8]
call fcn.00405b38
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b6aa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b68f8
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4b68ac
mov eax, dword [ebp - 4]
call fcn.004b6c80
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040de84
jmp 0x4b68f8
mov eax, dword [ebp - 8]
call fcn.00405638
jmp 0x4b68f8
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040d288
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41f004]
call fcn.00411988
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6915
lea eax, [ebp - 0x54]
call fcn.00405638
ret
Function at 0x4bdd40
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
call fcn.004bdbe8
test al, al
je 0x4bdd6d
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.004bdce0
test al, al
jne 0x4bdd63
call fcn.004131f0
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
jmp 0x4bdd9e
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
call fcn.00405ad8
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x4bdd97
call fcn.004131f0
mov eax, dword [esp]
imul dword [esp + 4]
add esp, 0x3c
pop ebx
ret

Function at 0x4c0384
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c0461
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4c0433
inc ebx
xor esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp word [eax + 0x20a], 0
je 0x4c03ff
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [edi + 0x20c]
call dword [edi + 0x208]
cmp byte [ebp - 1], 0
jne 0x4c042f
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.00405ad8
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
inc esi
dec ebx
jne 0x4c03bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004046f4
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0468
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040565c
ret