joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003db70
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14016a0c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14016ada8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003dd8f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003dd8f
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14016ada8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14003dc44
movsx rdx, word [r8 + 0x6228]
lea rax, [r8 + 0x622c]
mov r9d, dword [r8 + 0x3fc0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14003dc39
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6228], cx
movsx rax, cx
lea rax, [rax*8 + 0x622c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6220]
test rdi, rdi
je 0x14003dc61
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14003dc64
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140155928]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14003dca7
mov rsi, qword [r8 + 0x98]
jmp 0x14003dcaa
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14003dcd5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14016ada8]
mov rcx, qword [rax + 0x4ba0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003dd4f
inc rbx
cmp rbx, 5
jl 0x14003dd31
jmp 0x14003dd7b
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14003dd91
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f1b70
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14005c050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r12d, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14004adc0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14005c0a8
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rbp
mov ebp, dword [rbx + 0x40]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x34]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r13d
test r12d, r12d
jg 0x14005c0ff
mov ebx, 0x4b0000
jmp 0x14005c10f
shl r12d, 0x10
mov edx, ecx
mov ecx, r12d
call fcn.14004d120
mov ebx, eax
bsr ecx, ebx
bsr eax, edi
shl r13d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14005c125
mov ecx, r13d
jmp 0x14005c130
mov edx, edi
mov ecx, ebx
call fcn.14004d120
mov ecx, eax
mov r8d, dword [rsp + 0x88]
mov eax, r8d
shl eax, 0x10
cmp ecx, eax
jge 0x14005c14c
shl esi, 0x10
mov ecx, esi
jmp 0x14005c212
mov edx, dword [rsp + 0x70]
mov r12d, edx
shl r12d, 0x10
cmp ecx, r12d
jge 0x14005c17f
mov r13d, edx
mov ecx, eax
mov edx, edi
sub r13d, r8d
call fcn.14004adc0
mov ecx, ebx
sub ecx, eax
test r13d, r13d
je 0x14005c1cf
sub r15d, esi
mov r8d, r13d
mov edx, r15d
jmp 0x14005c1b8
mov eax, r14d
shl eax, 0x10
cmp ecx, eax
jl 0x14005c1d3
cmp ecx, r13d
jge 0x14005c20d
mov r15d, dword [rsp + 0x20]
mov edx, edi
sub r15d, r14d
shl r14d, 0x10
mov ecx, r14d
call fcn.14004adc0
sub ebx, eax
test r15d, r15d
je 0x14005c20d
mov esi, dword [rsp + 0x78]
mov r8d, r15d
sub ebp, esi
mov ecx, ebx
mov edx, ebp
call fcn.14004d010
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14004adc0
add ebx, eax
jmp 0x14005c21b
mov edx, dword [rsp + 0x70]
mov esi, r14d
mov ecx, r12d
sub esi, edx
mov edx, edi
call fcn.14004adc0
mov ecx, ebx
sub ecx, eax
test esi, esi
je 0x14005c18e
mov edx, dword [rsp + 0x78]
mov r8d, esi
sub edx, r15d
call fcn.14004d010
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14004adc0
add ebx, eax
jmp 0x14005c21b
shl ebp, 0x10
mov ecx, ebp
mov edx, edi
call fcn.14004adc0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r12
pop rdi
pop rbx
jmp fcn.14004adc0
Function at 0x1400a8ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14016a0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebp, r9d
mov byte [rsp + 0x20], dl
xor r9d, r9d
mov r14d, r8d
mov r13d, r9d
mov rbx, rcx
mov ecx, dword [rbx + 4]
mov r10d, 0xffff
mov eax, ecx
mov dword [rbx + 0x38], r9d
imul eax, r14d
mov r15d, 0xffffffff
imul ecx, ebp
mov edi, r9d
mov qword [rbx + 0x60], r9
mov qword [rbx + 0x58], r9
mov dword [rbx + 0x54], r9d
mov dword [rbx + 0x48], eax
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
sub rax, 4
mov dword [rbx + 0x4c], ecx
mov qword [rbx + 0x28], rax
mov word [rbx + 0x50], r9w
cmp r9w, word [rbx + 0x78]
jae 0x1400a8fdc
movsx r12d, dl
mov rsi, r9
nop dword [rax + rax]
mov rax, qword [rbx + 0x90]
lea edx, [r15 + 1]
mov dword [rbx + 0x70], r9d
mov rcx, rbx
mov qword [rbx + 0x68], r9
mov r9d, r12d
movzx r15d, word [rsi + rax]
mov r8d, r15d
call fcn.1400a7f60
test al, al
jne 0x1400a9039
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x1400a8fc1
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 0x44]
dec eax
test ecx, eax
jne 0x1400a8fa2
cmp ecx, dword [rbx + 0x48]
jl 0x1400a8fa2
cmp ecx, dword [rbx + 0x4c]
jg 0x1400a8fa2
mov rax, qword [rbx + 0x58]
movzx ecx, byte [rdx + 0x1c]
xor cl, byte [rax + 0x1c]
test cl, 8
jne 0x1400a8fa2
add qword [rbx + 0x30], 0xfffffffffffffffc
mov rcx, rbx
call fcn.1400a8680
test al, al
jne 0x1400a9039
cmp qword [rbx + 0x60], 0
jne 0x1400a8fc1
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x60], rax
movzx eax, word [rbx + 0x78]
inc edi
add rsi, 2
xor r9d, r9d
cmp edi, eax
jl 0x1400a8f40
mov r10d, 0xffff
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400a900e
movzx r8d, word [rbx + 0x50]
sub r8w, 1
je 0x1400a900b
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp qword [rdx + 8], rax
jne 0x1400a9002
mov qword [rcx + 8], rdx
mov rcx, rdx
add r8w, r10w
jne 0x1400a8ff1
mov qword [rcx], r9
cmp qword [rbx + 0x60], 0
je 0x1400a901d
mov rcx, rbx
call fcn.1400a82a0
sub r13, 1
js 0x1400a906b
movzx edx, byte [rsp + 0x20]
lea ebp, [r14 - 1]
mov r14d, dword [rsp + r13*4 + 0x30]
xor r9d, r9d
jmp 0x1400a8edc
mov eax, dword [rbx + 0x38]
cmp eax, 0x62
jne 0x1400a906d
cmp r14d, ebp
je 0x1400a9064
movzx edx, byte [rsp + 0x20]
mov dword [rsp + r13*4 + 0x30], r14d
add r14d, ebp
sar r14d, 1
inc r13
inc r14d
xor r9d, r9d
jmp 0x1400a8edc
mov eax, 0x62
jmp 0x1400a906d
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400f1b70
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ad920
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400ad93e
mov eax, Ordinal_41
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov r8d, 1
mov qword [rsp + 0x30], r14
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ad996
mov rsi, qword [rsp + 0x68]
mov eax, 1
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400adab6
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400adab6
test rax, rax
je 0x1400adab6
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r14d
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400adab6
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov edx, 4
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400ada33
lea rax, [0x1400adb20]
jmp 0x1400ada84
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400adab6
mov edi, r14d
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400adaa4
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400ada51
lea rax, [0x1400adaf0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400adacb
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400af380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400af38b
xor eax, eax
ret
lea r11, [0x140111730]
not ecx
cmp r8, 8
jb 0x1400af45d
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400af3b0
test r8, r8
je 0x1400af48d
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x1400af470
not ecx
mov eax, ecx
ret
Function at 0x1400b34b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14016a0c0]
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 0x1400b3511
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400b350b
shr ax, 8
cmp al, 2
jne 0x1400b350b
call fcn.1400b9580
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400f1b70
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.1400f1b70
add rsp, 0x1d8
ret

Function at 0x1400bb710
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x1400d13f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400d144c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400d145c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400c35b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x14016a0c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x518], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1400c36df
test rax, rax
je 0x1400c36df
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1400c36df
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x1400c363b
sub ecx, 1
je 0x1400c362b
sub ecx, 1
je 0x1400c3642
cmp ecx, 1
je 0x1400c3632
jmp 0x1400c36df
lea r9, str.Header
lea rax, [0x140114d00]
jmp 0x1400c3649
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1400c5df0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400c3672
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x1400c36a9
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x1400c36df
jmp 0x1400c36ef
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x140114c20]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1400c40f0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400f1b70
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400c39f0
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 0x1400c3a2b
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 0x1400c3d90
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
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x218]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x210]
call fcn.1400c3ff0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x1400c3e30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400c3e04
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x1400c3e3a
mov edx, ebx
mov rcx, r14
call fcn.1400b3cf0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400c3710
mov rax, qword [r14]
mov dword [rax + 0x49ec], ebx
mov eax, gethostname
jmp 0x1400c3e32
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400c3ff0
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 + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x540]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1400c40d3
lea rax, [0x1400c3a80]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x1400c40d3
cmp qword [rbx], 0
je 0x1400c4054
test rdi, rdi
je 0x1400c40d3
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1400c3040
cmp eax, 0xffffffff
je 0x1400c40d3
test al, 1
je 0x1400c40d3
cmp qword [rbx], 0
jne 0x1400c40b2
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 0x1400c40b2
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 0x1400c40d3
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c40f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400c4133
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x1400c4176
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140114c20]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x298], 0
je 0x1400c429d
call fcn.1400badf0
test eax, eax
jne 0x1400c42c8
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x1400c4296
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400c42c8
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1400c4bd0
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 0x1400c4c3b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400b3cf0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400c37e0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400c37e0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c4d50
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 [0x14016a0c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x1400c4f1d
cmp byte [rcx + 0x50a], 0
jne 0x1400c4f15
cmp byte [rcx + 0x526], 0
jne 0x1400c4f15
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 0x1400c4df2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400b3cf0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400c3710
jmp 0x1400c4f1d
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400c4e4f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400b3cf0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400c3710
jmp 0x1400c4f1d
lea rbx, [rdi + 0x16e]
mov rdx, rbx
lea r8, [rdi + 0x19c]
lea rcx, [rsp + 0xb0]
call fcn.1400c5440
test al, al
jne 0x1400c4e9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400b3cf0
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400c3710
jmp 0x1400c4f1d
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x1d0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x1a0]
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.1400c5440
test al, al
jne 0x1400c4f15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400b3cf0
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400c3710
jmp 0x1400c4f1d
mov rcx, rdi
call fcn.1400c4940
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400f1b70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400c5860
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14016a0c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x774], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400c58cf
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400c37e0
jmp 0x1400c595e
mov ecx, dword [rbx + 0x778]
mov dword [rsp + 0x58], 1
call fcn.1400cf190
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x77c]
call fcn.1400cf190
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400c595e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.1400c37e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f1b70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret