joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f990
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405b9480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405b9460]
test rbx, rbx
je 0x14000f9e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000f9db
test rsi, rsi
je 0x14000f9db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000f9c0
lea rcx, [0x1405b9480]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000fd40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b43d0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000fdaf
mov rcx, r9
call fcn.14000fc10
test eax, eax
je 0x14000fdaf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000fdad
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000fda4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000fdaf
add rdx, 0x28
cmp rdx, r9
jne 0x14000fd90
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a0b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405b0060]
jmp 0x140010b70

Function at 0x14001a0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405b0060]
jmp 0x140010b70

Function at 0x1415450b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141545237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415450e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415450c7
add dl, dl
jne 0x1415450ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14154514e
xor eax, eax
add dl, dl
jne 0x1415450fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141545205
add dl, dl
jne 0x14154510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14154511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141545128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141545135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141545142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415450d6
mov eax, 1
add dl, dl
jne 0x14154515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14154516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141545153
sub eax, ebx
mov ebx, 1
jne 0x1415451a4
mov ecx, 1
add dl, dl
jne 0x141545186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141545193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14154517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415450d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415451c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415451cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415451b5
cmp eax, 0x7d00
jae 0x1415451f3
cmp eax, 0x500
jb 0x1415451ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415450d6
cmp eax, 0x7f
ja 0x1415451f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415450d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14154522a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1415450d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400088d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140008900
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140008928
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000892a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008983
test ecx, ecx
jle 0x140008963
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140008983
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008983
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub esi, dword [rdi]
invalid
Function at 0x1400089b0
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 0x1400089d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400089e1
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 0x140008a04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008a06
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140008a40
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140008ae7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140008a7b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140008ac1
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140008b00
cmp rbx, rax
ja 0x140008a90
mov r8, rdi
test rdi, rdi
je 0x140008ae7
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140008aea
test eax, 0x34c21f68
ret
Function at 0x140008f00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008f2d
xor eax, eax
jmp 0x140009082
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140008f58
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140008f58
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 0x140009082
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140009075
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140008f9b
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 0x140008fc6
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 0x14000907a
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 0x140009035
sub eax, 1
je 0x140009035
cmp eax, 2
jne 0x140009075
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 0x14000907a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009063
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 0x140009075
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000907a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400379a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ae30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000af03
cmp byte [rcx + 0x71], 0
je 0x14000af03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000aeff
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 0x14000aec4
sub eax, 1
je 0x14000aec8
cmp eax, 2
jne 0x14000aeff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400379a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000aef6
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 0x14000aeff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000aeac
xor al, al
jmp 0x14000aeac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400379a0
add rsp, 0x60
pop rbx
ret
Function at 0x14001bd30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
mov rsi, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.1400387f2
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW]
test eax, eax
je 0x14001bec9
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.14001bee0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001bdb6
mov rcx, qword [rbx]
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x14001bdc3
mov r8, qword [rax]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rbx + 0x10]
jne 0x14001bdee
test rdx, rdx
je 0x14001bde9
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x14001bdee
add rcx, 2
sub rdx, 1
jne 0x14001bdd5
mov dil, 1
jmp 0x14001bdf1
xor dil, dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001be2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001be2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001be47
call fcn.1400379c0
mov rcx, rsi
test dil, dil
jne 0x14001be4e
lea rdx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW]
jmp 0x14001bd93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov byte [r14], 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001be94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001be8f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001bed2
mov rcx, r8
call fcn.1400379c0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400379a0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
ret
mov byte [r14], 0
mov rcx, rsi
jmp 0x14001be52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001bee0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, edx
mov qword [rsp + 0x20], rcx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400387f2
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001bf69
lea r9, [rsp + 0x28]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcessModules]
test eax, eax
je 0x14001bf69
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetModuleBaseNameW]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
mov qword [rdi + 0x18], 7
mov qword [rdi], rax
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x10], rax
mov word [rdi], ax
lea rax, [rsp + 0x30]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001bf92
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001aa20
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400379a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x14001c010
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [r11 - 0x50], rcx
mov qword [r11 - 0x48], rdx
call fcn.14001c3b0
mov rbp, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001c05a
mov rdx, qword [rdi]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xe8]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14001c090
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0xe8], 4
jne 0x14001c1df
mov ecx, dword [rsp + 0xd0]
call fcn.140037e1c
mov r14, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001c0ba
mov rdx, qword [rdi]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x14001c0fd
mov edx, 1
mov rcx, r14
call fcn.1400379c0
mov r14d, 0x8123
mov ebx, dword [r14]
mov edx, 1
mov rcx, r14
call fcn.1400379c0
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14001c14d
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c148
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c1d1
mov rcx, r8
call fcn.1400379c0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001c198
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001c193
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c1d8
mov rcx, r8
call fcn.1400379c0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400379a0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r8, rsi
lea rdx, str.Registry_value
lea rcx, [rsp + 0x50]
call fcn.14001c8c0
nop
lea r8, [0x140040950]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001ae80
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14001ca40
nop
lea r8, str._has_wrong_type
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.14001ae80
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14001bff0
lea rdx, [0x140048f70]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001c260
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
call fcn.14001c3b0
mov rbp, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001c2a6
mov rdx, qword [rdi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
sete bl
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14001c318
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c313
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c398
mov rcx, r8
call fcn.1400379c0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 7
mov word [rsi], r14w
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001c363
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001c35e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c39f
mov rcx, r8
call fcn.1400379c0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400379a0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call fcn.1400016f0
lea r8, section..rdata
mov edx, 0x66
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_FindResourceA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_SizeofResource]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_LoadResource]
call rax
mov qword [rbp - 0x18], rax
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400014f0
nop
add rsp, 0x40
pop rbp
ret

Function at 0x1400014f0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
cdqe
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001550
mov rax, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call fcn.140007d50
mov eax, 0xffffffff
jmp 0x140001632
mov eax, dword [rbp + 0x18]
movsxd rcx, eax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memmove
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
lea rcx, [rbp - 0x14]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 0x20
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x1400015b6
mov rax, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call fcn.140007d50
mov eax, 0xfffffffe
jmp 0x140001632
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_CreateThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001613
mov rax, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call fcn.140007d50
mov eax, 0xfffffffd
jmp 0x140001632
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call rax
call sub.msvcrt.dll_getchar
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001900
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.140007670
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.140007670
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]