joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443128
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x4b8e54], 0
je 0x4431a6
cmp dword [0x4b8e64], 0
je 0x44314d
mov eax, dword [0x4b8e64]
xor edx, edx
mov dword [0x4b8e64], edx
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [0x4b8e60], 0xffffffff
mov eax, 0x442f1c
xor ecx, ecx
xor edx, edx
call fcn.00411758
push 0
mov eax, dword [0x4b8e50]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x4b8e50]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4b8e4c]
call fcn.0043557c
xor eax, eax
mov dword [0x4b8e50], eax
xor eax, eax
mov dword [0x4b8e4c], eax
xor eax, eax
mov dword [0x4b8e54], eax
ret
Function at 0x44b188
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x44b1e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004076c4
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44b1cf
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44b1cf
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b1ec
lea eax, [ebp - 4]
call fcn.00406de8
ret
Function at 0x44b91c
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.00406eb8
xor eax, eax
push ebp
push 0x44b9a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x44b97b
mov eax, dword [ebp - 4]
call fcn.004072a0
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x44b961
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call fcn.00407364
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x44b98b
add esi, ebx
mov eax, dword [ebp - 4]
call fcn.004072a0
cmp esi, eax
jl 0x44b948
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b9a8
lea eax, [ebp - 4]
call fcn.00406de8
ret

Function at 0x44b9b4
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.00406eb8
xor eax, eax
push ebp
push 0x44ba21
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.004076c4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44ba09
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x44ba0b
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ba28
lea eax, [ebp - 4]
call fcn.00406de8
ret

Function at 0x44bc44
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.00406eb8
xor eax, eax
push ebp
push 0x44bd16
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x44bd00
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x44bd00
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x44bcb4
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44bcb4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x44bd00
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]
movzx eax, 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 0x44bd00
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 0x44bd1d
lea eax, [ebp - 4]
call fcn.00406de8
ret
Function at 0x44befc
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 - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x44c141
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406de8
mov bl, 1
mov dword [ebp - 0x524], 1
mov eax, dword [ebp - 0x10]
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 0x44c10f
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_recv
mov edi, eax
push 0
lea edx, [ebp - 0x420]
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00406f80
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004074d8
mov eax, dword [ebp - 8]
call fcn.004072a0
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004072a0
cmp esi, eax
setg byte [ebp - 0x15]
cmp byte [ebp - 0x15], 0
je 0x44c113
mov eax, dword [ebp - 4]
call fcn.004072a0
mov esi, eax
test esi, esi
jle 0x44c002
mov edi, 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi - 1]
mov edx, dword [ebp - 4]
cmp al, byte [edx + edi - 1]
je 0x44bffe
mov byte [ebp - 0x15], 0
jmp 0x44c002
inc edi
dec esi
jne 0x44bfe7
cmp byte [ebp - 0x15], 0
je 0x44c113
mov eax, dword [ebp - 8]
call fcn.004072a0
mov esi, eax
test esi, esi
jle 0x44c03a
mov edi, 1
mov eax, dword [ebp - 8]
cmp byte [eax + edi - 1], 0x3d
jne 0x44c036
lea eax, [ebp - 8]
call fcn.00407364
mov byte [eax + edi - 1], 0x20
inc edi
dec esi
jne 0x44c01f
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x2d
setne bl
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x44c160
call fcn.0040e300
mov edi, eax
test edi, edi
jne 0x44c066
mov edi, 0x7ffffffe
cmp dword [ebp - 0x14], 0
je 0x44c0e8
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x44c0e8
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.004076d4
mov edx, dword [ebp - 0xc]
mov eax, 0x44c170
call fcn.0040ea00
test al, al
je 0x44c0e8
push 0x7fffffff
lea eax, [ebp - 0x528]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0xc]
call fcn.004076d4
lea eax, [ebp - 0x528]
mov edx, 0x44c184
call fcn.004074d8
mov edx, dword [ebp - 0x528]
mov ecx, 1
mov eax, 0x44c194
call fcn.0040e354
test eax, eax
jle 0x44c0e8
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
lea ecx, [edi + 1]
lea eax, [ebp - 8]
mov edx, 1
call fcn.0040771c
test bl, bl
jne 0x44c113
mov eax, dword [ebp - 8]
call fcn.004072a0
cmp eax, 4
jge 0x44c03a
jmp 0x44c113
mov byte [ebp - 0x15], 0
test bl, bl
je 0x44bf3d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c148
lea eax, [ebp - 0x528]
call fcn.00406de8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406e54
ret
Function at 0x44c248
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 - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
mov eax, dword [ebp - 8]
call fcn.00406eb8
mov eax, dword [ebp + 8]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x44c481
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.004076c4
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x44c451
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x44c44b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1d], 1
test ebx, ebx
jbe 0x44c43b
cmp ebx, 0x39
jbe 0x44c2ee
mov esi, 0x39
jmp 0x44c2f0
mov esi, ebx
push 0
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x56]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x44c30a
cmp esi, dword [ebp - 0x18]
je 0x44c326
cmp byte [ebp - 0x1d], 0
jne 0x44c31d
mov edx, 0x44c4a4
mov eax, dword [ebp - 0x10]
call fcn.0044b91c
mov byte [ebp - 0x11], 0
jmp 0x44c43b
lea ecx, [ebp - 0x5c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0040e068
mov eax, dword [ebp - 0x5c]
mov edx, 0x44c4b4
call fcn.0040e1ac
test al, al
je 0x44c356
lea eax, [ebp - 0xc]
mov edx, 0x44c4c8
call fcn.00407268
jmp 0x44c363
lea eax, [ebp - 0xc]
mov edx, 0x44c4e0
call fcn.00407268
cmp byte [ebp - 0x1d], 0
je 0x44c3e6
push 0x44c508
lea eax, [ebp - 0x64]
mov edx, dword [0x4b8ed0]
mov ecx, 0
call fcn.004073f4
push dword [ebp - 0x64]
push 0x44c4a4
push 0x44c518
push dword [ebp - 0xc]
push 0x44c534
push 0x44c544
push dword [ebp - 8]
push 0x44c558
push 0x44c4a4
push 0x44c568
push 0x44c4a4
push 0x44c598
push 0x44c5c8
push dword [ebp - 8]
push 0x44c558
push 0x44c4a4
push 0x44c4a4
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.004075b4
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.0044b91c
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x56]
mov edx, esi
call fcn.0041e7e8
lea eax, [ebp - 0x68]
mov edx, 0x44c4a4
call fcn.004074d8
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call fcn.0044b91c
sub ebx, esi
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x1c]
sub eax, ebx
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x1c]
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 0x44c2e2
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 0x44c488
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00406e54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406e54
lea eax, [ebp + 8]
call fcn.00406de8
ret
Function at 0x44cf08
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.00406eb8
xor eax, eax
push ebp
push 0x44cffe
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.0040f708
mov eax, dword [ebp - 8]
mov edx, 0x44d01c
call fcn.0040767c
jne 0x44cfc0
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x44d02c
call fcn.0040e354
mov esi, eax
test esi, esi
jle 0x44cfe3
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x44d044
call fcn.0040e300
test eax, eax
jle 0x44cfe3
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.0040771c
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040771c
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x44cfe3
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040f708
mov eax, dword [ebp - 0xc]
mov edx, 0x44d054
call fcn.0040767c
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d005
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406e54
ret

Function at 0x44d058
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 0x44d1c3
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 [0x4b866c]
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 0x44d19d
push 0
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.00406f80
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040f708
mov eax, dword [ebp - 0x1518]
mov edx, 0x44d1e0
call fcn.0040767c
jne 0x44d193
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x44d1f0
call fcn.0040e300
test eax, eax
jle 0x44d183
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040771c
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040f708
mov eax, dword [ebp - 0x151c]
call fcn.004072a0
cmp eax, 3
jne 0x44d173
mov eax, dword [ebp - 4]
call fcn.0044cf08
mov ebx, eax
jmp 0x44d19d
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0044d058
pop ecx
mov ebx, eax
jmp 0x44d19d
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0044d058
pop ecx
mov ebx, eax
jmp 0x44d19d
mov eax, dword [ebp - 4]
call fcn.0044cf08
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1ca
lea eax, [ebp - 0x151c]
mov edx, 2
call fcn.00406e54
lea eax, [ebp - 4]
call fcn.00406de8
ret
Function at 0x44d1f8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
mov eax, dword [ebp - 8]
call fcn.00406eb8
mov eax, dword [ebp + 8]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x44d3b4
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.004076c4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne bl
test bl, bl
je 0x44d384
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jbe 0x44d37b
mov dword [ebp - 0x1c], edi
push 0x44d3d4
lea eax, [ebp - 0x24]
mov edx, dword [0x4b8ed0]
mov ecx, 0
call fcn.004073f4
push dword [ebp - 0x24]
push 0x44d3e8
push 0x44d3f8
push dword [ebp + 8]
push 0x44d42c
push dword [ebp - 8]
push 0x44d448
push 0x44d3e8
push 0x44d458
push 0x44d3e8
push 0x44d3e8
lea eax, [ebp - 0x20]
mov edx, 0xc
call fcn.004075b4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0044b91c
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x400
call fcn.004077d8
jmp 0x44d363
cmp edi, 0x400
jbe 0x44d303
mov esi, 0x400
jmp 0x44d305
mov esi, edi
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call fcn.004077d8
push 0
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x44d32e
cmp esi, dword [ebp - 0x18]
je 0x44d332
xor ebx, ebx
jmp 0x44d36b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0044b91c
mov ebx, eax
sub edi, esi
mov eax, dword [ebp - 0x1c]
sub eax, edi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x1c]
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 0x44d36b
test edi, edi
ja 0x44d2f4
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 - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d3bb
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406e54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406e54
lea eax, [ebp + 8]
call fcn.00406de8
ret
Function at 0x44dde4
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.00406eb8
mov eax, dword [ebp - 4]
call fcn.00406eb8
mov eax, dword [ebp - 0xc]
call fcn.00406eb8
mov eax, dword [ebp + 0x34]
call fcn.00406eb8
mov eax, dword [ebp + 0x30]
call fcn.00406eb8
mov eax, dword [ebp + 0x2c]
call fcn.00408da0
mov eax, dword [ebp + 0x28]
call fcn.00408da0
mov eax, dword [ebp + 0x24]
call fcn.00408da0
mov eax, dword [ebp + 0x20]
call fcn.0040a32c
mov eax, dword [ebp + 0x1c]
call fcn.00406eb8
mov eax, dword [ebp + 0x18]
call fcn.00406eb8
mov eax, dword [ebp + 0x14]
call fcn.00406eb8
mov eax, dword [ebp + 8]
call fcn.0040a32c
xor eax, eax
push ebp
push 0x44dff6
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 0x44df93
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, 0x44e014
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 8], 0
je 0x44dec6
push ebp
call fcn.0044d62c
pop ecx
mov ebx, eax
jmp 0x44df7c
cmp dword [ebp - 0xc], 0
je 0x44df7c
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x1c], 0
jne 0x44df4d
lea eax, [ebp - 0xc]
call fcn.004496e8
mov esi, eax
test esi, esi
jle 0x44def8
push ebp
mov al, 1
call fcn.0044ba30
pop ecx
mov dword [ebp - 0x10], eax
dec esi
jne 0x44dee9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 0xc]
call fcn.004496e8
mov esi, eax
test esi, esi
jle 0x44df7c
mov edi, 1
push ebp
lea eax, [ebp - 0x1a4]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0040f708
mov eax, dword [ebp - 0x1a4]
call fcn.0044c5d4
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 0x44df15
jmp 0x44df7c
push ebp
xor eax, eax
call fcn.0044ba30
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.0044c5d4
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 0x44df93
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 0x44dffd
lea eax, [ebp - 0x1a4]
call fcn.00406de8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406e54
lea eax, [ebp + 8]
call fcn.0040a2b8
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.00406e54
lea eax, [ebp + 0x20]
call fcn.0040a2b8
lea eax, [ebp + 0x24]
mov edx, dword [0x40c458]
mov ecx, 3
call fcn.004082d4
lea eax, [ebp + 0x30]
mov edx, 2
call fcn.00406e54
ret
Function at 0x44e1b8
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.00406eb8
xor eax, eax
push ebp
push 0x44e27f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00434834
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00407268
cmp dword [ebp - 4], 0
je 0x44e262
mov eax, dword [ebp - 4]
call fcn.004072a0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x44e222
mov eax, dword [ebp - 4]
call fcn.004072a0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.0040771c
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x44e25e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0044e1b8
pop ecx
test al, al
je 0x44e25a
push 0
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x44e25e
xor ebx, ebx
jmp 0x44e264
mov bl, 1
jmp 0x44e264
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e286
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e54
ret
Function at 0x44ffbc
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 0x4500dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.0040c160
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_GetCommandLineW_1
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4500b4
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00435168
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.0040f32c
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x4500f8
call fcn.00407530
mov eax, dword [ebp - 0x78]
call fcn.004076c4
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 0x4500ab
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, 0x4b8728
mov ecx, 0x50
call fcn.004044e8
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 0x4500e3
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00406e54
ret
Function at 0x4588a8
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x4b8f34
push 0x4b8f30
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x458900
push 0x4b8f28
push 0
push 0
push 0x45884c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b8f2c], eax
cmp dword [0x4b8f2c], 0
je 0x458900
mov edx, 0x458910
mov eax, dword [0x4b8f28]
call fcn.00435834
push 2
mov eax, dword [0x4b8f2c]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

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

Disassembly:
add esp, 0xffffffc4
cmp dword [0x4b8f28], 0xffffffff
je 0x4589f1
mov eax, dword [0x4b8f2c]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.00435cf0
test al, al
jne 0x45899e
lea eax, [esp + 4]
mov edx, 0x38
call fcn.0040c160
push 0
lea eax, [esp + 4]
push eax
push 0x38
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4b8f34]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x4b8f34]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x4b8f2c]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4589a9
mov eax, dword [0x4b8f34]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4b8f30]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x32
mov eax, dword [0x4b8f2c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4589d2
push 0
mov eax, dword [0x4b8f2c]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x4b8f2c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4b8f28]
call fcn.0043557c
add esp, 0x3c
ret