joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400982d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x140098322
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x140098322
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x14009833d
cmp eax, 0x42
jne 0x140098322
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14009837a
cmp byte [rdi + rcx], 0x5f
jne 0x14009837a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140098472
mov rcx, rsi
xor edx, edx
call fcn.140093d40
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.140093d40
test al, al
jne 0x140098375
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400983ec
lea rdx, [0x14011affb]
mov r8d, 1
call fcn.1400232c0
test al, al
je 0x1400983ec
mov dil, 2
jmp 0x140098331
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14009848e
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x140098466
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400983cf
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400983be
add dl, 0xa9
jmp 0x1400983cd
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14009848e
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14009848e
movzx edx, bl
add rax, rdx
jae 0x140098390
jmp 0x14009848e
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140098331
xor ebx, ebx
lea r14, [0x14011b3d6]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140098424
cmp byte [rax + rcx], 0x45
je 0x14009851c
sub rbx, 1
jb 0x140098449
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140098449
mov r8d, 2
mov rdx, r14
call fcn.1400232c0
test al, al
jne 0x140098375
mov rcx, rsi
call fcn.140098530
test al, al
jne 0x140098375
mov rax, qword [rsi]
test rax, rax
jne 0x140098410
jmp 0x140098331
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14009848e
cmp rax, r9
jae 0x14009848b
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
jbe 0x1400984df
mov bl, 1
xor r8d, r8d
jmp 0x140098490
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400984ce
lea rax, [0x14011b3a1]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400232c0
mov dil, 2
test al, al
jne 0x140098331
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x140098331
cmp qword [rsi + 0x20], 0
je 0x1400984d8
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400982d0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140098333
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140098331
Function at 0x14009b0e0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx]
test rax, rax
je 0x14009b148
mov edx, dword [rcx + 0x10]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14009b179
mov rdx, qword [rcx + 0x28]
xor ebx, ebx
lea r8, [0x14014f438]
xor esi, esi
cmp rdx, rbx
je 0x14009b172
movzx edi, byte [rax + rbx]
or esi, dword [r8 + rdi*4]
inc rbx
jmp 0x14009b160
mov dword [rsp + 0x98], esi
mov rbx, qword [rcx + 0x30]
mov r15, qword [rcx + 0x40]
lea rsi, [r15*8]
test r15, r15
je 0x14009b1c8
xor r14d, r14d
mov rax, r15
shr rax, 0x3c
sete al
jne 0x14009b292
mov r14b, al
shl r14, 3
mov rcx, rsi
mov rdx, r14
call fcn.14001e805
mov rdi, rax
test rax, rax
jne 0x14009b1cd
mov rcx, rsi
mov rdx, r14
call fcn.1400e3100
ud2
mov edi, 8
xor eax, eax
cmp rsi, rax
je 0x14009b1e2
mov rcx, qword [rbx + rax]
mov qword [rdi + rax], rcx
add rax, 8
jmp 0x14009b1cf
lea rax, [rsp + 0x60]
mov dword [rax + 4], r15d
mov qword [rax + 8], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
and qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x14009b23a
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x14009b25f
movaps xmm6, xmmword [rsp + 0x50]
mov ecx, 0x20
call fcn.14001fe38
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
movups xmmword [rbx + 0x10], xmm6
xor r14d, r14d
test r15, r15
je 0x14009b275
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call fcn.140007750
mov rax, r14
mov rdx, rbx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14001d5f0
ud2

Function at 0x14009b7f4
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14009b81e
mov rdx, qword [rsp + 0x20]
jmp 0x14009b826
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400a7a9c
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400a7ac8
xor eax, eax
jmp 0x1400a7acd
call fcn.14004cfd9
nop
add rsp, 0x38
ret

Function at 0x1400ad060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x39]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400ad093
test ecx, ecx
jne 0x1400ad0e2
movzx r15d, byte [rdi + 0x38]
cmp al, 0xff
je 0x1400ad0a0
test ecx, ecx
jne 0x1400ad0e2
mov rcx, rdi
call fcn.1400acf40
movzx r10d, al
test bl, bl
jne 0x1400ad0e9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x1400ad0d6.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1400ad25c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x1400ad0d6.2
xor r10d, r10d
test bl, bl
je 0x1400ad0b0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400ad23e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1400ad11b
xor edi, edi
jmp 0x1400ad198
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1400ad160
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1400ad17b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400ad140
jmp 0x1400ad198
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1400ad17b
cmp ebx, 0x5c
je 0x1400ad17b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400ad160
jmp 0x1400ad198
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1400ad24c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x1400ad1c2
mov al, 9
cmp rdx, 2
je 0x1400ad1c6
cmp rdx, 1
jne 0x1400ad1d6
cmp byte [r9], 0x2e
jne 0x1400ad1d6
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400ad1d6
mov al, 0xa
jmp 0x1400ad1d6
cmp byte [r9], 0x2e
jne 0x1400ad1d6
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x1400ad0d6.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x1400ad0d6.2
mov esi, 2
jmp case.0x1400ad0d6.2
lea r8, str.library_std_srcpath.rs
call fcn.1400e34c0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400e34c0
ud2
Function at 0x1400b5270
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x140158230]
cmp rax, 3
jne 0x1400b5372
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rbx
call fcn.14001d9d0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400b52de
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400b52c7
not rdx
shr rdx, 0x3f
call fcn.14001d460
lea rax, str.data_provided_contains_a_nul_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400b5368
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400b533d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400b5350
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1400b5368
mov edx, 1
mov rcx, rdi
call fcn.14001d460
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1400e65f0
jmp 0x1400b5297
Function at 0x1400bcf70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.1400b0150
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x1400bcfbb
movdqu xmm6, xmmword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400bd01e
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400bd012
mov rdx, qword [rbp - 0x38]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1400bd00b
lea rax, [rdx - 1]
mov qword [rbp - 0x28], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x20], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x28]
je 0x1400bcffe
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.14001d460
mov edx, 8
mov rcx, rdi
call fcn.14001d460
mov qword [rsi], 0
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x1400bd012
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp fcn.14001d460
Function at 0x1400bf2d0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14001d3d0
mov rsi, rax
test rax, rax
je 0x1400bf3a2
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400bf780]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400bf394
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400bf372
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14001d460
mov edx, 8
mov rcx, rsi
call fcn.14001d460
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.1400e3100
ud2
Function at 0x1400bfac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400e2530
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x1400b5e40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400bfccc
mov r14, qword [sym.imp.kernel32.dll_SleepEx]
mov r15d, 0xffffffff
lea r12, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x1400bfb90
cmp dword [rbp + 0xfec], 0
jne 0x1400bfcd2
mov eax, dword [rbp + 0xff0]
test eax, eax
je 0x1400bfcd2
mov ebx, eax
cmp eax, 0x1000
ja 0x1400bfd1d
xor edi, edi
cmp rdi, rbx
ja 0x1400bfd02
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r13, rbx
sub rbx, rdi
cmp rbx, r15
cmovae rbx, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x1400b5e40]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r8d, ebx
mov r9, r12
call qword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x1400bfccc
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x1400bfc40
cmp dword [rbp + 0xfec], 0
jne 0x1400bfcd2
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rbx, r13
cmp rdi, r13
jne 0x1400bfbd0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x1400b5e40]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400bfb90
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rdi
mov qword [rbp + 0xfe0], rbx
mov rdx, rbx
call fcn.1400e35a0
jmp 0x1400bfd38
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
call fcn.1400e34d0
ud2
Function at 0x1400bfda0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x140158250]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x1400bfe02
lea rdx, [0x1401240fc]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1400bfe38
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x140158250], rcx
jne 0x1400bfdf2
mov rsi, qword [rsp + 0x30]
jmp 0x1400bfe02
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400bfe38
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x140028bd0]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x140124150]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [0x140124170]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.library_std_src_syswindows_rand.rsRNG_broken:___fallback_RNG_broken:
lea rcx, [rsp + 0x30]
call fcn.1400e3400
ud2

Function at 0x1400c5290
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x1400c52b1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x1400c52e9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400c52e2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400c52e9
mov ecx, eax
call fcn.1400bfda0
mov r8d, dword [0x1401582d0]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x60], 1
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rdx
add rsp, 0x38
ret
Function at 0x1400c56b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1400c56db
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x140158230]
cmp rax, 3
jne 0x1400c5867
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400c5753
cmp word [rbx], 0
je 0x1400c57ca
mov eax, dword [rbx + 4]
movzx ecx, word [rbx + 0xc]
rol cx, 8
mov edx, dword [rbx + 8]
movups xmm0, xmmword [rbx + 0xe]
mov r8d, 0x1c
mov bp, 0x17
jmp 0x1400c57ed
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400c576d
mov edi, eax
cmp eax, 0x2726
jne 0x1400c5856
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400c584e
mov r14, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400c5728
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400c5856
mov ecx, dword [rbx + 2]
movzx eax, word [rbx + 6]
shl rax, 0x20
or rax, rcx
rol cx, 8
shr rax, 0x10
xorps xmm0, xmm0
mov r8d, 0x10
mov bp, 2
mov word [rsp + 0x30], bp
mov word [rsp + 0x32], cx
mov dword [rsp + 0x34], eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400c5827
mov qword [rsi + 8], r14
mov qword [rsi], 0
jmp 0x1400c56d0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, r14
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400c56d0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov qword [rsi + 8], rdi
jmp 0x1400c56c9
call fcn.1400e65f0
jmp 0x1400c56ec
Function at 0x1400c85ec
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov r14, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400c8687
mov r12, rax
movsxd r13, dword [rsp + 0x2c]
lea r15, [rsp + 0x30]
mov qword [r15], 8
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
shl r13, 3
xor edi, edi
lea rsi, [rsp + 0x48]
cmp r13, rdi
je 0x1400c866a
mov rbx, qword [r12 + rdi]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.1400c7fb7
mov rcx, r15
mov rdx, rsi
call fcn.1400c8917
add rdi, 8
jmp 0x1400c863a
mov rcx, r12
call qword [sym.imp.kernel32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x10], rax
jmp 0x1400c8696
mov qword [r14], 8
xorps xmm0, xmm0
movups xmmword [r14 + 8], xmm0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400cc8c3
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp dword [rdx + 0x10], 1
jne 0x1400cc982
lea rcx, [0x1401251c2]
call sub.oleaut32.dll_SysAllocString
mov r14, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, r14
mov r8, rbx
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x1400cc982
mov rbx, qword [rsp + 0x38]
lea rcx, [rsi + 0x20]
call fcn.1400caaaf
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 0x1400cc991
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400caa29
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d38f7
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400d38fe
test al, 1
je 0x1400d391d
test al, 2
jne 0x1400d3932
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140128010]
mov edx, 0x23
jmp 0x1400d3945
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140128050]
mov edx, 0x25
call fcn.1400e34e0
ud2

Function at 0x1400d41f2
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400d2bc7
mov rcx, qword [rax + 8]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400d422e
xor eax, eax
jmp 0x1400d423c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret