joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
push rsi
push r14
sub rsp, 0x158
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [rax + 0x10], 0
mov rsi, rcx
lea r9, [rax + 0x10]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000185f
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x178]
mov qword [rsp + 0x180], rbp
add r8, r8
mov qword [rsp + 0x150], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x178]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebp, eax
test eax, eax
js 0x140001831
mov qword [rsp + 0x170], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001829
nop
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rdx, rcx, 0x128
lea rcx, [rdi + 8]
add rcx, rdx
mov edx, 2
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140001790
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rsi
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.ntdll.dll__stricmp]
test eax, eax
je 0x14000181f
inc ebx
cmp ebx, dword [rdi]
jb 0x140001770
jmp 0x140001829
mov rax, qword [rsp + 0x30]
xor ebp, ebp
mov qword [r14], rax
mov rbx, qword [rsp + 0x170]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x150]
mov eax, ebp
mov rbp, qword [rsp + 0x180]
add rsp, 0x158
pop r14
pop rsi
ret
Function at 0x140001870
Capabilities:
Disable driver code integrity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov qword [r8], rbx
mov rbp, rdx
mov rsi, rcx
call fcn.1400015b0
mov rcx, rsi
mov rdi, rax
call fcn.1400015b0
mov r9, rax
test rax, rax
je 0x14000199d
mov rax, qword gs:[0x30]
mov r10d, ebx
mov r8d, ebx
mov rcx, qword [rax + 0x60]
mov eax, 0x3fab
cmp word [rcx + 0x120], ax
jb 0x140001932
lea r11, [0x140003e20]
sub r9, r11
nop
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r9 + rax], dl
je 0x1400018f2
test dl, dl
jne 0x14000192e
inc ecx
inc rax
cmp ecx, 0x10
jb 0x1400018e5
mov cl, 1
test cl, cl
mov eax, r8d
cmove eax, r10d
inc r8d
inc r9
mov r10d, eax
cmp r8d, 0xff
jl 0x1400018e0
movzx ecx, bx
nop dword [rax]
inc cx
movzx eax, cx
cmp byte [rax + r11], bl
jne 0x140001920
jmp 0x14000198c
xor cl, cl
jmp 0x1400018fe
lea r11, [0x140003e10]
sub r9, r11
nop dword [rax]
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r9 + rax], dl
je 0x140001952
test dl, dl
jne 0x1400019a4
inc ecx
inc rax
cmp ecx, 0xc
jb 0x140001945
mov cl, 1
test cl, cl
mov eax, r8d
cmove eax, r10d
inc r8d
inc r9
mov r10d, eax
cmp r8d, 0xff
jl 0x140001940
mov ecx, ebx
nop dword [rax + rax]
inc cx
movzx eax, cx
cmp byte [rax + r11], bl
jne 0x140001980
test r10d, r10d
jne 0x1400019a8
lea rcx, str.failed_to_find_CipInitialize_n
call fcn.140001000
xor eax, eax
jmp 0x140001a90
xor cl, cl
jmp 0x14000195e
movzx r9d, cx
mov edx, r10d
movsxd rcx, r10d
lea rax, [rcx + r9]
mov r8d, dword [rax + rdi]
add rdi, 4
lea rax, [rcx + r8]
add rax, r9
lea rcx, str.CipOffset_:__d___CipInitOffset_:_0x_llx__CipInitialize_:_0x_llx_n
add rdi, rax
mov r9, rdi
call fcn.140001000
lea r11, [0x140003e00]
mov r8, rdi
sub r8, r11
mov r10d, ebx
mov r9d, ebx
nop word [rax + rax]
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r8 + rax], dl
je 0x140001a02
test dl, dl
jne 0x140001a52
inc ecx
inc rax
cmp ecx, 0xc
jb 0x1400019f5
mov cl, 1
test cl, cl
mov eax, r9d
cmove eax, r10d
inc r9d
inc r8
movsxd r10, eax
cmp r9d, 0xff
jl 0x1400019f0
nop dword [rax]
inc bx
movzx eax, bx
cmp byte [rax + r11], 0
jne 0x140001a30
test r10d, r10d
jne 0x140001a56
lea rcx, str.failed_to_find_Ci_gOptions_n
call fcn.140001000
xor eax, eax
jmp 0x140001a90
xor cl, cl
jmp 0x140001a0e
movzx r9d, bx
lea rcx, str.Offset_:__d_RealOffset_:__d__g_CiOptions_:_0x_llx
mov edx, r10d
lea rax, [r10 + r9]
add r9, 4
movsxd r8, dword [rax + rdi]
lea rbx, [r10 + r8]
add rbx, r9
add rbx, rdi
mov r9, rbx
call fcn.140001000
sub rbx, rsi
mov eax, 1
add rbx, rbp
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140001f50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rdx
mov rbx, rcx
call fcn.140001eb0
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x14000202a
lea r8, [0x140003598]
mov dword [rsp + 0x260], 1
mov edx, 5
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscpy_s]
mov r8, rdi
lea rcx, [rsp + 0x30]
mov edx, 0x87
call qword [sym.imp.ntdll.dll_wcscat_s]
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001fc0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x14000202a
lea rax, [rsp + 0x260]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x140001988
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019d4
xor al, al
add rsp, 0x28
ret
Function at 0x140088690
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r12, rdx
mov r13, rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401afdb8
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [rsp + 0x78], 0x3a003f
mov word [rsp + 0x7c], r15w
lea rbx, vtable.com::Utf8Str.0
lea r14, [0x1403b3628]
movabs rsi, 0xaaaaaaaaaaaaaaa
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x140088869
movzx eax, word [rdi]
mov word [rsp + 0x78], ax
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.140038af0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.1401b0b20
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.BstkRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
nop
mov qword [rsp + 0x58], rbx
mov rdx, qword [0x1402e1e70]
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rdx, rax
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x58]
call fcn.1401b0b70
nop
mov rax, qword [r13 + 0xc8]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, 2
mov rdx, qword [rax]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.140109df0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call fcn.1401b06b0
nop
mov r14, qword [r12]
cmp qword [r12 + 8], rsi
je 0x1400888cf
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r15
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1401af9cc
mov rsi, rax
mov qword [rax + 0x10], rbx
test rbx, rbx
je 0x14008881f
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000fd18.0]
nop
inc qword [r12 + 8]
mov rax, qword [r14 + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rax
mov qword [rsp + 0x50], r15
mov qword [r14 + 8], rsi
mov qword [rax], rsi
test rbx, rbx
je 0x140088851
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
lea r14, [0x1403b3628]
lea rbx, vtable.com::Utf8Str.0
movabs rsi, 0xaaaaaaaaaaaaaaa
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140088870
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x140088730
mov rcx, qword [rsp + 0x40]
call fcn.1401af600
nop
jmp 0x14008889f
mov eax, r15d
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401af5e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x1400888e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r12, rdx
mov r13, rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401afdb8
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [rsp + 0x78], 0x3a003f
mov word [rsp + 0x7c], r15w
lea rbx, vtable.com::Utf8Str.0
lea r14, [0x1403b3628]
movabs rsi, 0xaaaaaaaaaaaaaaa
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x140088ab9
movzx eax, word [rdi]
mov word [rsp + 0x78], ax
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.140038af0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.1401b0b20
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.BstkRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
nop
mov qword [rsp + 0x58], rbx
mov rdx, qword [0x1402e1e70]
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rdx, rax
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x58]
call fcn.1401b0b70
nop
mov rax, qword [r13 + 0xc8]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, 1
mov rdx, qword [rax]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.140109df0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call fcn.1401b06b0
nop
mov r14, qword [r12]
cmp qword [r12 + 8], rsi
je 0x140088b1f
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r15
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1401af9cc
mov rsi, rax
mov qword [rax + 0x10], rbx
test rbx, rbx
je 0x140088a6f
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000fd18.0]
nop
inc qword [r12 + 8]
mov rax, qword [r14 + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rax
mov qword [rsp + 0x50], r15
mov qword [r14 + 8], rsi
mov qword [rax], rsi
test rbx, rbx
je 0x140088aa1
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
lea r14, [0x1403b3628]
lea rbx, vtable.com::Utf8Str.0
movabs rsi, 0xaaaaaaaaaaaaaaa
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140088ac0
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x140088980
mov rcx, qword [rsp + 0x40]
call fcn.1401af600
nop
jmp 0x140088aef
mov eax, r15d
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401af5e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140163190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r15, rdx
mov r14, rcx
mov rcx, r8
call qword [sym.imp.BstkRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rcx, rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
lea r8d, [rdi + 0x40]
lea rdx, [rsp + 0xa0]
call qword [sym.imp.BstkRT.dll_RTBase64Decode]
test eax, eax
js 0x1401632cc
mov r14, qword [r14 + 0xc8]
cmp byte [r14 + 0x240], dil
jne 0x140163205
lea eax, [rdi - 0x4f]
jmp 0x1401632cc
mov rbp, qword [rsp + 0x30]
cmp rbp, 0x20
jae 0x14016321a
mov eax, 0xfffffffe
jmp 0x1401632cc
mov esi, edi
mov ebx, edi
lea rdx, [rsp + 0xa0]
nop word [rax + rax]
mov eax, ebx
movzx ecx, byte [rax + r14 + 0x241]
cmp byte [rdx], cl
jne 0x1401632c7
inc esi
inc rdx
inc ebx
cmp esi, 8
jb 0x140163230
mov r8, rbp
mov edx, 0xff
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov edx, esi
cmp rdx, rbp
jae 0x14016329b
lea r8, [rsp + 0x60]
nop dword [rax]
movzx ecx, byte [rbx + r14 + 0x241]
xor cl, byte [rsp + rdx + 0xa0]
mov byte [r8], cl
lea eax, [rbx + 1]
inc esi
lea r8, [r8 + 1]
mov edx, esi
mov ebx, edi
cmp eax, 0x40
cmovb ebx, eax
cmp rdx, rbp
jb 0x140163270
test rbp, rbp
je 0x1401632c7
mov rax, rdi
cmp byte [rsp + rax + 0x60], 0
jne 0x1401632be
lea rcx, [rsp + 0x60]
call qword [sym.imp.BstkRT.dll_RTStrIsValidEncoding]
test al, al
jne 0x1401632f3
mov rbp, qword [rsp + 0x30]
inc edi
mov eax, edi
cmp rax, rbp
jb 0x1401632a3
mov eax, 0xfffffffd
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1401af5e0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call qword [sym.imp.BstkRT.dll_public:_void___cdecl_RTCString::constructor_char_const____ptr64____ptr64]
lea rax, vtable.com::Utf8Str.0
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov rcx, r15
call qword [sym.imp.BstkRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_class_RTCString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
xor eax, eax
jmp 0x1401632cc
Function at 0x140163540
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x130
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rdx + 0x10]
mov rbp, rcx
mov rcx, rdx
inc rbx
mov r14, r8
call qword [sym.imp.BstkRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, qword [rbp + 0xc8]
mov r9, rax
cmp byte [r8 + 0x240], 0
jne 0x140163592
mov eax, 0xffffffb1
jmp 0x1401636fc
movzx eax, byte [r8 + 0x241]
mov byte [rsp + 0x38], al
movzx eax, byte [r8 + 0x242]
mov byte [rsp + 0x39], al
movzx eax, byte [r8 + 0x243]
mov byte [rsp + 0x3a], al
movzx eax, byte [r8 + 0x244]
mov byte [rsp + 0x3b], al
movzx eax, byte [r8 + 0x245]
mov byte [rsp + 0x3c], al
movzx eax, byte [r8 + 0x246]
mov byte [rsp + 0x3d], al
movzx eax, byte [r8 + 0x247]
mov qword [rsp + 0x150], rsi
mov byte [rsp + 0x3e], al
movzx eax, byte [r8 + 0x248]
mov qword [rsp + 0x168], rdi
mov edi, 8
mov byte [rsp + 0x3f], al
mov esi, edi
test rbx, rbx
je 0x14016364b
nop
cmp esi, 0x20
jae 0x1401636ac
mov eax, edi
lea ecx, [rsi - 8]
movzx ecx, byte [rcx + r9]
mov edx, esi
inc esi
xor cl, byte [rax + r8 + 0x241]
lea eax, [rdi + 1]
xor edi, edi
cmp eax, 0x40
mov byte [rsp + rdx + 0x38], cl
lea ecx, [rsi - 8]
cmovb edi, eax
cmp rcx, rbx
jb 0x140163610
cmp esi, 0x20
jae 0x1401636ac
mov ebx, esi
lea rcx, [rsp + 0x60]
mov edx, 0x20
sub rdx, rbx
call qword [sym.imp.BstkRT.dll_RTRandBytes]
mov r11, qword [rbp + 0xc8]
lea r8, [rsp + 0x38]
add r8, rbx
lea r9, [rsp + 0x60]
mov r10d, 0x20
sub r10d, esi
nop dword [rax]
mov eax, edi
lea r8, [r8 + 1]
lea r9, [r9 + 1]
movzx ecx, byte [rax + r11 + 0x241]
lea eax, [rdi + 1]
xor cl, byte [r9 - 1]
xor edi, edi
cmp eax, 0x40
mov byte [r8 - 1], cl
cmovb edi, eax
sub r10, 1
jne 0x140163680
mov r9d, 0x80
lea rax, [rsp + 0x30]
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
lea edx, [r9 - 0x60]
call qword [sym.imp.BstkRT.dll_RTBase64Encode]
mov rdi, qword [rsp + 0x168]
mov ebx, eax
mov rsi, qword [rsp + 0x150]
test eax, eax
js 0x1401636fc
lea rdx, [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.BstkRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_char_const____ptr64____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401af5e0
add rsp, 0x130
pop r14
pop rbp
pop rbx
ret
Function at 0x1401a7650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x38
test byte [rcx + 8], 1
jne 0x1401a7669
mov eax, 0xffffffea
add rsp, 0x38
ret
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x50]
xor eax, eax
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
lea r8d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401a76a0
mov eax, dword [rsp + 0x50]
sub eax, 8
neg eax
sbb eax, eax
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a76b4
mov eax, 0xffffffff
add rsp, 0x38
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
add rsp, 0x38
ret

Function at 0x1401a7870
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0x28
movzx eax, byte [rcx + 8]
and al, 3
cmp al, 3
jne 0x1401a78b4
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1401a78ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1401a78ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401a78ad
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
xor eax, eax
add rsp, 0x28
ret
mov eax, 0xffffffea
add rsp, 0x28
ret

Function at 0x1401a78c0
Capabilities:
Create pipe

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1401a79cb
test byte [rcx + 8], 1
je 0x1401a78f8
mov eax, 0xffffffea
mov rbx, qword [r11 + 8]
mov rsi, qword [r11 + 0x18]
add rsp, 0x60
pop rdi
ret
mov r8, rdi
lea rdx, str..pipe_s
lea rcx, [rsp + 0x40]
call fcn.1400032c0
nop
mov rcx, rax
call qword [sym.imp.BstkRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1401b0d90
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
mov rcx, qword [0x1402e1e70]
mov rax, qword [rsp + 0x78]
test rax, rax
cmovne rcx, rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
lea r9d, [rax + 1]
xor r8d, r8d
mov edx, 0x80003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401a7991
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401a7991
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
or byte [rbx + 8], 3
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rcx, [rbx + 0x20]
mov rdx, rdi
call qword [sym.imp.BstkRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_char_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x78]
call fcn.1401b06b0
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1401a7d10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x38
test byte [rcx + 8], 1
mov rsi, rdx
mov rbx, rcx
jne 0x1401a7d2f
mov eax, 0xffffffea
add rsp, 0x38
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbp
lea rdx, [rsp + 0x60]
xor ebp, ebp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rbp
lea r8d, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a7d78
cmp dword [rsp + 0x50], 8
je 0x1401a7d92
mov rbp, qword [rsp + 0x58]
mov eax, 0xffffffff
add rsp, 0x38
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401a7d67
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
test eax, eax
js 0x1401a7e92
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
cmp rdx, 0xffffffffffffffff
jne 0x1401a7db4
call qword [sym.imp.BstkRT.dll_public:_void___cdecl_RTCString::setNull_void____ptr64]
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x38
pop rsi
pop rbx
ret
inc rdx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.BstkRT.dll_public:_void___cdecl_RTCString::reserve_unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rsi
call qword [sym.imp.BstkRT.dll_public:_char____ptr64___cdecl_RTCString::mutableRaw_void____ptr64]
mov rcx, qword [rsp + 0x60]
mov byte [rax + rcx], bpl
mov rcx, rsi
mov rdi, qword [rsp + 0x60]
call qword [sym.imp.BstkRT.dll_public:_char____ptr64___cdecl_RTCString::mutableRaw_void____ptr64]
test rax, rax
je 0x1401a7e88
test rdi, rdi
je 0x1401a7e88
test byte [rbx + 8], 1
jne 0x1401a7e10
mov rdi, qword [rsp + 0x30]
mov eax, 0xffffffea
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov r8d, edi
mov dword [rsp + 0x50], ebp
mov rdx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a7e4f
mov eax, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
sub rax, rdi
mov rdi, qword [rsp + 0x30]
neg rax
sbb eax, eax
add rsp, 0x38
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a7e6f
mov rdi, qword [rsp + 0x30]
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x30]
mov eax, 0xfffffffe
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret