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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140116340]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x90]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x1400b364b
lea rcx, [rsp + 0x90]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x1400b3610
cmp word [rsp + rax*2 + 0x8e], 0x5c
jne 0x1400b3641
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x1400b3716
mov word [rsp + rax + 0x90], bx
lea rdx, [rsp + 0x90]
jmp 0x1400b3675
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140036540
lea rdx, [0x140036720]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x1400e5568]
lea rcx, [rsp + 0x70]
call fcn.140030f30
nop
lea rcx, [rsp + 0x70]
call fcn.140036100
test al, al
je 0x1400b369f
lea rdx, [0x1400e5568]
mov rcx, rdi
call fcn.140030f30
jmp 0x1400b36e8
lea rcx, [rsp + 0x50]
call fcn.1400b3450
mov rbx, rax
lea r8, [0x1400f7660]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140029400
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140029470
nop
lea rcx, [rsp + 0x30]
call fcn.1400062f0
nop
lea rcx, [rsp + 0x50]
call fcn.1400062f0
nop
lea rcx, [rsp + 0x70]
call fcn.1400062f0
mov rax, rdi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400d5170
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2b0
pop rdi
ret
call fcn.1400d5740
int3
Function at 0x1400b49d0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140116340]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x20], r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400b4c70
xorps xmm0, xmm0
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x40
lea rdx, [rsp + 0x60]
mov r8, rsi
mov rcx, rdi
call fcn.1400b42f0
test al, al
je 0x1400b4c70
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
jne 0x1400b4c70
movsxd r8, dword [rsp + 0x9c]
lea rdx, [rsp + 0xa0]
add r8, rsi
mov r9d, 0x108
mov rcx, rdi
call fcn.1400b42f0
test al, al
je 0x1400b4c70
cmp dword [rsp + 0xa0], 0x4550
jne 0x1400b4c70
mov ebp, dword [rsp + 0x128]
test ebp, ebp
je 0x1400b4c70
mov eax, dword [rsp + 0x12c]
test eax, eax
je 0x1400b4c70
mov qword [rsp + 0x218], rbx
mov r9d, 4
mov qword [rsp + 0x1c8], r14
mov r8d, 0x3000
mov qword [rsp + 0x1c0], r15
mov edx, eax
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r15d
mov rcx, rdi
mov rbx, rax
mov r14d, ebp
lea rax, [rsi + rbp]
mov rdx, rbx
mov r8, rax
mov qword [rsp + 0x28], rax
call fcn.1400b42f0
test al, al
jne 0x1400b4b2b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400b4bc9
mov r15d, dword [rbx + 0x20]
mov rbp, rbx
sub rbp, r14
mov qword [rsp + 0x1d8], r12
mov r12d, dword [rbx + 0x24]
add r15, rbp
mov qword [rsp + 0x1d0], r13
add r12, rbp
mov r13d, dword [rbx + 0x1c]
xor edi, edi
add r13, rbp
cmp dword [rbx + 0x18], edi
jbe 0x1400b4ba6
nop dword [rax]
mov edx, dword [r15 + rdi*4]
lea rcx, [rsp + 0x40]
add rdx, rbp
call fcn.1400070a0
mov rcx, qword [rsp + 0x20]
call fcn.1400087c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1400087c0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400b4bfc
lea rcx, [rsp + 0x40]
call fcn.140006300
inc edi
cmp edi, dword [rbx + 0x18]
jb 0x1400b4b60
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r13, qword [rsp + 0x1d0]
mov r12, qword [rsp + 0x1d8]
mov r14, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x218]
mov r15, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400d5170
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [r12 + rdi*2]
mov ecx, dword [r13 + rax*4]
cmp ecx, 0x1000
jbe 0x1400b4c3a
lea rdi, [rsi + rcx]
cmp rdi, qword [rsp + 0x28]
jb 0x1400b4c4d
mov rax, r14
add rax, qword [rsp + 0x38]
add rax, rsi
cmp rdi, rax
ja 0x1400b4c4d
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.140006300
mov eax, edi
jmp 0x1400b4bb9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x40]
call fcn.140006300
mov rax, rdi
jmp 0x1400b4bb9
xor eax, eax
jmp 0x1400b4be1
Function at 0x1400b5950
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.1400d6470
sub rsp, rax
mov rax, qword [0x140116340]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbp, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor r14d, r14d
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
je 0x1400b59d2
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.1400b42f0
test al, al
jne 0x1400b59da
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_read_module_headers
call fcn.140036540
lea rdx, [0x140036720]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, r14
jmp 0x1400b5ac2
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
inc rdi
cmp byte [rdi + rbp], r14b
jne 0x1400b5a01
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, r14d
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
cmp r14w, r15w
jae 0x1400b5a7c
nop dword [rax]
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, rbp
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400b5a75
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r14b
jne 0x1400b5a63
cmp rdi, rax
je 0x1400b5afc
inc esi
cmp esi, r15d
jb 0x1400b5a40
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_find_section
call fcn.140036540
lea rdx, [0x140036720]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, r14
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.1400b57e0
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400d5170
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x1400b5a7c
mov edx, dword [rbx + 8]
lea rcx, [rsp + 0x50]
add rcx, rax
je 0x1400b5a7c
test edx, edx
je 0x1400b5a7c
lea rax, [rsp + 0x50]
mov r14d, edx
sub rcx, rax
lea rdx, [rcx + r13]
jmp 0x1400b5aa2
Function at 0x1400b7ee0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140116340]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
lea r9, [rsp + 0x20]
xor edi, edi
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
mov ebx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400b7f75
test rbx, rbx
je 0x1400b7f3b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400b7f25
test eax, eax
jns 0x1400b7f96
test rbx, rbx
je 0x1400b7f9b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400b8020
test rbx, rbx
jne 0x1400b7fa2
xor eax, eax
jmp 0x1400b8020
mov qword [rsp + 0x68], rsi
cmp dword [rbx], edi
jbe 0x1400b8008
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rsi, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.1400070a0
mov rcx, rbp
call fcn.1400087c0
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.1400087c0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400b803d
lea rcx, [rsp + 0x28]
call fcn.140006300
inc edi
cmp edi, dword [rbx]
jb 0x1400b7fb0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d5170
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x28]
call fcn.140006300
mov rax, rdi
jmp 0x1400b801b
Function at 0x1400b9f10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140116340]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400ba031
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400ba031
test rax, rax
je 0x1400ba031
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x1400b9f93
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x1400ba03c
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x1400ba01f
nop word [rax + rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x1400ba01f
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x1400b9ff8
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x1400ba014
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400ba580
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x1400b9fb0
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x1400ba03c
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d5170
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400cc420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.1400cc150
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1400cc150
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x1400cc5ab
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x1400cc4b5
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.1400cc1f0
jmp 0x1400cc59c
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x1400cc589
mov rcx, rsi
call fcn.1400cc150
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1400cc150
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
lea rbp, [rsi + 0x18]
test al, al
je 0x1400cc569
nop
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x1400cc570
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.1400cc1f0
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x1400cc58d
mov rcx, rsi
mov edi, ebx
call fcn.1400cc150
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1400cc150
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x1400cc500
mov edx, 0xfffd
jmp 0x1400cc58f
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
jmp 0x1400cc58d
lea rbp, [rsi + 0x18]
mov edx, edi
mov rcx, rbp
call fcn.1400cc1f0
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x1400d487c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400d48b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400d48bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400d4904
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400e4b20]
cmp byte [rcx + rax], 0
je 0x1400d4904
dec r8
sub rdx, 1
jne 0x1400d48ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400d6130
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18000181d
test r9, r9
je 0x18000181d
movsxd r8, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div r8
test rdx, rdx
jne 0x18000181d
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
cmp ecx, 1
jne 0x18000174a
mov r15d, ebp
test rax, rax
je 0x18000180e
lea r14, [rbx + 0x3f8]
mov rax, r14
cmp byte [rbx + 8], bpl
je 0x180001705
mov edx, ebp
test r8d, r8d
jle 0x180001705
mov r8, rsi
sub r8, r14
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x1800016f0
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.180001830
movsxd r8, dword [rbx + 0x3d0]
mov rdx, rdi
mov rcx, r14
call fcn.1800366f0
movsxd r8, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r15d
div r8
add rsi, r8
mov ecx, r15d
add rdi, r8
cmp rcx, rax
jb 0x1800016d5
jmp 0x18000180e
cmp ecx, 2
jne 0x1800017dd
mov r14d, ebp
test rax, rax
je 0x18000180e
nop
mov r8, rdi
lea rdx, [rbx + 0x3f8]
mov rcx, rbx
call fcn.180001830
mov rcx, rdi
cmp byte [rbx + 8], bpl
je 0x1800017a5
mov edx, ebp
cmp dword [rbx + 0x3d0], edx
jle 0x1800017a5
mov r8, rsi
sub r8, rdi
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc edx
xor byte [rcx], al
lea rcx, [rcx + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x180001790
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.1800366f0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r14d
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, r14d
cmp rcx, rax
jb 0x180001760
jmp 0x18000180e
test rax, rax
je 0x18000180e
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.180001830
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc ebp
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, ebp
cmp rcx, rax
jb 0x1800017e2
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x180002720
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180002a10
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rax - 0x58], 0xfffffffffffffffe
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov dword [rax - 0x64], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rax - 0x64], 1
mov ecx, 0x208
call fcn.180018ef4
mov r12, rax
movzx eax, di
mov rdi, r12
mov ecx, 0x104
rep stosw word [rdi], ax
mov r13d, 0x20019
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, eax
test eax, eax
jne 0x180002c5e
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x180002c53
cmp dword [rsp + 0x30], 0x104
jbe 0x180002b37
mov rcx, r12
call fcn.180018804
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180018ef4
mov r12, rax
mov ecx, dword [rsp + 0x30]
add ecx, 1
je 0x180002b37
movzx eax, di
mov rdi, r12
rep stosw word [rdi], ax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
mov r14d, dword [rsp + 0x30]
mov rsi, qword [rbx + 0x18]
cmp r14, rsi
ja 0x180002b98
mov rbp, rbx
cmp rsi, 8
jb 0x180002b77
mov rbp, qword [rbx]
mov qword [rbx + 0x10], r14
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r12
mov rcx, rbp
call fcn.1800366f0
xor eax, eax
mov word [rdi + rbp], ax
jmp 0x180002c33
mov rdi, r14
or rdi, 7
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, rcx
cmp rsi, rax
jbe 0x180002bbf
mov rdi, rdx
jmp 0x180002bca
lea rax, [rcx + rsi]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.180002780
mov rbp, rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], rdi
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r12
mov rcx, rax
call fcn.1800366f0
xor eax, eax
mov word [rdi + rbp], ax
cmp rsi, 8
jb 0x180002c30
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180002c2b
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002c95
mov rcx, rdi
call fcn.180018804
mov qword [rbx], rbp
mov rcx, r12
call fcn.180018804
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r15d, 2
jne 0x180002c81
cmp rsi, 0xffffffff80000002
jne 0x180002c81
cmp r13d, 0x20019
jne 0x180002c81
mov r13d, 0x20219
jmp 0x180002a90
mov rax, rbx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18003a224
int3
Function at 0x180003170
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor bl, bl
xor ebp, ebp
mov r12, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], rbp
je 0x1800032ef
cmp qword [rdx + 0x10], rbp
je 0x1800032ef
cmp qword [rdx + 0x18], 0x10
mov rcx, rdx
mov qword [rsp + 0x80], r15
jb 0x1800031b1
mov rcx, qword [rdx]
lea rdx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov r15d, eax
test eax, eax
je 0x1800032ea
mov ecx, r15d
mov qword [rsp + 0x78], r14
lea rdx, [0x18008b0fc]
call fcn.180019024
mov r14, rax
test rax, rax
je 0x1800032cf
cmp qword [rdi + 0x18], 0x10
jb 0x1800031f0
mov rdi, qword [rdi]
mov edx, dword [rsp + 0x70]
mov r9, r14
mov r8d, r15d
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1800032ba
lea r9, [rsp + 0x88]
mov rcx, r14
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1800032ba
mov rax, qword [rsp + 0x30]
lea rdx, [0x18008b0fc]
mov ecx, 0x80
movzx edi, word [rax]
movzx eax, word [rax + 2]
shl edi, 0x10
or edi, eax
call fcn.180019024
mov rbp, rax
test rax, rax
je 0x1800032ba
cmp qword [rsi + 0x18], 0x10
jb 0x180003262
mov rsi, qword [rsi]
mov r9d, edi
mov qword [rsp + 0x20], rsi
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x80
mov rcx, rbp
call fcn.1800033a0
lea r9, [rsp + 0x88]
mov rdx, rbp
lea r8, [rsp + 0x38]
mov rcx, r14
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1800032b8
mov rdx, qword [rsp + 0x38]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1800032a6
mov rcx, r12
call fcn.180002200
mov bl, 1
mov rcx, r14
call fcn.180018804
test rbp, rbp
je 0x1800032cf
mov rcx, rbp
call fcn.180018804
mov r14, qword [rsp + 0x78]
movzx eax, bl
mov r15, qword [rsp + 0x80]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, bl
jmp 0x1800032d7
movzx eax, bl
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret