joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417147
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov byte [ebp - 1], 0
call dword [eax + 0x18]
test al, al
jne 0x417169
mov dword [esi + 8], 1
xor al, al
jmp 0x417202
cmp dword [ebp + 8], 0
jne 0x417178
mov dword [esi + 8], 2
jmp 0x417162
cmp word [ebp + 0xc], 0
jne 0x417188
mov dword [esi + 8], 3
jmp 0x417162
mov eax, dword [esi + 0x18]
dec eax
je 0x4171a0
dec eax
jne 0x4171ff
push dword [ebp + 0xc]
mov eax, esi
push dword [ebp + 8]
call fcn.0041709c
jmp 0x4171ad
push dword [ebp + 0xc]
mov eax, esi
push dword [ebp + 8]
call fcn.00416fc2
test al, al
mov byte [ebp - 1], al
je 0x4171ff
push ebx
push edi
push 0x10
pop edi
push edi
lea ebx, [esi + 0x44]
push 0
push ebx
mov dword [ebp + 0xc], edi
call fcn.0042d8b0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
push edi
lea ebx, [esi + 0x54]
push 0
push ebx
mov dword [ebp + 0xc], edi
call fcn.0042d8b0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
and dword [esi + 8], 0
pop edi
pop ebx
mov al, byte [ebp - 1]
pop esi
leave
ret 8

Function at 0x4172ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test ebx, ebx
push esi
jne 0x4172f0
xor eax, eax
jmp 0x417403
mov esi, edi
call fcn.00417411
cmp dword [ebx + 4], 1
jne 0x4172e9
cmp dword [ebx], 0x28
jne 0x4172e9
mov eax, dword [ebx + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x417350
lea eax, [ebp - 0x808]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
and word [ebp - 0xa], 0
lea eax, [ebp - 0x808]
lea ebx, [edi + 0x48]
mov esi, ebx
call fcn.0040210f
cmp dword [edi + 0x5c], 0
je 0x41739b
lea esi, [ebp - 0x820]
mov ecx, ebx
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x5c
je 0x41739b
lea esi, [ebp - 0x820]
mov ecx, ebx
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x2f
je 0x41739b
push 0x44d8a0
push ebx
call fcn.00401cb3
push 0xc
pop esi
push esi
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0042d8b0
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x814], esi
add esp, 0xc
lea esi, [ebp - 0x814]
mov dword [ebp - 0x810], 1
mov dword [ebp - 0x80c], eax
call fcn.0041a460
test eax, eax
mov dword [edi + 0x68], eax
je 0x4172e9
push 0x4c
call fcn.0042dbee
test eax, eax
pop ecx
je 0x4173f5
push edi
mov esi, eax
call fcn.00418759
jmp 0x4173f7
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [edi + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d4ab
leave
ret
Function at 0x418370
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
test ebx, ebx
push esi
push edi
je 0x418402
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx]
add eax, 0x18
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
jmp 0x4183f3
lea esi, [ebp - 0x14]
call fcn.004185ba
mov esi, dword [eax]
cmp esi, ebx
je 0x4183eb
cmp dword [esi + 4], 1
je 0x4183eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
push dword [ebp - 8]
call fcn.0042eecc
test eax, eax
pop ecx
pop ecx
jne 0x4183eb
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [ebp - 0x14]
call fcn.004185da
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
call fcn.0040ed4f
test al, al
jne 0x4183af
pop edi
pop esi
leave
ret 4

Function at 0x418a82
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x90]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00418b18
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x418ac5
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x84], eax
jne 0x418ac5
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 3
pop eax
cmp dword [esi + 4], eax
je 0x418ae6
mov dword [esi + 4], eax
mov dword [esi + 0xb0], 1
mov ecx, esi
mov dword [esi + 0xb4], edi
call fcn.004189e5
lea eax, [esi + 0x88]
push eax
push edi
push esi
push 0x418bb8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x8c], eax
je 0x418ab8
xor edi, edi
inc edi
jmp 0x418ab8

Function at 0x418bca
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, eax
cmp dword [esi + 0x20], 8
push edi
jb 0x418bdf
mov eax, dword [esi + 0xc]
jmp 0x418be2
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418bf2
xor ecx, ecx
inc ecx
jmp 0x418c21
mov ecx, dword [esi + 0xb8]
mov eax, dword [ecx]
call dword [eax + 0x10]
dec eax
je 0x418c09
dec eax
je 0x418c31
dec eax
je 0x418c40
dec eax
je 0x418c1a
mov edi, esi
call fcn.00418f18
cmp eax, 1
je 0x418c1f
cmp eax, 4
je 0x418c1f
call fcn.00418c49
mov ecx, eax
mov eax, esi
call fcn.00418b6f
xor eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00418c49
cmp eax, 1
je 0x418c1f
cmp eax, 4
je 0x418c1f
mov edi, esi
call fcn.00418f18
jmp 0x418c1f
Function at 0x419628
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1020]
mov eax, 0x1020
call fcn.0043f800
push 0xffffffffffffffff
push 0x44788a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp + 0x101c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ebx, ebx
mov esi, ecx
jne 0x41968c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x101c]
xor ecx, ebp
call fcn.0042d4ab
add ebp, 0x1020
leave
ret
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
jne 0x41969e
xor eax, eax
inc eax
jmp 0x41966a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
test eax, eax
je 0x419699
push 0x5c
push ebx
call fcn.0042d23b
pop ecx
pop ecx
xor edi, edi
cmp eax, edi
push 0x2f
mov dword [ebp - 0x10], eax
push ebx
je 0x4196cf
call fcn.0042d23b
cmp eax, edi
pop ecx
pop ecx
je 0x4196d9
jmp 0x4196d6
call fcn.0042d23b
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], edi
je 0x419668
mov eax, dword [esi + 0xb8]
add dword [ebp - 0x10], 2
add eax, 0x48
cmp dword [eax + 0x18], 8
jb 0x4196f6
mov eax, dword [eax + 4]
jmp 0x4196f9
add eax, 4
lea ecx, [ebp]
call fcn.00401c6e
push str.delete_
lea eax, [ebp]
push eax
mov dword [ebp - 4], edi
call fcn.00401cb3
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x41971e
lea eax, [ebp + 4]
push eax
mov ecx, esi
call fcn.00406e27
mov esi, 0x800
test edi, edi
mov eax, dword [ebp + 4]
je 0x419754
cmp dword [ebp + 0x18], 8
jae 0x41973b
lea eax, [ebp + 4]
push edi
push dword [ebp - 0x10]
push eax
push str._s_s_d
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.0042d92a
add esp, 0x18
jmp 0x419773
cmp dword [ebp + 0x18], 8
jae 0x41975d
lea eax, [ebp + 4]
push dword [ebp - 0x10]
push eax
push str._s_s
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.0042d92a
add esp, 0x14
and word [ebp + 0x101a], 0
push 1
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41979d
inc edi
cmp edi, 0x64
jl 0x41972b
xor edi, edi
jmp 0x4197a0
xor edi, edi
inc edi
push 0
push 1
lea esi, [ebp]
call fcn.004022b6
mov eax, edi
jmp 0x41966a
Function at 0x41de60
Capabilities:
Delete file
Move file

Disassembly:
push 0x90
mov eax, 0x4490c5
call fcn.00431dc6
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
mov dword [esi + 0x14], eax
call fcn.0041f0d9
cmp dword [esi + 0x14], 4
jne 0x41df7d
mov edi, 0x453a78
push edi
lea ebx, [esi + 0x40]
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0041f59a
add esp, 0xc
and dword [ebp - 4], 0
add esi, 0x238
push esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041f5ed
add esp, 0xc
push str..down
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0041f59a
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00402b4a
push 0
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00402b4a
push edi
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.0041f59a
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 5
call fcn.0041f5ed
add esp, 0xc
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.00402b4a
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x41df2a
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x41df36
lea eax, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, str.info
push esi
call fcn.0042d420
pop ecx
push eax
push esi
lea eax, [ebp - 0x2c]
call fcn.0041a4b2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x41df60
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00402b4a
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402b4a
call fcn.00431e49
ret 4
Function at 0x41f7ed
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x45b1d4]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
lea eax, [esp + 8]
push eax
push 2
mov dword [esi], vtable.CMgSocket.0
call sub.WS2_32.dll_WSAStartup
push 0x1e
xor ebx, ebx
pop eax
lea ecx, [esi + 0x20]
mov byte [esi + 8], bl
mov byte [esi + 0x18], bl
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi], vtable.CMgProxySocket.0
call fcn.0040ad9b
lea ecx, [esi + 0x40]
call fcn.0040ad9b
lea ecx, [esi + 0x5c]
call fcn.0040ad9b
mov ecx, dword [esp + 0x19c]
mov byte [esi + 0x1c], bl
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x7c], bl
pop ebx
xor ecx, esp
mov dword [esi + 0x78], 3
mov eax, esi
call fcn.0042d4ab
add esp, 0x1a0
ret

Function at 0x41fbb9
Capabilities:
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x90]
push edi
push eax
call sub.WS2_32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x41fc08
mov dword [esi + 4], 2
xor al, al
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop edi
call fcn.0042d4ab
add ebp, 0x88
leave
ret 8
cmp word [edi + 8], 2
je 0x41fc18
mov dword [esi + 4], 3
jmp 0x41fbee
push dword [ebp + 0x94]
call sub.WS2_32.dll_htons
movzx eax, ax
mov dword [ebp - 0x80], eax
push 2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7a]
push eax
mov byte [ebp - 0x7c], 4
mov byte [ebp - 0x7b], 1
call fcn.0042f100
mov eax, dword [edi + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x78]
push eax
call fcn.0042f100
mov eax, dword [esi + 0x54]
add esp, 0x18
cmp dword [esi + 0x58], 0x10
jb 0x41fc61
mov ecx, dword [esi + 0x44]
jmp 0x41fc64
lea ecx, [esi + 0x44]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0042f100
mov eax, dword [esi + 0x54]
add esp, 0xc
cmp byte [esi + 8], 0
mov byte [ebp + eax - 0x74], 0
jne 0x41fc8c
mov dword [esi + 4], 7
jmp 0x41fbee
add eax, 9
push eax
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
call fcn.00428fab
test al, al
je 0x41fbee
push pe_nt_image_headers32
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
call fcn.00429006
cmp eax, 8
jne 0x41fbee
cmp byte [ebp - 0x7c], 0
jne 0x41fbee
cmp byte [ebp - 0x7b], 0x5a
jne 0x41fbee
mov al, 1
jmp 0x41fbf0

Function at 0x42028c
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push esi
push 0x4202ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x10], eax
setne al
pop ecx
ret
Function at 0x425671
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4473a9
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x45b1d4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x45b1d4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x4256d4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042d4ab
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x4256fc
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4256fc
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x4256b4
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x425708
or eax, 0xffffffff
jmp 0x4256b4
cmp dword [esi + 0x3c], edi
jne 0x42571c
push eax
push ebx
call fcn.00422a13
test al, al
pop ecx
pop ecx
je 0x425703
jmp 0x4256f8
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.00425efd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x42582c
cmp eax, 1
jg 0x425854
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x4257c1
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042d6f2
add esp, 0x10
cmp edi, eax
jne 0x42586b
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x425882
test edi, edi
ja 0x4257ef
cmp dword [esp + 0x58], 0x20
jae 0x42586b
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.0041d3c9
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x42576f
jmp 0x42586b
cmp eax, 3
jne 0x42586b
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.00422a13
test al, al
pop ecx
pop ecx
jne 0x425882
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00402b4a
mov eax, esi
jmp 0x4256b4
mov esi, dword [ebp + 8]
jmp 0x42586e
Function at 0x42643d
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x44734f
call fcn.00431dc6
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x426549
cmp byte [esi + 0x41], 0
je 0x426549
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x426473
xor al, al
jmp 0x42654b
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00425efd
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4264e3
dec eax
je 0x4264e7
dec eax
dec eax
je 0x426545
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402b4a
mov al, bl
jmp 0x42654b
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x426527
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00425f23
mov ecx, eax
call fcn.00426be3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042d6f2
add esp, 0x10
cmp edi, eax
jne 0x4264d1
cmp byte [esi + 0x41], 0
je 0x426545
test edi, edi
jne 0x426481
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.0041d3c9
jmp 0x426481
mov bl, 1
jmp 0x4264d3
mov al, 1
call fcn.00431e49
ret
Function at 0x428ea0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edi
call fcn.0042906c
push 6
xor esi, esi
inc esi
push esi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [edi + 0x14], eax
jne 0x428ede
mov dword [edi + 4], esi
xor al, al
jmp 0x428f9a
push ebx
mov byte [edi + 0x18], 1
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x428ef7
mov dword [edi + 4], 2
jmp 0x428ed7
movzx eax, word [esi + 8]
cmp ax, 2
je 0x428f10
cmp ax, 0x17
je 0x428f10
mov dword [edi + 4], 3
jmp 0x428ed7
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0042d8b0
mov ax, word [esi + 8]
add esp, 0xc
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00429092
test eax, eax
jge 0x428f5b
mov dword [edi + 4], 4
jmp 0x428ed7
mov eax, dword [edi + 0x10]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1005
mov esi, 0xffff
push esi
push dword [edi + 0x14]
mov byte [edi + 8], 1
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1006
push esi
push dword [edi + 0x14]
call sub.WS2_32.dll_setsockopt
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d4ab
leave
ret 8

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

Disassembly:
push esi
push edi
xor edi, edi
cmp edi, dword [esp + 0x10]
mov esi, eax
jge 0x428ff8
mov eax, dword [esp + 0x10]
push 0
sub eax, edi
push eax
mov eax, dword [esp + 0x14]
add eax, edi
push eax
push dword [esi + 0x14]
call sub.WS2_32.dll_send
test eax, eax
je 0x428fe1
jl 0x428fef
add edi, eax
cmp edi, dword [esp + 0x10]
jne 0x428fb5
mov al, 1
jmp 0x429001
mov dword [esi + 4], 8
call fcn.0042906c
jmp 0x428fff
mov dword [esi + 4], 9
jmp 0x428fe8
mov dword [esi + 4], 0xa
xor al, al
pop edi
pop esi
ret 8

Function at 0x429006
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 8], 0
push edi
jne 0x429019
mov dword [esi + 4], 0xb
jmp 0x429064
cmp dword [esp + 0x10], 0
jle 0x42905d
cmp dword [esp + 0xc], 0
je 0x42905d
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 0x14]
call sub.WS2_32.dll_recv
test eax, eax
jge 0x429050
mov dword [esi + 4], 0xd
or edi, 0xffffffff
call fcn.0042906c
mov eax, edi
jmp 0x429067
jne 0x429067
mov dword [esi + 4], 0xe
xor edi, edi
jmp 0x429047
mov dword [esi + 4], 0xc
or eax, 0xffffffff
pop edi
pop esi
ret 8
Function at 0x429092
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x8004667e
push ebx
push esi
mov dword [ebp - 4], 1
call sub.WS2_32.dll_ioctlsocket
push 0x10
push dword [ebp + 0xc]
push esi
call sub.WS2_32.dll_connect
mov edi, eax
test edi, edi
jge 0x429134
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x429131
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x118]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x429131
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0xc], 4
call sub.WS2_32.dll_getsockopt
mov edi, dword [ebp - 8]
neg edi
sbb edi, edi
jmp 0x429134
or edi, 0xffffffff
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
call sub.WS2_32.dll_ioctlsocket
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x42d4ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b1d4]
jne 0x42d4b5
repz ret
jmp fcn.0043361f
Function at 0x42f7d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42f812
cmp dword [ebp + 0x14], edi
je 0x42f812
cmp ecx, edi
jne 0x42f819
call fcn.00433cc1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042ee98
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42f82d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42f84e
cmp ebx, 0xffffffff
je 0x42f83d
push ebx
push edi
push ecx
call fcn.0042d8b0
add esp, 0xc
cmp esi, edi
je 0x42f7fa
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42f7fa
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42f86a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42f871
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42f962
test word [esi + 0xc], 0x10c
je 0x42f8c5
mov eax, dword [esi + 4]
test eax, eax
je 0x42f8c5
jl 0x42f9c3
cmp ebx, eax
mov edi, ebx
jb 0x42f896
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42f96a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042dda0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42f95a
cmp ebx, dword [ebp - 0xc]
jb 0x42f932
cmp dword [ebp - 0xc], 0
je 0x42f8ef
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x42f8e4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42f8eb
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42f8fa
mov eax, closesocket
cmp ebx, eax
ja 0x42f8fa
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42f996
push eax
push dword [ebp - 8]
push esi
call fcn.004346b9
pop ecx
push eax
call fcn.004391d4
add esp, 0xc
test eax, eax
je 0x42f9d5
cmp eax, 0xffffffff
je 0x42f9c3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42f95a
push esi
call fcn.00438af3
cmp eax, 0xffffffff
pop ecx
je 0x42f9c7
cmp dword [ebp - 4], 0
je 0x42f996
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42f879
mov eax, dword [ebp + 0x14]
jmp 0x42f814
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42f981
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042d8b0
add esp, 0xc
call fcn.00433cc1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42f80a
cmp dword [ebp + 0xc], 0xffffffff
je 0x42f9ac
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042d8b0
add esp, 0xc
call fcn.00433cc1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42f80a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42f814
or dword [esi + 0xc], 0x10
jmp 0x42f9c7