joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x40], 1
xor ebp, ebp
mov dword [rsp + 0x80], ebp
cmp qword [r8 + 0x18], 8
jb 0x140003e9e
mov r8, qword [r8]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor edx, edx
lea r9d, [rdx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140003ff8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov r14d, dword [rsp + 0x80]
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
test r14, r14
je 0x140003f57
cmp r14, 0x1000
jb 0x140003f22
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14000401d
call fcn.14001d178
mov rcx, rax
test rax, rax
je 0x140003f1b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003f2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14001d178
mov qword [rdi], rax
mov qword [rdi + 8], rax
add rax, r14
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x48], rdi
mov rcx, qword [rdi]
lea rbx, [r14 + rcx]
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rdi + 8], rbx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x80], 0
je 0x140003fa5
mov rax, qword [rdi]
cmp qword [rsi + 0x18], 8
jb 0x140003f76
mov rsi, qword [rsi]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
mov r9d, 8
mov r8, rsi
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140003fd3
mov dword [rsp + 0x40], ebp
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14001d150
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r8, str.Cannot_get_binary_data:_RegGetValueW_failed.
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.140004030
lea rdx, [0x14005b9c0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.Cannot_get_size_of_binary_data:_RegGetValueW_failed.
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.140004030
lea rdx, [0x14005b9c0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140001a60
int3
Function at 0x140008470
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400084a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140008490
ret

Function at 0x1400093f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
lea r8, [0x140023110]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
jne 0x140009434
lea eax, [rbx - 3]
jmp 0x1400094e6
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140009451
mov ebx, 0xfffffffd
jmp 0x1400094d9
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
js 0x140009447
je 0x1400094d9
movsxd rbx, eax
lea rdx, [0x140022860]
mov qword [rsp + 0x40], rdi
lea rcx, [rbx + 1]
call fcn.14001d414
mov rdi, rax
test rax, rax
jne 0x140009485
lea ebx, [rax - 2]
jmp 0x1400094d4
xor r8d, r8d
mov byte [rbx + rax], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x1400094bf
mov rcx, rdi
call fcn.14001d170
mov ebx, 0xfffffffd
jmp 0x1400094d4
mov r8, rax
mov rdx, rdi
call fcn.14000d450
mov rcx, rdi
mov ebx, eax
call fcn.14001d170
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001d150
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x140014450
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001451c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001451c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140014535
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001450c
cmp byte [rax], 0x5c
jne 0x140014506
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140014506
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400144f2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140014503
test r8b, 0x10
jne 0x140014506
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140014506
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000e1b0
test edi, edi
jne 0x140014470
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000e1a0
int3
Function at 0x140016c60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, rcx
mov rbp, 0xffffffffffffffff
xor edx, edx
lea ecx, [rbp + 3]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140016dc7
xor r12d, r12d
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x6c]
mov r8, rbp
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140016d00
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.14000acd0
nop
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140016d27
mov rdx, qword [r14]
lea rcx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rsi, 0x10
cmovae rcx, rbx
mov r8, qword [rsp + 0x30]
cmp r8, qword [r14 + 0x10]
jne 0x140016d57
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140016d57
mov dil, 1
jmp 0x140016d5a
xor dil, dil
cmp rsi, 0x10
jb 0x140016d8d
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140016d85
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016dbc
mov rcx, rbx
call fcn.14001d170
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
test dil, dil
jne 0x140016dc3
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140016dc7
jmp 0x140016ce0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebp, dword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001d150
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400171a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400171c1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400171ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400171f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140017249
test ecx, ecx
jle 0x140017229
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140017249
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140017249
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140017270
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140017292
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400172a1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400172c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400172c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140017302
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001739e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001733d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001737e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001739e
cmp rbx, rax
ja 0x140017350
test rbx, rbx
je 0x14001739e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid
Function at 0x1400177d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400177fd
xor eax, eax
jmp 0x14001795a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140017828
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140017828
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14001795a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001794d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001786b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140017896
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140017952
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140017905
sub eax, 1
je 0x140017905
cmp eax, 2
jne 0x14001794d
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140017952
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140017933
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001794d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140017952
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001d150
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140017ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140017b93
cmp byte [rcx + 0x71], 0
je 0x140017b93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140017b8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140017b54
sub eax, 1
je 0x140017b58
cmp eax, 2
jne 0x140017b8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d150
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140017b86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140017b8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140017b3c
xor al, al
jmp 0x140017b3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d150
add rsp, 0x60
pop rbx
ret
Function at 0x14001db98
Capabilities:
Parse pe header

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

Function at 0x14001e0ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001e130
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140022900]
cmp byte [rcx + rax], 0
je 0x14001e130
dec r8
sub rdx, 1
jne 0x14001e116
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400044ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov ebx, r9d
mov rbp, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004520
cmp dword [rsp + 0x34], 1
jne 0x140004520
cmp dword [rsp + 0x30], ebx
jae 0x140004520
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004520
mov al, 1
jmp 0x140004522
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000487c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400270d0]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x30], 0
mov r13, rcx
mov qword [rsp + 0x48], 0xffffffff80000001
xor edi, edi
mov qword [rsp + 0x50], 0xffffffff80000002
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004a19
mov r12, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
mov r9d, 0x104
xor edx, edx
mov rcx, r12
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140004a19
mov rdx, qword [r13 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call fcn.1400076e4
test eax, eax
je 0x14000495a
test rbx, rbx
je 0x14000494d
lea rcx, [rsp + 0x60]
mov rdx, rbx
call 0x1400075d4
test eax, eax
jle 0x14000495a
mov rcx, rbx
call fcn.14000431c
lea rcx, [rsp + 0x60]
call fcn.1400042f0
mov rbx, rax
lea r8, [rsp + 0x60]
mov r9d, 0x104
mov edx, esi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x14000491b
test rbx, rbx
je 0x140004a19
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x1400049ba
call fcn.14000431c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004a19
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004a19
call fcn.14000431c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.JavaHome
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400049ad
test rcx, rcx
je 0x140004a07
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.1400042f0
mov rbx, rax
test rax, rax
jne 0x140004a61
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004a29
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x1400048c7
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000b460
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004a71
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140004a38
Function at 0x140005e40
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rsi, r8
mov r9, r8
mov rbp, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rdi, rdx
mov dword [rsp + 0x20], 0x10000
call fcn.14000ce5c
mov rbx, rax
test rax, rax
jne 0x140005ea7
lea rax, [rsp + 0x30]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.14000ce5c
mov rbx, rax
cmp dword [0x140027080], 0
je 0x140005f64
lea rcx, str.J2D_D3D
int3
test rbx, rbx
je 0x140005f8e
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005f97
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x140028ae0], 0
je 0x140005fae
mov rax, qword [0x140028b00]
test rax, rax
je 0x140005fae
call rax
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006200
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x10
mov ecx, ebx
call fcn.140004298
lea ecx, [rbx + 0x70]
mov dword [rax + 0xc], ebx
mov rsi, rax
call fcn.140004298
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.140004298
lea rdx, [0x140028b10]
mov rcx, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x140006277
mov rcx, rbp
call fcn.14000431c
mov rcx, rsi
call fcn.140005fc8
xor eax, eax
jmp 0x1400063b9
lea r15, [0x140028b3c]
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov r12, qword [rbp + 8]
test r12, r12
je 0x140006296
and qword [rbp + 8], 0
jmp 0x1400062af
mov rcx, qword [rbp]
lea rdx, [0x140028b10]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb r12, r12
and r12, r15
test r12, r12
je 0x14000639b
mov rcx, r12
call fcn.14000abe0
cmp eax, 4
jl 0x140006286
movsxd rcx, eax
cmp byte [rcx + r12 - 4], 0x2e
jne 0x140006286
lea rbx, [rcx + r12 - 3]
lea rdx, [0x14001fd74]
mov rcx, rbx
call fcn.14000b490
test eax, eax
je 0x1400062fb
lea rdx, [0x14001fd70]
mov rcx, rbx
call fcn.14000b490
test eax, eax
jne 0x140006286
mov edx, 0x3b
mov rcx, r12
call fcn.14000ccdc
test rax, rax
jne 0x140006286
mov rcx, r14
call fcn.14000abe0
mov rcx, r12
mov rdi, rax
call fcn.14000abe0
lea ecx, [rax + rdi]
mov rbx, rax
movsxd rcx, ecx
call fcn.140004298
lea ecx, [rdi - 1]
mov rdx, r14
movsxd r8, ecx
mov rcx, rax
mov r13, rax
call fcn.14000ad80
lea r11d, [rbx + 1]
movsxd rcx, edi
lea rcx, [rcx + r13 - 1]
movsxd r8, r11d
mov rdx, r12
call fcn.14000ad80
mov r11d, dword [rsi + 8]
mov eax, dword [rsi + 0xc]
inc r11d
cmp eax, r11d
jge 0x140006388
add eax, eax
mov dword [rsi + 0xc], eax
cmp eax, r11d
jl 0x14000636c
mov rcx, qword [rsi]
movsxd rdx, eax
shl rdx, 3
call fcn.1400042c4
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], r13
inc dword [rsi + 8]
jmp 0x140006286
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 8]
call fcn.14000431c
mov rcx, rbp
call fcn.14000431c
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret