joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009787d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140099be5
test rax, rax
je 0x1400978b5
mov edx, 4
mov rcx, rax
call fcn.14002a3e0
jmp 0x1400978ee
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.140096c90
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
and 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.140096d4f
Function at 0x140099be5
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140099c76
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140099c05
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140099c05
xor ebx, 0x80000000
je 0x140099c74
mov al, byte [0x14038d300]
mov ecx, 4
mov edx, 4
call fcn.14002a350
test rax, rax
je 0x140099c89
mov rsi, rax
mov dword [rax], ebx
jmp 0x140099c76
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.14004a310
ud2
Function at 0x14009ff87
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1402650e8]
test ecx, ecx
je 0x14009ffa0
dec ecx
add rsp, 0x28
jmp fcn.1401b7924
lea rcx, [0x1402650d0]
call fcn.1401552d0
mov ecx, eax
jmp 0x14009ff97

Function at 0x1400aa35f
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rbx, r9
mov rsi, r8
mov r11, rdx
movabs rdi, 0x100000001b3
mov r15, qword [r9]
mov r8, qword [r9 + 0x10]
lea rdx, [r8*8]
movabs rax, 0xcbf29ce484222325
mov r9, r15
test rdx, rdx
je 0x1400aa3d2
movzx r10d, byte [r9 + 4]
xor rax, r10
imul rax, rdi
movzx r10d, byte [r9 + 5]
xor r10, rax
mov eax, dword [r9]
add r9, 8
imul r10, rdi
xor rax, r10
imul rax, rdi
add rdx, 0xfffffffffffffff8
jmp 0x1400aa3a1
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x1400aa52c
xor edx, edx
div r9
mov rdi, rdx
mov rax, qword [rsi]
mov r12, rdx
shl r12, 5
movzx edx, word [rax + r12 + 0x1c]
cmp dx, word [rsi + 0x20]
jne 0x1400aa446
cmp qword [rax + r12 + 0x10], r8
jne 0x1400aa446
mov r14, qword [rax + r12]
xor r9d, r9d
cmp r8, r9
je 0x1400aa4ff
mov rdx, r9
mov r9b, byte [r14 + r9*8 + 4]
cmp r9b, byte [r15 + rdx*8 + 4]
jne 0x1400aa43d
mov r9b, byte [r15 + rdx*8 + 5]
cmp byte [r14 + rdx*8 + 5], r9b
jne 0x1400aa43d
lea r9, [rdx + 1]
mov r10d, dword [r14 + rdx*8]
cmp r10d, dword [r15 + rdx*8]
je 0x1400aa40b
cmp rdx, r8
jae 0x1400aa4ff
mov qword [rsp + 0x28], rcx
lea r13, [rsp + 0x30]
mov rcx, r13
mov rdx, r15
mov r14, r11
call fcn.1400aa557
lea rbp, [rsp + 0x48]
mov rcx, rbp
mov rdx, r14
mov r8, r13
call fcn.1400a91f5
mov eax, dword [rbp]
cmp eax, 0x2a
jne 0x1400aa4dd
mov rdx, qword [rsi + 0x10]
cmp rdx, rdi
jbe 0x1400aa546
mov edi, dword [rsp + 0x4c]
movzx ebp, word [rsi + 0x20]
mov rsi, qword [rsi]
mov rcx, qword [rsi + r12]
mov rdx, qword [rsi + r12 + 8]
call fcn.1400abb44
mov rax, qword [rbx + 0x10]
mov qword [rsi + r12 + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsi + r12], xmm0
mov dword [rsi + r12 + 0x18], edi
mov word [rsi + r12 + 0x1c], bp
mov rax, qword [rsp + 0x28]
mov dword [rax + 4], edi
mov dword [rax], 0x2a
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x50]
mov edx, dword [rsi - 4]
mov r8, qword [rsp + 0x28]
lea rdi, [r8 + 8]
mov ecx, 0xf
rep movsq qword [rdi], qword [rsi]
mov dword [r8], eax
mov dword [r8 + 4], edx
jmp 0x1400aa50d
mov eax, dword [rax + r12 + 0x18]
mov dword [rcx + 4], eax
mov dword [rcx], 0x2a
mov rdx, qword [rbx + 8]
mov rcx, r15
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400abb44
lea rcx, [0x1402ae430]
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_automata_0.4.3_src_nfa_thompson_map.rs
mov edx, 0x39
call fcn.140050c60
ud2
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_automata_0.4.3_src_nfa_thompson_map.rs
mov rcx, rdi
call fcn.14004f400
ud2
Function at 0x140133a35
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x98]
mov rcx, qword [rdx + 0x80]
mov rdx, qword [rdx + 0x90]
lea r9, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rshe1_
call fcn.140132849
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xc0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x140133b12
test eax, eax
je 0x140133b2e
cmp eax, 0x90317
je 0x140133ba6
cmp eax, 0x90321
jne 0x140133bae
mov dword [rdi + 0x40], 0x10000
xor ebx, ebx
mov byte [rdi + 0x44], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1401339d5
and qword [rdi + 0xf8], 0
mov byte [rsi + 1], bl
jmp 0x140133bbc
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x140133baa
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x90]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x60]
and qword [rdi + 0x70], 0
call fcn.140133bd0
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14006c0e5
and qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1401339d5
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x140133bbc
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140133bbc
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140133e6b
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x198]
mov rcx, qword [rdx + 0x180]
mov rdx, qword [rdx + 0x190]
lea r9, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rshe1_
call fcn.140132849
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x1c0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x140133f4e
test eax, eax
je 0x140133f6d
cmp eax, 0x90317
je 0x140133fee
cmp eax, 0x90321
jne 0x140133ff6
mov dword [rdi + 0x140], 0x10000
xor ebx, ebx
mov byte [rdi + 0x144], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x198]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.140133e0b
and qword [rdi + 0x1f8], 0
mov byte [rsi + 1], bl
jmp 0x140134004
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x140133ff2
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x180]
mov rdx, qword [rdi + 0x190]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x160]
and qword [rdi + 0x170], 0
call fcn.140133bd0
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14006c0e5
and qword [rdi + 0x178], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x198]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140133e0b
xor eax, eax
cmp qword [rdi + 0x198], rbx
sete al
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x140134004
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140134004
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
cmp dword [rcx], 2
jne fcn.140134020
add rcx, 8
jmp fcn.140193a33
Function at 0x140134d82
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, rcx
call fcn.140134f13
cmp rax, 1
jbe 0x140134dc0
mov rcx, rax
mov rax, qword [rax + 8]
add rcx, 0x10
test rax, rax
cmove rcx, rax
jne 0x140134ee4
call fcn.140134f13
cmp rax, 1
je 0x140134ee2
mov rsi, rax
test rax, rax
jne 0x140134e10
mov ecx, 0x18
mov edx, 8
call fcn.14009ec09
mov rsi, rax
lea rax, [0x140265108]
mov qword [rsi], rax
and qword [rsi + 8], 0
mov ecx, dword [0x140265120]
test ecx, ecx
je 0x140134f00
dec ecx
mov rdx, rsi
call fcn.1401b792c
test rdi, rdi
mov qword [rsp + 0x20], rsi
je 0x140134e44
mov rax, qword [rdi]
and qword [rdi], 0
test rax, rax
je 0x140134e44
mov rax, qword [rdi + 8]
mov rdx, qword [rsp + 0x20]
lea rcx, [rdx + 0x10]
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], rax
jmp 0x140134ee4
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.1401acb2d
mov rcx, rdi
call fcn.140134f3c
mov rbx, rax
mov r14, rdx
movabs r12, 0x736f6d6570736575
xor r12, rax
movabs r13, 0x646f72616e646f6d
xor r13, rdx
movabs rbp, 0x6c7967656e657261
xor rbp, rax
movabs rsi, 0x7465646279746573
xor rsi, rdx
mov r15d, 1
xor eax, eax
xorps xmm6, xmm6
test rax, rax
jne 0x140134e2a
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
movups xmmword [rdi + 0x30], xmm6
and qword [rdi + 0x40], 0
mov rcx, rdi
mov rdx, r15
call fcn.1401ac683
mov rcx, rdi
call fcn.140060497
inc r15
jmp 0x140134e9e
xor ecx, ecx
mov rax, rcx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140265108]
call fcn.1401552d0
mov ecx, eax
jmp 0x140134e08

Function at 0x140134f13
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140265120]
test ecx, ecx
je 0x140134f2c
dec ecx
add rsp, 0x28
jmp fcn.1401b7924
lea rcx, [0x140265108]
call fcn.1401552d0
mov ecx, eax
jmp 0x140134f23
Function at 0x140135aa3
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
cmp dword [rdx], 2
jne 0x140135c3f
mov qword [rsp + 0x58], rsi
lea r15, [r14 + 8]
lea r12, [r14 + 0x20]
xor ecx, ecx
cmp qword [r14 + 0x20], 0xffffffffffffffff
cmove r12, rcx
mov ebp, 0xffffffff
cmp rax, rbp
cmovb rbp, rax
xorps xmm6, xmm6
mov rdx, qword [r14 + 0x18]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov r9b, 1
call fcn.140193806
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x140135c5a
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x140135c68
mov dl, byte [rsp + 0x48]
lea r9, [rsp + 0x4a]
movzx r8d, word [r9 + 4]
lea r10, [rsp + 0x6a]
mov word [r10 + 4], r8w
mov r8d, dword [r9]
mov dword [r10], r8d
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], dl
mov byte [rsp + 0x69], al
mov rcx, r12
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.33.0_src_io_poll_evented.rs
call fcn.14019259b
mov rcx, qword [r12]
and dword [rsp + 0x54], 0
movups xmmword [rsp + 0x28], xmm6
and dword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, ebp
lea r9, [rsp + 0x54]
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x140135c76
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.1400913a6
cmp al, 0xd
jne 0x140135c09
mov rax, qword [r12 + 8]
test rax, rax
je 0x140135c09
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140135cbd
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140091281
mov rsi, rax
xor ecx, ecx
call fcn.140153684
test rsi, rsi
je 0x140135c09
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], 1
mov ecx, 1
mov rdx, r13
call fcn.1400913f0
mov r13, rsi
jmp 0x140135c17
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], r13
mov rcx, r13
call fcn.14000af57
cmp al, 0xd
jne 0x140135c94
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.1401937a3
lea rcx, [rsp + 0x48]
call fcn.14018daf7
jmp 0x140135aff
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, rdi
call fcn.140135523
mov rax, rsi
jmp 0x140135ca4
mov rax, qword [rsp + 0x58]
mov qword [rax], 2
jmp 0x140135ca4
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
jmp 0x140135c8e
mov ecx, dword [rsp + 0x54]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x58]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x140135ca4
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
mov qword [rax + 8], r13
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x140142d81
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, r8
mov r14, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.140142d54
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
call fcn.1400800e6
mov rbx, rax
lea r12, [rsp + 0x40]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140142e1e
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.14006c09f
mov rbx, qword [rsp + 0x40]
jmp 0x140142de9
test eax, eax
jne 0x140142e40
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x140142e5e
movabs rax, 0xde00000002
jmp 0x140142e48
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1401371c1
jmp 0x140142e72
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14019d415
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14014b460
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.14005a5d0
jmp fcn.14004f8e0
Function at 0x14014c400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14014c45b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14014c45b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14014c476
cmp eax, 0x42
jne 0x14014c45b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14014c526
cmp byte [r9 + r11], 0x5f
jne 0x14014c526
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14014c58e
mov rcx, rsi
xor edx, edx
call fcn.140147ea0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140147ea0
test al, al
jne 0x14014c621
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14014c4b2
lea rdx, [0x14034684e]
mov r8d, 1
call fcn.140050940
test al, al
jne 0x14014c621
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14014c46a
xor r14d, r14d
lea rbx, [0x140315b5f]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14014c4e4
cmp byte [rax + rcx], 0x45
je 0x14014c643
sub r14, 1
jb 0x14014c509
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14014c509
mov r8d, 2
mov rdx, rbx
call fcn.140050940
test al, al
jne 0x14014c621
mov rcx, rsi
call fcn.1401496d0
test al, al
jne 0x14014c621
mov rax, qword [rsi]
test rax, rax
jne 0x14014c4d0
jmp 0x14014c46a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14014c5e8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14014c582
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14014c56c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14014c55b
add dl, 0xa9
jmp 0x14014c56a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14014c5e8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14014c5e8
movzx edx, bl
add rax, rdx
jae 0x14014c530
jmp 0x14014c5e8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14014c5e8
cmp rax, rcx
jae 0x14014c5e5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14014c63b
cmp qword [rsi + 0x20], 0
je 0x14014c634
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.14014c400
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14014c46c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14014c629
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140315b20]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140050940
test al, al
je 0x14014c629
mov dil, 2
jmp 0x14014c46a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14014c46a
mov dil, 1
xor r8d, r8d
jmp 0x14014c5ea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14014c46a
Function at 0x14014f474
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14014f4d7
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14014f50d
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x14014f506
lea r9, [0x14034a820]
xor r10d, r10d
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x14014f4f5
mov dword [rsp + 0xa0], edx
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x14014f55e
mov rax, r15
shr rax, 0x3c
jne 0x14014f61f
mov rbx, qword [rcx]
mov ecx, 8
mov rdx, rsi
call fcn.14008ffa5
test rax, rax
je 0x14014f626
mov rdi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x14014f549
mov eax, r15d
jmp 0x14014f565
xor eax, eax
mov edi, 8
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x14014f5bb
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x14014f5f3
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.14008ffa5
test rax, rax
je 0x14014f630
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x14014f608
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.1400108ae
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14004a2d0
ud2
mov ecx, 8
mov rdx, rsi
jmp 0x14014f63a
mov ecx, 8
mov edx, 0x20
call fcn.14004a310
ud2

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

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14014fbe8
mov rdx, qword [rsp + 0x20]
jmp 0x14014fbf0
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x140153632
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 0x14015365e
xor eax, eax
jmp 0x140153663
call fcn.140090a40
nop
add rsp, 0x38
ret
Function at 0x140154f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x140265198]
test ecx, ecx
je 0x140155023
dec ecx
call fcn.1401b7924
cmp rax, 1
jbe 0x140154f64
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140154f64
add rdi, 0x10
jmp 0x140155019
mov ecx, dword [0x140265198]
test ecx, ecx
je 0x140155036
dec ecx
call fcn.1401b7924
cmp rax, 1
je 0x140155017
mov rsi, rax
test rax, rax
jne 0x140154fe7
mov qword [rsp + 0x30], 0
lea rax, [0x140265180]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x14038d300]
mov ecx, 0x20
mov edx, 8
call fcn.14002a350
test rax, rax
je 0x140155059
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x140265198]
test ecx, ecx
je 0x140155049
dec ecx
mov rdx, rsi
call fcn.1401b792c
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x140155019
test rcx, rcx
je 0x140155019
lock dec qword [rcx]
jne 0x140155019
call fcn.1401550a0
jmp 0x140155019
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x140265180]
call fcn.1401552d0
mov ecx, eax
jmp 0x140154f46
lea rcx, [0x140265180]
call fcn.1401552d0
mov ecx, eax
jmp 0x140154f74
lea rcx, [0x140265180]
call fcn.1401552d0
mov ecx, eax
jmp 0x140154fdf
mov ecx, 8
mov edx, 0x20
call fcn.14004a310
ud2