joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421cd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x42914c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], eax
cmp dword [ebp + 0xc], esi
jle 0x421dab
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp + 0xc], 0x2d
jne 0x421d38
push 0
push str.wilebamigehuteyebayo_mumajuzokirigulonusu_zuhokinuligoloy_visusanedefubiluyikipukewafeju_seroz
call edi
push str.rowozemunuloc_jin
push str.cimuzenaherepixekojicodofunibug
push str.netigeyonakozodosunobe_tonocekacawuruzowajuxipunud_votocorumuxehis
push str.vevonaluvodupamajicepeloponebe_wixereyobetiliverofeyayutoru_jetob_tufuhavojofefegodatuwud_sadusarilatedabuyoyumulipib
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
call fcn.00421c20
mov ecx, dword [esp + 0xc]
xor byte [ecx + esi], al
cmp dword [ebp + 0xc], 0xf
jne 0x421da1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor eax, eax
push eax
lea edx, [esp + 0x24]
push edx
push 0x426f98
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
xor ecx, ecx
lea eax, [esp + 0x1c]
push eax
push ecx
push ecx
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0x426f9c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x421d0b
cmp dword [ebp + 0xc], 0x2d
jne 0x421dc5
mov dword [0x42c8d0], 0xa62e7790
mov dword [0x42c8d4], 0xffffffff
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a72
mov esp, ebp
pop ebp
ret
Function at 0x4221b0
Capabilities:
Access the windows event log
Manipulate console buffer
Set file attributes

Disassembly:
sub esp, 0x14
mov eax, dword [0x42c8c4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push esi
mov dword [esp + 0x10], 0x1540b5
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xcc1
jne 0x4221ea
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov eax, dword [0x42c8c4]
mov dword [0x42c52c], 0x8e468c60
cmp eax, 0x3dc
jne 0x422249
push 0
push str.dafesatalosolovatuboboyuhiseheyu
call ebx
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
call ebp
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push 0
push 0
push edi
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AccessCheckByTypeResultList]
push str.fudagugoholixihufeloko
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
mov eax, dword [0x42c8c4]
dec dword [esp + 0x14]
jne 0x4221d8
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
xor esi, esi
mov ebp, 0xec58acac
or ebx, 0xffffffff
nop
cmp eax, 0x997
jne 0x422272
push 0
push 0
call edi
mov eax, dword [0x42c8c4]
cmp esi, 0x846373
jne 0x422289
mov eax, dword [0x42aad0]
add eax, 0xa231
mov dword [0x42c8c4], eax
cmp eax, 0x141
jne 0x42229c
mov dword [0x42bd18], ebp
mov dword [0x42bd1c], ebx
inc esi
cmp esi, 0x123c962
jl 0x422260
call fcn.00421e20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0xc40e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.odyqx
lea edi, [esi - 0x838000]
push edi
jmp 0xc40e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc40e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc40e60
mov eax, 1
add ebx, ebx
jne 0xc40e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc40e78
jne 0xc40e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc40e78
xor ecx, ecx
sub eax, 3
jb 0xc40ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc40f1a
mov ebp, eax
add ebx, ebx
jne 0xc40eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xc40ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xc40ee4
inc ecx
add ebx, ebx
jne 0xc40ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc40ec5
jne 0xc40ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc40ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc40f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc40ef5
jmp 0xc40e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc40f04
add edi, ecx
jmp 0xc40e66
pop esi
mov edi, esi
mov ecx, 0x2bd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc40f22
cmp byte [edi], 6
jne 0xc40f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xc40f27
lea edi, [esi + 0x83e000]
mov eax, dword [edi]
or eax, eax
je 0xc40f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x846ba8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x846c88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc40f54
mov ecx, edi
jns 0xc40f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x846c90]
or eax, eax
je 0xc40f99
mov dword [ebx], eax
add ebx, 4
jmp 0xc40f71
call dword [esi + 0x846c8c]
mov ebp, dword [esi + 0x846c94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xc40fd3
sub esp, 0xffffff80
jmp 0x4039e3
Function at 0x91457c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x914586
pushal
call 0x91458c
pop ebp
sub ebp, 0x10
sub ebp, 0x51457c
jmp 0x9145a2
mov eax, 0x51457c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e1
mov edx, 0xbc97f467
xor byte [eax], dl
inc eax
dec ecx
jne 0x9145b9
jmp 0x9145cc
in al, dx
stosb byte es:[edi], al
in al, dx
out dx, al
pop ebx
out 0xa6, al
lahf
stosb byte es:[di], al
fbld tbyte [ecx + 0x67]
fisttp qword [bx + 0x67]
nop
test dword [edi + ebp*4 - 0x14], esp
out 0x6b, al
mov byte fs:[0x3737], al
bts eax, ecx
imul esp, dword [edi + 0xf], 0x6725f2ca
dec bx
inc ebx
invalid
Function at 0x40894d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
sub edx, 0x5396f42f
add edi, 0xbd3b16a6
call fcn.00408981
add edx, edx
sub edx, 0xf5a0fbdc
xor dword [esi], eax
sub edi, 1
or edi, edx
inc esi
and edx, edi
cmp esi, ecx
jne fcn.0040894d
and edx, edi
or edi, edi
ret
Function at 0x401c1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00401a2b
test al, al
je 0x401c85
mov eax, dword [ebp + 0xc]
and dword [ebp + 8], 0
cmp dword [eax + 0x14], 8
jb 0x401c3b
mov eax, dword [eax]
push 0x448328
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043203e
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x401c85
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 0x2c]
cmp dword [eax + 0x14], 0x10
jb 0x401c61
mov eax, dword [eax]
push edi
push dword [ebp + 8]
push ecx
push 1
push eax
call fcn.00431f03
push dword [ebp + 8]
mov edi, eax
call fcn.00431d38
add esp, 0x14
cmp edi, dword [esi + 0x3c]
pop edi
jne 0x401c85
mov al, 1
jmp 0x401c87
xor al, al
pop esi
pop ebp
ret 8
Function at 0x4032c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x456130]
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 0x403312
mov eax, dword [esp]
cmp al, 2
jne 0x40330c
shr eax, 8
cmp al, 2
jne 0x40330c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00431acd
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.00431acd
add esp, 0x194
ret
Function at 0x40e630
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 0x40e662
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 0x40e7b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x456130]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2d0], 0
push edi
je case.default.0x40e810
test eax, eax
je case.default.0x40e810
mov eax, dword [eax + 0x84]
test eax, eax
je case.default.0x40e810
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x40e810
jmp dword [edx*4 + 0x40e92c]
mov ecx, str.Header
mov edx, str.from
jmp 0x40e82d
mov ecx, str.Header
mov edx, 0x4495f0
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00410e80
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e850
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x40e8a5
mov ecx, dword [esi + 0x12c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x40e910
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x40e8d3
mov ecx, dword [esi + 0x12c]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x40e910
mov eax, dword [esi + 0x128]
push eax
push 1
push 2
push 0x4495cc
call fcn.00431f03
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00431f03
add esp, 0x20
jmp case.default.0x40e810
test ebx, ebx
js 0x40e90e
cmp ebx, 2
jg 0x40e90e
mov eax, dword [esi + 0x128]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x4495cc]
push 2
push ecx
call fcn.00431f03
mov edx, dword [esi + 0x128]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.00431f03
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431acd
add esp, 0xa4
ret
Function at 0x40e9d0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x456130]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x594]
push 0x4000
push ebx
call fcn.00410e20
mov eax, dword [esi + 0x130]
add esp, 0x10
test eax, eax
je 0x40ea30
cmp dword [esi + 0x85c0], 0
jne 0x40ea30
push ebx
push 0x449374
push 0x100
push eax
call fcn.00410e80
add esp, 0x10
mov dword [esi + 0x85c0], 1
cmp dword [esi + 0x31c], 0
je 0x40eab7
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ea40
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x40ea64
mov byte [esi + edi + 0x594], 0xa
inc edi
mov byte [esi + edi + 0x594], cl
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x40ea8e
mov edx, dword [esi + 0x12c]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.00431acd
pop ecx
ret
mov eax, dword [esi + 0x128]
push eax
push 1
push 2
push 0x4495cc
call fcn.00431f03
mov ecx, dword [esi + 0x128]
push ecx
push 1
push edi
push ebx
call fcn.00431f03
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00431acd
pop ecx
ret
Function at 0x40ead0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x456130]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.004119b0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x40eb2d
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00431acd
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eb30
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x134]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x148]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x40eb96
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x40ec79
cmp eax, 0x51
jne 0x40ec73
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x31c], ecx
je 0x40ec2e
cmp dword [esi + 0x2d0], ecx
je 0x40ec0f
mov eax, dword [ebx + 0x84]
cmp eax, ecx
je 0x40ec0f
push eax
push 0x4495f0
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.00410e80
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ebe1
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x40ec45
mov ecx, dword [esi + 0x12c]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x40ec2e
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x40ec2e
mov ecx, dword [esi + 0x12c]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x40ec81
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x40eb40
mov eax, dword [esi + 0x128]
push eax
push 1
push 2
push 0x4495cc
call fcn.00431f03
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.00431f03
add esp, 0x20
jmp 0x40ec0f
mov dword [esp + 0x14], eax
jmp 0x40ec81
mov dword [esp + 0x14], 0x37
push edi
call dword [0x45605c]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431acd
add esp, 0xb8
ret
Function at 0x40ecb0
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
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x40ed2d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x40ed04
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00412440
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0040e9d0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85c4], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ef70
Capabilities:
Set socket configuration

