joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2d04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b2d6f
cmp byte [ebx + 0xd3], 0
jne 0x4b2d6f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069a8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b2d5c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b2d7c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040686c
jmp 0x4b2d7c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040686c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b45a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b4612
mov eax, esi
call fcn.0048cb84
test al, al
je 0x4b4612
mov eax, dword [ebx + 0x84]
call fcn.0048c7d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b4612
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4b4606
push 0
mov eax, dword [ebx + 0x84]
call fcn.0048c7d8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004837b0
jmp 0x4b4612
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004b43dc
pop esi
pop ebx
ret

Function at 0x401650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401676
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40170a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4016c5
cmp eax, 0x40
je 0x4016c5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401669
cmp eax, 0x40
je 0x401669
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401669
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x9a2260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x9d7c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.009bac90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x9a22af
cmp dword [ebp + 0xc], 0
jne 0x9a22b9
jmp 0x9a238a
cmp dword [ebp + 0x10], 0
je 0x9a230e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x9a22d7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x9a2312
jmp 0x9a238a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [0x9cd240]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.009b88b9
add esp, 0xc
push 0x9d2b24
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.009b8e0b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x9a235e
jmp 0x9a238a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.009b90fe
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.009b9192
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.009b88aa
mov esp, ebp
pop ebp
ret
Function at 0x9a23a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x9d7c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.009bac90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x9a23ef
cmp dword [ebp + 0xc], 0
jne 0x9a23f9
jmp 0x9a2506
cmp dword [ebp + 0x10], 0
je 0x9a244e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x9a2417
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x9a2458
jmp 0x9a2506
cmp dword [0x9d8fa8], 3
jne 0x9a248e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [0x9cd220]
push 0x9d2b2c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.009b88b9
add esp, 0xc
jmp 0x9a24a0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x9cd240]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.009b88b9
add esp, 0xc
push 0x9d2b30
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.009b8e0b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x9a24da
jmp 0x9a2506
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.009b90fe
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.009b9192
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.009b88aa
mov esp, ebp
pop ebp
ret
Function at 0x9a3060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x9d7c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.009bac90
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x9a30a8
cmp dword [ebp + 0xc], 0
jne 0x9a30b2
jmp 0x9a319a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x9a3125
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x9a30d7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
je 0x9a3125
push 0x9d2bc8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.009b8e0b
add esp, 0xc
jmp 0x9a3168
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x9cd240]
push 0x9d2bd0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.009b88b9
add esp, 0xc
push 0x9d2bec
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.009b8e0b
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x9a3190
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.009b93d1
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.009b9192
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.009b88aa
mov esp, ebp
pop ebp
ret

Function at 0x9a31b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x9d2bf4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.009b8e0b
add esp, 0xc
test eax, eax
je 0x9a31e4
xor eax, eax
jmp 0x9a32b3
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.009b94dd
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.009b96ff
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.009b94dd
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.009b97bc
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.009b90fe
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.009b9192
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.009a32c0
add esp, 8
push 0x9d2bfc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.009b8e0b
add esp, 0xc
test eax, eax
je 0x9a327e
xor eax, eax
jmp 0x9a32b3
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
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.009b93d1
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.009b9192
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x9a5bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.009bd140
mov eax, dword [0x9d7c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
push 0x9d2cb0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.009b8e0b
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x9a5c0a
xor eax, eax
jmp 0x9a5ca1
push 0
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [0x9cd410]
cmp eax, 4
je 0x9a5c27
xor eax, eax
jmp 0x9a5ca1
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x9a5c81
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [0x9cd410]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x9a5c57
jmp 0x9a5c81
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.009b93d1
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
jmp 0x9a5c27
mov ecx, dword [ebp - 8]
push ecx
call fcn.009b9192
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x9a5c9c
xor eax, eax
jmp 0x9a5ca1
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.009b88aa
mov esp, ebp
pop ebp
ret
Function at 0x9aa2f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x9aa300
xor eax, eax
jmp 0x9aa49d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x9aa45e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x9d1e00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x9d1e00]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x9d1e00]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x9d1e00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x9d1e00]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x9d1e00]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x9d1e00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x9d1e00]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x9aa309
cmp dword [ebp + 0x10], 0
je 0x9aa497
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x9d1e00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x9aa464
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x9aa4a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x9d1e00]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x9d1e00]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x401de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x400
push 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
sub ecx, eax
add edx, eax
mov eax, dword [esi]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
test eax, eax
je 0x401e16
cmp eax, 0xffffffff
je 0x401e16
mov ecx, dword [esi + 0x18]
add ecx, eax
mov eax, 1
mov dword [esi + 0x18], ecx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401e20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get file size
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push accept
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401e7c
lea edi, [esi + 0x324]
push ebx
push str._s:_cant_find_the_file
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
push edi
push 0x226
call fcn.00402ec0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 1
push 2
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401ea2
push str.cant_open_socket
jmp 0x401ebe
lea eax, [esi + 4]
push 0x10
push eax
push ebp
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x401edd
push ebp
call sub.WS2_32.dll_closesocket
push str.cant_connect_socket
push 0x1f4
mov ecx, esi
call fcn.00402de0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x20]
test eax, eax
mov eax, str.BINARY
jne 0x401eef
mov eax, str.ASCII
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea ebx, [esi + 0x324]
push eax
push str.Opening__s_mode_data_connection_for__s__d_bytes_.
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, esi
push ebx
push 0x96
call fcn.00402ec0
lea eax, [esp + 0x10]
push 0
lea ebx, [esi + 0x52c]
push eax
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f6a
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
push ebp
call sub.WS2_32.dll_send
cmp dword [esp + 0x10], 0x104
jne 0x401f6a
lea edx, [esp + 0x10]
push 0
push edx
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401f3a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebp
call sub.WS2_32.dll_shutdown
push ebp
call sub.WS2_32.dll_closesocket
push str.Transfer_complete.
push 0xe2
mov ecx, esi
call fcn.00402de0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x401fa0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
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 ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401ff8
lea ebx, [esi + 0x324]
push edi
push str._s:_cant_open_the_file
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
push ebx
push 0x226
call fcn.00402ec0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402011
push str.cant_open_socket
jmp 0x40202d
lea eax, [esi + 4]
push 0x10
push eax
push ebx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x40204a
push ebx
call sub.WS2_32.dll_closesocket
push str.cant_connect_socket
push 0x1f4
mov ecx, esi
call fcn.00402de0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
test eax, eax
mov eax, str.BINARY
jne 0x40205c
mov eax, str.ASCII
mov ecx, dword [esp + 0x18]
lea edi, [esi + 0x324]
push ecx
push eax
push str.Opening__s_mode_data_connection_for__s.
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, esi
push edi
push 0x96
call fcn.00402ec0
lea edi, [esi + 0x52c]
push 0
push 0x104
push edi
push ebx
call sub.WS2_32.dll_recv
test eax, eax
je 0x4020b3
cmp eax, 0xffffffff
je 0x4020b3
lea edx, [esp + 0x10]
push 0
push edx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40208a
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.WS2_32.dll_closesocket
push str.Transfer_complete.
push 0xe2
mov ecx, esi
call fcn.00402de0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x402cc0
Capabilities:
Create directory

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea ebx, [esi + 0x324]
push ecx
push edx
push ebx
call fcn.00403bd3
push ebx
lea eax, [esp + 0x1c]
push 0x104
add esi, 0x11c
push eax
push esi
call fcn.004036a0
add esp, 0x1c
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x402d20
Capabilities:
Delete directory

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea ebx, [esi + 0x324]
push ecx
push edx
push ebx
call fcn.00403bd3
push ebx
lea eax, [esp + 0x1c]
push 0x104
add esi, 0x11c
push eax
push esi
call fcn.004036a0
add esp, 0x1c
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x402d80
Capabilities:
Delete file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea ebx, [esi + 0x324]
push ecx
push edx
push ebx
call fcn.00403bd3
push ebx
lea eax, [esp + 0x1c]
push 0x104
add esi, 0x11c
push eax
push esi
call fcn.004036a0
add esp, 0x1c
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x402de0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x100
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebp
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
add dl, 0x30
push esi
mov byte [esp + 0xc], dl
imul ecx
mov eax, edx
mov esi, 0xa
sar eax, 2
mov edx, eax
push edi
shr edx, 0x1f
add eax, edx
mov edi, dword [esp + 0x118]
cdq
idiv esi
mov eax, ecx
mov ecx, esi
mov byte [esp + 0x13], 0x20
add dl, 0x30
mov byte [esp + 0x11], dl
cdq
idiv ecx
or ecx, 0xffffffff
xor eax, eax
add dl, 0x30
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x12], dl
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a588
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebx]
push eax
push ecx
call sub.WS2_32.dll_send
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8
Function at 0x402ec0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x100
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebp
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
add dl, 0x30
push esi
mov byte [esp + 0xc], dl
imul ecx
mov eax, edx
mov esi, 0xa
sar eax, 2
mov edx, eax
push edi
shr edx, 0x1f
add eax, edx
push 0xfc
cdq
idiv esi
mov eax, ecx
mov ecx, esi
mov byte [esp + 0x17], 0x20
mov byte [esp + 0x18], 0
add dl, 0x30
mov byte [esp + 0x15], dl
cdq
idiv ecx
lea eax, [esp + 0x18]
add dl, 0x30
mov byte [esp + 0x16], dl
mov edx, dword [esp + 0x11c]
push edx
push eax
call fcn.00403da8
mov edi, 0x40a588
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebx]
push eax
push ecx
call sub.WS2_32.dll_send
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8