joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bd40
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x14001bf70
test rdx, rdx
js 0x14001bf70
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001bfa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x14001bfa0
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x14001bf70
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bfa0
cmp qword [rsp + 0x68], rsi
jb 0x14001be30
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14001bde9
cmp dword [rsp + 0x70], 0xffffffff
jne 0x14001bf84
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14001bf70
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call sub.msvcrt.dll__lseeki64
cmp rax, 0xffffffffffffffff
je 0x14001bf70
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14001bf70
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x14001bfa0
test rax, rax
je 0x14001bfa0
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x14001bec7
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x14001bf58
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x14001beb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call fcn.140027368
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call fcn.140027368
test r12d, r12d
je 0x14001bf91
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x14001bdc1
jmp 0x14001bf91
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call fcn.140027368
jmp 0x14001bf14
mov ecx, 0x16
call fcn.140026750
mov eax, 0xffffffff
jmp 0x14001be15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x14001bf70
mov ecx, 0x1b
call fcn.140026750
jmp 0x14001bf7a
mov ecx, 9
call fcn.140026750
jmp 0x14001bf7a
Function at 0x1400be4c0
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rbx, r8
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x1400be538
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400be510
call fcn.1400ffbf0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x1400be558
call fcn.1400ffc00
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call fcn.1400ffc00
mov rsi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x1400be52a
mov rdx, rbx
mov rcx, rsi
call fcn.1400c3920
cmp al, 2
jne 0x1400be51d
jmp 0x1400be528
Function at 0x1400c33e0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
lea rdi, [rsp + 0x30]
call fcn.1400ffbf0
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
mov rsi, rax
call fcn.1400bd870
test al, al
je 0x1400c34b8
cmp al, 0xff
je 0x1400c34c0
mov rdx, rdi
mov rcx, rbx
call fcn.1400c3920
mov edi, dword [rsp + 0x30]
cmp al, 2
je 0x1400c34d0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400c34e1
test edi, edi
je 0x1400c34f0
mov ecx, 0x30
lea rbp, [rsp + 0x40]
call fcn.1401261f0
lea rdx, str.cannot_remove
mov rcx, rbp
mov rsi, rax
call fcn.14010b350
mov dword [rsp + 0x30], edi
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, rbp
lea r9, [rsp + 0x20]
mov rcx, rsi
movaps xmmword [rsp + 0x20], xmm0
call fcn.1400c4b40
mov rcx, rbp
call fcn.140105a50
lea r8, [0x1400c54e0]
lea rdx, [0x140290fa0]
mov rcx, rsi
call fcn.140126970
nop dword [rax]
mov edi, dword [rsp + 0x30]
test edi, edi
jne 0x1400c3450
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400c3437
mov eax, 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rsi
mov edi, eax
jmp 0x1400c34bc

Function at 0x1400c3520
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call fcn.1400bd870
test al, al
je 0x1400c356e
cmp al, 0xff
je 0x1400c3580
mov rdx, rbx
mov rcx, rsi
call fcn.1400c3920
cmp al, 2
je 0x1400c3598
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400c35a5
mov eax, dword [rbx]
test eax, eax
jne 0x1400c356e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1400ffbf0
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400ffbf0
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1400c356e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400c3548
call fcn.1400ffbf0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400d4790
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400d47d8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400d47aa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14011c1a0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x14011c1f8
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x14011c1d0
and edx, 7
je 0x14011c2a2
lea eax, [rdx - 1]
mov ecx, edx
cdqe
movzx eax, byte [r11 + rax]
sub ecx, 2
js 0x14011c291
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 3]
cmp rdx, 2
je 0x14011c291
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 4]
cmp rdx, 3
je 0x14011c291
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 5]
cmp rdx, 4
je 0x14011c291
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
lea ecx, [rdx - 6]
cmp rdx, 5
je 0x14011c291
movsxd rcx, ecx
shl rax, 8
movzx ecx, byte [r11 + rcx]
add rax, rcx
cmp edx, 6
je 0x14011c291
movzx edx, byte [r11]
shl rax, 8
add rax, rdx
xor rax, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rax
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x140126b10
Capabilities:
Create process on windows
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x210
call fcn.1400195a0
lea rsi, [rsp + 0xa0]
mov rax, qword [str.procmon.exe]
mov ebp, dword [0x14012b0a0]
lea rdi, [rsp + 0xc0]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], ebp
call fcn.140001520
mov rax, qword [str.autorunshw_copy.run_copyntdll.dll]
lea rbx, [rsp + 0x100]
lea r12, [rsp + 0xe0]
mov dword [rsp + 0x108], 0x6578652e
mov rdx, rbx
mov rcx, r12
mov byte [rsp + 0x10c], 0
mov qword [rsp + 0x100], rax
call fcn.140001520
call fcn.1400015f0
test al, al
je 0x140126cac
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rax, qword [0x14012b0b0]
lea r14, [rsp + 0x60]
mov rcx, rsi
mov dword [rsp + 0x68], ebp
mov rdx, r14
mov qword [rsp + 0x60], rax
call fcn.140001520
lea rbp, [rsp + 0x80]
mov rdx, rbx
mov rcx, rbp
call fcn.140001520
lea r13, [rsp + 0x40]
mov r8, rsi
mov rdx, rbp
mov rcx, r13
call fcn.1401220b0
mov rcx, rbp
call fcn.140105a50
mov rcx, rsi
call fcn.140105a50
mov rax, qword [0x14012b0b8]
mov rcx, rsi
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x38], 0x7461622e
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x3c], 0
call fcn.140001520
mov rdx, rbx
mov rcx, rbp
call fcn.140001520
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.1401220b0
mov rcx, rbp
call fcn.140105a50
mov rcx, rsi
call fcn.140105a50
mov rcx, r13
call fcn.140001c90
test al, al
jne 0x140126cde
mov rcx, r14
call fcn.140105a50
mov rcx, r13
call fcn.140105a50
sub rbx, 0x20
mov rcx, qword [rbx]
lea rax, [rbx + 0x10]
cmp rcx, rax
je 0x140126c93
mov rax, qword [rbx + 0x10]
lea rdx, [rax + 1]
call fcn.1401260d0
cmp rbx, rdi
jne 0x140126c76
xor eax, eax
add rsp, 0x210
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call fcn.140002770
call fcn.1400035d0
test al, al
jne 0x140126d1a
mov rcx, rdi
call fcn.1400037c0
test al, al
jne 0x140126c76
mov rcx, r12
call fcn.1400037c0
test al, al
jne 0x140126c76
call fcn.1400030a0
call fcn.140002110
jmp 0x140126c76
mov rdx, r14
mov rcx, r13
call fcn.140001e40
test al, al
je 0x140126c66
xor edx, edx
xor eax, eax
mov r8, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor ecx, ecx
lea rdx, str.open
mov dword [rsp + 0x28], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x140126c66
call fcn.140003690
test al, al
je 0x140126cba
jmp 0x140126c76
Function at 0x14000cb30
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 0x14000cbc0
cmp r10, r11
jb 0x14000cc36
cmp r10, rdx
ja 0x14000cc4a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000cbc2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000cba0
jmp 0x14000cc24
ja 0x14000cbca
mov r11, r10
cmp rax, r8
jne 0x14000cb64
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 0x14000cc00
mov rdi, r8
sub ecx, edx
jns 0x14000cc1b
jmp 0x14000cc26
cmp r8, rsi
je 0x14000cc5b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000cc26
xor al, 1
cmp rdi, rsi
jne 0x14000cbe0
jmp 0x14000cc26
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.1400a8440
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400a81b0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400a8230
ud2

Function at 0x140015e24
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x140015e4a
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x140015e34
mov qword [rcx], rax
ret
Function at 0x1400335da
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400335f9
lea rcx, [0x14010f170]
add rsp, 0x28
jmp 0x1400a71b6
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
call fcn.1400a8230
ud2
jmp qword [sym.imp.kernel32.dll_GetNativeSystemInfo]
Function at 0x140045b01
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne fcn.14007e3ae
add rcx, 8
jmp fcn.14009c77e

Function at 0x14005a4de
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.C:Usersjerem.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rs
call fcn.14005a7f7
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 qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14005a5c2
test eax, eax
je 0x14005a5e1
cmp eax, 0x90317
je 0x14005a663
cmp eax, 0x90321
jne 0x14005a66b
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.14005a835
and qword [rdi + 0x1f8], 0
mov byte [rsi + 1], bl
jmp 0x14005a679
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x14005a667
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.14005a808
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140032fc8
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.14005a835
xor eax, eax
cmp qword [rdi + 0x198], rbx
sete al
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x14005a679
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14005a679
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 0x14005b608
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.C:Usersjerem.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rs
call fcn.14005a7f7
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 qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14005b6e6
test eax, eax
je 0x14005b702
cmp eax, 0x90317
je 0x14005b77b
cmp eax, 0x90321
jne 0x14005b783
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.14005b8f4
and qword [rdi + 0xf8], 0
mov byte [rsi + 1], bl
jmp 0x14005b791
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x14005b77f
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.14005a808
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140032fc8
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.14005b8f4
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x14005b791
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14005b791
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 0x140066800
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.1400666d3
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
call fcn.14002f9a6
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 0x14006689d
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.14003300b
mov rbx, qword [rsp + 0x40]
jmp 0x140066868
test eax, eax
jne 0x1400668bf
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x1400668dd
movabs rax, 0xde00000002
jmp 0x1400668c7
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.1400050c0
jmp 0x1400668f1
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.1400869d5
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140084610
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 0x14008466b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14008466b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140084686
cmp eax, 0x42
jne 0x14008466b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140084736
cmp byte [r9 + r11], 0x5f
jne 0x140084736
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14008479e
mov rcx, rsi
xor edx, edx
call fcn.14007fd70
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.14007fd70
test al, al
jne 0x140084831
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400846c2
lea rdx, [0x1400de083]
mov r8d, 1
call fcn.140008420
test al, al
jne 0x140084831
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14008467a
xor r14d, r14d
lea rbx, [0x1400de438]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400846f4
cmp byte [rax + rcx], 0x45
je 0x140084853
sub r14, 1
jb 0x140084719
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140084719
mov r8d, 2
mov rdx, rbx
call fcn.140008420
test al, al
jne 0x140084831
mov rcx, rsi
call fcn.140081640
test al, al
jne 0x140084831
mov rax, qword [rsi]
test rax, rax
jne 0x1400846e0
jmp 0x14008467a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400847f8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140084792
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14008477c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14008476b
add dl, 0xa9
jmp 0x14008477a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400847f8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400847f8
movzx edx, bl
add rax, rdx
jae 0x140084740
jmp 0x1400847f8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400847f8
cmp rax, rcx
jae 0x1400847f5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14008484b
cmp qword [rsi + 0x20], 0
je 0x140084844
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.140084610
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14008467c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140084839
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400de3f8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140008420
test al, al
je 0x140084839
mov dil, 2
jmp 0x14008467a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14008467a
mov dil, 1
xor r8d, r8d
jmp 0x1400847fa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14008467a
Function at 0x140087148
Capabilities:
Get remote cert context via schannel

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

Function at 0x140087245
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 0x1400872a8
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400872e5
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x1400872da
xor r9d, r9d
lea r10, [0x1401098b0]
xor r8d, r8d
movzx r11d, byte [rax + r9]
or r8d, dword [r10 + r11*4]
inc r9
cmp rdx, r9
jne 0x1400872c7
jmp 0x1400872dd
xor r8d, r8d
mov dword [rsp + 0xa0], r8d
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x14008733f
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x140087407
mov r14, qword [rcx]
mov bl, al
shl rbx, 3
mov rcx, rbx
mov rdx, rsi
call fcn.14009f729
test rax, rax
je 0x14008740e
mov rdi, rax
xor eax, eax
mov rcx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x14008732a
mov eax, r15d
jmp 0x140087346
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 qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x14008739d
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x1400873db
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov al, byte [0x14010f2f8]
mov ecx, 0x20
mov edx, 8
call fcn.140004e80
test rax, rax
je 0x140087416
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 0x1400873f0
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.1400a6822
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140005010
ud2
mov rcx, rbx
mov rdx, rsi
jmp 0x140087420
mov ecx, 8
mov edx, 0x20
call fcn.1400a7dd0
ud2