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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x434a4a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x18], 0xffffffff
add esi, 4
mov ecx, esi
call fcn.0043666b
mov ecx, esi
pop esi
jmp 0x43667a
push esi
mov esi, ecx
call fcn.0042efa9
mov edx, dword [eax]
push str.WaitEndThread__n
mov ecx, eax
call dword [edx + 4]
cmp dword [esi], 0
jne 0x436697
xor al, al
pop esi
ret
mov byte [esi + 8], 1
call fcn.0042efa9
mov edx, dword [eax]
push 0x4b48b4
mov ecx, eax
call dword [edx + 4]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4366df
cmp eax, 0x80
je 0x4366df
call fcn.0042efa9
mov edx, dword [eax]
push str.CThread
mov ecx, eax
call dword [edx + 4]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
call fcn.0042efa9
mov edx, dword [eax]
push 0x4b4884
mov ecx, eax
call dword [edx + 4]
mov al, 1
pop esi
ret

Function at 0x434a5c
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push 0x10
lea edi, [esi + 0x1c]
push 0
push edi
call fcn.0048bdc0
add esp, 0xc
push dword [ebp + 0xc]
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [esi + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x11
push 2
push 2
mov dword [esi + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x434abb
xor al, al
jmp 0x434b57
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
and dword [ebp - 0x1c], 0
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 0x1006
mov ebx, 0xffff
push ebx
push eax
mov dword [ebp - 0x18], 0x2710
call edi
cmp eax, 0xffffffff
jne 0x434aee
mov ecx, esi
call fcn.00434a34
jmp 0x434ab4
push 8
lea eax, [ebp - 0x1c]
push eax
push 0x1005
push ebx
push dword [esi + 0x18]
call edi
cmp eax, 0xffffffff
je 0x434ae5
push 0x10
xor edi, edi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0048bdc0
mov ax, word [esi + 0x1e]
add esp, 0xc
push edi
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x434b55
push edi
push esi
push edi
push 0x43498c
lea ecx, [esi + 4]
call fcn.00436b43
test al, al
je 0x434ae5
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b5ab
leave
ret 8
Function at 0x434b68
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 0x11
push 2
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x18], eax
jne 0x434b88
xor al, al
jmp 0x434bd9
and dword [ebp - 8], 0
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push edi
push 8
lea ecx, [ebp - 8]
push ecx
push 0x1006
mov edi, 0xffff
push edi
push eax
mov dword [ebp - 4], 0x2710
call esi
cmp eax, 0xffffffff
je 0x434bca
push 8
lea eax, [ebp - 8]
push eax
push 0x1005
push edi
push dword [ebx + 0x18]
call esi
cmp eax, 0xffffffff
jne 0x434bd5
mov ecx, ebx
call fcn.00434a34
xor al, al
jmp 0x434bd7
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0xffffffff
jne 0x434bea
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push 0x10
lea edx, [esi + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [ecx], eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
ret 8

Function at 0x434e5f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4e3a00], 0
jne 0x434e9b
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x434e7f
shr eax, 1
xor eax, 0xedb88320
jmp 0x434e81
shr eax, 1
dec edx
jne 0x434e72
mov dword [ecx*4 + 0x4e3a08], eax
inc ecx
cmp ecx, 0x100
jl 0x434e6d
mov byte [0x4e3a00], 1
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x434ec8
mov ecx, dword [ebp + 8]
movzx ecx, byte [eax + ecx]
xor ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4e3a08]
inc eax
cmp eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
jl 0x434ea2
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x436b43
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
cmp dword [esp + 0x14], 1
push edi
mov esi, ecx
jne 0x436b53
push 4
pop eax
lea edi, [esi + 4]
push edi
push eax
push dword [esp + 0x1c]
mov byte [esi + 8], 0
push dword [esp + 0x18]
push dword [esp + 0x20]
push 0
call fcn.0048e5a4
add esp, 0x18
test eax, eax
mov dword [esi], eax
je 0x436b86
push dword [edi]
push esi
call fcn.00436afa
pop ecx
pop ecx
mov al, 1
jmp 0x436b88
xor al, al
pop edi
pop esi
ret 0x10
Function at 0x437970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ab38e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4dfb64]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi], vtable.CurlHttpDownLoad.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov edx, 0xf
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x10], al
mov word [esi + 0x28], ax
mov dword [esi + 0x44], edx
mov dword [esi + 0x40], eax
mov byte [esi + 0x30], al
lea ecx, [esi + 0x54]
mov byte [esi + 0x48], al
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
push eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], eax
push pe_nt_image_headers32
mov byte [esp + 0x1c], 2
mov byte [ecx + 4], al
call fcn.00424aa0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4383a0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
mov edx, dword [esp + 0x130]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x138]
sub edi, dword [esp + 0x134]
mov ebx, ecx
mov ecx, dword [esp + 0x13c]
xor ebp, ebp
cmp dword [ebx + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x4383f9
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
cmp edi, ebp
mov dword [esp + 0x14], ebp
jle 0x43849d
cmp byte [ebx + 0x10], 0
jne 0x4384df
mov ecx, dword [0x4e5d4c]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
lea edx, [esp + 0x18]
push edx
lea esi, [eax + 8]
mov eax, dword [esp + 0x14]
push 0x1000
push esi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4384ee
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43850b
mov ecx, dword [esp + 0x20]
push ecx
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test al, al
je 0x43854a
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], eax
add ebp, 1
sub edi, eax
cmp ebp, 4
jne 0x438495
cmp dword [ebx + 0xc], 0
je 0x438493
mov eax, dword [esp + 0x138]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call edx
xor ebp, ebp
test edi, edi
jg 0x438405
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebx + 0xc], 0
je 0x4384c2
mov ebx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x138]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push ecx
mov ecx, ebx
call edx
mov al, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048b5ab
add esp, 0x11c
ret 0x14
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x4384c4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0x4b4d8c
mov ecx, ebx
call fcn.00438290
xor al, al
jmp 0x4384c4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x138]
mov ecx, eax
sub ecx, edi
push ecx
push eax
lea edx, [esp + 0x2c]
push 0x4b4d40
push edx
call fcn.0048c2a5
add esp, 0x10
push 0
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00438290
xor al, al
jmp 0x4384c4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0x4b4d30
mov ecx, ebx
call fcn.00438290
xor al, al
jmp 0x4384c4
Function at 0x4398b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ab348
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dfb64]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
xor ebp, ebp
cmp esi, ebp
mov ebx, ecx
jne 0x4398ff
push ebp
push ebp
push ebp
push 2
call fcn.0043b600
xor al, al
jmp 0x439a6d
call fcn.00438a50
push 2
or eax, 0xffffffff
push ebp
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.004910ad
push esi
call fcn.004912ca
push ebp
push ebp
push esi
mov edi, eax
call fcn.004910ad
add esp, 0x1c
cmp edi, ebp
jg 0x439940
push ebp
push ebp
push ebp
push 0xd
mov ecx, ebx
call fcn.0043b600
xor al, al
jmp 0x439a6d
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00439530
lea eax, [edi + 1]
push eax
call fcn.00466578
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.00490e2a
add esp, 0x14
cmp eax, 1
je 0x4399b3
push ebp
call fcn.00466573
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.0043b600
cmp dword [esp + 0x2c], 0x10
jb 0x4399ac
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00466573
add esp, 4
xor al, al
jmp 0x439a6d
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x439a1b
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4399e1
mov edx, esi
sub edx, eax
add edx, 1
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004065ae
add esi, 1
mov eax, esi
jmp 0x439a16
cmp cl, 0xd
jne 0x439a13
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4399f9
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004065ae
push 0xa
push 1
lea ecx, [esp + 0x1c]
call fcn.0040e98c
cmp byte [esi + 1], 0xa
jne 0x4399da
add esi, 2
mov eax, esi
jmp 0x439a16
add esi, 1
cmp byte [esi], 0
jne 0x4399c1
sub esi, eax
je 0x439a2a
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004065ae
push ebp
call fcn.00466573
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], 0x10
jae 0x439a42
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push ecx
push 0
push eax
mov ecx, ebx
call edx
cmp byte [ebx + 0x44], 0
lea ecx, [esp + 0x14]
je 0x439a66
call fcn.00406e78
xor al, al
jmp 0x439a6d
call fcn.00406e78
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048b5ab
add esp, 0x2c
ret 8
Function at 0x439bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ab53e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4dfb64]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x28], 2
call fcn.00406930
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, edi
call fcn.00406930
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x439c60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ab57e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dfb64]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x28]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x20], 2
mov dword [esp + 0x28], edx
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x439cd2
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.00406e06
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x439cf0
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00406e06
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x447cd0
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.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x447d02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x447e50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x447e6b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x447e9f
cmp eax, 2
jg 0x447e9f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4b67a8]
push 2
push edx
call fcn.00490fa4
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00490fa4
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x44822d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x448204
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0044c400
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00448030
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x858c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x448470
Capabilities:
Set socket configuration

Disassembly:
push ecx
xor eax, eax
cmp dword [edi + 0x408], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4484a8
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.00447fa0
add esp, 0xc
pop ecx
ret
Function at 0x448ac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1a4], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x448bfb
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x448b3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0044c400
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00448030
add esp, 0x18
jmp 0x448c04
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x448b7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0044c400
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00448030
add esp, 0x18
jmp 0x448c04
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00448a80
test eax, eax
jne 0x448bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0044c400
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00448030
add esp, 0x18
jmp 0x448c04
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00448a80
test eax, eax
jne 0x448bfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0044c400
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00448030
add esp, 0x18
jmp 0x448c04
push ebp
call fcn.00448a20
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048b5ab
add esp, 0x10c
ret

Function at 0x448c20
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x448c63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0044c400
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00447fa0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00447fa0
add esp, 8
pop esi
pop ecx
ret

Function at 0x448c80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x448cc9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x448ce1
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x4496c0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x449764
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x449735
cmp word [ecx + 0xa], 4
jne 0x449735
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x449735
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.00449650
test eax, eax
mov dword [esi], eax
je 0x449758
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x449710
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004938b7
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x449774.11001
jmp dword [eax*4 + 0x449798]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x449fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4e3eb0], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x449a20
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x449d10
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004499d0
je 0x44a042
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x4de4ac]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0048b5ab
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44a13f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0049024a
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0049396a
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44a0bd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x44a104
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0049024a
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0049396a
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x44a13b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x44a16f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x44a16f
add edi, 1
cmp edi, 3
jl 0x44a106
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4de4ac], edx
mov dword [0x4de4b4], eax
mov dword [fcn.004499d0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x4de4ac]
xor ecx, esp
mov dword [0x4e3eb0], 1
call fcn.0048b5ab
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x44a13b

Function at 0x44ba10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0048e5a4
add esp, 0x18
test eax, eax
je 0x44ba33
cmp eax, 0xffffffff
jne 0x44ba35
xor eax, eax
ret
Function at 0x452350
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4b66f4
push ecx
call fcn.00447fa0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004514f0
test eax, eax
jne 0x452380
mov eax, esi
jmp fcn.00451980
ret