joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ef0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x408f35
cmp byte [esi + 1], 0
je 0x408f3d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x408f52
cmp byte [esi + 1], 0
je 0x408f44
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x408f5b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x408f0e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x408f5b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x408f6f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040b067
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408f8d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4090a1
jmp 0x408fb0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x408fc1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x408fda
mov ebp, 0x404
cmp byte [esi], 0
je 0x408fff
cmp byte [esi + 1], 0
je 0x4090a1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x409002
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40902a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409024
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x409050
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40903b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0040df50
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4090a1
lea eax, [ebp - 3]
test eax, eax
jl 0x40908c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40907c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40907c
cmp byte [eax + ebx + 2], 5
jne 0x40907c
cmp byte [eax + ebx + 3], 6
je 0x409082
test eax, eax
jge 0x409060
jmp 0x40908c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4090a1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x408fa4
push ebx
call fcn.0040b3fe
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x409a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x409a8e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x409a82
cmp dword [edi + 0x7c], ebx
je 0x409a9d
call fcn.00409e60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004097e0
add esp, 0xc
test eax, eax
je 0x409ac4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0040b067
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409b05
push 0x4000
call fcn.0040b067
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x409b12
push esi
call fcn.0040b3fe
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x409b5a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408890
test eax, eax
jne 0x409b5a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x409b84
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x409b8d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x409bc7
mov cl, byte [ebp]
cmp cl, bl
je 0x409bc7
call fcn.00408580
add ebp, 1
jne 0x409bb6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x409f60
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [edi], 0
push esi
jne 0x409ffe
cmp dword [edi + 4], 0xffffffff
jne 0x409ffe
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409f90
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409fc6
cmp ax, 0x2f
je 0x409fc6
push 0x462154
push 0x104
push esi
call fcn.0040bfe9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
call fcn.00408ce0
add esp, 4
test eax, eax
jne 0x409fe4
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 4
call fcn.004090c0
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
pop ecx
ret 4
mov eax, 0x1000000
pop esi
pop ecx
ret 4

Function at 0x40a620
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x428]
test ebx, ebx
je 0x40a660
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x40a660
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [esi]
test ax, ax
je 0x40a70f
mov ecx, esi
mov edx, esi
movzx eax, ax
cmp ax, 0x2f
je 0x40a67f
cmp ax, 0x5c
jne 0x40a681
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x40a673
cmp ecx, esi
je 0x40a6c5
sub ecx, esi
sar ecx, 1
push edi
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push esi
push eax
call fcn.0040df50
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push ebx
mov word [esp + edi + 0x22c], cx
call fcn.0040a620
add esp, 0x14
pop edi
xor eax, eax
mov word [esp + 0xc], ax
test ebx, ebx
je 0x40a6e3
push ebx
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040c066
add esp, 0xc
push esi
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040bfe9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x40a70f
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b009
add esp, 0x414
ret
Function at 0x40b009
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x468060]
jne 0x40b013
repz ret
jmp fcn.0040cbc6

Function at 0x414aac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f19f
and dword [ebp - 4], 0
cmp dword [0x46d6b0], 0
mov ebx, eax
jne 0x414b5d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414c0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414c0e
push eax
call fcn.0040f12d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46d6b0], eax
call esi
push eax
call fcn.0040f12d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46d6b4], eax
call esi
push eax
call fcn.0040f12d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46d6b8], eax
call esi
push eax
call fcn.0040f12d
pop ecx
mov dword [0x46d6c0], eax
test eax, eax
je 0x414b5d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f12d
pop ecx
mov dword [0x46d6bc], eax
mov eax, dword [0x46d6bc]
cmp eax, ebx
je 0x414bb5
cmp dword [0x46d6c0], ebx
je 0x414bb5
push eax
call fcn.0040f1a8
push dword [0x46d6c0]
mov esi, eax
call fcn.0040f1a8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414bb5
test edi, edi
je 0x414bb5
call esi
test eax, eax
je 0x414bac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414bac
test byte [ebp - 0xc], 1
jne 0x414bb5
or dword [ebp + 0x10], 0x200000
jmp 0x414bee
mov eax, dword [0x46d6b4]
cmp eax, ebx
je 0x414bee
push eax
call fcn.0040f1a8
pop ecx
test eax, eax
je 0x414bee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414bee
mov eax, dword [0x46d6b8]
cmp eax, ebx
je 0x414bee
push eax
call fcn.0040f1a8
pop ecx
test eax, eax
je 0x414bee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46d6b0]
call fcn.0040f1a8
pop ecx
test eax, eax
je 0x414c0e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414c10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419270
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4192c2
mov eax, dword [esp]
cmp al, 2
jne 0x4192bc
shr eax, 8
cmp al, 2
jne 0x4192bc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040b009
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0040b009
add esp, 0x194
ret
Function at 0x4235d0
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 0x423602
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 0x423740
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x42375b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x42378f
cmp eax, 2
jg 0x42378f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x458940]
push 2
push edx
call fcn.0044938a
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.0044938a
add esp, 0x20
xor eax, eax
ret

Function at 0x423aa0
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 + 0x154]
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
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x423b1d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x423af4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00428950
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00423920
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8614], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425360
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x470], 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.WS2_32.dll_setsockopt]
test eax, eax
jge 0x42539e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00423890
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [esp + 0xc], 1
call fcn.0043bfe0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.0043bfe0
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 0x425417
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00423890
add esp, 0x10
add esp, 0x14
ret
Function at 0x425a10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x425b85
cmp dword [ebp + 0x1d8], 0
push ebx
push esi
jne 0x425b7a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x425a9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00428950
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00423920
add esp, 0x18
jmp 0x425b83
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040c3b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x425ae9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00428950
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00423920
add esp, 0x18
jmp 0x425b83
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.004259d0
test eax, eax
jne 0x425b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00428950
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00423920
add esp, 0x18
jmp 0x425b83
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.004259d0
test eax, eax
jne 0x425b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00428950
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00423920
add esp, 0x18
jmp 0x425b83
push ebp
call fcn.00425970
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.0040b009
add esp, 0x10c
ret

Function at 0x425ba0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
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 0x425be3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00428950
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00423890
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00423890
add esp, 8
pop esi
pop ecx
ret
Function at 0x425c00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x46d804]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x425cc4
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040c3b0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x425cb8
mov dword [0x46d804], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0040b009
add esp, 0xac
ret
mov dword [0x46d804], 1
jmp 0x425cc9
cmp eax, 2
je 0x425d11
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x425cf9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x425d11
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.0040b009
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x425da9
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x425d6f
cmp dword [edi + 0x40], eax
je 0x425da9
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x425d82
mov eax, dword [edi + 0x40]
push 0x425d30
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.004418e0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x425db2
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x425dbc
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x425da9
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x425da9
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x426760
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x426911
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4268ef
push esi
jmp 0x4267b0
cmp dword [edi + 4], 2
jne 0x426868
cmp dword [edi + 0x18], ebx
je 0x426868
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x426868
cmp eax, 0x10
jb 0x426868
push 0x20
call dword [0x468f78]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x426875
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x468f78]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x42687f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x426855
push eax
call dword [0x468f84]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x426893
cmp dword [esp + 0x10], ebx
jne 0x42685f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x426866
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4267b0
jmp 0x4268af
mov dword [esp + 0x14], 8
jmp 0x4268af
push esi
mov dword [esp + 0x18], 8
call dword [0x468f7c]
add esp, 4
jmp 0x4268af
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x468f7c]
push esi
call dword [0x468f7c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4268bf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x4268e9
mov eax, dword [esp + 0xc]
push eax
call fcn.00426720
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x426902
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x427f30
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.00449e4c
add esp, 0x18
test eax, eax
je 0x427f53
cmp eax, 0xffffffff
jne 0x427f55
xor eax, eax
ret
Function at 0x430180
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x458b54
push ecx
call fcn.00423890
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0042f340
test eax, eax
jne 0x4301b0
mov eax, esi
jmp fcn.0042f7d0
ret