joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053990
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.140053a80
mov eax, dword [rsi]
mov dword [0x140167020], eax
test al, 1
jne 0x1400539b1
mov al, 1
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x140176430]
test rcx, rcx
je 0x1400539e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140176430], 0
mov rcx, qword [0x140176408]
test rcx, rcx
jne 0x140053a11
and byte [0x140167020], 0xfe
jmp 0x1400539ef
mov rcx, qword [0x140176408]
test rcx, rcx
jne 0x140053a11
mov ecx, 0x18
call fcn.1400fa620
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140176408], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140053a46
call fcn.140047936
cmp dword [rsi + 0x14], 0
jne 0x140053a3b
mov rcx, qword [0x140176408]
cmp byte [rcx + 0x17], 0
jns 0x140053a35
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x30
pop rsi
jmp fcn.140053bd0
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.140021ffc
int3
Function at 0x14005a560
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14004bf30
mov qword [rsi], 0
test rax, rax
je 0x14005a5c7
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14005a5ad
call fcn.1400577a0
mov rcx, qword [rsi]
call fcn.140049310
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14005a5bf
mov qword [rsi], rbx
call fcn.1400577a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140057970
lea rcx, [rsi + 0x20]
call fcn.140069070
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
movzx eax, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
movzx eax, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14005acb0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140176478]
test rdi, rdi
jne 0x14005ad64
mov ecx, 0x50
call fcn.1400fa620
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400fa620
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14005ad86
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140176478], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14005adb2
mov rcx, rax
call fcn.140117318
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14005ade0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400fb950
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140021ffc
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140021ffc
int3
Function at 0x14005ade0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.14006a7a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14005af40
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x140141c98]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14005ae7e
lea rdx, [0x140141ce8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005ae91
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140191008]
jmp 0x14005ae8c
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
jmp 0x14005ae93
xor ebx, ebx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x14013ab10]
movaps xmmword [rsp + 0x30], xmm0
movsxd rax, dword [rsp + 0x4c]
lea r8, [rbx + rax*8]
lea r14, [rsp + 0x30]
mov rcx, r14
mov rdx, rbx
call fcn.14005c990
mov rcx, rsi
mov rdx, r14
call fcn.14005a9d0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14005aeef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14005af40
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
cmp rdi, rsi
je 0x14005af36
add rdi, 0xffffffffffffffe8
jmp 0x14005af1c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14005af31
test rdi, rdi
je 0x14005af58
cmp byte [rdi + 0x17], 0
jns 0x14005af10
mov rcx, qword [rdi]
call fcn.1400fa65c
jmp 0x14005af10
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.1400fa65c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fb950
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140021ffc
int3
Function at 0x14005c0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x140176488]
cmp eax, 3
je 0x14005c214
mov rsi, rcx
lea r14, [0x140141c60]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x14013ab10]
lea rdi, [rsp + 0x30]
xor r12d, r12d
jmp 0x14005c14f
test bl, bl
js 0x14005c1f0
inc r12
movzx eax, byte [0x140176488]
xor rax, 3
cmp r12, rax
jae 0x14005c214
mov rdx, r12
shl rdx, 4
add rdx, r14
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rcx, rdi
call fcn.14002b9e4
movzx ebx, byte [rsp + 0x47]
test bl, bl
js 0x14005c180
mov rcx, rdi
mov rax, rbx
jmp 0x14005c1a0
mov rax, qword [rsp + 0x38]
test rax, rax
js 0x14005c265
mov rcx, qword [rsp + 0x30]
je 0x14005c1a0
test rcx, rcx
je 0x14005c239
nop
mov rdx, qword [rsi]
mov r9, qword [rsi + 8]
cmp r9, rax
mov r8, rax
cmovb r8, r9
test r8, r8
je 0x14005c1bb
test rdx, rdx
je 0x14005c239
cmp rax, r9
ja 0x14005c130
test r8, r8
je 0x14005c1ff
xor r8d, r8d
nop dword [rax]
movzx r9d, word [rdx + r8*2]
cmp r9w, word [rcx + r8*2]
jne 0x14005c130
inc r8
cmp rax, r8
jne 0x14005c1d0
jmp 0x14005c1ff
mov rcx, qword [rsp + 0x30]
call fcn.1400fa65c
jmp 0x14005c138
test bl, bl
jns 0x14005c216
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
call fcn.1400fa65c
jmp 0x14005c216
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fb950
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140021ffc
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140021ffc
int3

Function at 0x14005f6d2
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14012e050
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005f74d
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.14005f667
test al, al
jne 0x14005f75b
add rbx, 8
cmp rbx, 0x18
jne 0x14005f71a
xor esi, esi
jmp 0x14005f75e
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400fb950
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400665e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.14012e050
mov dword [rsp + 0x34], 0x11c
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400fa620
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x140176538]
mov ecx, dword [0x140173698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400666ac
lea r8, [0x140176508]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400667b0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400fb950
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140176538]
call fcn.1400fa6ac
cmp dword [0x140176538], 0xffffffff
jne 0x140066678
xorps xmm0, xmm0
movups xmmword [0x140176528], xmm0
movups xmmword [0x140176518], xmm0
movups xmmword [0x140176508], xmm0
lea rcx, [0x140176508]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140176538]
call fcn.1400fa760
jmp 0x140066678

Function at 0x140066700
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140176538]
mov ecx, dword [0x140173698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140066761
movzx eax, word [0x140176508]
cmp rax, 0xc
ja case.0x140066740.1
lea rcx, [0x1401445d4]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x140066740.0
mov eax, 1
jmp case.0x140066740.0
mov eax, 3
jmp case.0x140066740.0
mov eax, 4
add rsp, 0x28
ret
lea rcx, [0x140176538]
call fcn.1400fa6ac
cmp dword [0x140176538], 0xffffffff
jne 0x140066725
xorps xmm0, xmm0
movups xmmword [0x140176528], xmm0
movups xmmword [0x140176518], xmm0
movups xmmword [0x140176508], xmm0
lea rcx, [0x140176508]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140176538]
call fcn.1400fa760
jmp 0x140066725
Function at 0x140068e40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rax, qword [rcx]
jne 0x140068e6e
test rax, rax
jne 0x140068e6e
cmp dword [rsi + 0x14], 0
jne 0x140068e6e
cmp qword [rsi + 8], 0
je 0x140068f72
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x140068e8e
call fcn.1400577a0
mov rcx, qword [rsi]
call fcn.140049310
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x140068eb7
call fcn.1400577a0
mov rcx, qword [rsi + 8]
call fcn.140049310
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov qword [rsi + 0x10], 0
mov r14, qword [rdi]
cmp rax, r14
je 0x140068f0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140068eef
call fcn.1400577a0
mov rcx, qword [rsi]
call fcn.140049310
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140068f01
mov qword [rsi], r14
call fcn.1400577a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi + 8]
mov r14, qword [rdi + 8]
cmp rcx, r14
je 0x140068f5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140068f41
call fcn.1400577a0
mov rcx, qword [rsi + 8]
call fcn.140049310
mov qword [rsi + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140068f54
mov qword [rsi + 8], r14
call fcn.1400577a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
xor eax, eax
jmp 0x140068ebf
Function at 0x14007063c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14013ab10]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400707b8
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140176b40]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14011776c
mov rcx, rbx
call fcn.140117318
sub r14, rax
lea rdx, [0x14013f4cc]
mov rcx, rbx
mov r8, r14
call fcn.14011776c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14012e050
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140070714
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401177b4
test eax, eax
je 0x14007074f
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14007074b
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401177b4
test eax, eax
je 0x14007074f
xor eax, eax
jmp 0x140070751
mov al, 1
mov byte [0x140176731], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14014ba0c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400707a9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140191008]
test eax, eax
je 0x1400707a9
cmp dword [rsp + 0x30], 0
setne al
jmp 0x1400707ab
xor eax, eax
mov byte [0x140176d40], al
mov byte [0x140176730], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400fb950
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140070945
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140070978
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400709a7
bt ebx, 8
jae 0x14007098c
mov eax, ebx
and eax, 0x200
jne 0x1400709a7
cmp edi, 2
lea rax, [0x140176740]
lea rcx, [0x140176940]
cmove rcx, rax
cmp word [rcx], 0
je 0x1400709c6
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400fb950
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400709a7
cmp byte [0x140176d40], 0
setne al
bt ebx, 8
jb 0x1400709a7
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400709a7
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
js 0x140070a29
mov rdi, rsi
jmp 0x140070a30
mov rdi, qword [rsi]
mov rbp, qword [rsi + 8]
mov ebx, 1
xor r14d, r14d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x140070a6e
mov rdx, qword [r12]
mov rcx, rdi
mov r8, r15
call fcn.1401128b4
test eax, eax
je 0x140070a7f
add r12, 0x28
inc r14
cmp r14, rbx
jb 0x140070a4e
jmp 0x140070b02
movzx edx, word [rdi + r15*2]
cmp edx, 0x5c
je 0x140070a8d
test edx, edx
jne 0x140070a6e
lea rcx, [rdi + r15*2]
mov r8d, dword [r12 + 0x10]
lea rax, str.WOW6432Node_
cmp r8d, 1
je 0x140070abf
cmp r8d, 2
jne 0x140070ab5
mov rdi, rcx
lea rax, str.WOW6432Node
jmp 0x140070abf
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], r8d
jne 0x140070add
lea rdx, [rcx + 2]
dec r13
cmp word [rcx + 2], 0x5c
mov rcx, rdx
je 0x140070aca
jmp 0x140070ae0
mov rdx, rcx
mov rbx, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov rdi, rdx
jmp 0x140070a75
cmp dword [rsp + 0x2c], 0
je 0x1400709a7
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140070b19
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.140047c00
jmp 0x1400709a7
Function at 0x140070dbf
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [0x140176730], 0
jne 0x140070e00
call fcn.14007063c
test al, al
je 0x140070ec6
xorps xmm0, xmm0
lea r15, [rsp + 0x50]
movaps xmmword [r15], xmm0
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_RtlInitUnicodeString
lea r13, [rsp + 0x4c]
mov dword [r13], 0x18
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14013ab10]
movaps xmmword [rdi], xmm0
mov edx, 0x18
mov rcx, rdi
call fcn.140027f48
mov ebp, 5
mov edx, dword [rsp + 0x4c]
mov rcx, rdi
call fcn.1400222b0
mov r12, qword [rsp + 0x30]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov rcx, r14
mov rdx, r15
mov r8d, 1
mov r9, r12
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0xc0000023
je 0x140070e93
cmp eax, 0x80000005
jne 0x140070e9b
dec ebp
jne 0x140070e53
xor esi, esi
jmp 0x140070ed5
test eax, eax
js 0x140070e97
mov eax, dword [r12 + 4]
mov dword [rbx], eax
mov r9d, dword [r12 + 0xc]
test r9, r9
je 0x140070eca
mov edx, dword [r12 + 8]
add rdx, r12
lea r8, [rdx + r9]
mov rcx, rsi
call fcn.140027ac4
jmp 0x140070ed2
xor esi, esi
jmp 0x140070ee2
mov rcx, rsi
call fcn.14001c680
mov sil, 1
lea rcx, [rsp + 0x68]
mov qword [rcx], rdi
call fcn.14001c652
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400fb950
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007c3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14007c41b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14007c41b
cmp dword [rsp + 0x38], 4
jne 0x14007c41b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400fb950
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14007c440
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400fb8f0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14012e050
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14007c52b
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14007c4db
mov edi, 0x3f4
cmp eax, 1
jne 0x14007c52b
lea rdx, [rsp + 0x840]
jmp 0x14007c521
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14012e050
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14007c52b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140047936
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fb950
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140083f40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x140083faa
xor r11d, r11d
nop dword [rax + rax]
mov rbx, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rdi, rsi
xor rdi, rbx
mov r14d, eax
lea rax, [rdi - 1]
mov r15, rsi
sub r15, rbx
xor r15, rsi
or r15, rdi
not rdi
and rax, rdi
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
or r15, 1
and r14d, eax
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x140083f60
cmp rdx, r9
jae 0x140083fe2
xor ecx, ecx
nop word cs:[rax + rax]
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x140083fc0
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x140084015
jbe 0x140084015
xor r8d, r8d
nop word [rax + rax]
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x140083ff0
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140084160
Capabilities:
Encode data using xor

Disassembly:
push rsi
movsxd r9, dword [rcx + 8]
movsxd rax, dword [rdx + 8]
cmp r9d, eax
jge 0x140084193
mov r10, qword [rdx]
xor r8d, r8d
mov r11, r9
nop word [rax + rax]
or r8, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140084180
cmp eax, r9d
jl 0x14008419b
jmp 0x1400841bc
xor r8d, r8d
cmp eax, r9d
jge 0x1400841bc
mov r10, qword [rcx]
mov r11, rax
nop word cs:[rax + rax]
or r8, qword [r10 + r11*8]
inc r11
cmp r9, r11
jne 0x1400841b0
cmp r9d, eax
cmovl eax, r9d
test eax, eax
jle 0x1400841f3
mov r9, qword [rcx]
mov r10, qword [rdx]
mov eax, eax
xor r11d, r11d
nop word cs:[rax + rax]
mov rsi, qword [r10 + r11*8]
xor rsi, qword [r9 + r11*8]
or r8, rsi
inc r11
cmp rax, r11
jne 0x1400841e0
mov eax, dword [rdx + 0x10]
xor eax, dword [rcx + 0x10]
movsxd rcx, eax
xor eax, eax
or rcx, r8
sete al
pop rsi
ret