joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401028a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movss dword [rsp + 0x20], xmm3
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.1400847c0
mov eax, dword [rsp + 0x78]
and eax, 1
test eax, eax
je 0x14010296a
mov edx, dword [rsp + 0x80]
mov ecx, reloc.WS2_32.dll_sendto
call fcn.140102670
movss dword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, reloc.WS2_32.dll_send
call fcn.140102670
movss xmm1, dword [rsp + 0x20]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x28], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, reloc.WS2_32.dll_select
call fcn.140102670
movss dword [rsp + 0x24], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, reloc.WS2_32.dll_recvfrom
call fcn.140102670
movss xmm1, dword [rsp + 0x24]
subss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x28]
movaps xmm2, xmm1
movaps xmm1, xmm0
lea rcx, [rsp + 0x44]
call fcn.1400847c0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400e6870
mov eax, dword [rsp + 0x78]
and eax, 2
test eax, eax
je 0x140102a0c
mov edx, dword [rsp + 0x80]
mov ecx, 7
call fcn.140102670
movss dword [rsp + 0x2c], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, 6
call fcn.140102670
movss xmm1, dword [rsp + 0x2c]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x34], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, 5
call fcn.140102670
movss dword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, 4
call fcn.140102670
movss xmm1, dword [rsp + 0x30]
subss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x34]
movaps xmm2, xmm1
movaps xmm1, xmm0
lea rcx, [rsp + 0x4c]
call fcn.1400847c0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400e6870
mov eax, dword [rsp + 0x78]
and eax, 4
test eax, eax
je 0x140102aae
mov edx, dword [rsp + 0x80]
mov ecx, ntohs
call fcn.140102670
movss dword [rsp + 0x38], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, 0xa
call fcn.140102670
movss xmm1, dword [rsp + 0x38]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, 9
call fcn.140102670
movss dword [rsp + 0x3c], xmm0
mov edx, dword [rsp + 0x80]
mov ecx, 8
call fcn.140102670
movss xmm1, dword [rsp + 0x3c]
subss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x40]
movaps xmm2, xmm1
movaps xmm1, xmm0
lea rcx, [rsp + 0x54]
call fcn.1400847c0
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400e6870
movss xmm0, dword [rsp + 0x88]
ucomiss xmm0, dword [0x140466584]
jp 0x140102ac2
je 0x140102ae6
mov ecx, select
call fcn.1400e9470
movzx eax, al
test eax, eax
je 0x140102ae6
movss xmm1, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.1400e6820
movss xmm0, dword [rsp + 0x90]
ucomiss xmm0, dword [0x140466584]
jp 0x140102afa
je 0x140102b1e
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400e9470
movzx eax, al
test eax, eax
je 0x140102b1e
movss xmm1, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.1400e6820
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140111220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0
xorps xmm0, xmm0
movss dword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x64], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x68], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x6c], xmm0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
xorps xmm0, xmm0
movss dword [rsp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x34], xmm0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x58]
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.14010fe10
test eax, eax
je 0x1401113a6
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0xe
mov rcx, rax
call fcn.1400ef8f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.14010fe10
test eax, eax
je 0x1401113a6
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x50], eax
je 0x14011139a
mov r8d, 0x8c6
lea rdx, [0x140413f20]
lea rcx, str.output_ctx.num_vertices__count_ctx.num_vertices
call fcn.140310ac4
xor eax, eax
xor eax, eax
test eax, eax
jne 0x140111372
mov eax, dword [rsp + 0x50]
jmp 0x1401113b7
mov rax, qword [rsp + 0xb0]
mov qword [rax], 0
xor eax, eax
add rsp, 0x98
ret
Function at 0x1401284a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1404985c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.1400efbe0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0xa0]
call fcn.1401277e0
movzx eax, al
test eax, eax
je 0x1401284e1
lea rax, str.Font_atlas_not_built__It_is_generally_built_by_the_renderer_backend._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__.
test rax, rax
jne 0x1401284fc
mov r8d, 0x10c
lea rdx, [0x14041ca10]
lea rcx, str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_backend._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call fcn.140310ac4
xor eax, eax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140713900]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x48]
call fcn.1400847c0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x140713908]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, qword [0x140713910]
divss xmm0, xmm1
mov rax, qword [rsp + 0x20]
movss dword [rax + 0x10], xmm0
mov rax, qword [rsp + 0x40]
mov qword [0x140713908], rax
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1401285d4
mov dword [rsp + 0x28], 1
jmp 0x1401285dc
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x28]
mov byte [rax + 0x138], cl
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14012860b
mov dword [rsp + 0x2c], 1
jmp 0x140128613
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0x139], cl
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140128642
mov dword [rsp + 0x30], 1
jmp 0x14012864a
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x30]
mov byte [rax + 0x13a], cl
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x13b], 0
call fcn.140127cc0
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0xc0]
test eax, eax
je 0x140128685
mov dword [rsp + 0x34], 0xffffffff
jmp 0x14012868e
call fcn.1400f46b0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x1401286b1
mov eax, dword [rsp + 0x38]
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.140127b90
call fcn.140127e00
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402fea30
add rsp, 0x78
ret
Function at 0x140134170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1406db118]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x1978]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rax + 0x1980]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x38], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.1400847c0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rax
jae 0x1401342b6
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x28], 0xa
jne 0x140134278
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.14010a710
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140134273
jmp 0x1401342b6
jmp 0x1401341f1
cmp dword [rsp + 0x28], 0xd
jne 0x140134284
jmp 0x1401341f1
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call fcn.14012aa10
mulss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x3c], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x20], xmm0
jmp 0x1401341f1
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1401342d5
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x90], 0
je 0x140134311
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400847c0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x140466584]
ja 0x140134335
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x140466584]
jp 0x14013434f
jne 0x14013434f
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x88], 0
je 0x14013436a
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140155c00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x88]
call fcn.1400734f0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140155c66
xor al, al
jmp 0x140155cce
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], 0
je 0x140155cc1
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x40], eax
jne 0x140155cc1
mov dword [rsp + 0x44], 1
jmp 0x140155cc9
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
add rsp, 0x68
ret
Function at 0x14015b830
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov eax, dword [0x1406db138]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1f4
xor edx, edx
mov rcx, qword [0x1406db108]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x1406db13c], eax
movsxd rax, dword [0x1406db13c]
mov qword [rsp + 0x20], 0
mov r9d, reloc.WLDAP32.dll_Ordinal_60
lea r8, [0x1406d03a0]
mov rdx, rax
mov rcx, qword [0x1406db108]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, byte [0x1406da6cc]
cmp eax, 1
jne 0x14015b8b4
mov eax, dword [0x1406db13c]
add eax, 0x13
mov dl, 0x40
mov ecx, eax
call fcn.14015e480
jmp 0x14015b8d2
movzx eax, byte [0x1406da6ce]
cmp eax, 1
jne 0x14015b8d2
mov eax, dword [0x1406db13c]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.14015e480
movzx eax, byte [0x1406da6cd]
cmp eax, 1
jne 0x14015b8f2
mov eax, dword [0x1406db13c]
add eax, 0x13
mov dl, 0x40
mov ecx, eax
call fcn.14015e480
jmp 0x14015b910
movzx eax, byte [0x1406da6cf]
cmp eax, 1
jne 0x14015b910
mov eax, dword [0x1406db13c]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.14015e480
mov eax, dword [0x1406db13c]
add eax, 0x5e
mov ecx, dword [0x1406db13c]
add ecx, 9
mov edx, eax
call fcn.1400bd800
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x1406db140]
mov rdx, rax
mov rcx, qword [0x1406db108]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rax, dword [0x1406db13c]
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x1406db140]
mov rdx, rax
mov rcx, qword [0x1406db108]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rsp, 0x48
ret
Function at 0x14015fb50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1404985c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14015fb9e
xor eax, eax
jmp 0x14015fc11
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14015fbfe
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call fcn.14031ba74
test eax, eax
jne 0x14015fbea
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x4c], eax
jbe 0x14015fbea
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14015fbba
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
jmp 0x14015fc11
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1402fea30
add rsp, 0x288
ret

Function at 0x140160bf0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea r8, [0x140462ea8]
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call fcn.1400c3fb0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_WSASetLastError
rep stosb byte [rdi], al
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
lea rax, str.cmd.exe
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1400734f0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140160ca8
mov dword [rsp + 0x20], 0xffffffff
mov rcx, qword [rsp + 0xb0]
call fcn.140063ed0
mov eax, dword [rsp + 0x20]
jmp 0x140160cf5
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0xb0]
call fcn.140063ed0
mov eax, dword [rsp + 0x28]
add rsp, 0xa0
pop rdi
ret

Function at 0x140161de0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1404985c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140161e3e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140161e38
shr ax, 8
cmp al, 2
jne 0x140161e38
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1402fea30
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1402fea30
add rsp, 0x1d8
ret
Function at 0x140167c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x140167c7c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.14017ddd0
Function at 0x140168760
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x14017def0
sub rsp, 0x28
mov rcx, qword [rcx + 0x230]
lea rdx, [rsp + 0x30]
mov r9d, 2
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x14017df57
cmp rcx, 1
jne 0x14017df27
mov eax, 1
add rsp, 0x28
ret
cmp rcx, 0xffffffffffffffff
jne 0x14017df5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14017df1d
cmp eax, 0xb
je 0x14017df1d
add eax, 0xffffd8be
cmp eax, 0xa
ja 0x14017df5e
mov ecx, 0x59d
bt ecx, eax
jae 0x14017df5e
xor eax, eax
add rsp, 0x28
ret
or eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x1401712c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1401712fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x230]
call fcn.1401717d0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x1401714a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14017147d
mov dword [rsi], 0x51
xor eax, eax
jmp 0x1401714ab
mov edx, ebx
mov rcx, r14
call fcn.140161fa0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140170fe0
mov rcx, qword [r14]
mov dword [rcx + 0x4994], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x278]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x400]
mov rsi, qword [rcx + r8*8 + 0x230]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1401718b3
lea rax, [0x140171350]
cmp qword [rcx + r8*8 + 0x258], rax
jne 0x1401718b3
cmp qword [rbx], 0
je 0x140171834
test rdi, rdi
je 0x1401718b3
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.140170910
cmp eax, 0xffffffff
je 0x1401718b3
test al, 1
je 0x1401718b3
cmp qword [rbx], 0
jne 0x140171892
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x140171892
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1401718b3
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2b8], 0
je 0x140171a7d
call fcn.140168760
test eax, eax
jne 0x140171aa8
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x230]
cmp rcx, 0xffffffffffffffff
je 0x140171a76
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140171aa8
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1401722b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14017231b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140161fa0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1401710b0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1401710b0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140172430
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1404985c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x1401725fd
cmp byte [rcx + 0x3ca], 0
jne 0x1401725f5
cmp byte [rcx + 0x3e6], 0
jne 0x1401725f5
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1401724d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.140161fa0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140170fe0
jmp 0x1401725fd
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.140348fb0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14017252f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.140161fa0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140170fe0
jmp 0x1401725fd
lea rbx, [rdi + 0x18e]
mov rdx, rbx
lea r8, [rdi + 0x1bc]
lea rcx, [rsp + 0xb0]
call fcn.140172a70
test al, al
jne 0x14017257d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.140161fa0
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140170fe0
jmp 0x1401725fd
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x1f0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x1c0]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.140172a70
test al, al
jne 0x1401725f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.140161fa0
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140170fe0
jmp 0x1401725fd
mov rcx, rdi
call fcn.140172030
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402fea30
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret