joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040a750
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, r8
mov r10, rdx
mov r8, qword [rdx + 8]
mov rbp, r9
movsx edx, byte [rsi]
mov rdi, rcx
mov r9d, r8d
test dl, dl
je 0x10040a828
mov rcx, rsi
xor eax, eax
nop dword [rax]
rol eax, 5
add rcx, 1
xor eax, edx
movsx edx, byte [rcx]
test dl, dl
jne 0x10040a780
xor edx, edx
div r9d
mov rax, qword [r10]
and eax, 0x3f
cmp rax, 0x17
jne 0x10040a82f
movsxd rdx, edx
cmp rdx, r8
jae 0x10040a84e
mov rbx, qword [r10 + rdx*8 + 0x10]
lea rax, [r10 + rdx*8 + 0x10]
mov qword [rbp], rax
cmp rbx, rdi
jne 0x10040a7e3
jmp 0x10040a810
jg 0x10040a810
lea rax, [rbx + 0x10]
mov rbx, qword [rbx + 0x10]
mov qword [rbp], rax
cmp rbx, rdi
je 0x10040a810
mov r12, qword [rbx + 8]
mov rcx, rsi
mov rax, qword [r12 + 8]
mov rdx, qword [rax + 8]
call sub.msys_2.0.dll_strcasecmp
test eax, eax
jne 0x10040a7d0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r12, rdi
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor edx, edx
jmp 0x10040a795
lea r9, str.is_vector__vec_
lea r8, str.vector_elem_slot
mov edx, 0x58c
lea rcx, str.scheme.c
call sub.msys_2.0.dll___assert_func
call fcn.100409f60
nop
nop word cs:[rax + rax]
nop
cmp byte [rcx], 0
mov r8, qword [rcx + 8]
mov r9, qword [rdx]
mov rax, qword [rdx + 8]
je 0x10040a888
test r9b, r9b
jne 0x10040a8b0
pxor xmm1, xmm1
cvtsi2sd xmm1, r8
movq xmm0, rax
jmp 0x10040a89b
movq xmm1, r8
test r9b, r9b
je 0x10040a87e
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
xor eax, eax
comisd xmm0, xmm1
seta al
xor eax, 1
ret
cmp r8, rax
setl al
movzx eax, al
xor eax, 1
ret
Function at 0x10041b610
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, str.GNUPGHOME
lea rsi, str._.gnupg
call sub.msys_2.0.dll_getenv
mov rbx, rax
test rax, rax
je 0x10041b638
cmp byte [rax], 0
jne 0x10041b648
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rax
call fcn.10041b590
test rax, rax
mov rsi, rax
cmove rsi, rbx
xor edx, edx
mov rcx, rsi
call fcn.100421780
xor edx, edx
lea rcx, str._.gnupg
mov rbx, rax
call fcn.100421780
mov rcx, rbx
mov rdi, rax
mov rdx, rax
call fcn.1004217e0
mov rcx, rdi
mov ebp, eax
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, rbx
call sub.msys_gcrypt_20.dll_gcry_free
test ebp, ebp
je 0x10041b638
mov rax, rsi
mov byte [0x100436150], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x10041d200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp byte [rcx], 0
lea rdx, [rcx + 8]
jne 0x10041d21b
jmp 0x10041d280
mov rcx, rax
movzx eax, byte [rcx]
sub eax, 0x30
cmp al, 9
ja 0x10041d290
lea rax, [rcx + 1]
cmp rax, rdx
jne 0x10041d218
xor eax, eax
cmp byte [rcx + 1], 0x54
jne 0x10041d280
lea rdx, [rcx + 2]
add rcx, 8
jmp 0x10041d243
mov rdx, rbx
movzx eax, byte [rdx]
sub eax, 0x30
cmp al, 9
ja 0x10041d290
lea rbx, [rdx + 1]
cmp rbx, rcx
jne 0x10041d240
movzx ecx, byte [rcx]
cmp cl, 0x5a
jne 0x10041d266
movzx ecx, byte [rdx + 2]
lea rbx, [rdx + 2]
test cl, cl
je 0x10041d2ab
jns 0x10041d298
cmp cl, 0x2c
setne al
cmp cl, 0x3a
setne dl
and eax, edx
xor eax, 1
movzx eax, al
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
call sub.msys_2.0.dll___locale_ctype_ptr
movsx rdx, byte [rbx]
mov rcx, rdx
test byte [rdx + rax + 1], 8
je 0x10041d26c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x100421e70
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
test rcx, rcx
je 0x100421ea8
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
call fcn.100421d50
test rax, rax
je 0x100421eb6
add rsp, 0x38
ret
lea rcx, [0x100430120]
call sub.msys_gcrypt_20.dll_gcry_xstrdup
jmp 0x100421e97
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x16
je 0x100421eea
call sub.msys_2.0.dll___getreent
mov r8d, 0x16
mov edx, 1
lea rcx, str._nfatal:_out_of_memory_n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov ecx, 2
call sub.msys_2.0.dll_exit
call sub.msys_2.0.dll___getreent
mov r8d, 0x25
mov edx, 1
lea rcx, str._nfatal:_too_many_args_for_xstrconcat_n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x100421ee0
Function at 0x36dde1500
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
pxor xmm0, xmm0
mov qword [rcx + 0x10], 0
mov rsi, rcx
movups xmmword [rcx], xmm0
mov ecx, 0x149000
call fcn.36de01c20
lea rdi, [rax + 0x149000]
mov qword [rsi], rax
mov rcx, rax
mov rbx, rax
mov qword [rsi + 0x10], rdi
mov rdx, qword [sym.payload.dll_globalByteArray]
mov r8d, 0x149000
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], rdi
mov rbp, qword [sym.payload.dll_encryptionKey]
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call sub.msvcrt.dll_strlen
cmp rax, 1
je 0x36dde1610
test rax, rax
jne 0x36dde15e0
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov byte [rsp + rax + 0x30], 0
mov r8, qword [rsp + 0x28]
nop word [rax + rax]
mov rax, rcx
xor edx, edx
div r8
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + rdx]
xor byte [rbx + rcx], al
add rcx, 1
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rbx
cmp rcx, rax
jb 0x36dde1590
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x36dde15cf
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.36de01c10
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, rdi
mov rdx, rbp
cmp eax, 8
jae 0x36dde1620
xor ecx, ecx
test al, 4
jne 0x36dde1660
test al, 2
jne 0x36dde1648
test al, 1
je 0x36dde1576
movzx edx, byte [rdx + rcx]
mov byte [r8 + rcx], dl
jmp 0x36dde1576
movzx edx, byte [rbp]
mov byte [rsp + 0x30], dl
jmp 0x36dde1576
mov r8d, eax
xor edx, edx
and r8d, 0xfffffff8
mov ecx, edx
add edx, 8
mov r9, qword [rbp + rcx]
mov qword [rdi + rcx], r9
cmp edx, r8d
jb 0x36dde1629
lea r8, [rdi + rdx]
add rdx, rbp
jmp 0x36dde15eb
movzx r9d, word [rdx + rcx]
mov word [r8 + rcx], r9w
add rcx, 2
test al, 1
je 0x36dde1576
jmp 0x36dde15fd
mov ecx, dword [rdx]
mov dword [r8], ecx
mov ecx, 4
test al, 2
je 0x36dde15f5
jmp 0x36dde1648
Function at 0x36ddf75e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.36ddff4c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.36ddff4c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x36ddf7650
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x36df52064]
mov rbx, rcx
test esi, esi
jle 0x36ddf7780
mov rax, qword [0x36df52068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x36ddf769b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x36ddf7725
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x36ddf7680
mov rcx, rbx
call fcn.36ddf7f70
mov rdi, rax
test rax, rax
je 0x36ddf77a2
mov rax, qword [0x36df52068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.36ddf80b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x36df52068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x36ddf7787
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x36ddf771e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x36ddf7730
add dword [0x36df52064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x36df52068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x36ddf771e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.36ddf75e0
nop dword [rax]
xor esi, esi
jmp 0x36ddf76a8
mov rax, qword [0x36df52068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.36ddf75e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.36ddf75e0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x36ddf7c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x36ddf7d90
ja 0x36ddf7ca8
test edx, edx
je 0x36ddf7d28
mov eax, dword [0x36df52088]
test eax, eax
je 0x36ddf7e10
mov dword [0x36df52088], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x36ddf7c95
mov eax, dword [0x36df52088]
test eax, eax
je 0x36ddf7c95
lea r12, [0x36df520a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x36df52080]
test rbx, rbx
je 0x36ddf7d14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x36ddf7e38
test eax, eax
jne 0x36ddf7e38
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x36ddf7ce8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x36ddf7c95
mov eax, dword [0x36df52088]
test eax, eax
jne 0x36ddf7da8
mov eax, dword [0x36df52088]
cmp eax, 1
jne 0x36ddf7c95
mov rbx, qword [0x36df52080]
test rbx, rbx
je 0x36ddf7d61
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.36de00000
test rbx, rbx
jne 0x36ddf7d50
lea rcx, [0x36df520a0]
mov qword [0x36df52080], 0
mov dword [0x36df52088], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x36ddf7c95
call fcn.36ddf8240
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x36df520a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x36df52080]
test rbx, rbx
je 0x36ddf7dfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x36ddf7e28
test rsi, rsi
je 0x36ddf7e28
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x36ddf7dd8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x36ddf7d32
lea rcx, [0x36df520a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x36ddf7c8b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x36ddf7dd8
jmp 0x36ddf7dfc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x36ddf7ce8
jmp 0x36ddf7d14

Function at 0x36ddf7f70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x36df4f220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x36ddf7f90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x36ddf7f98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x36ddf7f90
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x36ddf7fe5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x36ddf7fdc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x36ddf7f90
add rax, 0x28
cmp rax, r9
jne 0x36ddf7fc8
xor eax, eax
ret
Function at 0x36ddf7ff0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x36df4f220]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x36ddf800f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x36ddf8018
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x36ddf800f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x36ddf80b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x36df4f220]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x36ddf80cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x36ddf80d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x36ddf8360
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x36ddf8390
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x36de001b0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x36de001c0
xor eax, eax
ret
jmp fcn.36ddf7b60

Function at 0x36ddf83d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x36ddf8400
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x36ddf8418
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140f55770
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5577a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f557a3
pop rbp
sub rbp, 0x33
sub rbp, 0xf55770
sub rsp, 0x20
jmp 0x140f557c2
mov rax, 0xf55770
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7e5a4c24
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f557e1
jmp 0x140f557f8
add byte [rax], al
idiv dword [rsi + rax*2 - 0x325293a9]
insb byte [rdi], dx
lodsd eax, dword [rsi]
int 0xaf
scasd eax, dword [rdi]
lodsd eax, dword [rsi]
sbb byte [rsp], ah
and al, 0x6c
movsd dword [rdi], dword [rsi]
in eax, 0x2c
and eax, 0x256c2424
int 0x6c
jrcxz 0x140f557f2
and esp, dword [rsp]
and al, 0x6c
jrcxz 0x140f557fb
or al, 0x24
and al, 0x24
insb byte [rdi], dx
rol esi, cl
insb byte [rdi], dx
and eax, 0x28a5afe5
and al, 0x24
and al, 0x6c
and eax, 0x6c7474cc
pushfq
in al, 0xb2
add ah, byte [rsp]
and al, 0x24
and al, 0x6c
popfq
mov esp, esp
invalid
Function at 0x140008694
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov al, r8b
mov r9, rdx
mov rdi, rcx
je 0x1400086d0
lea r8, [rcx + 0x20]
mov ecx, 3
lea rdx, str.Mutex__s_already_created
call fcn.140007a3c
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rbx, [rcx + 0x20]
cmp qword [rbx + 0x18], 8
jb 0x1400086e0
mov r8, qword [rbx]
jmp 0x1400086e3
mov r8, rbx
movzx edx, al
lea rcx, [r9 + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp eax, 0xb7
jne 0x140008719
mov r8, rbx
lea rdx, str.Got_handle_to_existing_mutex__s
mov ecx, 3
call fcn.140007ab4
cmp qword [rdi + 8], 0
jne 0x1400086c3
lea r9, [rsp + 0x30]
mov r8, rbx
lea rdx, str.Failed_to_create_the_mutex__s:_LastError:_0x_x
mov ecx, 3
call fcn.140007b2c
xor al, al
jmp 0x1400086c5
Function at 0x140009630
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov edx, 0x101
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x20], edx
cmp qword [rcx + 0x10], rdx
jb 0x14000967f
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x140009673
mov rax, qword [rcx]
jmp 0x140009676
mov rax, rcx
mov word [rax + 0x202], di
jmp 0x14000968b
sub rdx, qword [rcx + 0x10]
xor r8d, r8d
call fcn.140005044
cmp qword [rbx + 0x18], 8
jb 0x140009697
mov rdx, qword [rbx]
jmp 0x14000969a
mov rdx, rbx
lea r8, [rsp + 0x20]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x1400096fb
mov edx, dword [rsp + 0x20]
cmp rdx, qword [rbx + 0x10]
ja 0x1400096cb
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x1400096c5
mov rbx, qword [rbx]
mov word [rbx + rdx*2], di
jmp 0x1400096da
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140005044
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_get_current_username.
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140005e18
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140017d70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rcx
xor r14d, r14d
mov rcx, qword [rcx + 0x30]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x140017f07
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r14d
jb 0x140017dc6
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
cmp eax, 2
je 0x140017ee8
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140017ee8
test r8d, r8d
jne 0x140017f32
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x140017e17
mov rax, qword [rbx]
jmp 0x140017e1a
mov rax, rbx
mov word [rax], r14w
cmp dword [rsp + 0x30], 2
ja 0x140017e2c
mov al, 1
jmp 0x140017eea
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x140017e56
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x140017e4c
mov rax, qword [rbx]
jmp 0x140017e4f
mov rax, rbx
mov word [rax + rdx*2], r14w
jmp 0x140017e65
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140005044
cmp qword [rbx + 0x18], 8
jb 0x140017e71
mov rax, qword [rbx]
jmp 0x140017e74
mov rax, rbx
cmp qword [rdi + 0x18], 8
jb 0x140017e80
mov rdx, qword [rdi]
jmp 0x140017e83
mov rdx, rdi
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, qword [rsi + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017f68
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x140017ed4
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x140017eca
mov rbx, qword [rbx]
mov word [rbx + rdx*2], r14w
jmp 0x140017e25
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140005044
jmp 0x140017e25
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14003a6d0
add rsp, 0x3e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, rdx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.14001481c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
mov qword [rsp + 0x20], rax
mov edx, 0xf
lea rcx, [rsp + 0x40]
call fcn.14001472c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
lea rcx, [rsp + 0x40]
mov r8d, eax
mov edx, 0xf
call fcn.14001472c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140019530
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
lea rbx, [rcx + 0x10]
mov qword [rax - 0x48], rbx
lea r9, str.ErrorUI::TerminateProcess:_called_for_PID__d
mov edx, 0xe
mov ecx, 0x41a2c2
lea r8d, [rdx + 0x24]
call fcn.1400174a4
lea rsi, vtable.RefCounted.0
mov qword [rbp - 0x28], rsi
mov dword [rbp - 0x20], 0
lea r14, vtable.OHandle.0
mov qword [rbp - 0x28], r14
and qword [rbp - 0x18], 0
mov byte [rbp - 0x10], 0
mov dword [rbp - 0xc], 0x55
mov byte [rsp + 0x20], 0
lea r9, [rbp - 0x28]
mov r8d, dword [rbx]
xor edx, edx
lea ebx, [rdx + 1]
mov ecx, ebx
call fcn.1400412ac
test al, al
je 0x1400195c7
mov edx, ebx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov qword [rbp - 0x28], r14
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400195e9
cmp byte [rbp - 0x10], 0
je 0x1400195e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp - 0x18], 0
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x28], rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400338e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14003398d
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
jb 0x140033930
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003395f
cmp eax, 2
je 0x14003396a
cmp eax, 0xea
je 0x14003396a
jmp 0x1400339b5
cmp dword [rsp + 0x30], 4
jne 0x14003396a
mov al, 1
jmp 0x14003396c
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x408]
add rsp, 0x3e0
pop rdi
ret
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.1400205e4
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
lea rcx, [rsp + 0x40]
mov r8d, eax
mov edx, 0xf
call fcn.14001472c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14003a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14007edf8]
movabs rdi, 0x2b992ddfa23249d6
test rax, rax
je 0x14003a600
mov rax, qword [0x14007edf8]
cmp rax, rdi
jne 0x14003a6c1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x40]
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x14007edf8]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
test rbx, rbx
lea rcx, [0x14007edf8]
mov edx, 8
cmovne rdi, rbx
mov qword [0x14007edf8], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 8
lea rcx, [0x14007edf8]
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov rax, qword [0x14007edf8]
not rax
mov qword [0x1400b8f48], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret