joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426820
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x426875
mov eax, dword [esp]
cmp al, 2
jne 0x42686f
shr eax, 8
cmp al, 2
jne 0x42686f
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00488f53
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.00488f53
mov esp, ebp
pop ebp
ret
Function at 0x426a80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
cmp edi, esi
jne 0x426aa7
lea eax, [esi + 0x2b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], esi
je 0x426ac7
push str.easy_handled_already_used_in_multi_handle
mov eax, edi
call fcn.00433ce0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x426ad4
mov dword [esp + 0x10], eax
jmp 0x426af7
push 3
push 1
call fcn.0042fed0
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x426af4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x41c]
mov ebx, dword [esp + 0x10]
push eax
push 6
push ebx
call sym.SGWPNote.exe_curl_multi_setopt
add esp, 0xc
push edi
push ebx
call sym.SGWPNote.exe_curl_multi_add_handle
mov esi, eax
add esp, 8
test esi, esi
je 0x426b3c
push ebx
call sym.SGWPNote.exe_curl_multi_cleanup
mov eax, esi
sub eax, 3
add esp, 4
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], ebx
jmp 0x426b44
mov edi, dword [ebp + 8]
test esi, esi
jne 0x426c68
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
mov edx, edi
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
lea eax, [esp + 0x1c]
push eax
push 0x3e8
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call sym.SGWPNote.exe_curl_multi_wait
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x426b41
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x426c5d
test eax, eax
jne 0x426c0c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov ecx, edx
shr ecx, 6
mov edx, ecx
imul edx, edx, 0x3e8
sub esi, edx
imul esi, esi, 0x3e8
sub esi, ebx
mov eax, 0x10624dd3
imul esi
sub ecx, edi
imul ecx, ecx, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
cmp eax, 0xa
jg 0x426c0c
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jle 0x426c14
imul eax, eax, 0x32
cmp eax, 0x3e8
jle 0x426c05
mov eax, 0x3e8
call fcn.00433530
jmp 0x426c14
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call sym.SGWPNote.exe_curl_multi_perform
mov esi, eax
add esp, 8
test esi, esi
jne 0x426b41
cmp dword [esp + 0x20], eax
jne 0x426b41
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
call sym.SGWPNote.exe_curl_multi_info_read
add esp, 8
test eax, eax
je 0x426b41
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
jmp 0x426c65
mov dword [esp + 0x18], 0x38
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push edi
push eax
call sym.SGWPNote.exe_curl_multi_remove_handle
mov eax, dword [esp + 0x20]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x201c
call fcn.004a3910
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0x2018], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
push 0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.004280e0
add esp, 0xc
test eax, eax
jne 0x427eb7
mov esi, dword [esp + 0xc]
mov ebx, esi
mov dword [esp + 0x18], esi
test esi, esi
je 0x427eb5
jmp 0x427da7
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
cmp eax, 3
je 0x427df6
cmp eax, 2
je 0x427df6
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [esp + 0x20]
add esp, 0xc
cmp dword [ebx + 0xc], eax
je 0x427e7c
lea ecx, [esp + 0xc]
push ecx
call fcn.00427d00
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00488f53
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [ebx + 4], 2
jne 0x427e02
xor edi, edi
jmp 0x427e5a
test esi, esi
jne 0x427e21
mov eax, dword [ebx + 8]
push 0x4b9468
push eax
call fcn.0048f922
mov esi, eax
add esp, 8
test esi, esi
je 0x427ed9
push esi
push 0x2000
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.0048adde
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x427e4d
test esi, esi
je 0x427e4b
push esi
call fcn.0048dfbb
add esp, 4
xor esi, esi
mov ebx, dword [ebx]
cmp edi, 0xffffffff
je 0x427ecc
cmp edi, 0x2000
ja 0x427ecc
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x24]
push edx
push eax
call dword [esp + 0x20]
add esp, 0xc
cmp edi, eax
jne 0x427ecc
test edi, edi
jne 0x427df8
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x427da3
test esi, esi
je 0x427eb5
mov edi, edi
cmp dword [esi + 4], 1
mov edi, dword [esi]
jg 0x427ea5
mov eax, dword [esi + 8]
push eax
call dword [0x4c9970]
add esp, 4
push esi
call dword [0x4c9970]
add esp, 4
mov esi, edi
test edi, edi
jne 0x427e90
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00488f53
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x427ed9
push esi
call fcn.0048dfbb
add esp, 4
lea edx, [esp + 0xc]
push edx
call fcn.00427d00
mov ecx, dword [esp + 0x2028]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00488f53
mov esp, ebp
pop ebp
ret
Function at 0x428770
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x428792
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x428786
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4287c2
cmp dword [esi + 8], 0
jne 0x4287b5
mov ecx, dword [eax + 8]
push 0x4b9468
push ecx
call fcn.0048f922
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4287b5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0048adde
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4287e4
mov eax, dword [esi + 8]
test eax, eax
je 0x4287de
push eax
call fcn.0048dfbb
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret

Function at 0x42b2f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
push ebp
push esi
push edi
xor edi, edi
mov eax, 1
cmp ebx, 0xffffffff
je 0x42b3b7
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x124], ebx
mov dword [esp + 0x120], eax
mov dword [esp + 0x228], edi
lea esi, [ebx + 1]
nop
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call ebp
cmp eax, 0xffffffff
jne 0x42b382
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, edi
je 0x42b330
cmp dword [0x4cbda8], edi
jne 0x42b373
cmp eax, 0x2714
je 0x42b330
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x328
ret
cmp eax, edi
jl 0x42b373
je 0x42b3b7
lea ecx, [esp + 0x18]
push ecx
push ebx
xor esi, esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42b39e
mov esi, 1
lea edx, [esp + 0x120]
push edx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42b3b3
or esi, 4
cmp esi, edi
jne 0x42b373
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x328
ret
Function at 0x42eb30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x410], 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 0x42eb6f
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov ecx, esi
call fcn.00433c20
add esp, 8
add esp, 0x14
ret
mov eax, dword [esi + 0x418]
mov edx, dword [esi + 0x414]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 0
and edx, 0x7fffffff
push 0
imul edx, edx, 0x3e8
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x98000004
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42ebe1
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
mov ecx, esi
call fcn.00433c20
add esp, 0xc
add esp, 0x14
ret

Function at 0x42ece0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
push ebx
push ebp
xor ebp, ebp
push esi
cmp edi, 0xffffffff
je 0x42edc5
mov ecx, 1
or eax, 0xffffffff
mov dword [esp + 0x228], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ecx
cmp edi, 0xffffffff
jbe 0x42ed20
mov eax, edi
mov ebx, dword [sym.imp.WS2_32.dll_select]
lea esi, [eax + 1]
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x234]
push eax
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call ebx
cmp eax, 0xffffffff
jne 0x42ed80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebp
je 0x42ed30
cmp dword [0x4cbda8], ebp
jne 0x42edb8
cmp eax, 0x2714
je 0x42ed30
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
cmp eax, ebp
jl 0x42edb8
je 0x42edc5
lea ecx, [esp + 0x18]
push ecx
push edi
xor esi, esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42ed9c
mov esi, 2
lea edx, [esp + 0x120]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42edb1
or esi, 4
mov eax, esi
cmp esi, 0xffffffff
jne 0x42edc7
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
xor eax, eax
test al, 4
je 0x42edda
mov eax, 2
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
xor ecx, ecx
cmp eax, ebp
sete cl
pop esi
pop ebp
pop ebx
mov eax, ecx
add esp, 0x328
ret
Function at 0x42f2c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x110
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
cmp dword [ebp + 0x1a8], 0
push esi
mov esi, dword [ebp]
push edi
mov edi, ecx
jne 0x42f3f9
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42f336
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push ebp
call fcn.00452ce0
add esp, 4
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
mov eax, esi
call fcn.00433ce0
add esp, 0xc
jmp 0x42f447
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x9c]
push eax
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42f379
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push ebp
call fcn.00452ce0
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
mov eax, esi
call fcn.00433ce0
add esp, 0xc
jmp 0x42f447
lea ebx, [ebp + 0xcc]
lea eax, [ebp + 0x9e]
lea edi, [esp + 0x18]
call fcn.0042f270
test eax, eax
jne 0x42f3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call fcn.00452ce0
add esp, 4
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
mov eax, esi
call fcn.00433ce0
add esp, 0xc
jmp 0x42f447
lea ebx, [ebp + 0x100]
lea eax, [ebp + 0xd0]
lea edi, [esp + 0x98]
call fcn.0042f270
test eax, eax
jne 0x42f3f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call fcn.00452ce0
add esp, 4
push eax
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
mov eax, esi
call fcn.00433ce0
add esp, 0xc
jmp 0x42f447
mov edi, dword [ebp]
add edi, 0x86dc
lea esi, [ebp + 0x9e]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp]
add edi, 0x8710
lea esi, [ebp + 0xd0]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp]
mov edx, dword [ebp + 0xcc]
mov dword [ecx + 0x870c], edx
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x100]
mov dword [eax + 0x8740], ecx
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00488f53
add esp, 0x110
ret
Function at 0x42f460
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
cmp dword [ebx + eax*4 + 0x1c8], 0
mov ecx, dword [ebx + eax*4 + 0x134]
push ebp
push esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [ecx], 0
je 0x42f4a6
mov dword [ecx], 1
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov ebp, ecx
mov eax, 1
lea edx, [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
call fcn.0042ebf0
mov dword [esp + 0x18], eax
test eax, eax
jge 0x42f507
push str.Connection_time_out
mov eax, edi
call fcn.00433ce0
add esp, 4
mov eax, 0x1c
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov edi, dword [esp + 0x14]
call fcn.0042ece0
cmp eax, 1
jne 0x42f563
mov eax, dword [ebx + 0x20c]
mov edi, dword [ebx + 0x208]
mov ecx, dword [ebx + 0x214]
sub ebp, eax
mov eax, 0x10624dd3
imul ebp
sub esi, edi
imul esi, esi, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, esi
cmp eax, ecx
jl 0x42f49d
push ecx
mov ecx, dword [esp + 0x10]
push str.After__ldms_connect_time__move_on__n
call fcn.00433c20
add esp, 8
jmp 0x42f632
test eax, eax
jne 0x42f5d1
push edi
lea esi, [esp + 0x14]
call fcn.0042f130
add esp, 4
test eax, eax
je 0x42f619
mov eax, ebx
call fcn.0042be50
test eax, eax
jne 0x42f69e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + eax*4 + 0x1c8], 1
mov dword [ecx], 1
test eax, eax
jne 0x42f5b6
mov esi, dword [esp + 0xc]
push 2
call fcn.00439aa0
add esp, 4
mov eax, ebx
call fcn.0042bf90
push ebx
mov ecx, edi
call fcn.0042f2c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
cmp eax, 2
jne 0x42f606
mov edx, edi
push edx
lea esi, [esp + 0x14]
call fcn.0042f130
mov edi, dword [esp + 0x14]
add esp, 4
push ebx
call fcn.00452ce0
mov ecx, dword [esp + 0x10]
add esp, 4
push eax
push 0x4baaa4
call fcn.00433c20
add esp, 8
jmp 0x42f61d
mov ecx, dword [esp + 0xc]
push str.Connection_failed_n
call fcn.00433c20
add esp, 4
jmp 0x42f632
mov edi, dword [esp + 0x10]
test edi, edi
je 0x42f632
mov eax, dword [esp + 0xc]
push edi
mov dword [eax + 0x8594], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebx + 0x3c]
cmp dword [ecx + 0x1c], 0
mov eax, dword [esp + 0x18]
je 0x42f644
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x214], eax
mov eax, dword [esp + 0x28]
push edx
mov edi, ebx
call fcn.0042f1a0
mov esi, eax
add esp, 4
test esi, esi
je 0x42f69c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [esp + 0xc]
push ebx
mov edi, eax
mov dword [ebp + 0x8594], eax
call fcn.00452ce0
mov ecx, dword [ebx + 0x80]
add esp, 4
push eax
mov eax, dword [ebx + 0x98]
push eax
push ecx
push str.Failed_connect_to__s:_ld___s
mov eax, ebp
call fcn.00433ce0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x42f6b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 4
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 1
push 6
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x42f6fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov ecx, esi
call fcn.00433c20
add esp, 8
pop edi
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
mov ecx, esi
call fcn.00433c20
add esp, 4
pop edi
pop esi
pop ecx
ret

Function at 0x42f710
Capabilities:
Check os version
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [0x4cbd9c], 0
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
jne 0x42f79f
push 0x94
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0048aa40
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
mov dword [0x4cbd9c], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42f79f
cmp dword [esp + 0x10], 6
jb 0x42f79f
mov dword [0x4cbd9c], 2
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00488f53
add esp, 0xa4
ret
cmp dword [0x4cbd9c], 2
je 0x42f7e8
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x42f7d0
mov ecx, dword [esp + 4]
cmp ecx, dword [esp]
jg 0x42f7e8
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00488f53
add esp, 0xa4
ret
Function at 0x42fc70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [ebx + 0x558]
push edi
test esi, esi
je 0x42fcaf
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x42fcaf
mov eax, dword [eax + 0x64]
lea edi, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
call fcn.0043ba70
cmp dword [esp + 0x14], 0
jne 0x42fcb8
mov dword [ebx + 0x558], 0
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42fcc2
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x42fcaf
push 2
push 1
lea eax, [esp + 0x17]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x42fcaf
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4330b0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x44
push 1
mov esi, eax
mov edi, ecx
call dword [0x4c997c]
mov ebx, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 8
mov dword [edi + 0x3b8], ebx
cmp ebx, eax
je 0x433179
mov dword [edi + 0x3a8], esi
mov dword [edi + 0x3b0], eax
mov dword [edi + 0x3b4], eax
mov dword [edi + 0x3ac], eax
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
push esi
lea ebp, [ebx + 0xc]
push eax
mov esi, ebp
call fcn.00432e80
add esp, 8
test eax, eax
je 0x433179
mov eax, dword [edi + 0x3a4]
test eax, eax
je 0x43312f
push eax
call dword [0x4c9970]
add esp, 4
mov dword [edi + 0x3a4], 0
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4c9978]
add esp, 4
mov dword [edi + 0x3a4], eax
test eax, eax
je 0x433179
push 0
push 0
push ebp
push 0x432f70
push 0
push 0
call fcn.0048a3f7
add esp, 0x18
test eax, eax
je 0x433166
cmp eax, 0xffffffff
jne 0x433168
xor eax, eax
mov dword [ebx], eax
test eax, eax
jne 0x433197
call fcn.0048f133
mov edx, dword [eax]
mov dword [esp + 0x10], edx
add edi, 0x3a4
call fcn.00433010
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x433f10
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 ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x433f90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x433f66
xor eax, eax
mov dword [ebp], 0x51
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00452ce0
add esp, 4
push eax
mov eax, dword [esi]
push str.Send_failure:__s
call fcn.00433ce0
mov eax, dword [esi]
mov dword [eax + 0x8594], edi
add esp, 8
mov dword [ebp], 0x37
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x434330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa8
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0xa4], eax
cmp dword [esi + 0x298], 0
mov eax, dword [esp + 0xb4]
push ebp
mov ebp, dword [esp + 0xb0]
push edi
je case.default.0x434380
test eax, eax
je case.default.0x434380
mov eax, dword [eax + 0x84]
test eax, eax
je case.default.0x434380
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x434380
jmp dword [edx*4 + 0x4344ac]
mov ecx, str.Header
mov edx, str.from
jmp 0x43439d
mov ecx, str.Header
mov edx, 0x4bae50
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x18]
push 0xa0
push eax
call sym.SGWPNote.exe_curl_msnprintf
lea eax, [esp + 0x20]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4343c0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x43442a
mov ecx, dword [esi + 0xf4]
push ecx
push edi
lea edx, [esp + 0x10]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x434495
mov eax, dword [esi + 0x164]
test eax, eax
je 0x434458
mov ecx, dword [esi + 0xf4]
mov edx, dword [esp + 0xb8]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
pop edi
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00488f53
add esp, 0xa8
ret
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x4b436c
call fcn.0048ef93
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0048ef93
add esp, 0x20
jmp case.default.0x434380
test ebx, ebx
jl 0x434493
cmp ebx, 2
jg 0x434493
mov eax, dword [esi + 0xf0]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x4b436c]
push 2
push ecx
call fcn.0048ef93
mov edx, dword [esi + 0xf0]
mov eax, dword [esp + 0xc8]
push edx
push 1
push eax
push ebp
call fcn.0048ef93
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop ebp
xor ecx, esp
call fcn.00488f53
add esp, 0xa8
ret
Function at 0x439aa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [esp + 4]
imul ecx, ecx, 0x3e8
dec eax
cmp eax, 8
ja case.0x439ad0.6
jmp dword [eax*4 + 0x439bb0]
mov dword [esi + 0x4d0], edx
mov dword [esi + 0x4d4], ecx
ret
call fcn.004344c0
mov dword [esi + 0x4d8], eax
mov dword [esi + 0x4dc], edx
ret
mov eax, dword [esi + 0x4d4]
push eax
mov eax, dword [esi + 0x4d0]
push eax
push ecx
push edx
call fcn.00434520
fstp qword [esi + 0x498]
add esp, 0x10
ret
mov eax, dword [esi + 0x4d4]
push eax
mov eax, dword [esi + 0x4d0]
push eax
push ecx
push edx
call fcn.00434520
fstp qword [esi + 0x4a0]
add esp, 0x10
ret
mov eax, dword [esi + 0x4d4]
push eax
mov eax, dword [esi + 0x4d0]
push eax
push ecx
push edx
call fcn.00434520
fstp qword [esi + 0x4a8]
add esp, 0x10
ret
mov eax, dword [esi + 0x4d4]
push eax
mov eax, dword [esi + 0x4d0]
push eax
push ecx
push edx
call fcn.00434520
fstp qword [esi + 0x4b0]
add esp, 0x10
ret
mov eax, dword [esi + 0x4d4]
push eax
mov eax, dword [esi + 0x4d0]
push eax
push ecx
push edx
call fcn.00434520
fstp qword [esi + 0x4b8]
add esp, 0x10
ret
mov eax, dword [esi + 0x4cc]
push eax
mov eax, dword [esi + 0x4c8]
push eax
push ecx
push edx
call fcn.00434520
fstp qword [esi + 0x4c0]
add esp, 0x10
ret
Function at 0x43d490
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4baaa4
call fcn.00433c20
add esp, 8
mov eax, esi
mov dword [esi], 1
call fcn.0043d000
test eax, eax
jne 0x43d4bf
mov eax, esi
jmp fcn.0043d8a0
ret