joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c25c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x50c264
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50c456
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x50c46c
mov eax, esi
call fcn.0050a0e8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404c40
lea ecx, [ebp - 0x10]
mov edx, 0x50c480
mov eax, esi
call fcn.0050a0e8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404c40
lea ecx, [ebp - 0x14]
mov edx, 0x50c498
mov eax, esi
call fcn.0050a0e8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404c40
lea ecx, [ebp - 0x18]
mov edx, 0x50c4b4
mov eax, esi
call fcn.0050a0e8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404c40
lea ecx, [ebp - 0x1c]
mov edx, 0x50c4d0
mov eax, esi
call fcn.0050a0e8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404c40
lea ecx, [ebp - 0x24]
mov edx, 0x50c4e8
mov eax, esi
call fcn.0050a0e8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040938c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004097b0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x50c500
mov eax, esi
call fcn.0050a0e8
mov eax, dword [ebp - 0x28]
call fcn.005086b0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x50c510
mov eax, esi
call fcn.0050a0e8
mov eax, dword [ebp - 0x2c]
call fcn.005086b0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x50c528
mov eax, esi
call fcn.0050a0e8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004097b0
inc eax
je 0x50c3f9
lea ecx, [ebp - 0x34]
mov edx, 0x50c528
mov eax, esi
call fcn.0050a0e8
mov eax, dword [ebp - 0x34]
call fcn.00409774
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b38c
fstp qword [ebp - 0x3c]
wait
call fcn.0040b6fc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x50c414
lea ecx, [ebp - 0x40]
mov edx, 0x50c528
mov eax, esi
call fcn.0050a0e8
mov eax, dword [ebp - 0x40]
call fcn.005086b0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x50c538
mov eax, esi
call fcn.0050a0e8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c45d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404c10
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404c10
ret
Function at 0x51c000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x51c089
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x545534
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x51c073
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040cd40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x51c0a0
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x542bb0]
mov dl, 1
mov eax, dword [0x51b804]
call fcn.0040d674
call fcn.0040455c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c090
lea eax, [ebp - 0x1c]
call fcn.00404bec
ret

Function at 0x51c730
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0051c654
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403fc4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x51c794
call fcn.0051bf48
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x51c786
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403fc4
pop esi
pop ebx
ret

Function at 0x51c7b8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004050ac
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403618
test ebx, ebx
je 0x51c803
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x51c8e0
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 0x51c911
mov ecx, dword [0x542a08]
mov dl, 1
mov eax, dword [0x51b804]
call fcn.0040d638
call fcn.0040455c
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 0x51c93e
mov ecx, dword [0x542954]
mov dl, 1
mov eax, dword [0x51b804]
call fcn.0040d638
call fcn.0040455c
xor eax, eax
push ebp
push 0x51c9ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403fc4
cmp byte [ebp + 8], 0
je 0x51c996
mov eax, dword [ebp + 0x10]
push eax
mov ax, 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.0051c848
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.0051c730
jmp 0x51c9b0
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0051c234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51c9d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51cb9c
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
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0051c4f0
xor eax, eax
push ebp
push 0x51cd0d
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 0x51ccf7
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x51cbe7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x51cbf1
call fcn.00404608
jmp 0x51cd14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bcd8
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 0x51ccec
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 ecx, eax
cmp ecx, 0xffffffff
jne 0x51cc9f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x51cc8c
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fc4
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.0051cb54
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x51cd20]
cmp dl, byte [eax + 0x28]
je 0x51ccf3
call fcn.0040d55c
jmp 0x51ccf3
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bcf8
jmp 0x51ccf3
cmp ecx, ebx
jge 0x51ccbb
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bcf8
jmp 0x51cbf1
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.0041bcd8
cmp edx, dword [esp + 4]
jne 0x51ccdb
cmp eax, dword [esp]
pop edx
pop eax
jne 0x51cbf1
push ebp
call fcn.0051cb54
pop ecx
jmp 0x51ccf3
push ebp
call fcn.0051cb54
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cd14
mov eax, dword [ebp - 4]
call fcn.0051c4fc
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51cd24
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 0x51ce46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0051c4f0
xor eax, eax
push ebp
push 0x51ce29
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 0x51cd74
call fcn.00404608
jmp 0x51ce30
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 0x51ce13
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x51ce13
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fc4
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 0x51ce13
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040cd40
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, 0x51ce60
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x542bb0]
mov dl, 1
mov eax, dword [0x51b804]
call fcn.0040d674
call fcn.0040455c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ce30
mov eax, dword [ebp - 4]
call fcn.0051c4fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ce4d
lea eax, [ebp - 0x28]
call fcn.00404bec
ret
Function at 0x51ceac
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 0x51cff6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0051c4f0
xor eax, eax
push ebp
push 0x51cfd9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x51cf11
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x51cf11
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 0x51cfc3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x51cf24
call fcn.00404608
jmp 0x51cfe0
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 0x51cfc3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x51cfc3
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fc4
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 0x51cfc3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040cd40
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, 0x51d010
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x542bb0]
mov dl, 1
mov eax, dword [0x51b804]
call fcn.0040d674
call fcn.0040455c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cfe0
mov eax, dword [ebp - 4]
call fcn.0051c4fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cffd
lea eax, [ebp - 0x28]
call fcn.00404bec
ret
Function at 0x51fdf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x51ffc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x51ffad
mov eax, dword [edi + 0x30]
call fcn.00404eac
test eax, eax
jne 0x51fe46
mov eax, dword [edi + 0x34]
call fcn.00404eac
test eax, eax
jne 0x51fe46
mov eax, edi
call fcn.00520064
jmp 0x51ffad
cmp dword [edi + 0xa0], 0
jne 0x51fe7d
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.0040a3f0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5456d0]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x51feb4
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.0040a3f0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5456d0]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.005200a4
mov ebx, eax
test bl, bl
jne 0x51ff62
mov eax, dword [edi + 0x30]
call fcn.00404eac
test eax, eax
jne 0x51feec
mov eax, dword [edi + 0xc0]
call fcn.00404eac
test eax, eax
je 0x51ff62
mov eax, dword [edi + 0xc0]
call fcn.00404eac
test eax, eax
je 0x51ff0e
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.0040a3f0
jmp 0x51ff3a
push dword [edi + 0x30]
push 0x51ffe0
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404f6c
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.0040a3f0
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x51ff62
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.005200a4
mov ebx, eax
test bl, bl
jne 0x51ff6f
mov eax, edi
call fcn.00520064
jmp 0x51ffad
mov eax, dword [edi + 0x58]
test eax, eax
je 0x51ff7e
mov dword [edi + 0xa8], eax
jmp 0x51ff88
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.0052011c
test al, al
je 0x51ffad
mov eax, edi
mov si, 0xffee
call fcn.00403fc4
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.005201c8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ffcd
lea eax, [ebp - 0x108]
call fcn.00404bec
ret
Function at 0x5247c0
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 0x524931
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 0x52490c
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.00404dd4
lea eax, [ebp - 0x118]
mov edx, 0x524948
call fcn.00404eb4
mov eax, dword [ebp - 0x118]
call fcn.004050ac
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x52487e
lea eax, [ebp - 0x111]
call fcn.0040a358
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404cdc
jmp 0x524885
mov eax, esi
call fcn.00404bec
cmp bl, 0x61
jae 0x5248a6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e468
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404c40
jmp 0x5248c0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e3dc
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404c40
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, 0x524954
call fcn.0040aa78
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524913
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x52a05c
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.0040509c
xor eax, eax
push ebp
push 0x52a155
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.0052ba3c
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
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, 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.0040a194
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0052aa48
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a078
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0052aabc
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 0x52a15c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c10
ret
Function at 0x52a164
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.0040509c
xor eax, eax
push ebp
push 0x52a26d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.0052ba3c
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
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, 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 0x52a233
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a194
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0052aa48
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a078
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0052aabc
jmp 0x52a245
xor edx, edx
mov eax, ebx
call fcn.0052aa48
xor edx, edx
mov eax, ebx
call fcn.0052aabc
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 0x52a274
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c10
ret

Function at 0x52bca0
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.0040509c
xor eax, eax
push ebp
push 0x52bcfe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0052bd7c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x52bce6
lea eax, [ebp - 4]
call fcn.0052bd7c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x52bce8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52bd05
lea eax, [ebp - 4]
call fcn.00404bec
ret

Function at 0x52bd0c
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.0040509c
xor eax, eax
push ebp
push 0x52bd70
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.0052bd7c
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52bd77
lea eax, [ebp - 4]
call fcn.00404bec
ret
Function at 0x5312cc
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.00531500
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.00531500
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x531340
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 0x531365
inc esi
mov eax, edi
call fcn.00531324
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.005312cc
inc ebx
dec esi
jne 0x53134f
pop edi
pop esi
pop ebx
ret

Function at 0x5313f4
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.0040509c
xor eax, eax
push ebp
push 0x531469
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0053136c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00531324
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.005312cc
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x531434
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531470
lea eax, [ebp - 4]
call fcn.00404bec
ret