joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e120
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42e3c6
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1270]
mov rcx, qword [rax + 0x1260]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42e3ba
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1260], 0
cmp byte [0x00612651], 0
jne 0x42e182
xor edx, edx
xor ebx, ebx
nop
jmp 0x42e1ca
xor edx, edx
jmp 0x42e1ad
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1270]
mov rax, rcx
call fcn.0041da60
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42e186
add rax, 0x1260
call fcn.0042dfe0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x42e354
mov rsi, qword [rax + rdx*8 + 0x1270]
nop dword [rax + rax]
cmp rsi, 0x1000
jb 0x42e1c7
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.00412b00
test rax, rax
jne 0x42e222
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42e1c7
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
nop
mov r8, rcx
shr rcx, 3
movzx r9d, byte [rsi + rcx]
and r8d, 7
mov rdx, rcx
mov rcx, r8
mov r10d, 1
shl r10d, cl
add rsi, rdx
test r10b, r9b
je 0x42e269
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42e1c7
nop
lock or byte [rsi], r10b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42e3ad
lea r10, [0x005e4a90]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x11440]
lea r9, [r9 + rcx]
lea r9, [r9 + 0x11440]
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x42e2ef
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x42e325
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1248]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1248], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42e1c7
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42e3a5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1270], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42e1c7
cmp rbx, 0x200
ja 0x42e398
lea rdx, [rax + 0x1270]
lea rsi, [rax + 0x1238]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00423be0
mov rax, qword [rsp + 0x48]
add rax, 0x1260
call fcn.0042dfe0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
call fcn.00460340
mov rax, r8
call fcn.004602c0
mov rax, r8
mov ecx, 0x40
call fcn.004602e0
mov edx, 0x200
nop
call fcn.00460320
nop
mov qword [rsp + 8], rax
call fcn.004626c0
mov rax, qword [rsp + 8]
jmp fcn.0042e120
Function at 0x4430c0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44322a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x4430d8
cmp edx, ecx
jne 0x443218
nop dword [rax]
test rsi, rsi
jne 0x443218
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x443134
nop
call fcn.00461c60
xorps xmm15, xmm15
mov r14, qword [0x00612858]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00442fc0
mov rcx, qword [0x005bf808]
mov rdx, qword [0x005bf800]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x443213
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x443208
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x005c0350]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x005c0350], rbx
nop
mov edx, 1
lea rsi, [0x005c0358]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x4431f7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004f889c]
mov ebx, 0x28
call fcn.004348a0
mov rcx, rax
mov rax, rsi
call fcn.004602c0
call fcn.00432ec0
lea rax, [0x004f77cd]
mov ebx, 0x23
call fcn.004348a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045dc60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004430c0
Function at 0x44e220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44e398
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44e25c
test r8b, r8b
jne 0x44e25c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44e26f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44e358
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44e346
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44e33c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44e2c3
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44e306
mov eax, 1
cmp rax, rbx
ja 0x44e2f5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00460380
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44e334
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44e2fd
mov r8d, eax
mov eax, r10d
jmp 0x44e2c8
mov rcx, rbx
call fcn.004602c0
xor eax, eax
mov rcx, rax
call fcn.004602c0
mov eax, r8d
mov rcx, rbx
call fcn.00460380
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44e38e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44e351
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44e275
mov eax, edx
mov rcx, rbx
call fcn.004602c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004602c0
nop
int3
Function at 0x455b80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x455c39
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00455c80]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045db20
xorps xmm15, xmm15
mov r14, qword [0x00612858]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045dc60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455b80
Function at 0x45fd00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4030cf
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409760
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045dc60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4030a0
cmp byte [0x00612650], 0
je 0x45fd15
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45cd60
jmp 0x4030a0

Function at 0x45fd20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00612940]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00612650], 0
je 0x45fd55
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00612c80]
aesenc xmm0, xmmword [0x00612c90]
aesenc xmm0, xmmword [0x00612ca0]
movq rax, xmm0
ret
jmp 0x409960

Function at 0x45fd60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00612940]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00612650], 0
je 0x45fd96
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00612c80]
aesenc xmm0, xmmword [0x00612c90]
aesenc xmm0, xmmword [0x00612ca0]
movq rax, xmm0
ret
jmp 0x4099c0

Function at 0x461780
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x00612c00]
mov qword [rsp + 8], rdx
lea r8d, [0x00612668]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045fc40
add rsp, 0x30
ret

Function at 0x461cc0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x461cf0
mov rcx, 0x28
jmp 0x461cfb
shl rcx, 3
add rcx, 0x1480
mov qword [0x00612858], rcx
ret
Function at 0x14000b540
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x200
mov r8d, reloc.WS2_32.dll_recv
mov rbx, rcx
call fcn.14003e230
test eax, eax
jne 0x14000b57a
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14000b564
mov qword [rbx + 0x200], rax
add rsp, 0x20
pop rbx
ret
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400226c0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.USERNAME
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
lea rdx, str.ODBC
mov r8d, 0x200
mov rcx, rbx
cmovne rdx, rax
add rsp, 0x20
pop rbx
jmp fcn.140028d30

Function at 0x140029160
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [0x14049cb69], 0
jne 0x1400291bb
mov ecx, 0x202
mov byte [0x14049cb69], 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400291bb
movzx ecx, word [rsp + 0x20]
movzx eax, cl
lea edx, [rax + rax*4]
mov eax, ecx
shr eax, 8
lea eax, [rax + rdx*2]
cmp eax, 0x16
jae 0x1400291bb
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x1d8
ret

Function at 0x14002bc00
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
sub rsp, 0x508
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
cmp byte [0x14049cb6b], 0
jne 0x14002bdc0
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [r11 - 8], rdi
mov r8d, 0x4b8
call fcn.140092ed0
lea rcx, [0x14049cba8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 0x80
lea rcx, [0x14049cb70]
mov r8d, edx
call fcn.140028f50
xorps xmm0, xmm0
mov byte [0x14049cb6b], 1
lea rcx, [0x14049cba8]
movups xmmword [0x1404b7320], xmm0
movups xmmword [0x1404b7330], xmm0
movups xmmword [0x1404b7340], xmm0
movups xmmword [0x1404b7350], xmm0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402cd210]
lea rdi, [0x1402cd210]
xor ebx, ebx
test rax, rax
je 0x14002bcd5
nop dword [rax]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.14002b7b0
mov rax, qword [rdi + 8]
lea rdi, [rdi + 8]
test rax, rax
jne 0x14002bcb0
lea rcx, [0x14049cba8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.LIBMYSQL_PLUGINS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x14002bd1c
mov rcx, rax
cmp byte [rcx], 0
je 0x14002bd5a
cmp byte [rcx + 1], 0
je 0x14002bd50
cmp byte [rcx + 2], 0
je 0x14002bd4b
cmp byte [rcx + 3], 0
je 0x14002bd46
add rcx, 4
add ebx, 4
cmp ebx, 0x400
jb 0x14002bcf6
xor eax, eax
mov rbx, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x508
ret
add ebx, 3
jmp 0x14002bd52
add ebx, 2
jmp 0x14002bd52
inc ebx
cmp ebx, 0x400
jae 0x14002bd1c
mov rcx, rax
mov qword [rsp + 0x518], rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov rsi, rax
mov rbx, rax
mov edx, 0x3b
mov rcx, rbx
call fcn.14008ee78
xor r9d, r9d
lea rcx, [rsp + 0x30]
mov r8d, 0xffffffff
mov rdx, rbx
lea rdi, [rax + 1]
test rax, rax
je 0x14002bda4
mov byte [rax], r9b
call fcn.14002bde0
mov rbx, rdi
jmp 0x14002bd70
call fcn.14002bde0
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rsp + 0x518]
xor eax, eax
jmp 0x14002bd1e
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x508
ret
Function at 0x14002c720
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rbp + 0x280], rax
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
mov rsi, rcx
mov r14b, 1
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
test rcx, rcx
je 0x14002c94c
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x14002c94c
mov r15, qword [rcx + 0x10]
test r15, r15
je 0x14002c94c
mov rbx, qword [rdi + 0x40]
test rbx, rbx
je 0x14002c94c
mov r8, qword [rbx + 0x440]
lea rcx, [rbp - 0x10]
mov rdx, qword [rbx + 0x3e8]
mov r8, qword [r8 + 0xc0]
call fcn.14002c180
cmp eax, 0x80090302
je 0x14002c919
cmp eax, 0x80090331
je 0x14002c910
test eax, eax
je 0x14002c7fe
lea rax, str.Unknown_error_before_the_handshake
jmp 0x14002c920
mov rbx, qword [rsi + 8]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax + 0x3d0]
mov rdx, qword [rax + 0x3c8]
test rcx, rcx
jne 0x14002c823
test rdx, rdx
je 0x14002c870
mov rcx, rdx
jmp 0x14002c82b
test rdx, rdx
jne 0x14002c82b
mov rdx, rcx
lea r9, [rbp + 0x180]
mov qword [rsp + 0x20], 0x100
lea r8, [rsp + 0x50]
call fcn.140037950
test eax, eax
je 0x14002c870
mov r8, qword [str.pg_n_]
lea rax, [rbp + 0x180]
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov edx, 0x7ea
mov qword [rsp + 0x20], rax
call qword [rbx + 0x50]
jmp 0x14002c93a
mov ecx, dword [rbp - 0x10]
lea rax, [rsp + 0x60]
xor r8d, r8d
cmp qword [rsp + 0x60], r8
cmove rax, r8
test rax, rax
je 0x14002c8a5
test ecx, ecx
je 0x14002c89a
mov dword [rbp - 4], 1
mov qword [rbp], rax
jmp 0x14002c8a5
mov dword [rbp + 0x50], 1
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x40], r8
lea rdx, [rbp + 0x48]
test ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r8
lea rax, [rbp - 8]
cmove rax, rdx
mov qword [rsp + 0x28], r8
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 2
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
call sub.Secur32.dll_AcquireCredentialsHandleA
lea rcx, [rsp + 0x50]
mov ebx, eax
call fcn.140037d90
test ebx, ebx
je 0x14002c8ff
mov edx, ebx
mov rcx, rdi
call fcn.140036680
jmp 0x14002c93a
mov rcx, rsi
call fcn.140035f70
test eax, eax
jne 0x14002c93a
xor r14b, r14b
jmp 0x14002c93a
lea rax, str.Unknown_cipher_suite
jmp 0x14002c920
lea rax, str.TLS1.3_is_not_supported_on_Windows_before_Windows_11_or_Windows_Server_2022
mov r8, qword [str.pg_n_]
xor r9d, r9d
mov edx, 0x7ea
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [rdi + 0x50]
cmp qword [rsp + 0x60], 0
je 0x14002c94c
lea rcx, [rsp + 0x50]
call fcn.140037d90
movzx eax, r14b
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.14008e500
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002ca30
Capabilities:
Get remote cert context via schannel

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
mov rsi, r8
mov qword [rsp + 0x40], 0
mov edi, edx
cmp edx, 3
jne 0x14002ca8a
mov rcx, qword [rcx + 8]
lea rax, str.SHA224_hash_for_fingerprint_verification_is_not_supported_in_Schannel
mov r9, qword [str.TLS_SSL_error:__s]
mov edx, 0x7ea
mov r8, qword [str.pg_n_]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x40]
call fcn.14001b490
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [rax + 0x30]
mov edx, 0x53
lea r8, [rsp + 0x40]
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
jne 0x14002ca7d
mov ecx, edi
mov qword [rsp + 0x48], rbx
call fcn.140035ca0
mov rdx, qword [rsp + 0x40]
mov rcx, rax
mov rbx, rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.140035c40
mov rdx, rsi
mov rcx, rbx
call fcn.140035dd0
mov rcx, rbx
call fcn.140035be0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ecx, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.14002c640

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rbx, rcx
test rcx, rcx
je 0x14002cfcc
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14002cfcc
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14002cfcc
mov rdi, qword [rdi + 0x40]
test rdi, rdi
je 0x14002cfcc
mov qword [rsp + 0x80], rbp
test sil, 8
je 0x14002cfc0
add rcx, 0x30
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x53
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
jne 0x14002cf9a
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rbp, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x14002cf9a
lea rcx, [rbp + 0x48]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x14002cfc0
or byte [rdi + 0x6b], 8
mov eax, 1
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov edx, esi
mov rcx, rbx
call fcn.140036740
jmp 0x14002cfa3
mov eax, 1
jmp 0x14002cfab
Function at 0x14002d570
Capabilities:
Get remote cert context via schannel

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x38], 0
mov rdi, rcx
test rcx, rcx
je 0x14002cb8c
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x14002cb8c
mov rax, qword [rcx + 8]
test rax, rax
je 0x14002cb8c
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14002cb8c
test edx, 0xfffffeff
je 0x14002cbc4
cmp edx, 0x180
je 0x14002cbbd
cmp edx, 0x200
je 0x14002cbb6
mov r9, qword [str.TLS_SSL_error:__s]
lea rax, str.Cannot_detect_hash_algorithm_for_fingerprint_verification
mov r8, qword [str.pg_n_]
mov edx, 0x7ea
mov qword [rsp + 0x20], rax
call fcn.14001b490
mov eax, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14008e500
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov esi, 6
jmp 0x14002cbc9
mov esi, 5
jmp 0x14002cbc9
mov esi, 4
cmp dword [rdi + 0x18], 0
jne 0x14002ccfa
lea rcx, [r8 + 0x30]
mov edx, 0x53
lea r8, [rsp + 0x38]
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
jne 0x14002cb8c
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax + 0x18]
mov eax, dword [rbx]
lea rcx, [rbx + 0x50]
inc eax
mov dword [rdi + 0x18], eax
call fcn.14002c5b0
lea rcx, [rbx + 0x30]
mov qword [rdi + 0x28], rax
call fcn.14002c5b0
lea rcx, [rbx + 0x40]
mov qword [rdi + 0x20], rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov rdx, qword [rsp + 0x40]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rdi + 0xb4], xmm0
movups xmmword [rdi + 0xc4], xmm0
mov dword [rdi + 0xd4], eax
movzx eax, dx
sub eax, 0x76c
mov dword [rdi + 0xc8], eax
mov rax, rdx
shr rax, 0x10
movzx ecx, ax
dec ecx
shr rdx, 0x30
mov dword [rdi + 0xc4], ecx
mov rcx, qword [rsp + 0x48]
movzx eax, cx
shr rcx, 0x10
mov dword [rdi + 0xbc], eax
movzx eax, cx
lea rcx, [rbx + 0x48]
mov dword [rdi + 0xc0], edx
lea rdx, [rsp + 0x40]
mov dword [rdi + 0xb8], eax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov r8, qword [rsp + 0x40]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rdi + 0xd8], xmm0
movups xmmword [rdi + 0xe8], xmm0
mov dword [rdi + 0xf8], eax
movzx eax, r8w
sub eax, 0x76c
mov dword [rdi + 0xec], eax
mov rax, r8
shr rax, 0x10
movzx ecx, ax
dec ecx
shr r8, 0x30
mov dword [rdi + 0xe8], ecx
mov rcx, qword [rsp + 0x48]
movzx eax, cx
shr rcx, 0x10
mov dword [rdi + 0xe0], eax
movzx eax, cx
mov dword [rdi + 0xdc], eax
mov dword [rdi + 0xe4], r8d
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x30]
add rcx, 0x30
mov qword [rsp + 0x30], 0
mov edx, 0x53
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
jne 0x14002cd5d
mov ecx, esi
call fcn.140035ca0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
mov rbx, rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.140035c40
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140035dd0
mov rcx, rbx
call fcn.140035be0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ecx, esi
call fcn.14002c640
mov r8, rax
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x50]
call fcn.14001fe80
xor eax, eax
jmp 0x14002cb91
jmp 0x14002cb00