joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a71
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004463e0
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x403b2a
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov dword [ebp - 4], esi
mov ebx, 0x1f4
jmp 0x403b02
push str.bubble_pwa_browser
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x403b0c
push str.bubble_pwa_browsetheweb
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x403b0c
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x78
jge 0x403b0c
push ebx
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403ad9
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 0x18], esi
je 0x403b20
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], esi
je 0x403b2a
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x403ba4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
je 0x403bc6
cmp word [ebp - 0x24], 6
je 0x403bc6
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x403bcb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x403bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0x40409a
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
je 0x4040aa
cmp dword [esi + 8], edi
jne 0x4040da
push edi
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x40406c
push edi
push edi
call fcn.00446b1f
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
ret
Function at 0x4054a7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x405562
cmp word [edi], bx
je 0x405562
cmp esi, ebx
je 0x405562
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004463e0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405562
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x405549
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00446cc2
pop ecx
pop ecx
test eax, eax
jne 0x40553c
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.00405318
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40551b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 4]
setne cl
mov eax, ecx
jmp 0x405564
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446098
leave
ret

Function at 0x4057f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x41c], edi
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
mov dword [ebp - 0x418], edi
call fcn.004463e0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x420], 0x208
call fcn.004463e0
push str.SOFTWAREkingsoftPowerWordKuaiSou
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00446d4d
add esp, 0x24
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4058e1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.InstallDir
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4058e1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
jmp 0x4058e6
push 0x4ffa9c
mov ecx, ebx
call fcn.00402567
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00446098
leave
ret
Function at 0x4058fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x214], edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.004463e0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push edi
push str.SOFTWAREkingsoftPowerWordKuaiSou
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059b7
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x4ffb00
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059b7
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
jmp 0x4059bc
push 0x4ffa9c
mov ecx, esi
call fcn.00402567
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00446098
leave
ret
Function at 0x405ad4
Capabilities:
Create process on windows

Disassembly:
push 0x7c
mov eax, 0x4fb6dc
call fcn.00446110
lea eax, [ebp - 0x64]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004057f7
pop ecx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
mov dword [ebp - 0x88], 0x5c
call fcn.0040478c
lea ecx, [ebp - 0x64]
cmp eax, 0xffffffff
jne 0x405b33
push ebx
push 1
call fcn.004017df
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040152e
xor al, al
call fcn.00446193
ret
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
call fcn.00402598
mov edi, eax
mov esi, 0x4ffb4c
push esi
mov byte [ebp - 4], 2
call fcn.00444531
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040537e
mov esi, str.notify.exe
push esi
mov edi, eax
call fcn.00444531
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040537e
push eax
lea ecx, [ebp - 0x2c]
call fcn.004052f0
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.004017df
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00405a54
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
jae 0x405ba7
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00446dea
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x405bda
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004017df
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017df
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004017df
push ebx
push esi
jmp 0x405b23
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x405be6
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405bf2
lea eax, [ebp - 0x2c]
push 4
push ebx
push ecx
push eax
push 0x4ffb28
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x405c41
mov byte [ebp - 0x81], bl
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004017df
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017df
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004017df
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.0040152e
mov al, byte [ebp - 0x81]
jmp 0x405b2d
mov byte [ebp - 0x81], 1
jmp 0x405c0e
Function at 0x406028
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x4fb74a
call fcn.00446110
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4060bf
lea eax, [ebp - 0x258]
push eax
push ebx
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x406095
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x250]
je 0x40609b
lea eax, [ebp - 0x258]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40607d
jmp 0x4060b8
lea eax, [ebp - 0x234]
push eax
call fcn.00444531
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004020ab
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402885
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017df
mov eax, esi
call fcn.00446193
ret
Function at 0x4069de
Capabilities:
Get graphical window text

Disassembly:
push 0x168
mov eax, 0x4fb858
call fcn.00446110
xor ebx, ebx
cmp dword [0x551a58], ebx
jne 0x4069ff
xor al, al
call fcn.00446193
ret
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov esi, 0x4ff5f1
push esi
mov dword [ebp - 4], ebx
call fcn.00445aa0
pop ecx
push eax
mov edi, 0x5476c8
push esi
mov ecx, edi
call fcn.00401dcd
mov ecx, dword [0x551a4c]
call fcn.00401168
mov cl, byte [eax]
add eax, 4
mov byte [ebp - 0x174], cl
push eax
lea ecx, [ebp - 0x170]
call fcn.00406851
mov byte [ebp - 4], 1
cmp byte [ebp - 0x174], bl
jne 0x406a76
lea ecx, [ebp - 0x170]
call fcn.00402a7c
lea ecx, [ebp - 0x160]
call fcn.00402a7c
mov al, bl
jmp 0x4069f9
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x160]
call fcn.004068c1
mov esi, dword [ebp - 0x160]
cmp esi, dword [ebp - 0x15c]
jne 0x406a9a
mov bl, 1
jmp 0x406a5c
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.004463e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [0x551a58]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x14c]
call fcn.004021e8
mov byte [ebp - 0x14d], bl
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov byte [ebp - 4], 3
push str.null
call fcn.00445aa0
pop ecx
push eax
push str.null
push dword [esi + 0x10]
mov ecx, esi
push ebx
call fcn.00401491
test eax, eax
je 0x406b41
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x406b2c
mov eax, dword [esi]
jmp 0x406b2e
mov eax, esi
push ecx
push ebx
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040139f
cmp eax, 0xffffffff
je 0x406b57
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x130]
call fcn.00401a05
mov byte [ebp - 0x14d], 1
add esi, 0x1c
cmp esi, dword [ebp - 0x15c]
jne 0x406aff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x130]
push eax
mov ecx, edi
call fcn.00401a9f
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.0040152e
push ebx
push 1
lea ecx, [ebp - 0x14c]
call fcn.0040152e
mov bl, byte [ebp - 0x14d]
jmp 0x406a5c

Function at 0x407144
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40718d
cmp byte [ebp - 0x194], 2
jne 0x407187
mov eax, dword [ebp - 0x194]
shr eax, 8
cmp al, 2
jne 0x407187
xor eax, eax
jmp 0x407190
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446098
leave
ret
Function at 0x410449
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x410479
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x410589
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4105ab
push dword [esi + 0x134]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x4105e2
cmp eax, 2
jg 0x4105e2
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x500710
push 2
push eax
call fcn.004474c0
push dword [esi + 0x130]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004474c0
add esp, 0x20
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4108b0
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x41088a
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4108af
push ebx
push esi
call fcn.00414bcb
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00410708
mov eax, dword [esi]
mov dword [eax + 0x85f4], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x411e3f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x45c], edi
push 4
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x411e89
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0041069e
add esp, 0xc
jmp 0x411ef4
push dword [esi + 0x460]
mov dword [ebp - 0x10], 1
call fcn.0042bb3f
imul eax, eax, 0x3e8
push dword [esi + 0x464]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0042bb3f
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x411ef4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0041069e
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00446098
leave
ret
Function at 0x412438
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x412595
cmp dword [esi + 0x1f0], 0
push edi
jne 0x41258d
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
mov edi, 0x80
mov dword [ebp - 0x10c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4124b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00414bcb
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4124ee
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4124f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00414bcb
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x41257d
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x104]
call fcn.004123ff
test eax, eax
jne 0x41252c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x108]
call fcn.00414bcb
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x412577
mov esi, dword [ebp - 0x108]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.00443e60
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp - 0x84]
call fcn.004123ff
test eax, eax
jne 0x412587
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x108]
call fcn.00414bcb
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x110]
call fcn.00410708
add esp, 0x18
jmp 0x412594
mov esi, dword [ebp - 0x108]
push esi
call fcn.004123aa
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00446098
leave
ret

Function at 0x4125a3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x35c]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4125e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00414bcb
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041069e
add esp, 0x14
jmp 0x4125f5
push str.TCP_NODELAY_set_n
push esi
call fcn.0041069e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4125f8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
mov dword [ebp - 0x124], 0x4020
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x12c], 4
pop ebx
cmp dword [0x551ab8], edi
jne 0x41268c
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.004463e0
add esp, 0xc
push 3
push ebx
push edi
push edi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x412682
mov dword [0x551ab8], ebx
jmp 0x4126dd
mov dword [0x551ab8], 1
cmp dword [0x551ab8], ebx
je 0x4126dd
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4126c9
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x124]
jg 0x4126dd
push 4
lea eax, [ebp - 0x124]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446098
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5b8]
test esi, esi
je 0x412748
mov eax, dword [edi + 0x44]
test eax, eax
je 0x412748
and dword [ebp - 4], 0
push 0x4126ec
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
push dword [eax + 0x34]
call fcn.0042a1e9
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x41274f
and dword [edi + 0x5b8], 0
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412758
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x412776
push esi
call fcn.0040873c
pop ecx
test eax, eax
je 0x412748
mov eax, edi
jmp 0x41274b
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x41276e
Function at 0x412892
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x547e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xd4], 0
push esi
mov esi, dword [eax]
or dword [edx], 0xffffffff
mov dword [ebp - 0xd8], edx
lea edx, [ebp - 0xc8]
push edx
lea edx, [ebp - 0xc4]
push edx
push ecx
push eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], esi
call fcn.004127d9
add esp, 0x10
test eax, eax
je 0x4128ea
xor eax, eax
jmp 0x412af4
push ebx
push edi
lea edi, [ebp - 0xdc]
lea ebx, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.004123ff
test eax, eax
jne 0x412949
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0xcc]
call fcn.00414bcb
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xd0]
call fcn.00410708
add esp, 0x18
xor esi, esi
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
call fcn.00412787
pop ecx
pop ecx
mov eax, esi
jmp 0x412af2
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push esi
call fcn.0041069e
mov ebx, dword [ebp - 0xcc]
add esp, 0xc
cmp dword [esi + 0x35c], 0
je 0x41297e
push dword [ebp - 0xc8]
mov edi, ebx
call fcn.004125a3
pop ecx
push dword [ebp - 0xc8]
call fcn.004125f8
cmp dword [esi + 0x45c], 0
pop ecx
je 0x4129a4
mov ebx, dword [ebp - 0xc8]
call fcn.00411e3f
mov ebx, dword [ebp - 0xcc]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4129d0
push 0
push dword [ebp - 0xc8]
push dword [esi + 0x1b4]
call eax
add esp, 0xc
cmp eax, 2
jne 0x412a05
mov dword [ebp - 0xd4], 1
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
call fcn.00411faf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x412a11
push dword [ebp - 0xc8]
push ebx
call fcn.00412787
lea eax, [edi - 1]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, edi
jmp 0x412af2
test eax, eax
je 0x4129d0
push 0x2a
pop esi
jmp 0x41292f
push 1
push dword [ebp - 0xc8]
call fcn.0042f2fd
pop ecx
pop ecx
call fcn.00410335
cmp dword [ebx + 0x258], 1
mov dword [ebx + 0x250], eax
mov dword [ebx + 0x254], edx
jle 0x412a48
push dword [ebx + 0x25c]
push esi
call fcn.0040ee56
pop ecx
pop ecx
cmp dword [ebp - 0xd4], 0
jne 0x412ae2
cmp dword [ebx + 0x8c], 1
jne 0x412ae2
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xc8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x412ad0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x412ace
cmp edi, 0x2732
jle 0x412a9d
cmp edi, 0x2734
jle 0x412ace
push edi
push ebx
call fcn.00414bcb
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0041069e
push dword [ebp - 0xc8]
mov dword [esi + 0x85f4], edi
push ebx
call fcn.00412787
add esp, 0x20
push 7
pop edi
jmp 0x412ade
xor edi, edi
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
mov eax, edi
jmp 0x412af2
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00446098
leave
ret