joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca860
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rcx
xor r14d, r14d
lea r15, str.unknown
mov ecx, 0x400
call fcn.14013134c
mov rbp, rax
mov qword [rsp + 0x28], rax
lea rsi, [rax + 0x400]
mov qword [rsp + 0x38], rsi
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rdi, rsi
mov qword [rsp + 0x30], rsi
mov edx, 0x3ff
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_gethostname]
mov r12, rbp
test eax, eax
je 0x1400ca983
mov r14, rbp
mov rbx, rbp
nop word [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x1400caa0c
mov byte [rsp + 0x90], 0
mov rbx, rdi
sub rbx, r12
add rbx, rbx
mov rcx, rdi
sub rcx, r14
cmp rbx, rcx
jae 0x1400ca913
lea rdi, [r14 + rbx]
jmp 0x1400ca959
jbe 0x1400ca95e
mov rax, rsi
sub rax, r14
cmp rbx, rax
jbe 0x1400ca946
lea r8, [rsp + 0x90]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400ca0f0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
jmp 0x1400ca95e
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
add rdi, rbx
mov qword [rsp + 0x30], rdi
mov rdx, rdi
sub rdx, rbp
dec edx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_gethostname]
mov r12, rbp
mov r14, rbp
mov rbx, rbp
test eax, eax
jne 0x1400ca8e0
xor r14d, r14d
mov r15, r12
mov rbx, r12
cmp byte [rsp + 0x88], 0
je 0x1400caa0c
mov rcx, r12
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400ca9a4
mov r15, qword [rax]
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], r14
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x1400ca9c0
mov rdx, r15
mov rcx, r13
call fcn.1400038e0
nop
test rbp, rbp
je 0x1400caa6e
sub rsi, rbp
mov rax, rbp
cmp rsi, 0x1000
jb 0x1400caa07
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400caa89
mov rcx, rbp
jmp 0x1400caa66
xorps xmm0, xmm0
movups xmmword [r13], xmm0
xor eax, eax
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rax
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r15 + r8], al
jne 0x1400caa25
mov rdx, r15
mov rcx, r13
call fcn.1400038e0
nop
test rbx, rbx
je 0x1400caa6e
sub rsi, rbx
cmp rsi, 0x1000
jb 0x1400caa63
add rsi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400caa89
mov rbx, rcx
mov rcx, rbx
mov rdx, rsi
call fcn.140131388
mov rax, r13
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400caab0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1406573d8]
cmp eax, 2
je 0x1400cab8d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.1400b5c70
mov rbx, rax
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x1406573d8], edi
test eax, eax
je 0x1400cab3f
sub eax, edi
je 0x1400cab15
cmp eax, edi
je 0x1400cab83
movzx r8d, dil
lea rdx, str.Unknown_WinSock_state.
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.1400b5c40
mov eax, dword [0x1406573d8]
sub eax, edi
je 0x1400cab38
cmp eax, edi
je 0x1400cab83
movzx r8d, dil
lea rdx, str.Unknown_WinSock_state.
mov rcx, rbx
call fcn.1400b5c40
jmp 0x1400cab15
call fcn.1400e15e0
jmp 0x1400cab15
mov ecx, 0x202
lea rdx, [0x140657240]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400cab74
xor ecx, ecx
mov eax, edi
lock cmpxchg dword [0x1406573d8], ecx
movzx r8d, dil
lea rdx, str.Could_not_initialize_WinSock.
mov rcx, rbx
call fcn.1400b5c40
mov ecx, 2
mov eax, edi
lock cmpxchg dword [0x1406573d8], ecx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1400cac80
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
movzx esi, cx
call fcn.1400caab0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r14d, 2
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov ecx, r14d
lea edx, [r9 + 1]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cad26
xor ecx, ecx
mov word [rsp + 0x30], r14w
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, si
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r14 + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x30]
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400cad26
lea edx, [rax + 0xa]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400cad26
mov dword [rdi], eax
mov rax, rbx
jmp 0x1400cad4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400cad3d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
mov rax, qword [0x1401e9588]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140131030
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400cad70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
nop word [rax + rax]
mov r8d, dword [rdi + 8]
xor r9d, r9d
movsxd rdx, ebx
sub r8d, ebx
add rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400cadc8
add ebx, eax
cmp ebx, dword [rdi + 8]
jl 0x1400cad90
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, qword [rsp + 0x38]
mov dword [rax], ebx
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400cae70
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x30
movzx eax, dl
lea r9, [rsp + 0x48]
mov edx, 6
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
test eax, eax
je 0x1400caebb
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 0x10
mov r8d, dword [rdx + 0x10]
jb 0x1400caf34
mov rdx, qword [rdx]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400caf60
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
mov r8d, dword [rdx + 0x10]
xor r9d, r9d
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400cafaa
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400def00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 0x10
mov rdi, rcx
jb 0x1400def17
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x1400def45
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400def30
mov rdx, rbx
mov rcx, rdi
call fcn.140006410
test rbx, rbx
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x1400e1360
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
xor edi, edi
test rax, rax
lea rbx, [rax - 8]
cmove rbx, rdi
mov rax, qword [rbx + 8]
or dword [rbx + 0x10], 1
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.1400b1ad0
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x18], 0xffffffffffffffff
cmp rcx, 0xffffffffffffffff
je 0x1400e13ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbx + 0x20]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400e14c0]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400e1404
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.1400b1ae0
and dword [rbx + 0x10], 0xfffffffe
call fcn.1400b5c70
mov r8b, 1
lea rdx, str.Thread_creation_was_not_successful
mov rcx, rax
call fcn.1400b5c40
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400eb4d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
cmp qword [rcx + 0xc0], 0
mov rbp, rdx
mov rsi, rcx
jne 0x1400eb509
call fcn.1400b5530
lea rdx, str.NT_EventLog_not_opened.
mov rcx, rax
call fcn.1400b60d0
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
call fcn.1400ce690
mov rbx, rax
cmp qword [rax + 0x10], 0x7c5f
jbe 0x1400eb535
xor r8d, r8d
mov edx, 0x7c5f
mov rcx, rax
call fcn.1400bde50
cmp qword [rbx + 0x18], 0x10
jb 0x1400eb53f
mov rbx, qword [rbx]
mov rax, qword [rsi]
mov rdx, rbp
mov rdi, qword [rsi + 0xc8]
mov rcx, rsi
mov qword [rsp + 0x60], rbx
call qword [rax + 0x48]
mov rcx, qword [rsi]
mov rdx, rbp
movzx ebx, ax
mov r8, qword [rcx + 0x40]
mov rcx, rsi
call r8
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r9d, 0x1000
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsi + 0xc0]
lea r8d, [rdx + 1]
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r8w
movzx edx, ax
movzx r8d, bx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
test eax, eax
jne 0x1400eb5cd
call fcn.1400b5530
xor r8d, r8d
lea rdx, str.Cannot_report_event_in_NT_EventLog.
mov rcx, rax
call fcn.1400b5c40
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret

Function at 0x1400ee9d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
call fcn.1400ce690
cmp qword [rax + 0x18], 0x10
jb case.default.0x1400ee9ea
mov rax, qword [rax]
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
Function at 0x1400eed10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
cmp byte [rcx + 0x60], 0
mov rsi, rdx
mov rdi, rcx
je 0x1400eed2a
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400eed5d
call fcn.1400b5530
xor r8d, r8d
lea rdx, str.Win32ConsoleAppender::append__Unable_to_get_STD_OUTPUT_HANDLE.
mov rcx, rax
call fcn.1400b5c40
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, eax
test eax, eax
jne 0x1400eed9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400eed9f
call fcn.1400b5530
xor r8d, r8d
lea rdx, str.Win32ConsoleAppender::append__Error_retrieving_handle_type.
mov rcx, rax
call fcn.1400b5c40
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rdx, rsi
mov qword [rsp + 0x38], r14
mov rcx, rdi
call fcn.1400ce690
mov r14, rax
cmp qword [rax + 0x18], 0x10
mov rdi, qword [rax + 0x10]
jb 0x1400eedc0
mov r14, qword [rax]
cmp ebx, 2
jne 0x1400eee55
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400eee55
xor esi, esi
mov qword [rsp + 0x30], r15
mov ebx, esi
mov r15d, 0xffff
nop word [rax + rax]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
mov dword [rsp + 0x60], esi
cmp r8d, r15d
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
cmova r8d, r15d
add rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
je 0x1400eee3c
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jne 0x1400eedf0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.1400b5530
xor r8d, r8d
lea rdx, str.Win32ConsoleAppender::write_console__WriteConsole_has_failed.
mov rcx, rax
call fcn.1400b5c40
jmp 0x1400eee25
xor esi, esi
mov ebx, esi
nop dword [rax]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
mov dword [rsp + 0x60], esi
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400eee90
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jne 0x1400eee60
jmp 0x1400eee2a
call fcn.1400b5530
xor r8d, r8d
lea rdx, str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
mov rcx, rax
call fcn.1400b5c40
jmp 0x1400eee2a
Function at 0x1400f5350
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400f5425
cmp byte [rcx + 0x72], 0
je 0x1400f5425
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400f5421
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400f53e6
sub eax, 1
je 0x1400f53ea
cmp eax, 2
jne 0x1400f5421
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140131030
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400f5418
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 0x1400f5421
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400f53ce
xor al, al
jmp 0x1400f53ce
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140131030
add rsp, 0x60
pop rbx
ret
Function at 0x1400fa340
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx ebp, dx
mov rdi, rcx
cmp si, dx
jne 0x1400fa371
xor eax, eax
jmp 0x1400fa4b7
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
test rax, rax
je 0x1400fa3b2
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1400fa3b2
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], bp
movzx eax, bp
jmp 0x1400fa4af
cmp qword [rdi + 0x80], 0
je 0x1400fa4ac
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400fa3ec
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_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t____ptr64__wchar_t____ptr64__wchar_t____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400fa416
movzx ecx, bp
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
je 0x1400fa4ac
movzx esi, bp
jmp 0x1400fa4ac
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], bp
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
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_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400fa46c
sub eax, 1
je 0x1400fa46c
cmp eax, 2
jne 0x1400fa4ac
movzx ecx, word [rsp + 0x40]
jmp 0x1400fa3f8
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400fa49a
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 0x1400fa4ac
lea rax, [rsp + 0x40]
mov byte [rdi + 0x72], 1
cmp qword [rsp + 0x50], rax
cmovne si, bp
movzx eax, si
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140131030
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fd140
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x60], 0
mov ebx, r8d
mov rdi, rdx
jne 0x1400fd1a4
mov r8b, 1
xor edx, edx
call fcn.1400fd1b0
call fcn.1400f1880
mov rcx, rax
call fcn.1400f1a10
mov rcx, rax
lea rdx, str.error:
call fcn.140001a80
mov rcx, rax
mov rdx, rdi
call fcn.140001a80
lea rdx, [0x140002010]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.1400f1880
mov rcx, rax
call fcn.1400f1e00
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400fd680
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x1400fd6ad
mov rbx, qword [rcx + 0x68]
xor r8d, r8d
xor edx, edx
call fcn.1400fd1b0
call fcn.1400f1880
mov rcx, rax
call fcn.1400f1a50
mov rdi, rax
lea rdx, str.usage:
mov rcx, rax
call fcn.140001a80
mov rcx, rax
mov rdx, rsi
call fcn.14003c290
test rbx, rbx
je 0x1400fd79a
lea rcx, [rsp + 0x20]
call fcn.140003f60
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400f9600
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14003c290
lea rdx, [0x140002010]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400f8570
lea rcx, [rsp + 0x20]
call fcn.14000b6c0
test al, al
jne 0x1400fd757
lea rdx, [0x140002010]
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003c290
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400f7690
lea rcx, [rsp + 0x20]
call fcn.14000b6c0
test al, al
jne 0x1400fd790
lea rdx, [0x140002010]
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003c290
nop
lea rcx, [rsp + 0x20]
call fcn.140004c10
lea rdx, [0x140002010]
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.1400f1880
mov rcx, rax
call fcn.1400f1e30
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140100060
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400f2370
test al, al
jne 0x14010009c
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140100083
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14010008c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14010009c
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140100570
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400f2370
test al, al
jne 0x1401005ae
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140100593
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14010059c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401005ae
shr eax, 4
not al
and al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140101130
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xorps xmm0, xmm0
mov rdi, rdx
mov rsi, rcx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
movups xmmword [rdx + 0x60], xmm0
movups xmmword [rdx + 0x70], xmm0
test rcx, rcx
je 0x1401011e5
mov qword [rax + 0x10], rbx
mov ebx, 5
movups xmmword [rax - 0x38], xmm0
mov dword [rax - 0x34], 2
mov qword [rax + 8], 0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
nop dword [rax]
mov eax, ebx
dec ebx
test eax, eax
jle 0x1401011e0
lea r9, [rsp + 0x60]
xor edx, edx
lea r8, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0x2afa
je 0x140101190
test eax, eax
jne 0x1401011e0
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1401011d7
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1401011d7
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140101d90
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140131030
add rsp, 0x1d8
ret
Function at 0x1401040c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r10, rcx
test r8d, r8d
je 0x1401040f3
mov r9d, r8d
lea r11, [0x1401eb800]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov r8d, dword [r10]
xor rax, r8
shr r8d, 8
movzx ecx, al
xor r8d, dword [r11 + rcx*4]
mov dword [r10], r8d
sub r9, 1
jne 0x1401040d2
ret