joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180036970
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
cmp qword [rcx + 0x20], 0xffffffffffffffff
jne 0x18003697f
xor al, al
jmp 0x1800369b1
and qword [rsp + 0x28], 0
mov r9, rcx
lea r8, [0x180036914]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
je 0x18003697b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
add rsp, 0x38
ret

Function at 0x180036a5c
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x80
and dword [rsp + 0x50], 0
mov rbx, rcx
lea rcx, [rsp + 0x58]
mov edx, 1
mov dword [rsp + 0x40], 0x18
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x180036aa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.__Error_InitializeSecurityDescriptor__d_n
mov ecx, 0x2b5
mov r8d, eax
call fcn.180030818
xor r9d, r9d
lea rcx, [rsp + 0x58]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x180036ad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.__Error_SetSecurityDescriptorDacl__d_n
mov ecx, 0x2ba
mov r8d, eax
call fcn.180030818
mov r9d, dword [rbx + 0x64]
mov r8d, dword [rbx + 0x5c]
mov edx, dword [rbx + 0x58]
mov rcx, qword [rbx + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x68]
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x6c]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180036b37
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.__Error_CreateNamedPipe__d_n
mov ecx, 0x2d2
mov r8d, eax
call fcn.180030818
jmp 0x180036b48
lea rdx, [0x18003f064]
mov ecx, 0x2d6
call fcn.180030818
mov rax, rbx
add rsp, 0x80
pop rbx
ret

Function at 0x180036be0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
mov rdi, rcx
lea rdx, [0x18003a0b0]
mov ecx, 0x2fb
call fcn.180030818
mov ecx, dword [rdi + 0x7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x180036cac
lea rdx, [0x18003a0b0]
mov ecx, 0x302
call fcn.180030818
mov r11, qword [rdi]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [r11 + 0x58]
mov esi, eax
test eax, eax
je 0x180036ca3
lea rdx, [0x18003a0b0]
mov ecx, 0x309
call fcn.180030818
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, esi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x180036c89
mov rcx, qword [rdi + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x180036c9a
and qword [rsp + 0x30], 0
jmp 0x180036c9a
lea rdx, str._HeapFree__NULL_n
mov ecx, 0x30c
call fcn.180030818
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140011be0
cmp r11, r10
ja 0x140011c56
cmp r10, rdx
ja 0x140011c68
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140011be2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140011bc0
jmp 0x140011c44
ja 0x140011bea
mov r11, r10
cmp rax, r8
jne 0x140011b84
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140011c20
mov rdi, r8
sub ecx, edx
jns 0x140011c3b
jmp 0x140011c46
cmp r8, rsi
je 0x140011c77
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140011c46
xor al, 1
cmp rdi, rsi
jne 0x140011c00
jmp 0x140011c46
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400b62f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400b6060
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400b60e0
int3
Function at 0x14001d516
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14001d54c
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14001d554
mov esi, dword [rdx]
mov r9d, 4
jmp 0x14001d559
xor r10d, r10d
jmp 0x14001d607
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14001d57c
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14001d593
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14001d5b3
add r11, r8
jmp 0x14001d6d7
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14001d67b
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14001d629
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14001d68d
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14001d693
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14001d6b9
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14001d6d3
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001d6df
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x14001d791
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
movabs r8, 0x736f6d6570736575
xor r8, rax
movabs r9, 0x646f72616e646f6d
xor r9, rdx
movabs r10, 0x6c7967656e657261
xor r10, rax
movabs r11, 0x7465646279746573
xor r11, rdx
lea rcx, [rsp + 0x30]
mov qword [rcx], r8
mov qword [rcx + 8], r10
mov qword [rcx + 0x10], r9
mov qword [rcx + 0x18], r11
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 0x30], xmm0
mov qword [rcx + 0x40], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov r8d, 8
call fcn.14001d516
test rdi, rdi
je 0x14001d80a
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14001d821
movabs rcx, 0x100000001b3
mov rdx, qword [rsi]
xor eax, eax
test rdx, rdx
setne al
mov qword [rsp + 0x30], rax
movabs rax, 0xcbf29ce484222325
xor r8d, r8d
movzx r9d, byte [rsp + r8 + 0x30]
inc r8
xor rax, r9
imul rax, rcx
cmp r8, 8
jne 0x14001d7b8
test rdx, rdx
je 0x14001d916
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x14001d937
mov r8, qword [rsi + 8]
xor r9d, r9d
mov r10, rax
movzx eax, byte [r8 + r9]
xor rax, r10
imul rax, rcx
inc r9
mov r10, rax
cmp rdx, r9
jne 0x14001d7ee
jmp 0x14001d937
movzx eax, byte [rsi + 8]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
lea rcx, [rsp + 0x30]
mov r8d, 8
call fcn.14001d516
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x14001d937
movzx edx, byte [rsi + 8]
mov qword [rsp + 0x30], rdx
xor edx, edx
movzx r8d, byte [rsp + rdx + 0x30]
inc rdx
xor rax, r8
imul rax, rcx
cmp rdx, 8
jne 0x14001d921
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14002dc29
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rbx, rdx
mov rsi, rcx
mov al, byte [0x1401222b8]
mov ecx, 0x18
mov edx, 8
call fcn.140034c70
test rax, rax
je 0x14002df2a
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov byte [rdi + 0x10], 0
mov rbx, qword [rbx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x14002df39
xorps xmm0, xmm0
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x2c]
mov dword [r8], 0x80
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x14002dd0e
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x70]
cmp ecx, 2
je 0x14002dd1e
cmp ecx, 0x17
jne 0x14002dd48
cmp eax, 0x1b
jbe 0x14002df51
movups xmm0, xmmword [rsp + 0x78]
movzx eax, word [rsp + 0x72]
rol ax, 8
mov ecx, dword [rsp + 0x74]
mov edx, dword [rsp + 0x88]
mov word [rsp + 0x30], 1
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x48], edx
mov word [rsp + 0x4c], ax
mov bp, 1
jmp case.0x1400262dd.477
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14002dd4f
cmp eax, 0xf
jbe 0x14002df69
mov eax, dword [rsp + 0x74]
movzx ecx, word [rsp + 0x72]
rol cx, 8
mov word [rsp + 0x30], 0
mov word [rsp + 0x36], cx
mov dword [rsp + 0x32], eax
xor dh, byte [rcx]
in eax, dx
lea rax, str.invalid_argument
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], 2
mov bp, 2
mov ecx, 8
mov edx, 0x18
call fcn.1400b5bc0
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:Usersoracl.cargo_registry_src_rsproxy.cn_0dccff568467c15b_tokio_1.36.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1400b60e0

Function at 0x140042a21
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, 0x68
mov rax, r8
mov rbx, rdx
mov rsi, rcx
lea r12, [rsp + 0x50]
mov r8d, 0xb
mov rcx, r12
mov rdx, rax
call fcn.14008c5de
lea r13, [rsp + 0x30]
mov dword [r13], 0x800
add byte [rax], al
or byte [rax], al
add byte [rax], al
lea r14, [rsp + 0x34]
mov dword [r14], 0
mov ecx, 0x800
add byte [rax], cl
add byte [rax], al
call fcn.14003699c
mov rdi, rdx
lea r15, [rsp + 0x38]
mov qword [r15], rax
mov qword [r15 + 8], rdx
mov qword [r15 + 0x10], 0
add byte [rax], al
add byte [rbp - 0x75], cl
mov r12, qword [r12 + 8]
Function at 0x14004cf52
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd28
movaps xmmword [rsp + 0xd10], xmm7
movaps xmmword [rsp + 0xd00], xmm6
mov r12, r8
mov rdi, rdx
mov rbx, rcx
mov rdx, qword [rdx + 0x408]
add rdx, 0x10
lea rsi, [rsp + 0x420]
mov rcx, rsi
call fcn.14002f011
cmp qword [rsi], 0
jne 0x1400517c6
mov qword [rsp + 0xe0], rbx
mov rsi, qword [rsp + 0x428]
mov dl, byte [rsp + 0x430]
cmp dword [rsi + 0xe8], 0
mov qword [rsp + 0x88], r12
je 0x14004d0c0
mov byte [rsp + 0x70], dl
lea r14, [rsi + 0x10]
lea r15, [rsi + 0x1c0]
lea r12, [rsi + 0xe8]
call fcn.14009d350
lea rcx, [rsp + 0x240]
mov qword [rcx], rax
mov dword [rcx + 8], edx
mov rbp, qword [rsi + 0xa8]
mov r13d, dword [rsi + 0xb0]
lea rbx, [rsp + 0x420]
Function at 0x140064c52
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x758
movaps xmmword [rsp + 0x740], xmm7
movaps xmmword [rsp + 0x730], xmm6
mov r14, rdx
mov r15, rcx
cmp dword [rdx], 2
jne 0x140064ca5
mov rax, qword [r14 + 8]
mov qword [r14 + 8], 0
test rax, rax
je 0x140066983
mov qword [r15], 3
mov qword [r15 + 8], rax
jmp 0x1400668f1
mov rsi, r8
mov rcx, qword [r14 + 0x130]
test rcx, rcx
je 0x140064cc4
mov rdx, rsi
call fcn.1400a3e52
test al, al
je 0x14006641f
mov qword [rsp + 0x30], r15
lea rdi, [rsp + 0x68]
lea r12, [rsp + 0x398]
mov eax, 0xb8
lea r13, [rsp + 0x50]
add rax, r13
mov qword [rsp + 0x1a8], rax
mov eax, 0x80
add byte [rax], 0
add byte [rcx + rax - 0x18], cl
mov cx, 1
call fcn.1400776af
mov rbx, rax
mov rdx, qword [r14 + 0x90]
mov r8, qword [r14 + 0x98]
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140002690
movups xmm0, xmmword [r14 + 0xb4]
movups xmm1, xmmword [r14 + 0xc8]
movups xmmword [rsi + 0x40], xmm1
mov al, byte [r14 + 0xd8]
mov byte [rsi + 0x50], al
mov eax, dword [r14 + 0xb0]
mov ecx, dword [r14 + 0xc4]
movups xmm1, xmmword [r14 + 0xa0]
movups xmmword [rsi + 0x2c], xmm0
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x3c], ecx
movups xmmword [rsi + 0x18], xmm1
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
call fcn.140078139
mov ecx, 0xb
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov qword [r15], 3
mov qword [r15 + 8], rbx
jmp 0x1400668f1
lea rcx, str.Pending_error_polled_more_than_once
lea r8, str.C:Usersoracl.cargo_registry_src_rsproxy.cn_0dccff568467c15b_reqwest_0.11.26_src_async_implclient.rsinternal_error:_entered_unreachable_code:_trust_dns_shouldnt_be_enabled_unless_the_feature_is
mov edx, 0x23
add byte [rax], al
add al, ch
invalid
sti
add al, 0
Function at 0x140069102
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x78]
mov rdx, qword [rdx + 0x70]
cmp rdx, rcx
jb 0x14006929b
mov rax, qword [rdi + 0x68]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], ecx
mov dword [r8 + 4], 1
mov qword [r8 + 8], rax
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0xf0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x140069211
cmp eax, 0x80090318
je 0x14006926f
test eax, eax
jne 0x14006925f
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rdi + 0x68]
mov rax, qword [rdi + 0x70]
sub rcx, rdx
mov r8d, dword [rsp + 0x30]
mov r9, rcx
mov qword [rdi + 0x50], 0
add r9, r8
jb 0x1400692a7
cmp rax, r9
jb 0x1400692b6
lea rax, [rdi + 0x40]
add rdx, rcx
mov rcx, rax
call fcn.1400ac380
mov qword [rdi + 0x58], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400692c9
xor eax, eax
cmp qword [rdi + 0x78], 0
sete al
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
jmp 0x140069291
cmp eax, 0x90317
je 0x14006928b
cmp eax, 0x90321
jne 0x14006925f
mov dword [rdi + 0xd0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xd4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400692c9
mov qword [rdi + 0x110], 0
mov byte [rsi + 1], bl
jmp 0x140069291
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
jmp 0x140069291
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
jmp 0x14006928f
mov byte [rsi + 1], 1
xor ebx, ebx
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea r8, [0x1400eaee8]
call fcn.1400b6060
lea r8, [0x1400eaf00]
mov rdx, r9
call fcn.1400b62f0
lea r8, [0x1400eaf00]
mov rcx, r9
mov rdx, rax
call fcn.1400b6060
int3
Function at 0x14006a2d2
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x178]
mov rdx, qword [rdx + 0x170]
cmp rdx, rcx
jb 0x14006a48c
mov rax, qword [rdi + 0x168]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], ecx
mov dword [r8 + 4], 1
mov qword [r8 + 8], rax
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0x1f0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x14006a3ff
cmp eax, 0x80090318
je 0x14006a460
test eax, eax
jne 0x14006a450
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rdi + 0x168]
mov rax, qword [rdi + 0x170]
sub rcx, rdx
mov r8d, dword [rsp + 0x30]
mov r9, rcx
mov qword [rdi + 0x150], 0
add r9, r8
jb 0x14006a498
cmp rax, r9
jb 0x14006a4a7
lea rax, [rdi + 0x140]
add rdx, rcx
mov rcx, rax
cmp eax, 0x90317
je 0x14006a47c
cmp eax, 0x90321
jne 0x14006a450
mov dword [rdi + 0x1d0], 0x10000
xor ebx, ebx
mov byte [rdi + 0x1d4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x178]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14006a4ba
mov qword [rdi + 0x210], 0
mov byte [rsi + 1], bl
jmp 0x14006a482
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
jmp 0x14006a482
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x210], rax
mov byte [rsi + 1], 0
jmp 0x14006a480
mov byte [rsi + 1], 1
xor ebx, ebx
lea r8, [0x1400eaee8]
call fcn.1400b6060
lea r8, [0x1400eaf00]
mov rdx, r9
call fcn.1400b62f0
lea r8, [0x1400eaf00]
mov rcx, r9
mov rdx, rax
call fcn.1400b6060
int3

Function at 0x14007556f
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x38], r8
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400682d7
mov eax, dword [rbx]
cmp eax, 2
je 0x14007570c
Function at 0x140090150
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000caa0
cmp rax, rcx
je 0x140090175
cmp rdx, 4
jae 0x140090178
xor eax, eax
xor r8d, r8d
jmp 0x140090210
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400bd5c0]
movdqa xmm3, xmmword [0x1400bd5d0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400901a0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140090227
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140090210
ret
Function at 0x140093724
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, 0xb0
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
movabs rax, 0x8000000000000000
cmp qword [rcx + 0x18], rax
je 0x140093790
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x90], rdx
cmp qword [rcx + 0x30], rax
je 0x1400937cb
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1400937c2
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x140119828]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x1400937af
jmp 0x1400937c4
xor edx, edx
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x140093823
mov rax, r14
shr rax, 0x3c
jne 0x1400938ec
mov rbx, qword [rcx + 8]
lea rdi, [r14*8]
mov al, byte [0x1401222b8]
mov edx, 8
mov rcx, rdi
call fcn.140034c70
test rax, rax
je 0x1400938f1
mov rsi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp r14, rax
jne 0x14009380e
mov eax, r14d
jmp 0x14009382a
xor eax, eax
mov esi, 8
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, [0x1400edf73]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x140093883
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x1400938c0
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov al, byte [0x1401222b8]
mov ecx, 0x20
mov edx, 8
call fcn.140034c70
test rax, rax
je 0x1400938fe
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r15
xor ebx, ebx
test r14, r14
je 0x1400938d7
mov rcx, qword [0x140122220]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rbx
mov rdx, rdi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140001bb0
mov ecx, 8
mov rdx, rdi
call fcn.1400b5bc0
mov ecx, 8
mov edx, 0x20
call fcn.1400b5bc0
int3

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

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov 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 0x14009412f
mov rdx, qword [rsp + 0x20]
jmp 0x140094137
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x14009431d
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 qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14009434a
xor eax, eax
jmp 0x140094358
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140094389
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x1400943ae
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400943b0
xor eax, eax
add rsp, 0x28
ret