Disassembly:
push ecx
xor eax, eax
cmp dword [edi + 0x440], 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
jns 0x40efa8
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.0040e940
add esp, 0xc
pop ecx
ret
Function at 0x40f5b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x456130]
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 0x40f6ee
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 0x40f62c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00412440
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0040e9d0
add esp, 0x18
jmp 0x40f73c
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 0x40f66c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00412440
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0040e9d0
add esp, 0x18
jmp 0x40f73c
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0040f570
test eax, eax
jne 0x40f6ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00412440
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0040e9d0
add esp, 0x18
jmp 0x40f73c
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0040f570
test eax, eax
jne 0x40f6ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00412440
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0040e9d0
add esp, 0x18
jmp 0x40f73c
mov edi, dword [ebp]
add edi, 0x8714
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, 0x8748
lea esi, [ebp + 0xd0]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp]
mov ecx, dword [ebp + 0xcc]
mov dword [eax + 0x8744], ecx
mov edx, dword [ebp]
mov eax, dword [ebp + 0x100]
mov dword [edx + 0x8778], eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431acd
add esp, 0x10c
ret

Function at 0x40f760
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
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
jns 0x40f7a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00412440
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0040e940
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0040e940
add esp, 8
pop esi
pop ecx
ret
Function at 0x40f7c0
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 0x40f809
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x40f821
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 0x40f830
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x588]
cmp eax, 0xffffffff
je 0x40f889
mov ecx, dword [ecx + 0x57c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x40f889
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x40f85c
mov dword [ecx], eax
cmp dword [eax + 0x150], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x40f880
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x40f885
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x410250
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 0x410401
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4103df
push esi
jmp 0x4102a0
cmp dword [edi + 4], 2
jne 0x410358
cmp dword [edi + 0x18], ebx
je 0x410358
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x410358
cmp eax, 0x10
jb 0x410358
push 0x20
call dword [0x456058]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x410365
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 [0x456058]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x41036f
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 0x410345
push eax
call dword [0x456064]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x410383
cmp dword [esp + 0x10], ebx
jne 0x41034f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x410356
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4102a0
jmp 0x41039f
mov dword [esp + 0x14], 8
jmp 0x41039f
push esi
mov dword [esp + 0x18], 8
call dword [0x45605c]
add esp, 4
jmp 0x41039f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x45605c]
push esi
call dword [0x45605c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4103af
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x4103d9
mov eax, dword [esp + 0xc]
push eax
call fcn.00410200
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 0x4103f2
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 0x411a60
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.00434e46
add esp, 0x18
test eax, eax
je 0x411a83
cmp eax, 0xffffffff
jne 0x411a85
xor eax, eax
ret
Function at 0x4188c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x449514
push ecx
call fcn.0040e940
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00417ab0
test eax, eax
jne 0x4188f0
mov eax, esi
jmp fcn.00417ed0
ret