joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d1a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
call fcn.0044a8a0
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax]
add esp, 4
cmp dword [edi + 0x78], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
je 0x41d1e0
push 2
push 5
push edi
call fcn.00426530
add esp, 0xc
mov eax, dword [edi + 0x9f0]
mov edx, dword [eax + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x24]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.0044a940
add esp, 0x20
cmp dword [edi + 0x78], 0
mov ebx, eax
mov esi, edx
je 0x41d233
push 5
push edi
call fcn.00426570
add esp, 8
test esi, esi
jl 0x41d33f
jg 0x41d249
cmp ebx, 0x3e8
jb 0x41d33f
mov eax, dword [edi + 0x9f0]
push 0x41a570
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0
call fcn.0042f980
add esp, 0x10
test eax, eax
je 0x41d2fd
mov ecx, dword [esp + 0x14]
push 1
push ecx
push edi
call fcn.0042f900
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
je 0x41d2a3
push eax
push edi
call fcn.0044c5c0
add esp, 8
mov dword [esi + 0x44], 0
push esi
call fcn.0044e2e0
push esi
push edi
call fcn.00428310
mov edx, dword [esi + 0x330]
mov eax, dword [edx + 0x30]
add esp, 0xc
test eax, eax
je 0x41d2c9
push 1
push esi
push edi
call eax
add esp, 0xc
call fcn.0041a1b0
push edi
call fcn.004282d0
mov eax, esi
call fcn.0041cf80
mov ecx, dword [edi + 0x9f0]
push 0x41a570
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call fcn.0042f980
add esp, 0x14
test eax, eax
jne 0x41d277
cmp dword [edi + 0x78], 0
je 0x41d310
push 2
push 5
push edi
call fcn.00426530
add esp, 0xc
mov eax, dword [edi + 0x9f0]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
cmp dword [edi + 0x78], 0
je 0x41d33f
push 5
push edi
call fcn.00426570
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x423fd0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x423ffe
movzx eax, byte [esi]
push eax
call fcn.00426080
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x423fe1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x427d80
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x427d9a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push 0x727eec
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x727ee8
push ebx
mov dword [esp + 0x18], edi
call fcn.004d2910
add esp, 8
test eax, eax
je 0x427de6
test edi, edi
je 0x427dd7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x427e0c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x427e0c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x427ec0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427e25
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x7c6020]
mov esi, eax
add esp, 4
test esi, esi
je 0x427eb6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x427eb6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427e53
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427e70
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x427e80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x427ead
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x7c6024]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x7c6024]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x427ed0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x427f2f
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x427f15
mov eax, dword [esp]
cmp al, 2
jne 0x427f0f
shr eax, 8
cmp al, 2
je 0x427f2f
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x194
ret
push str.iphlpapi.dll
call fcn.00427d80
add esp, 4
mov dword [0x7cca5c], eax
test eax, eax
je 0x427f5a
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x427f5a
mov dword [0x7cca60], eax
push 3
push 2
push 0
push 6
call fcn.00458370
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x7d34e8
mov dword [0x7d34f0], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.004d0e4d
add esp, 0x194
ret
Function at 0x42bfe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x42c023
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x42c0a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x7cc], edi
je 0x42c135
cmp dword [esi + 0x1c8], edi
je 0x42c0f5
push 1
push esi
call fcn.004296d0
mov eax, dword [esi + 0x164]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x1c8]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.004296d0
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x42c135
cmp eax, 2
jg 0x42c135
mov edx, dword [esi + 0x160]
push edx
push 1
lea eax, [eax + eax*2 + 0x728144]
push 2
push eax
call fcn.004d0971
mov ecx, dword [esi + 0x160]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004d0971
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x42c1c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x7cc], 0
jne 0x42c1f2
cmp dword [esi + 0x168], 0
je 0x42c2d0
mov ecx, dword [esp + 0x114]
push edi
lea eax, [esp + 0x11c]
push eax
push ecx
lea edx, [esp + 0x10]
push pe_nt_image_headers32
push edx
call fcn.00430820
mov edx, dword [esi + 0x168]
add esp, 0x10
mov edi, eax
test edx, edx
je 0x42c244
cmp dword [esi + 0xe58], 0
jne 0x42c244
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x42c230
mov dword [esi + 0xe58], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x7cc], 0
mov byte [esp + edi + 8], 0
je 0x42c2cf
cmp dword [esi + 0x1c8], 0
je 0x42c2a3
push 1
push esi
call fcn.004296d0
mov eax, dword [esi + 0x164]
mov edx, dword [esi + 0x1c8]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.004296d0
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x108
ret
mov eax, dword [esi + 0x160]
push eax
push 1
push 2
push 0x728144
call fcn.004d0971
mov ecx, dword [esi + 0x160]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004d0971
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004d0e4d
add esp, 0x108
ret
Function at 0x42c5c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [eax + 0x330]
push ebx
mov ebx, dword [eax + ecx*4 + 0x148]
push esi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x44], 3
je 0x42c66d
cmp dword [eax + ecx*4 + 0x160], 0x42c2f0
jne 0x42c66d
cmp dword [esi], 0
je 0x42c5fe
test edi, edi
je 0x42c66d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0044a770
add esp, 0x14
cmp eax, 0xffffffff
je 0x42c66d
test al, 1
je 0x42c66d
cmp dword [esi], 0
jne 0x42c656
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x540]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x7c6020]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x42c645
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x42c66d
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x114]
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + ecx*4 + 0x148]
push edi
mov edi, dword [esp + 0x128]
push esi
call fcn.0042c5c0
add esp, 4
test eax, eax
je 0x42c6d6
mov dword [edi], 0x1b
or eax, 0xffffffff
jmp 0x42c73c
mov eax, dword [esp + 0x124]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x42c73a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x42c70f
xor ebx, ebx
mov dword [edi], 0x51
jmp 0x42c73a
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.004197e0
push eax
push str.Send_failure:__s
push esi
call fcn.0042c1c0
mov dword [esi + 0xa84], ebp
add esp, 0x18
mov dword [edi], 0x37
mov eax, ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d0e4d
add esp, 0x104
ret
Function at 0x42d640
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x800], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x42d694
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0042c140
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x18
ret
mov edx, dword [esi + 0x718]
push edx
mov dword [esp + 0xc], 1
call fcn.00427320
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x71c]
push eax
call fcn.00427320
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42d70d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0042c140
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x18
ret
Function at 0x42e090
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x19c]
push esi
mov esi, dword [esp + 0x194]
push edi
mov edi, dword [esp + 0x1a0]
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.004d1020
mov eax, dword [esp + 0x1a8]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x42e118
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push pe_nt_image_headers32
lea ecx, [esp + 0x94]
mov edi, eax
push ecx
push edi
call fcn.004197e0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42e15c
mov edx, dword [esp + 0xc]
push ebx
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0042dee0
add esp, 0x10
test eax, eax
jne 0x42e165
call fcn.004d1ba9
mov edi, eax
call fcn.004d1ba9
mov edx, dword [edi]
push pe_nt_image_headers32
lea ecx, [esp + 0x94]
push ecx
push edx
mov ebx, eax
call fcn.004197e0
push eax
mov eax, dword [ebx]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0042c1c0
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d0e4d
add esp, 0x188
ret

Function at 0x42e380
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x42e3d7
push pe_nt_image_headers32
lea edx, [esp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004197e0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0042c140
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x108
ret
Function at 0x437020
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x7bad04
push eax
call fcn.0042c140
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00435f60
test eax, eax
jne 0x43704e
mov ecx, esi
jmp fcn.00436420
ret
Function at 0x437af0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [edi + 0xc]
push 0
push 3
lea edx, [esp + 8]
mov byte [esp + 8], 0xff
mov byte [esp + 9], cl
mov byte [esp + 0xa], bl
mov eax, dword [eax + 0x148]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x437b34
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0042c1c0
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.004379f0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4389a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x438af5
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4389d8
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4389e3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4389ee
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WSOCK32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x438a20
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x438a2e
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x438a38
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x438a42
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x438a4d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x438a58
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x1eb8], eax
sub eax, ebx
sub eax, 2
push eax
lea ecx, [ebp + 0x1cb6]
mov eax, 0x3e
mov dword [edi], ebx
call fcn.00437e70
mov edi, dword [sym.imp.WSOCK32.dll_send]
add esp, 4
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x148]
push edx
call edi
test eax, eax
jns 0x438ab0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042c1c0
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.00438730
mov ecx, dword [ebx + 0x148]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jns 0x438af2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042c1c0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x43ea80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [edi + 0xc]
mov ebp, dword [esi + 0x14c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x43eadb
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WSOCK32.dll_accept]
mov ebx, eax
push ebp
push esi
push edi
call fcn.0042e580
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x43eb16
push str.Error_accept__ing_server_connect
push edi
call fcn.0042c1c0
add esp, 8
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x88
ret
push str.Connection_accepted_from_server
push edi
call fcn.0042c140
push 1
push ebx
mov dword [esi + 0x2b4], 0
mov dword [esi + 0x14c], ebx
call fcn.0045c470
add esp, 0x10
mov dword [esi + 0x300], 1
cmp dword [edi + 0x1d0], 0
je 0x43eba0
push 1
push edi
call fcn.004296d0
mov ecx, dword [edi + 0x1d4]
mov edx, dword [edi + 0x1d0]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.004296d0
add esp, 0x1c
test ebx, ebx
je 0x43eba0
push edi
call fcn.0043e9e0
add esp, 4
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004d0e4d
add esp, 0x88
ret
Function at 0x442640
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, dword [edi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
cmp eax, 2
je 0x44267b
push str.Couldnt_set_desired_mode
push edi
call fcn.0042c1c0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x442692
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push edi
call fcn.0042c140
add esp, 0xc
cmp ebp, 0x13
jne 0x4426a8
push ebx
push edi
call fcn.00442540
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4426b9
call fcn.0043f6f0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4426d3
push 0xd
push 1
mov eax, edi
call fcn.00441970
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4426e1
mov eax, edi
call fcn.004425d0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x44a360
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ebx, eax
je 0x44a372
cmp dword [ebx], eax
jne 0x44a3a1
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x44a37e
cmp dword [ecx], eax
jne 0x44a3a5
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x44a38a
cmp dword [edx], eax
jne 0x44a3a9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.0044a310
add esp, 8
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
lea esi, [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, eax
jg 0x44a3d5
jl 0x44a3c5
cmp edi, eax
jae 0x44a3cb
mov dword [esp + 0xc], eax
jmp 0x44a447
cmp esi, eax
jl 0x44a43f
jg 0x44a3d5
cmp edi, eax
jbe 0x44a43f
push ebp
push eax
push 0x3e8
push esi
push edi
call fcn.004d1c80
push 0
push 0x3e8
push edx
push eax
mov ebp, eax
mov ebx, edx
call fcn.004d3110
push 0
sub edi, eax
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.004d3110
mov dword [esp + 0x18], edx
test ebx, ebx
jl 0x44a426
jg 0x44a419
cmp ebp, 0x7fffffff
jbe 0x44a426
mov ebp, bind
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
xor eax, eax
pop ebp
jmp 0x44a447
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x44a44f
cmp dword [edx], eax
jne 0x44a451
xor edx, edx
cmp ecx, eax
je 0x44a459
cmp dword [ecx], eax
jne 0x44a45b
xor ecx, ecx
cmp ebx, eax
je 0x44a465
cmp dword [ebx], eax
je 0x44a465
mov eax, ebx
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
call dword [sym.imp.WSOCK32.dll_select]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x44ae90
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x7c6028]
mov edi, eax
add esp, 8
test edi, edi
je 0x44ae58
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x44ae70
cmp esi, ebx
je 0x44ae70
cmp esi, 0x8000
ja 0x44ae70
cmp esi, ebx
jb 0x44ae69
push esi
push edi
call dword [0x7c6028]
mov edi, eax
add esp, 8
test edi, edi
jne 0x44ae20
push ebp
call dword [0x7c6024]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x7c6024]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x44ae00