joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080170
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400801b6
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.140062bb0
jmp 0x1400801e0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400801d1
shr ax, 8
test al, al
jne 0x1400801d1
xor eax, eax
jmp 0x1400801e5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.140062bb0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x140080a14
sub r8d, 1
je 0x1400809eb
cmp r8d, 1
jne 0x140080a28
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140080a0c
cmp ecx, r8d
jne 0x140080a28
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.140080bb0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140080a0c
cmp ecx, 1
jne 0x140080a28
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.140080bb0
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x140080ad7
sub r8d, 2
je 0x140080a90
cmp r8d, 1
jne 0x140080ac9
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140080a83
cmp ecx, r8d
jne 0x140080ac9
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140080aca
cmp ecx, 1
jne 0x140080ac9
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.140080bb0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x140080abc
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.140080bb0
Function at 0x140080b00
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x140080b90
sub r8d, 1
je 0x140080b61
cmp r8d, 1
jne 0x140080ba7
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140080b85
cmp ecx, r8d
jne 0x140080ba7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.140080bb0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140080b85
cmp ecx, 1
jne 0x140080ba7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.140080bb0
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
xor r9d, r9d
mov byte [rax + 0x11], dl
mov esi, edx
mov byte [rax + 0x10], 0xff
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x1a8]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140080c0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140062bb0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400803c0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140080d60
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140080f0e
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdi, qword [rbp + 0x198]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140080da9
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140080db7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140080dc5
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x140080dff
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140080e16
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140080e24
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140080e36
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140080e44
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140080e52
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400804f0
mov rcx, qword [r14 + 0x1a8]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x140080eba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140062bb0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140080c40
mov rcx, qword [r14 + 0x1a8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140080f06
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140062bb0
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140082110
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x698]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400821ac
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x140082207
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140062bb0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140052db0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x14008229d
sub edx, 1
je 0x140082314
sub edx, 1
je 0x140082271
cmp edx, 1
je 0x140082254
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140093a08]
call fcn.140062bb0
jmp 0x140082314
lea rdx, [rcx + 2]
add r8d, 0xfffffffe
mov rcx, rbx
call fcn.140081e40
test eax, eax
je 0x140082314
jmp 0x1400821d9
movzx eax, byte [rcx + 2]
mov rdx, rcx
shl ax, 8
movzx ecx, ax
movzx eax, byte [rdx + 3]
lea r8, [rdx + 4]
or ecx, eax
lea rdx, [0x140092e54]
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.140062c70
jmp 0x140082314
cmp r8d, 4
jle 0x140082314
movzx eax, byte [rcx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 3]
or edx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, edx
jne 0x140082314
lea eax, [r8 - 4]
mov edx, 1
lea r8, [rcx + 4]
movsxd r9, eax
mov rcx, r14
call fcn.140062a30
mov esi, eax
test eax, eax
je 0x1400822f3
mov edx, 5
mov rcx, rbx
call fcn.140082cf0
mov eax, esi
jmp 0x1400821d9
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.14006d400
mov rcx, r14
call fcn.14006d620
test eax, eax
je 0x1400821d7
mov edx, 5
mov rcx, rbx
call fcn.140082cf0
mov eax, Ordinal_46
jmp 0x1400821d9
Function at 0x140083e40
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x130], rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140083ea6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140083ea6
lea rcx, [rsp + 0x20]
call qword [case.0x140059ad6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x148
ret
jmp 0x140083e40

Function at 0x140083ec0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x130], rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140083ea6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140083ea6
lea rcx, [rsp + 0x20]
call qword [case.0x140059ad6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x148
ret
jmp 0x140083e40
Function at 0x1400873b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 2
jne 0x1400873fa
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400873ea
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x140087442
cmp qword [rbx + 0x10], 0
jne 0x14008742e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400930e4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14008742e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rdi, rax
test rax, rax
jne 0x140087465
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008745c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14008a690
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14008a6b0
lea rcx, [rbx + rbx]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14008a6d3
lea eax, [rdi + 0x1b]
jmp 0x14008a7a2
xor ecx, ecx
test rbx, rbx
je 0x14008a6f4
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], 0
inc rcx
cmp rcx, rbx
jb 0x14008a6e0
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14008a78f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14008a782
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [case.0x1400703db.0]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14008cdd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14008ce12
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14008ce55
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14008ceb2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14008ce70
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14008cef3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, str.6digit
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009b8fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14008cec0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400011a0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x202
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400011fc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed._Error_Code:
mov ebx, eax
call fcn.1400015f0
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003464]
call fcn.1400015f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Initialized._n
mov qword [rsp + 0x30], rdi
call fcn.1400015f0
mov edi, 2
mov edx, edi
mov ecx, edi
lea r8d, [rdi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x198], rax
cmp rax, 0xffffffffffffffff
jne 0x140001273
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.socket___failed_with_error_code:
mov ebx, eax
call fcn.1400015f0
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003464]
call fcn.1400015f0
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
movups xmmword [rbx + 0x1a0], xmm0
mov word [rbx + 0x1a0], di
movzx ecx, word [0x140006788]
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [0x140006778]
mov word [rbx + 0x1a2], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rdi, qword [rsp + 0x30]
mov dword [rbx + 0x1a4], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000240a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000240a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000240a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000240a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000240a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000240c
xor al, al
add rsp, 0x28
ret
Function at 0x140001710
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
test rcx, rcx
je 0x1400017b3
mov r9, rdx
test rdx, rdx
je 0x1400017b3
cmp word [rcx], 0x5a4d
jne 0x1400017b9
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400017b9
push rbp
xor r8d, r8d
push rdi
push rsi
push rbx
mov edx, dword [rdx + 0x88]
add rdx, rcx
mov ebp, dword [rdx + 0x20]
mov edi, dword [rdx + 0x18]
movzx eax, r8w
cmp eax, edi
jae 0x1400017af
movzx eax, r8w
lea r10, [rcx + rax*4]
mov r11d, dword [r10 + rbp]
xor r10d, r10d
add r11, rcx
mov sil, byte [r11 + r10]
mov bl, byte [r9 + r10]
test sil, sil
je 0x140001788
inc r10
cmp bl, sil
je 0x140001771
jmp 0x1400017aa
test bl, bl
jne 0x1400017aa
mov r8d, dword [rdx + 0x24]
add rax, rax
add rax, rcx
movzx r8d, word [rax + r8]
mov eax, dword [rdx + 0x1c]
lea rdx, [rcx + r8*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x1400017b4
inc r8d
jmp 0x140001757
xor eax, eax
jmp 0x1400017b4
ret
pop rbx
pop rsi
pop rdi
pop rbp
ret
ret
Function at 0x140001b10
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
mov r15d, r8d
push r14
mov r14, rdx
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x2e0
mov rbx, qword [0x140004800]
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140001b58
mov rax, qword [0x1400048e0]
lea rcx, [0x140004129]
call qword [rax]
xchg rcx, rax
mov qword [rbx], rcx
mov r12, qword [0x140004910]
lea rdx, str.CoInitializeEx
lea rsi, section..data
call qword [r12]
push 2
pop rdx
xor ecx, ecx
call rax
xchg r13d, eax
lea rdi, [rsp + 0x8a]
push 0x4e
pop rcx
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x8a]
push 0x30
pop rdx
mov rdi, rax
xor word [rax], dx
inc edx
add rax, 2
cmp dx, 0x57
jne 0x140001b95
movups xmm0, xmmword [0x140004aa0]
mov rax, qword [0x140004a00]
and qword [rsp + 0x40], 0
mov rcx, rdi
movups xmmword [rsp + 0x48], xmm0
call qword [rax]
cmp rax, 0x40
jbe 0x140001bd2
mov rdi, qword [rsp + 0x40]
jmp 0x140001c8e
lea rsi, [rsp + 0x58]
push 0x30
mov rax, qword [0x1400049e0]
xor edx, edx
pop r8
mov rcx, rsi
call qword [rax]
lea r8, str.Elevation:Administrator_new:
mov edx, 0x104
lea rax, [rsp + 0xd8]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x38], rax
xchg rcx, rax
mov rax, qword [0x140004a60]
mov dword [rsp + 0x6c], 4
call qword [rax]
mov r8, rdi
mov rcx, qword [rsp + 0x38]
mov edx, 0x104
mov rax, qword [0x140004a50]
call qword [rax]
mov rcx, qword [rbx]
lea rdx, str.CoGetObject
call qword [r12]
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
call rax
mov rdi, qword [rsp + 0x40]
xchg esi, eax
test esi, esi
jne 0x140001c8e
test rdi, rdi
jne 0x140001c6b
mov esi, 0xc0000022
jmp 0x140001ca1
mov rax, qword [rdi]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov r8, r14
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov rdx, qword [rbp + 0x10]
call qword [rax + 0x48]
test eax, eax
jns 0x140001c98
jmp 0x140001c93
test rdi, rdi
je 0x140001c64
mov esi, 0xc0000022
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test r13d, r13d
jne 0x140001cb6
mov rcx, qword [rbx]
lea rdx, str.CoUninitialize
call qword [r12]
call rax
lea rsp, [rbp - 0x38]
xchg esi, eax
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140001d80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r12
mov r10, rcx
xor eax, eax
mov ecx, 0x400
push rbp
xor r9d, r9d
mov edx, 0x80000000
push rdi
push rsi
push rbx
sub rsp, 0x1050
lea rdi, [rsp + 0x50]
rep stosd dword [rdi], eax
mov rax, qword [0x140004890]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov rcx, r10
mov dword [rsp + 0x20], 3
and qword [rsp + 0x30], 0
push 1
pop r8
call qword [rax]
xchg rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140001e3f
lea rdi, [rsp + 0x50]
push 0xffffffffffffffff
pop rbx
lea r12, [0x140004ac0]
lea rbp, [rsp + 0x4c]
mov rax, qword [0x140004a30]
mov r9, rbp
mov rdx, rdi
mov rcx, rsi
and qword [rsp + 0x20], 0
mov r8d, 0x1000
call qword [rax]
test eax, eax
jne 0x140001e1b
mov rax, qword [0x140004880]
mov rcx, rsi
call qword [rax]
xchg ebx, eax
not eax
jmp 0x140001e42
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140001e0a
xor edx, edx
mov ecx, ebx
xor bl, byte [rdi + rdx]
inc rdx
movzx ebx, bl
shr ecx, 8
xor ecx, dword [r12 + rbx*4]
mov ebx, ecx
cmp edx, eax
jb 0x140001e25
jmp 0x140001de8
push 0xffffffffffffffff
pop rax
add rsp, 0x1050
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret