joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400272f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140198d00]
xor ebp, ebp
cmp byte [rbx + 0x5f78], bpl
jne 0x1400273ec
cmp dword [rbx + 0x5fa0], ebp
je 0x140027337
mov r8d, 0x347b
lea rdx, str.C:UserszurlyDesktopLumi_Liteimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400273e5
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14000d040
mov rdi, rax
test rax, rax
je 0x1400273e5
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140027371
mov rcx, rax
call fcn.140027540
mov r8, qword [0x140198d00]
test r8, r8
je 0x1400273dc
movsx rdx, word [r8 + 0x6100]
lea rcx, [r8 + 0x6104]
mov r9d, dword [r8 + 0x3f68]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400273d1
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6100], cx
movsx rax, cx
lea rcx, [r8 + 0x6104]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60fc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f78], 1
movss xmm0, dword [rbx + 0x5f7c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140027489
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f7c], xmm0
jb 0x140027489
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x140027477
mov rax, qword [0x140198d00]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f7c], ebp
call fcn.1400277c0
lea rdx, [0x1400e864c]
mov rcx, rdi
mov rsi, rax
call fcn.14000cf50
mov rdi, rax
test rax, rax
je 0x14002747e
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14002747e
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5f7c], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400274a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140198d00]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140027503
mov qword [rsp], rbx
lea rbx, [0x1400dec50]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400274e3
cmp byte [r8], r9b
jne 0x1400274e3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400274d0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f90]
not eax
mov r8, qword [r10 + 0x5f98]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002752f
cmp dword [r8 + 8], eax
je 0x140027536
add r8, 0x48
cmp r8, rcx
jne 0x140027520
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140066760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1400553f0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400667b6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14006680d
mov ebp, 0x4b0000
jmp 0x14006681b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1400579d0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140066831
mov eax, r12d
jmp 0x14006683a
mov edx, edi
mov ecx, ebp
call fcn.1400579d0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140066856
shl esi, 0x10
mov ecx, esi
jmp 0x140066945
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1400668b4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1400553f0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1400668a4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400578a0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1400553f0
add ebx, eax
jmp 0x14006694e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1400668c1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140066900
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1400553f0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140066905
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400578a0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1400553f0
add ebx, eax
jmp 0x14006694e
cmp eax, r12d
jge 0x14006693e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1400553f0
sub ebp, eax
sub r15d, esi
je 0x14006693e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400578a0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1400553f0
add ebx, eax
jmp 0x14006694e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1400553f0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1400553f0
Function at 0x1400b2a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1400fc040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400b2b9c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400b2b9c
cmp r10d, r14d
jne 0x1400b2aa0
sub rbx, 0x10
jmp 0x1400b2be4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400b2b12
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400b2ad4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400b2adc
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400b2afb
movzx edx, r11b
mov rcx, rsi
call fcn.1400b3bb0
test al, al
jne 0x1400b2bf5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400b4220
test al, al
jne 0x1400b2bf5
mov edx, dword [rsi + 0x64]
lea r9, [0x1400b4580]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400b2b3e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400b2880
jmp 0x1400b2b92
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400b2880
test dil, dil
je 0x1400b2b8a
cmp byte [rsi + 0x6a], 0
jne 0x1400b2b8a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400b2bf5
sub rbx, 0x10
jmp 0x1400b2be4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400b2bf9
mov ebp, dword [rbx]
jmp 0x1400b2a60
mov al, 1
jmp 0x1400b2c02
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400bed20
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400b8f50
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400b8f6c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b8fc0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b90e5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400b90e5
test rax, rax
je 0x1400b90e5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400b90e5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400b905a
lea rax, [0x1400b9140]
jmp 0x1400b90b3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400b90e5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b90d3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400b9080
lea rax, [0x1400b9110]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400b90fa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400ba6d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400ba6db
xor eax, eax
ret
lea r11, [0x1400dce60]
not ecx
cmp r8d, 8
jb 0x1400ba7b1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400ba700
test r8d, r8d
je 0x1400ba7dd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400ba7c0
not ecx
mov eax, ecx
ret
Function at 0x1400bf24c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bf296
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bf296
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bf296
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bf296
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bf296
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400bf298
xor al, al
add rsp, 0x28
ret
Function at 0x140001787
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
mov rax, rcx
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400020e1
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov r14, rdx
mov rsi, rcx
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r8
mov r8, r9
call fcn.140002220
lea r12, [rsp + 0x30]
mov dword [r12], 0x800
lea rdi, [rsp + 0x34]
and dword [rdi], 0
mov ecx, 0x800
xor edx, edx
call fcn.14000635d
lea rbx, [rsp + 0x38]
mov qword [rbx], rax
mov qword [rbx + 8], rdx
and qword [rbx + 0x10], 0
mov r14, qword [r14]
mov r15, qword [r15]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, r15
xor r8d, r8d
mov r9, rdi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140002177
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call fcn.140006119
mov rax, qword [rsp + 0x38]
jmp 0x140002142
test eax, eax
jne 0x140002199
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1400021e0
movabs rax, 0xde00000002
jmp 0x1400021a1
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x68], 0xc
lea rcx, [rsp + 0x38]
call fcn.140001d53
lea rcx, [rsp + 0x70]
call fcn.140001d6d
mov rax, qword [rsp + 0x50]
mov qword [rsi + 8], rax
and qword [rsi], 0
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rdi], xmm0
mov byte [rdi + 0x18], al
lea rcx, [rsp + 0x70]
call fcn.140001d6d
mov rcx, rsi
mov rdx, rdi
call fcn.140006751
cmp byte [rdi + 0x18], 0xc
je 0x1400021cc
lea rcx, [rsp + 0x50]
call fcn.140001d53
jmp 0x1400021cc
Function at 0x140041d5e
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rdx
mov rsi, rcx
lea rbx, [rdx + 0x78]
mov rdx, qword [rdx + 0x90]
lea r8, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov rcx, rbx
call fcn.14003f594
mov r9, rdx
lea r14, [rsp + 0x78]
mov ebp, 1
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.140059aba
lea r15, [rsp + 0x88]
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.140059aba
lea r12, [rsp + 0x68]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.140059aba
lea r13, [rsp + 0x50]
mov rcx, r13
xor edx, edx
xor r8d, r8d
call fcn.140059aba
movups xmm0, xmmword [r14]
movaps xmmword [r13 - 0x30], xmm0
movups xmm0, xmmword [r15]
movaps xmmword [r13 - 0x20], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [r13 - 0x10], xmm0
lea r14, [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, r14
call fcn.140059ad1
lea rcx, [rdi + 0xb8]
call fcn.140006be0
mov rcx, rax
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x140041e97
test eax, eax
je 0x140041eae
cmp eax, 0x90317
je 0x140041f1c
cmp eax, 0x90321
jne 0x140041f24
mov dword [rdi + 0x10], 0x10000
xor ebx, ebx
mov byte [rdi + 0x14], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x90]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.140041310
and qword [rdi + 0xf0], 0
mov byte [rsi + 1], bl
jmp 0x140041f32
cmp dword [rsp + 0x34], 4
cmove ebp, dword [rsp + 0x30]
mov qword [rdi + 0xf0], rbp
mov byte [rsi + 1], 0
jmp 0x140041f20
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi + 0x78]
mov r8d, dword [rsp + 0x30]
add r8, rdx
lea r14, [rdi + 0x58]
and qword [rdi + 0x68], 0
mov rcx, rbx
call fcn.14003ebf1
mov r8, rdx
mov rcx, r14
mov rdx, rax
call fcn.1400060f9
and qword [rdi + 0x70], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x90]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140041310
xor eax, eax
cmp qword [rdi + 0x90], rbx
sete al
mov qword [rdi + 0xf0], rax
mov byte [rsi + 1], 0
jmp 0x140041f32
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140041f32
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140041f4b
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rdx
mov rsi, rcx
lea rbx, [rdx + 0x178]
mov rdx, qword [rdx + 0x190]
lea r8, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov rcx, rbx
call fcn.14003f594
mov r9, rdx
lea r14, [rsp + 0x78]
mov ebp, 1
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.140059aba
lea r15, [rsp + 0x88]
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.140059aba
lea r12, [rsp + 0x68]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.140059aba
lea r13, [rsp + 0x50]
mov rcx, r13
xor edx, edx
xor r8d, r8d
call fcn.140059aba
movups xmm0, xmmword [r14]
movaps xmmword [r13 - 0x30], xmm0
movups xmm0, xmmword [r15]
movaps xmmword [r13 - 0x20], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [r13 - 0x10], xmm0
lea r14, [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, r14
call fcn.140059ad1
lea rcx, [rdi + 0x1b8]
call fcn.140006be0
mov rcx, rax
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14004208d
test eax, eax
je 0x1400420a4
cmp eax, 0x90317
je 0x14004211e
cmp eax, 0x90321
jne 0x140042126
mov dword [rdi + 0x138], 0x10000
xor ebx, ebx
mov byte [rdi + 0x13c], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x190]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400412b0
and qword [rdi + 0x1f0], 0
mov byte [rsi + 1], bl
jmp 0x140042134
cmp dword [rsp + 0x34], 4
cmove ebp, dword [rsp + 0x30]
mov qword [rdi + 0x1f0], rbp
mov byte [rsi + 1], 0
jmp 0x140042122
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi + 0x178]
mov r8d, dword [rsp + 0x30]
add r8, rdx
lea r14, [rdi + 0x158]
and qword [rdi + 0x168], 0
mov rcx, rbx
call fcn.14003ebf1
mov r8, rdx
mov rcx, r14
mov rdx, rax
call fcn.1400060f9
and qword [rdi + 0x170], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x190]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400412b0
xor eax, eax
cmp qword [rdi + 0x190], rbx
sete al
mov qword [rdi + 0x1f0], rax
mov byte [rsi + 1], 0
jmp 0x140042134
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140042134
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004214d
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x1400422f3
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov r14d, dword [r9]
mov edx, dword [r9 + 4]
lea rbx, [r14 + r8]
add rdx, rbx
lea rdi, [rcx + 0x98]
cmp qword [rcx + 0xa8], rdx
jae 0x14004219c
mov rcx, rdi
xor r8d, r8d
call fcn.140023b76
lea r9, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.14003f56d
lea rcx, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, r15
call fcn.140058be2
lea r8, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
call fcn.14003f594
mov r9, rdx
lea r15, [rsp + 0x88]
mov rcx, r15
mov edx, 7
mov r8, rax
call fcn.140059aba
lea r9, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.14003f56d
mov r9, rdx
lea r14, [rsp + 0x98]
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.140059aba
lea r8, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, rbx
call fcn.14003ec1c
mov r9, rdx
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, 6
mov r8, rax
call fcn.140059aba
lea r12, [rsp + 0x70]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.140059aba
movups xmm0, xmmword [r15]
movaps xmmword [r12 - 0x30], xmm0
movups xmm0, xmmword [r14]
movaps xmmword [r12 - 0x20], xmm0
movups xmm0, xmmword [rbx]
movaps xmmword [r12 - 0x10], xmm0
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 4
mov rcx, rbx
call fcn.140059ad1
lea rcx, [rsi + 0xb8]
call fcn.140006be0
mov rcx, rax
xor edx, edx
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1400422c4
shl rax, 0x20
or rax, 2
jmp 0x1400422e2
mov edx, dword [rsp + 0x50]
add edx, dword [rsp + 0x40]
add edx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.1400565b9
and qword [rsi + 0xb0], 0
xor eax, eax
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:Users_sola.cargo_registry_src_rsproxy.cn_0dccff568467c15b_schannel_0.1.23_src_tls_stream.rs
mov edx, 0x3e
call fcn.1400eeba0
ud2