joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cd410
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, rcx
mov r14, r9
mov rcx, r8
mov rbp, r8
mov rbx, rdx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400cd654
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x1400cd644
mov rcx, rbx
call fcn.1401e8bd0
mov rcx, rbp
mov rbx, rax
call sub.MSVCP140.dll__Mtx_unlock
test rbx, rbx
je 0x1400cd63f
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r15d
call fcn.140107990
xor r9d, r9d
mov rcx, rax
mov r12, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.1401063a0
mov r8, r12
mov rdx, r12
mov rcx, rbx
call fcn.1401e93c0
mov r9, qword [rsp + 0x90]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x1400cd4d1
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x37]
call fcn.1401e7dc0
mov rsi, qword [r14]
cmp byte [rsi + 0x3c8], 0
je 0x1400cd53a
lea rax, [rsp + 0x80]
mov byte [rsp + 0x80], 1
lea rcx, [rsi + 0x468]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
call fcn.1400c5bd0
cmp byte [rsp + 0x80], 0
jne 0x1400cd52d
mov rax, qword [r14 + 8]
mov dword [rax], 9
jmp 0x1400cd59c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1401e96c0
mov rax, qword [rsi + 0x178]
lea r8, [0x1401e7d70]
mov rcx, qword [r14 + 0x10]
mov rdx, rbx
mov r9, qword [rsi + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call fcn.1400cd370
test al, al
jne 0x1400cd573
mov rax, qword [r14 + 8]
mov dword [rax], 8
jmp 0x1400cd59c
cmp byte [rsi + 0x3c8], 0
je 0x1400cd60c
mov rcx, rbx
call fcn.1401e8ad0
mov dword [rsi + 0x488], eax
test eax, eax
je 0x1400cd60c
mov rax, qword [r14 + 8]
mov dword [rax], 0xa
mov rcx, rbx
call fcn.1401e96e0
mov rcx, rbp
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400cd654
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x1400cd644
mov rcx, rbx
call fcn.1401e8270
mov rcx, rbp
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x66]
call fcn.1401063a0
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rbx
jmp 0x1400cd5f5
dec eax
mov ecx, 6
mov dword [rbp + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400d69e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [0x140614d30]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400d6af1
cmp dword [0x140614d7c], 0x7fffffff
je 0x1400d6adc
mov r10, qword [0x1402d7b88]
cmp r10, 0xffffffffffffffff
je 0x1400d6aaf
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400d6a3f
mov rcx, qword [rbx]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400d6a46
inc eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x20]
mov rcx, r10
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400d6aa4
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400d6a7c
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rcx, qword [0x1402d7b88]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400d6aa4
lea rcx, [0x140614d30]
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x1400d6ac1
mov qword [0x1402d7b88], 0xffffffffffffffff
lea rcx, [0x140614d30]
call sub.MSVCP140.dll__Mtx_unlock
call fcn.1400dcb40
nop
mov rcx, rbx
call fcn.1400d1770
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140228530
add rsp, 0x40
pop rbx
ret
mov dword [0x140614d7c], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400d9bb0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d9c87
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x170], rdi
mov rcx, rax
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400d9c7a
lea rdi, str.bfv.exe
nop word [rax + rax]
xor eax, eax
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x1400d9c69
cmp rax, 8
jne 0x1400d9c20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400d9f20
cmp rax, 0xa
setg al
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140228530
add rsp, 0x160
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400d9c10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400d9c48
xor al, al
jmp 0x1400d9c50

Function at 0x1400d9f20
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor ebx, ebx
mov qword [rsp + 0x1c8], rdi
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x12c
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x130
mov rcx, rdi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400d9fbf
mov qword [rsp + 0x1c0], rsi
lea rsi, str.bfv.exe
nop dword [rax]
mov rax, rbx
lea rdx, [rsp + 0x9c]
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x1400da006
cmp rax, 8
jne 0x1400d9fa0
mov ebx, dword [rsp + 0x78]
mov rsi, qword [rsp + 0x1c0]
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, qword [rsp + 0x1c8]
mov rbx, rax
test rax, rax
je 0x1400d9fff
mov r8d, 0x48
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
mov rcx, rbx
test eax, eax
jne 0x1400da01d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400da046
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400d9f90
jmp 0x1400d9fb7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140228530
add rsp, 0x1b0
pop rbx
ret
Function at 0x1400dd220
Capabilities:
Create thread

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rcx + r8], 0
jne 0x1400dd250
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400c03f0
nop
mov ecx, 0x28
call fcn.14022881c
test rax, rax
je 0x1400dd2a6
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm1
movdqa xmm0, xmmword [0x14023d030]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [fcn.1400d69e0]
mov qword [rax + 0x20], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400c3600]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400dd364
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400dd31f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400dd31a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400dd31a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140228418
cmp dword [rsp + 0x38], 0
je 0x1400dd359
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400dd359
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140228530
add rsp, 0x88
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400e28b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400e297c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400e297c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400e2995
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400e296c
cmp byte [rax], 0x5c
jne 0x1400e2966
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400e2966
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400e2952
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400e2963
test r8b, 0x10
jne 0x1400e2966
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400e2966
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400e7a00
test edi, edi
jne 0x1400e28d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.1400e4bb0
int3

Function at 0x1400e4980
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400e4a53
cmp byte [rcx + 0x71], 0
je 0x1400e4a53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400e4a4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400e4a14
sub eax, 1
je 0x1400e4a18
cmp eax, 2
jne 0x1400e4a4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140228530
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400e4a46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400e4a4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400e49fc
xor al, al
jmp 0x1400e49fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140228530
add rsp, 0x60
pop rbx
ret
Function at 0x1400e8b20
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.1400fad10
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x1400e8b8c
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400e8b92
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1400e8c9f
lea r8, [0x140239fd0]
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x1400e8c3d
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400e8c1d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400e8c12
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400e8c33
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400c3b20
lea r8, [0x140239fd0]
sub rdi, 6
sub rsi, 1
jne 0x1400e8be0
inc r14
cmp r14, r13
jne 0x1400e8bb0
cmp r15d, 0xfffffffa
jle 0x1400e8c9f
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400e8c90
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400e8c85
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400e8c9f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400c3b20
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400e8cf0
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400e8cd5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400e8ccd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400e8ce7
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400c3b20
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400e8cb0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ee2d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400ee304
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400ee2f0
ret

Function at 0x1400f0fe0
Capabilities:
Resolve dns

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400f0ff0
push rbx
push rsi
sub rsp, 0x4f8
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbx, r8
mov dword [rsp + 0x40], 0x80
mov rsi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x1400f10da
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rdi
mov edi, dword [rsp + 0x40]
cmp ax, 2
je 0x1400f104f
cmp ax, 0x17
jne 0x1400f105f
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov rdi, qword [rsp + 0x4f0]
test eax, eax
jne 0x1400f10da
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400f10c0
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.1400e8780
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140228530
add rsp, 0x4f8
pop rsi
pop rbx
ret

Function at 0x1400f0ff0
Capabilities:
Resolve dns

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400f0ff0
push rbx
push rsi
sub rsp, 0x4f8
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbx, r8
mov dword [rsp + 0x40], 0x80
mov rsi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x1400f10da
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rdi
mov edi, dword [rsp + 0x40]
cmp ax, 2
je 0x1400f104f
cmp ax, 0x17
jne 0x1400f105f
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov rdi, qword [rsp + 0x4f0]
test eax, eax
jne 0x1400f10da
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400f10c0
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.1400e8780
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140228530
add rsp, 0x4f8
pop rsi
pop rbx
ret
Function at 0x1400f4a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400f4a7d
xor eax, eax
jmp 0x1400f4be6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1400f4abd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1400f4abd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1400f4bde
cmp qword [rdi + 0x80], 0
je 0x1400f4bd9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400f4af7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400f4b22
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400f4bde
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400f4b91
sub eax, 1
je 0x1400f4b91
cmp eax, 2
jne 0x1400f4bd9
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400f4bde
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400f4bbf
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400f4bd9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400f4bde
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140228530
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400f9760
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400f97b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9790
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400fd220
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400fd290
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400fd260
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140228530
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400fd2c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140610be8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400fd32f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400fd300
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140228530
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x1400fff69
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsi + 8]
mov eax, 0x7fffffff
cmp rdi, rax
mov qword [rsp + 0x30], rbx
cmova rdi, rax
nop
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1400fffa4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400fff80
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret