joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140168be0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140168c31
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140168c81
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x141af8118]
test rax, rax
je 0x140168cb6
lea rbx, [rsp + 0x70]
test eax, 0x4000
jne 0x140168cc7
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
jmp 0x140168cdb
and ebx, 0x7fffffff
je 0x140168c31
movzx eax, byte [0x141af8129]
mov edx, 4
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x140168d1d
mov dword [rax], ebx
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x140168cf1
call fcn.1401587a0
lea rbx, [rsp + 0x70]
test eax, 0x4000
je 0x140168c5d
lea r8, [0x141a7b820]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140063da0
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.140061b00
ud2
Function at 0x14016b890
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x14016b9e6
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd r13, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test r13, r13
je 0x14016b9bc
shl r13, 3
mov esi, 8
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r15d, r15d
jmp 0x14016b939
mov rax, qword [rsp + 0x70]
mov qword [rsi + rbp + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rbp], xmm0
inc r15
mov qword [rsp + 0x38], r15
add rbp, 0x18
add r13, 0xfffffffffffffff8
je 0x14016b9bc
mov r12, qword [rdi + r15*8]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rax
mov word [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.14016f0d0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r15, qword [rsp + 0x28]
jne 0x14016b910
lea rcx, [rsp + 0x28]
call fcn.14001c780
mov rsi, qword [rsp + 0x30]
jmp 0x14016b910
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x14016b9ce
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x14016b9fd
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14016ce50
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm7
movaps xmmword [rsp + 0x1b0], xmm6
mov rsi, rcx
xor ecx, ecx
call fcn.14014bae0
test rax, rax
je 0x14016d10a
movups xmm6, xmmword [rax]
inc qword [rax]
movzx eax, byte [0x141af8129]
mov edx, 0x56410
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x14016d10a
mov rdi, rax
add rdi, 0x56000
mov r8d, 0x410
mov rcx, rdi
mov dl, 0xff
call sub.msvcrt.dll_memset
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], 0x3ff
mov qword [rsp + 0x130], 0x380
mov qword [rsp + 0x138], 0
movzx eax, byte [0x141af8129]
mov edx, 9
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x14016d10a
movabs rcx, 0x5043206c61746f54
mov qword [rax], rcx
mov byte [rax + 8], 0x55
mov qword [rsp + 0x90], 9
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 9
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 1
xorps xmm7, xmm7
movups xmmword [rsp + 0xb8], xmm7
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], 0
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
mov byte [rsp + 0x118], 0
movups xmmword [rsp + 0x140], xmm6
movups xmmword [rsp + 0x150], xmm7
movups xmmword [rsp + 0x160], xmm7
mov qword [rsp + 0x170], 0
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm7
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x14016d014
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm7
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x14016d0ae
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsp + 0x160], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsp + 0x168], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140171680
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140171a90
mov r8d, 0x120
mov rcx, rsi
mov rdx, rdi
call sub.msvcrt.dll_memcpy
movaps xmm6, xmmword [rsp + 0x1b0]
movaps xmm7, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rdi
pop rsi
ret
ud2
Function at 0x14016d110
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x14016d155
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0xc0], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x14016d1ec
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0xd0], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0xd8], rax
mov rcx, rsi
call fcn.140171680
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140171a90
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
ret

Function at 0x14016e230
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx]
mov rbx, qword [rcx + 0x18]
movdqa xmm0, xmmword [rdi]
pmovmskb eax, xmm0
not eax
lea r14, [rdi + 0x10]
jmp 0x14016e27d
tzcnt ecx, eax
shl ecx, 5
mov rdx, rdi
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
sub rbx, 1
jb 0x14016e2af
test ax, ax
jne 0x14016e260
nop dword [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rdi, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x14016e290
not eax
jmp 0x14016e260
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14016e2c6
call sub.KERNEL32.dll_CloseHandle
test eax, eax
je 0x14016e2df
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x14016e2f2
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14016e2d4
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x1401ecd8c
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x140173090
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1401731dc
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd r13, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test r13, r13
je 0x1401731bc
shl r13, 3
mov esi, 8
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r15d, r15d
jmp 0x140173139
mov rax, qword [rsp + 0x70]
mov qword [rsi + rbp + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rbp], xmm0
inc r15
mov qword [rsp + 0x38], r15
add rbp, 0x18
add r13, 0xfffffffffffffff8
je 0x1401731bc
mov r12, qword [rdi + r15*8]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rax
mov word [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.14017eb90
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r15, qword [rsp + 0x28]
jne 0x140173110
lea rcx, [rsp + 0x28]
call fcn.14001c780
mov rsi, qword [rsp + 0x30]
jmp 0x140173110
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x1401731f3
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14017ef80
Capabilities:
Reference wmi statements

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov r15, qword [rdx + 0x10]
test r15, r15
je 0x14017f057
lea rcx, [0x141a7be3c]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, [0x141a7be44]
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x14017f057
mov rbx, qword [rsp + 0x30]
cmp qword [rsi + 0x20], 0
je 0x14017f023
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14017f023
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x14017f0bf
mov qword [rdi], 2
mov rcx, qword [rsi + 0x28]
cmp qword [rsi + 0x20], 0
mov qword [rsi + 0x20], 0
je 0x14017f07c
test rcx, rcx
je 0x14017f07c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x10], 0
test r15, r15
je 0x14017f098
test rcx, rcx
je 0x14017f098
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14017f0b4
test rcx, rcx
je 0x14017f0b4
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rsi + 0x30], 0
je 0x14017f0bf
call sub.ole32.dll_CoUninitialize
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140181d20
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea rax, [0x141a7bd18]
mov qword [rsp + 0x38], rax
lea rax, [0x141a7bd44]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x38]
call fcn.14017a1b0
add rdi, rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x88]
lea rdi, [rsp + 0x38]
mov rdx, rdi
call fcn.14017a1b0
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], rdi
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x140181e2d
movabs rax, 0x8000000000000000
mov qword [rsi], rax
cmp qword [rsp + 0x88], 0
je 0x140181dfd
mov r8, qword [rsp + 0x90]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x70], 0
je 0x140181e18
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x38]
mov dword [rsp + 0x34], 0x800
movzx eax, byte [0x141af8129]
mov edx, 0x800
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x140181fc9
mov rbx, rax
mov qword [rsp + 0x58], 0x800
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov r14, qword [rsp + 0x90]
lea rbp, [rsp + 0x34]
lea r15, [rsp + 0x38]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x68]
sub r12, r13
nop
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140181ed8
mov r8d, dword [rsp + 0x34]
cmp r12, r8
jae 0x140181e90
lea rcx, [rsp + 0x58]
mov rdx, r13
call fcn.140106b90
mov rbx, qword [rsp + 0x60]
jmp 0x140181e82
test eax, eax
jne 0x140181f62
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x68], rax
mov rbx, qword [rsp + 0x60]
and eax, 0xfffffffe
add rax, rbx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rax
mov word [rsp + 0xb0], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0xa0]
call fcn.14017eb90
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
nop word [rax + rax]
mov rdx, r8
sub r8, 1
jb 0x140181f87
cmp byte [rcx + rdx - 1], 0
je 0x140181f50
jmp 0x140181f89
movabs rax, 0x8000000000000000
mov qword [rsi], rax
cmp qword [rsp + 0x58], 0
je 0x140181fad
mov r8, qword [rsp + 0x60]
mov rcx, qword [0x141af8068]
xor edx, edx
jmp 0x140181fa8
xor edx, edx
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
cmp qword [rsp + 0x58], 0
je 0x140181fad
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, rdi
call sub.advapi32.dll_RegCloseKey
cmp qword [rsp + 0x88], 0
jne 0x140181de7
jmp 0x140181dfd
ud2
Function at 0x140182730
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov r15, qword [rdx]
mov rbx, qword [rdx + 0x10]
test r8, r8
je 0x1401827b9
mov rax, r9
mov r12d, 0x2000
mov rdx, rbx
add rax, 0x400
jb 0x1401827ce
mov ecx, eax
and ecx, 0x1fff
mov edx, 0x2000
sub r12, rcx
add r12, rax
cmovb r12, rdx
test rcx, rcx
cmove r12, rax
mov rdx, rbx
test r9, r9
jne 0x1401827ce
mov rax, r15
sub rax, rbx
cmp rax, 0x1f
ja 0x1401827cb
mov rcx, r14
mov rdx, rsi
call fcn.1401829b0
test rax, rax
je 0x140182985
mov eax, 1
jmp 0x140182997
mov r12d, 0x2000
mov rax, r15
sub rax, rbx
cmp rax, 0x1f
jbe 0x14018279b
mov rdx, rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r14
mov r14, qword [r14]
xor ebp, ebp
nop dword [rax]
mov rax, qword [rsi]
cmp rdx, rax
jne 0x14018280f
cmp rax, r15
jne 0x14018280f
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call fcn.1401829b0
test rax, rax
jne 0x1401827af
test rdx, rdx
mov rdx, qword [rsi + 0x10]
je 0x14018295e
mov rax, qword [rsi]
cmp rdx, rax
jne 0x140182860
mov r13, rax
add r13, 0x20
jb 0x14018294d
lea rcx, [rax + rax]
cmp rcx, r13
cmova r13, rcx
cmp r13, 9
mov ecx, 8
cmovb r13, rcx
mov rbx, rdx
test rax, rax
je 0x140182865
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rax
mov eax, 1
jmp 0x140182867
mov r13, rax
jmp 0x1401828a3
xor eax, eax
mov rdx, r13
not rdx
shr rdx, 0x3f
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov r8, r13
lea r9, [rsp + 0x38]
call fcn.1401c52c0
cmp qword [rsp + 0x50], 0
jne 0x140182974
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
mov qword [rsi], r13
mov rdx, rbx
sub r13, rdx
add rdx, qword [rsi + 8]
cmp r13, r12
cmovae r13, r12
cmp r13, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r13
mov rcx, r14
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14018292a
cdqe
cmp rbp, rax
mov rcx, rbp
cmovbe rcx, rax
mov rdx, qword [rsi + 0x10]
test rax, rax
je 0x140182943
mov rbp, rcx
sub rbp, rax
add rdx, rax
mov qword [rsi + 0x10], rdx
cmp rdi, 1
je 0x1401827e0
cmp rcx, r13
mov r8, 0xffffffffffffffff
cmovne r12, r8
lea rcx, [r12 + r12]
test r12, r12
cmovs rcx, r8
cmp r13, r12
cmovb rcx, r12
cmp rax, r13
cmove r12, rcx
jmp 0x1401827e0
call sub.ws2_32.dll_WSAGetLastError
mov edx, eax
cmp eax, 0x274a
mov rax, qword [rsp + 0x28]
jne 0x140182965
mov rdx, qword [rsi + 0x10]
jmp 0x140182948
mov rax, qword [rsp + 0x28]
sub rdx, rax
jmp 0x140182995
mov eax, 1
movabs rdx, 0x2600000003
jmp 0x140182997
sub rdx, qword [rsp + 0x28]
jmp 0x140182995
shl rdx, 0x20
or rdx, 2
mov eax, 1
jmp 0x140182997
movabs rdx, 0x2600000003
mov eax, 1
jmp 0x140182997
test rdx, rdx
je 0x140182993
mov rdx, qword [rsi + 0x10]
jmp 0x1401827ce
xor edx, edx
xor eax, eax
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401829b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
mov r8d, 0x20
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x140182a0e
movsxd rdi, eax
cmp rdi, 0x20
ja 0x140182a59
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jae 0x140182a20
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140106b90
mov rbx, qword [rsi + 0x10]
jmp 0x140182a20
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140182a48
mov rbx, qword [rsi + 0x10]
xor edi, edi
mov rcx, qword [rsi + 8]
add rcx, rbx
lea rdx, [rsp + 0x20]
mov r8, rdi
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
xor eax, eax
mov rdx, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x140182a3d
ud2
Function at 0x14018fe90
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov esi, r9d
mov rdi, r8
call qword [rdx + 0xb8]
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x14018ff41
cmp esi, 0x3b9aca00
je 0x14018ff07
mov edx, 0x3e8
mov rax, rdi
mul rdx
mov rdx, rax
mov eax, 0xffffffff
jo 0x14018ff07
mov r8d, esi
imul r8, r8, 0x431bde83
shr r8, 0x32
add rdx, r8
jb 0x14018ff07
imul r8d, r8d, 0xf4240
xor r9d, r9d
sub esi, r8d
setne r9b
add rdx, r9
jb 0x14018ff07
mov eax, 0xffffffff
cmp rdx, rax
cmovb rax, rdx
test rax, rax
je 0x14018ff48
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14018ff34
xor eax, eax
jmp 0x14018ff41
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, [0x141a7b1c0]
jmp 0x14018ff41
Function at 0x14019e050
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14019e0a7
mov rdi, r8
mov rbx, rdx
mov r14, qword [rcx]
lea rsi, [0x141ab2728]
nop
cmp rdi, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x14019e0ab
test eax, eax
je 0x14019e0ba
cdqe
cmp rdi, rax
jb 0x14019e0c7
add rbx, rax
sub rdi, rax
jne 0x14019e070
xor esi, esi
jmp 0x14019e0ba
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x1401c3920
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x50], 0
lea r12, [rsp + 0x50]
mov qword [rsp + 0x20], r12
lea rcx, [0x141ab5c70]
lea r9, [0x141ab5c54]
xor ebx, ebx
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x1401c3a2f
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1401c3a46
mov rcx, r15
mov rdx, r14
call fcn.1401c05b0
mov r14, rax
mov qword [rsp + 0x50], 0
mov rax, qword [rdi]
mov qword [rsp + 0x40], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x1401c3a68
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1401c3a80
test r14, r14
je 0x1401c39ea
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x1401c3ac7
mov qword [rsi + 8], rbx
mov byte [rsi], 0x12
jmp 0x1401c3aae
mov ecx, eax
call fcn.1401c0180
mov ebx, edx
test rax, rax
je 0x1401c3a46
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
movzx eax, byte [rsp + 0x4f]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x4d]
mov word [rsi + 1], ax
mov dword [rsi + 4], ebx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
jmp 0x1401c3ab7
mov ecx, eax
call fcn.1401c0180
mov r15d, edx
test rax, rax
je 0x1401c3a80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
test r14, r14
je 0x1401c3a8d
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
movzx eax, byte [rsp + 0x4f]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x4d]
mov word [rsi + 1], ax
mov dword [rsi + 4], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call fcn.1401c0180
mov ebp, edx
test rax, rax
je 0x1401c3ade
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov byte [rsi], 0
movzx eax, word [rsp + 0x50]
mov word [rsi + 1], ax
movzx eax, byte [rsp + 0x52]
mov byte [rsi + 3], al
mov dword [rsi + 4], ebp
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1401c3aae