joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bde0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x14000f1c0]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x1e0030
mov dword [rbp - 0x1c], 0x3a000f
mov dword [rbp - 0x18], 0x490014
mov dword [rbp - 0x14], 0x480075
mov dword [rbp - 0x10], 0x340015
mov dword [rbp - 0xc], 0x480019
call fcn.140002a50
mov rcx, rax
call rbx
mov rbx, qword [0x14000f1c0]
lea rcx, [rbp - 0x20]
mov qword [0x14000f1a0], rax
mov dword [rbp - 0x20], 0x1f0034
mov dword [rbp - 0x1c], 0x3f0004
mov dword [rbp - 0x18], 0x1f0016
mov dword [rbp - 0x14], 0x480033
mov dword [rbp - 0x10], 0x340015
mov dword [rbp - 0xc], 0x480019
call fcn.140002a50
mov rcx, rax
call rbx
movdqa xmm0, xmmword [0x14000e610]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x14000f130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14000f1b0], rax
mov word [rbp - 0x10], 0x73b
mov byte [rbp - 0xe], 0x73
call fcn.1400043c0
mov rcx, qword [0x14000f1a0]
mov rdx, rax
call rbx
mov rbx, qword [0x14000f130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x3a0f1e30
mov dword [rbp - 0x1c], 0x33f3f14
mov dword [rbp - 0x18], 0x2d012d12
mov word [rbp - 0x14], 0x5224
call fcn.140001180
mov rcx, qword [0x14000f1a0]
mov rdx, rax
call rbx
mov rbx, qword [0x14000f130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x331e182a
mov dword [rbp - 0x1c], 0x1222140a
mov dword [rbp - 0x18], 0x2610283e
mov word [rbp - 0x14], 0x5232
call fcn.140001180
mov rcx, qword [0x14000f1b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x14000e530]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x14000f130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14000f0e8], rax
mov byte [rbp - 0x10], 0x4d
call fcn.1400014c0
mov rcx, qword [0x14000f1b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x14000e660]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x14000f130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14000f0f0], rax
mov dword [rbp - 0x10], 0x4e163c29
call fcn.1400026f0
mov rcx, qword [0x14000f1b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x14000e5f0]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x14000f130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14000f0e0], rax
mov byte [rbp - 0x10], 0x4d
call fcn.1400014c0
mov rcx, qword [0x14000f1b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x14000e550]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x14000f130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14000f0d8], rax
mov dword [rbp - 0x10], 0xf1d3f24
mov byte [rbp - 0xc], 0x6c
call fcn.1400031c0
mov rcx, qword [0x14000f1b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x14000e650]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x14000f130]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x10], 0x1123
mov byte [rbp - 0xe], 0x73
call fcn.1400043c0
mov rcx, qword [0x14000f1b0]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp rax
Function at 0x14000cd90
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x75
mov dword [rbp - 0x20], 0x330028
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x180038
mov dword [rbp - 0x18], 0x36003d
mov dword [rbp - 0x14], 0x270005
mov dword [rbp - 0x10], 0x1d0022
call fcn.140004d70
mov rcx, rax
call 0x14000cd90
mov qword [0x14000f1b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x71
mov dword [rbp - 0x20], 0x330028
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x180038
mov dword [rbp - 0x18], 0x36003d
mov dword [rbp - 0x14], 0x540074
call fcn.140002330
mov rcx, rax
call 0x14000cd90
lea rcx, [rbp - 0x20]
mov qword [0x14000f1a8], rax
mov dword [rbp - 0x20], 0x2000d
mov dword [rbp - 0x1c], 0x3a000e
mov dword [rbp - 0x18], 0x7a0014
call fcn.140004c00
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000cd90
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000cdf2
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000c810
test al, al
jne 0x14000ce04
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000cdc0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002f50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
xor edi, edi
lea rcx, str.USERNAME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140002fa1
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
nop
inc r8
cmp byte [rax + r8], dil
jne 0x140002f90
mov rdx, rax
jmp 0x1400030ba
movdqa xmm1, xmmword [0x140067b30]
mov r8b, 0x60
movd edx, xmm1
movdqa xmm0, xmm1
movdqa xmm2, xmmword [0x140067b00]
movdqa xmm3, xmmword [0x140067b10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
xor r8b, dl
movdqu xmmword [rbp - 0x28], xmm2
xor byte [rbp - 0x27], dl
xor byte [rbp - 0x26], dl
xor byte [rbp - 0x25], dl
xor byte [rbp - 0x24], dl
xor byte [rbp - 0x23], dl
xor byte [rbp - 0x22], dl
xor byte [rbp - 0x21], dl
xor byte [rbp - 0x20], dl
xor byte [rbp - 0x1f], dl
xor byte [rbp - 0x1e], dl
xor byte [rbp - 0x1d], dl
xor byte [rbp - 0x1c], dl
xor byte [rbp - 0x1b], dl
xor byte [rbp - 0x1a], dl
xor byte [rbp - 0x19], dl
movdqu xmmword [rbp - 0x18], xmm3
xor byte [rbp - 0x17], dl
xor byte [rbp - 0x16], dl
xor byte [rbp - 0x15], dl
xor byte [rbp - 0x14], dl
xor byte [rbp - 0x13], dl
xor byte [rbp - 0x12], dl
xor byte [rbp - 0x11], dl
xor byte [rbp - 0x10], dl
xor byte [rbp - 0xf], dl
xor byte [rbp - 0xe], dl
xor byte [rbp - 0xd], dl
xor byte [rbp - 0xc], dl
xor byte [rbp - 0xb], dl
xor byte [rbp - 0xa], dl
xor byte [rbp - 9], dl
movdqu xmmword [rbp - 0x38], xmm1
xor byte [rbp - 0x36], dl
xor byte [rbp - 0x35], dl
xor byte [rbp - 0x34], dl
xor byte [rbp - 0x33], dl
xor byte [rbp - 0x32], dl
xor byte [rbp - 0x31], dl
xor byte [rbp - 0x30], dl
xor byte [rbp - 0x2f], dl
xor byte [rbp - 0x2e], dl
xor byte [rbp - 0x2d], dl
xor byte [rbp - 0x2c], dl
xor byte [rbp - 0x2b], dl
xor byte [rbp - 0x2a], dl
xor byte [rbp - 0x29], dl
psrldq xmm0, 1
movd eax, xmm0
mov byte [rbp - 8], r8b
mov byte [rbp - 7], dil
xor al, dl
mov byte [rbp - 0x37], al
movd eax, xmm2
xor al, dl
mov byte [rbp - 0x28], al
movd eax, xmm3
xor al, dl
lea rdx, [rbp - 0x37]
mov byte [rbp - 0x18], al
call fcn.140005c40
lea rdx, [0x140005e10]
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]
xorps xmm0, xmm0
lea rdx, [0x140066fd0]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140006140
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x14001ae60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xaee], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14001af16
cmp qword [rcx + 0x288], 0
je 0x14001aecb
mov dl, 1
call fcn.14000b200
mov rax, qword [rdi + 0x1e0]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14000b200
mov eax, ebx
jmp 0x14001af18
mov edx, ebx
test ebx, ebx
je 0x14001aedb
sub edx, 1
je 0x14001aedb
cmp edx, 1
jne 0x14001af16
mov r9, qword [rdi + 0x1d8]
lea rax, [0x14005cb78]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001af30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140070080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xaee], 0
mov rdi, rcx
jne 0x14001af73
cmp qword [rcx + 0x1e8], 0
je 0x14001b075
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.14001f400
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14001afa1
mov rcx, qword [rdi + 0x1e8]
test rcx, rcx
je 0x14001afe8
cmp byte [rdi + 0x1283], 0
jne 0x14001afe8
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001afd0
mov byte [rdi + 0x1283], 1
cmp byte [rdi + 0xaee], 0
mov byte [rsp + rbx + 0x30], 0xa
je 0x14001b06d
cmp qword [rdi + 0x288], 0
je 0x14001b036
mov dl, 1
mov rcx, rdi
call fcn.14000b200
mov rax, qword [rdi + 0x1e0]
lea r9, [rbx + 1]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
call fcn.14000b200
jmp 0x14001b06d
mov r9, qword [rdi + 0x1d8]
lea rcx, [0x14005cb78]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d8]
lea rdx, [rbx + 1]
mov r8d, 1
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400574c0
add rsp, 0x160
pop rdi
ret

Function at 0x14001b280
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 0x14001b2c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x14001b460
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140070080]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x238]
mov r14, qword [rcx + r8*8 + 0x1f0]
add rbx, rax
mov rax, qword [rcx + 0x3f0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14001b569
lea rax, [0x14001b310]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x14001b569
cmp qword [rbx], 0
je 0x14001b4ee
test rdi, rdi
je 0x14001b569
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14002c6a0
cmp eax, 0xffffffff
je 0x14001b569
test al, 1
je 0x14001b569
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001b548
mov eax, dword [rbp + 0x704]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x14001b5a3
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14001b569
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x14001b5e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14001b5b2
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x14001b5e2
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x14001b5e5
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1400076c0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14001af30
mov dword [rbp + 0xdcc], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400574c0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x288], 0
je 0x14001ba7d
call fcn.140014f80
test eax, eax
jne 0x14001baa3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x14001ba76
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14001ba76
mov al, 1
add rsp, 0x28
ret
Function at 0x14001bd00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140070080]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rdi, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14001bda8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400076c0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14001be31
movzx eax, word [rsp + 0x30]
cmp eax, 2
je 0x14001bde3
cmp eax, 0x17
jne 0x14001bdef
lea rdx, [rsp + 0x38]
mov ecx, eax
mov r8, rdi
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.140048840
test rax, rax
je 0x14001bdef
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
jmp 0x14001be3c
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x14001bdbe
mov byte [rdi], 0
mov dword [rbx], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400076c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14001af30
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400574c0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001da30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret

Function at 0x14001dd30
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14001dd5a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14005d020]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14001ddbd
mov rcx, rbx
test r14, r14
je 0x14001dda7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14001ddf5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ddf5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14001deb8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14001de20
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14001deaa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001deaa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14001de50
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14001de64
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14001de80
mov rcx, rdi
test r14, r14
je 0x14001dea1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14001dea7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140058386]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140021d90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rax + 0x7c8]
mov dword [rcx + 0x30], 2
call fcn.140010b00
lea rdx, str.CONNECT_phase_completed__n
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14001b090
Function at 0x14002b070
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140070080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002b0c5
jmp 0x14002b274
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002b24b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002b24b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002b24b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002b24b
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14002b24b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002b24b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14002b24b
mov r9, rsi
lea r8, [0x14005ecb4]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14001f2e0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002b1e5
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14002b24b
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14002b24b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002b24b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14002b26c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400574c0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002ee10
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14002efae
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14002ef8e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14002ee7e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002ee70
inc rbx
jmp 0x14002ee80
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14002ee8e
lea r14d, [rax + 0xe]
jmp 0x14002ee9b
cmp eax, 0x17
jne 0x14002ef34
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14002ef34
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14002ef34
cmp rax, r14
jb 0x14002ef34
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14002ef43
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14002ef21
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x14002ef31
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14002ee60
jmp 0x14002ef49
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x14002ef63
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14002ef89
test rbp, rbp
je 0x14002ef85
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.140058386]
mov rbp, rbx
test rbx, rbx
jne 0x14002ef70
xor ebp, ebp
jmp 0x14002ef9d
test rbp, rbp
jne 0x14002ef9d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret