joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a750
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43a7d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x43a7af
mov eax, dword [ebp - 4]
call fcn.00404ddc
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x43a795
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call fcn.00405034
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x43a7bf
add esi, ebx
mov eax, dword [ebp - 4]
call fcn.00404ddc
cmp esi, eax
jl 0x43a77c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a7dc
lea eax, [ebp - 4]
call fcn.00404b1c
ret

Function at 0x43a7e8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43a855
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43a83d
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x43a83f
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a85c
lea eax, [ebp - 4]
call fcn.00404b1c
ret

Function at 0x43aa78
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43ab4a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x43ab34
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x43ab34
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x43aae8
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43aae8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x43ab34
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x43ab34
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ab51
lea eax, [ebp - 4]
call fcn.00404b1c
ret
Function at 0x43ada4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43afee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00404b1c
mov bl, 1
mov dword [ebp - 0x524], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x20], 7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea eax, [ebp - 0x524]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x43afb4
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_recv
mov edi, eax
lea edx, [ebp - 0x420]
lea eax, [ebp - 0x18]
mov ecx, edi
call fcn.00404c0c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404de4
mov eax, dword [ebp - 0x14]
call fcn.00404ddc
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00404ddc
cmp esi, eax
setg byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x43afb8
mov eax, dword [ebp - 8]
call fcn.00404ddc
mov esi, eax
test esi, esi
jle 0x43aea7
mov edi, 1
mov eax, dword [ebp - 0x14]
mov al, byte [eax + edi - 1]
mov edx, dword [ebp - 8]
cmp al, byte [edx + edi - 1]
je 0x43aea3
mov byte [ebp - 0xd], 0
jmp 0x43aea7
inc edi
dec esi
jne 0x43ae8d
cmp byte [ebp - 0xd], 0
je 0x43afb8
mov eax, dword [ebp - 0x14]
call fcn.00404ddc
mov esi, eax
test esi, esi
jle 0x43aedf
mov edi, 1
mov eax, dword [ebp - 0x14]
cmp byte [eax + edi - 1], 0x3d
jne 0x43aedb
lea eax, [ebp - 0x14]
call fcn.00405034
mov byte [eax + edi - 1], 0x20
inc edi
dec esi
jne 0x43aec4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 3], 0x2d
setne bl
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, 0x43b008
call fcn.00409aac
mov edi, eax
test edi, edi
jne 0x43af0b
mov edi, 0x7ffffffe
cmp dword [ebp - 0xc], 0
je 0x43af8d
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x43af8d
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 0x14]
call fcn.0040503c
mov edx, dword [ebp - 0x18]
mov eax, 0x43b014
call fcn.00409e18
test al, al
je 0x43af8d
push 0x7fffffff
lea eax, [ebp - 0x528]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0x18]
call fcn.0040503c
lea eax, [ebp - 0x528]
mov edx, 0x43b024
call fcn.00404de4
mov edx, dword [ebp - 0x528]
mov ecx, 1
mov eax, 0x43b030
call fcn.00409b00
test eax, eax
jle 0x43af8d
mov eax, dword [ebp - 0xc]
mov byte [eax], 1
lea ecx, [edi + 1]
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.0040507c
test bl, bl
jne 0x43afb8
mov eax, dword [ebp - 0x14]
call fcn.00404ddc
cmp eax, 4
jge 0x43aedf
jmp 0x43afb8
mov byte [ebp - 0xd], 0
test bl, bl
je 0x43ade5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43aff5
lea eax, [ebp - 0x528]
call fcn.00404b1c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404b40
lea eax, [ebp - 8]
call fcn.00404b1c
ret
Function at 0x43b0e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404fcc
mov eax, dword [ebp - 0xc]
call fcn.00404fcc
mov eax, dword [ebp + 8]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43b2fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00404fdc
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x43b2c6
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x43b2c0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x19], 1
test ebx, ebx
jbe 0x43b2b0
cmp ebx, 0x39
jbe 0x43b183
mov esi, 0x39
jmp 0x43b185
mov esi, ebx
push 0
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x59]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x43b19f
cmp esi, dword [ebp - 0x14]
je 0x43b1bb
cmp byte [ebp - 0x19], 0
jne 0x43b1b2
mov edx, 0x43b31c
mov eax, dword [ebp - 4]
call fcn.0043a750
mov byte [ebp - 0xd], 0
jmp 0x43b2b0
lea ecx, [ebp - 0x60]
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.00409894
mov eax, dword [ebp - 0x60]
mov edx, 0x43b328
call fcn.004099e0
test al, al
je 0x43b1eb
lea eax, [ebp - 0x20]
mov edx, 0x43b338
call fcn.00404bb4
jmp 0x43b1f8
lea eax, [ebp - 0x20]
mov edx, 0x43b34c
call fcn.00404bb4
cmp byte [ebp - 0x19], 0
je 0x43b25b
push 0x43b370
push dword [ebp - 0x20]
push 0x43b3ac
push 0x43b3b8
push dword [ebp - 0xc]
push 0x43b3c8
push 0x43b31c
push 0x43b3d4
push 0x43b31c
push 0x43b400
push 0x43b42c
push dword [ebp - 0xc]
push 0x43b3c8
push 0x43b31c
push 0x43b31c
lea eax, [ebp - 0x64]
mov edx, 0xf
call fcn.00404e9c
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.0043a750
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x59]
mov edx, esi
call fcn.004182e4
lea eax, [ebp - 0x68]
mov edx, 0x43b31c
call fcn.00404de4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.0043a750
sub ebx, esi
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x18]
sub eax, ebx
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test ebx, ebx
ja 0x43b177
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b305
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00404b40
lea eax, [ebp - 0x20]
call fcn.00404b1c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b40
lea eax, [ebp + 8]
call fcn.00404b1c
ret
Function at 0x43bca8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43bd9e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040a8d8
mov eax, dword [ebp - 8]
mov edx, 0x43bdb8
call fcn.00404f28
jne 0x43bd60
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x43bdc4
call fcn.00409b00
mov esi, eax
test esi, esi
jle 0x43bd83
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x43bdd8
call fcn.00409aac
test eax, eax
jle 0x43bd83
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.0040507c
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040507c
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x43bd83
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040a8d8
mov eax, dword [ebp - 0xc]
mov edx, 0x43bde4
call fcn.00404f28
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bda5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b40
ret

Function at 0x43bde8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffae4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x151c], edx
mov dword [ebp - 0x1518], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x43bf51
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x1514], 1
mov dword [ebp - 0x1510], esi
mov eax, dword [0x4e9c90]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x1514]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x43bf2b
push 0
push 0x1400
lea eax, [ebp - 0x140d]
push eax
push esi
call sub.wsock32.dll_recv
mov ecx, eax
lea edx, [ebp - 0x140d]
lea eax, [ebp - 4]
call fcn.00404c0c
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040a8d8
mov eax, dword [ebp - 0x1518]
mov edx, 0x43bf68
call fcn.00404f28
jne 0x43bf21
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x43bf74
call fcn.00409aac
test eax, eax
jle 0x43bf11
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040507c
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040a8d8
mov eax, dword [ebp - 0x151c]
call fcn.00404ddc
cmp eax, 3
jne 0x43bf01
mov eax, dword [ebp - 4]
call fcn.0043bca8
mov ebx, eax
jmp 0x43bf2b
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0043bde8
pop ecx
mov ebx, eax
jmp 0x43bf2b
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0043bde8
pop ecx
mov ebx, eax
jmp 0x43bf2b
mov eax, dword [ebp - 4]
call fcn.0043bca8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bf58
lea eax, [ebp - 0x151c]
mov edx, 2
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b1c
ret
Function at 0x43bf7c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404fcc
mov eax, dword [ebp - 0xc]
call fcn.00404fcc
mov eax, dword [ebp + 8]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43c111
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00404fdc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
setne bl
test bl, bl
je 0x43c0e1
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jbe 0x43c0d8
mov dword [ebp - 0x18], edi
push 0x43c12c
push dword [ebp + 8]
push 0x43c184
push dword [ebp - 0xc]
push 0x43c19c
push 0x43c1a8
push 0x43c1b4
push 0x43c1a8
push 0x43c1a8
lea eax, [ebp - 0x20]
mov edx, 9
call fcn.00404e9c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0043a750
lea eax, [ebp - 0x1c]
mov edx, 0x400
call fcn.00405168
jmp 0x43c0c0
cmp edi, 0x400
jbe 0x43c062
mov esi, 0x400
jmp 0x43c064
mov esi, edi
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00405168
push 0
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x43c08b
cmp esi, dword [ebp - 0x14]
je 0x43c08f
xor ebx, ebx
jmp 0x43c0c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0043a750
mov ebx, eax
sub edi, esi
mov eax, dword [ebp - 0x18]
sub eax, edi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test bl, bl
je 0x43c0c8
test edi, edi
ja 0x43c053
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c118
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404b40
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b40
lea eax, [ebp + 8]
call fcn.00404b1c
ret
Function at 0x43ca78
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00404fcc
mov eax, dword [ebp - 4]
call fcn.00404fcc
mov eax, dword [ebp - 0xc]
call fcn.00404fcc
mov eax, dword [ebp + 0x34]
call fcn.00404fcc
mov eax, dword [ebp + 0x30]
call fcn.00404fcc
mov eax, dword [ebp + 0x2c]
call fcn.00406118
mov eax, dword [ebp + 0x28]
call fcn.00406118
mov eax, dword [ebp + 0x24]
call fcn.00406118
mov eax, dword [ebp + 0x20]
call fcn.00406888
mov eax, dword [ebp + 0x1c]
call fcn.00404fcc
mov eax, dword [ebp + 0x18]
call fcn.00404fcc
mov eax, dword [ebp + 0x14]
call fcn.00404fcc
mov eax, dword [ebp + 8]
call fcn.00406888
xor eax, eax
push ebp
push 0x43cc8a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x43cc27
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
push 0
push 0x3e8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, 0x43cca4
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 8], 0
je 0x43cb5a
push ebp
call fcn.0043c344
pop ecx
mov ebx, eax
jmp 0x43cc10
cmp dword [ebp - 0xc], 0
je 0x43cc10
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x1c], 0
jne 0x43cbe1
lea eax, [ebp - 0xc]
call fcn.004386e0
mov esi, eax
test esi, esi
jle 0x43cb8c
push ebp
mov al, 1
call fcn.0043a864
pop ecx
mov dword [ebp - 0x10], eax
dec esi
jne 0x43cb7d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 0xc]
call fcn.004386e0
mov esi, eax
test esi, esi
jle 0x43cc10
mov edi, 1
push ebp
lea eax, [ebp - 0x1a4]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0040a8d8
mov eax, dword [ebp - 0x1a4]
call fcn.0043b438
pop ecx
or bl, al
mov edx, dword [ebp - 0x10]
imul edx, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
inc edi
dec esi
jne 0x43cba9
jmp 0x43cc10
push ebp
xor eax, eax
call fcn.0043a864
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0043b438
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x43cc27
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cc91
lea eax, [ebp - 0x1a4]
call fcn.00404b1c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b40
lea eax, [ebp + 8]
call fcn.00406814
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.00404b40
lea eax, [ebp + 0x20]
call fcn.00406814
lea eax, [ebp + 0x24]
mov edx, dword [0x408274]
mov ecx, 3
call fcn.004056ac
lea eax, [ebp + 0x30]
mov edx, 2
call fcn.00404b40
ret
Function at 0x43ce40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x43cf07
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0042b3e4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404bb4
cmp dword [ebp - 4], 0
je 0x43ceea
mov eax, dword [ebp - 4]
call fcn.00404ddc
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x43ceaa
mov eax, dword [ebp - 4]
call fcn.00404ddc
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.0040507c
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x43cee6
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0043ce40
pop ecx
test al, al
je 0x43cee2
push 0
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x43cee6
xor ebx, ebx
jmp 0x43ceec
mov bl, 1
jmp 0x43ceec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cf0e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b40
ret
Function at 0x43ead4
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
xor eax, eax
push ebp
push 0x43ebf4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.00407f7c
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call sub.kernel32.dll_GetCommandLineA_1
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x43ebcc
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0042bcc8
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.0040a4dc
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x43ec0c
call fcn.00404e28
mov eax, dword [ebp - 0x78]
call fcn.00404fdc
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x43ebc3
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x74]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x4e9d30
mov ecx, 0x50
call fcn.00402d24
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_ResumeThread
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ebfb
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00404b40
ret
Function at 0x446268
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x4ea508
push 0x4ea504
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4462cc
push 0x4ea4fc
push 0
push 0
push 0x44620c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4ea500], eax
cmp dword [0x4ea500], 0
je 0x4462cc
push 0
push 0
push 0
mov ecx, 0x4462d8
mov edx, dword [0x4ea500]
mov eax, dword [0x4ea4fc]
call fcn.0042c094
push 2
mov eax, dword [0x4ea500]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x4462dc
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffffc4
cmp dword [0x4ea4fc], 0xffffffff
je 0x446399
mov eax, dword [0x4ea500]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.0042c778
test al, al
jne 0x446346
lea eax, [esp + 4]
mov edx, 0x38
call fcn.00407f7c
push 0
lea eax, [esp + 4]
push eax
push 0x38
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4ea508]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x4ea508]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x4ea500]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x446351
mov eax, dword [0x4ea508]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [0x4ea500]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x44636f
push 0
mov eax, dword [0x4ea500]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x4ea500]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4ea504]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4ea4fc]
call fcn.0042c094
add esp, 0x3c
ret