joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc500bac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc500c2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc500c21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc500c21
mov rax, qword [rbp - 8]
jmp 0x2fc500c3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc500bf4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4390
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5470
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4d92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4e2a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4e0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4e02
cmp qword [rbp - 0x10], 0
je 0x2fc4d4e02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4dc8
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4e2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4f30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4f58
mov eax, 0
jmp 0x2fc4d4fa6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4f81
mov eax, 0
jmp 0x2fc4d4fa6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4fa1
mov eax, 0
jmp 0x2fc4d4fa6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4fac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d502a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5021
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d5021
mov rax, qword [rbp - 8]
jmp 0x2fc4d503f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4ff4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004e44
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12, rcx
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x40], ebx
xor r15d, r15d
xor esi, esi
mov qword [rsp + 0xa8], rsi
xor edi, edi
mov qword [rsp + 0xb0], rdi
xor r14d, r14d
mov qword [rsp + 0xb8], r14
xor r13d, r13d
test rcx, rcx
jne 0x140004e9e
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
nop dword [rax + rax]
jmp 0x140004f35
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0xb0], rax
cmp rax, rbx
je 0x140004f43
and qword [rsp + 0x28], rsi
and dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x140004f43
and qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x140004f43
mov r13d, 1
mov r15, rax
cmp r13d, 1
jne 0x140004fe5
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x140004fbf
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
jne 0x140004fbf
movups xmm0, xmmword [rax + r15 + 4]
mov eax, dword [rax + r15 + 0x14]
mov dword [rsp + 0x58], eax
movd eax, xmm0
movzx ecx, ax
sub ecx, 0x14c
je 0x140004fb9
sub ecx, 0x78
je 0x140004fb2
sub ecx, 0x3c
je 0x140004fab
sub ecx, 0x8464
je 0x140004fa4
cmp ecx, 0x2400
jne 0x140004fbf
lea ebx, [r13 + 3]
jmp 0x140004fbb
mov ebx, 2
jmp 0x140004fbb
mov ebx, 1
jmp 0x140004fbb
mov ebx, 3
jmp 0x140004fbb
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x140004fe5
test r12, r12
je 0x140005026
test rsi, rsi
je 0x140004ffe
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
nop dword [rax + rax]
test r14, r14
je 0x140005012
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x140005026
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005054
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, r8
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
nop dword [rax + rax]
test eax, eax
je 0x1400050eb
lea rax, str.owning_thread
mov r9, rbx
mov qword [rsp + 0x50], rax
lea r8, str.deleting_active_critical_section
mov rax, qword [rsp + 0xb0]
lea rcx, str._n_The_application_has_detected_an_error__nCode___d__message___s__nparam1_Id__description1_s__nparam2_Id__description2_s__nparam3_Id__description3_s__nparam4_Id__description4_s_n
mov qword [rsp + 0x48], rax
mov edx, 0x208
lea rax, str.expected_lock_count
mov qword [rsp + 0x40], rax
lea rax, str.lock_count
or qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, str.critical_section_address
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_DbgPrint]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
nop dword [rax + rax]
add rsp, 0x60
pop rbx
ret

Function at 0x14000512c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x260
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov esi, eax
xor r14d, r14d
test eax, eax
je 0x140005246
mov ebx, esi
add rbx, rbx
mov ecx, 0x200
cmp rbx, rcx
jbe 0x1400051a7
mov rcx, rbx
call fcn.140002cf8
mov qword [rsp + 0x38], rbx
jmp 0x1400051b1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x240], r14
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140005239
mov rdx, qword [rsp + 0x30]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
lea r8d, [rax - 1]
mov rcx, rdi
call fcn.140004944
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x14000520d
call fcn.140002d40
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400258c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rcx, str.ExpandEnvironmentStrings
call fcn.14000400c
nop
lea rcx, str.ExpandEnvironmentStrings
call fcn.14000400c
int3
Function at 0x1400147f0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x40]
and qword [rbp - 0x80], 0
movups xmm0, xmmword [rcx + 0x10]
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x70], r9
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x78], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [0x140018480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
nop dword [rax + rax]
mov rbx, rax
mov rdx, rax
call fcn.140015dcc
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x34]
test r8d, r8d
js 0x1400148ba
lea rcx, [rbp - 0x80]
call fcn.140006a14
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400258c0
add rsp, 0x108
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x38]
add rcx, 0x30
call fcn.14000af1c
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140008cb0
nop
lea rcx, [rbp - 0x70]
call fcn.140007e8c
int3

Function at 0x140014c90
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x118
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x150]
mov r10, qword [rsp + 0x158]
mov rdi, qword [rsp + 0x160]
and qword [r11 - 0x90], 0
movups xmm0, xmmword [rcx + 0x10]
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r9
mov qword [r11 - 0xa8], r10
mov qword [r11 - 0xa0], rdi
and qword [r11 - 0x98], 0
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [0x140018480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
nop dword [rax + rax]
mov rbx, rax
mov rdx, rax
call fcn.140015dcc
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
cmp dword [rsp + 0x34], 0
jl 0x140014db7
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x40]
mov rcx, rdi
call fcn.140007978
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x98]
call fcn.140006a14
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400258c0
add rsp, 0x118
pop rdi
pop rbx
ret
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x40]
call sub.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree
mov rcx, qword [rsp + 0x38]
add rcx, 0x48
call fcn.14000af1c
mov rdx, rax
mov r8d, dword [rsp + 0x34]
lea rcx, [rsp + 0xa0]
call fcn.140008cb0
nop
lea rcx, [rsp + 0xa0]
call fcn.140007e8c
int3
Function at 0x140014e10
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x31], 0
movups xmm0, xmmword [rcx + 0x10]
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x41], r8
mov qword [rbp - 0x49], rdx
mov qword [rbp - 0x39], r9
mov dword [rbp - 0x79], 2
lea rax, [rbp - 0x59]
mov qword [rbp - 0x71], rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x79]
lea r8, [0x140018480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
nop dword [rax + rax]
mov rbx, rax
mov rdx, rax
call fcn.140015dcc
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r8d, dword [rbp - 0x75]
test r8d, r8d
js 0x140014eca
lea rcx, [rbp - 0x31]
call fcn.140006a14
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400258c0
add rsp, 0xf8
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x71]
add rcx, 0x28
call fcn.14000af1c
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140008cb0
nop
lea rcx, [rbp - 0x29]
call fcn.140007e8c
int3
Function at 0x14001a290
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r15, r9
mov r14, r8
mov r13, rdx
mov r12, rcx
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov eax, 0x200
mov qword [rsp + 0x48], rax
xor esi, esi
mov qword [rbp + 0x150], rsi
mov ecx, eax
mov dword [rsp + 0x30], eax
mov edi, ecx
cmp rdi, rax
jbe 0x14001a33d
mov ecx, edi
call fcn.140002d98
mov rbx, rax
test rax, rax
je 0x14001a43a
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14001a333
call fcn.140002d40
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
test eax, eax
je 0x14001a387
cmp eax, 2
je 0x14001a3bf
cmp eax, 0xea
jne 0x14001a42b
cmp ecx, 0xfff
ja 0x14001a3a4
cmp eax, 0xea
jne 0x14001a3da
mov rsi, qword [rbp + 0x150]
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x14001a2f5
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14001a3b8
call fcn.140002d40
mov eax, 4
jmp 0x14001a407
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14001a3d3
call fcn.140002d40
mov eax, 1
jmp 0x14001a407
mov rdx, rcx
mov r8, qword [rsp + 0x40]
mov rcx, r15
call fcn.140019e34
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14001a405
call fcn.140002d40
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400258c0
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, eax
lea rcx, [0x14002ee38]
call fcn.140003fec
int3
call fcn.140005114
int3
Function at 0x14001a590
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a78c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rbx
mov eax, dword [rsp + 0x68]
inc eax
lea rdi, [rax + rax]
mov eax, 0x200
cmp rdi, rax
jbe 0x14001a654
mov rcx, rdi
call fcn.140002cf8
mov rdx, rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdi
jmp 0x14001a663
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x50], rdx
mov rdi, rax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x1c0], rbx
mov r14d, ebx
cmp dword [rsp + 0x64], ebx
jbe 0x14001a711
shr rdi, 1
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
mov r8, rdx
mov edx, r14d
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a79b
mov r8d, dword [rsp + 0x60]
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140004944
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400189e8
nop
cmp qword [rbp - 0x58], 8
jb 0x14001a6f6
mov rcx, qword [rbp - 0x70]
call fcn.140002d40
inc r14d
mov rdx, qword [rbp - 0x50]
cmp r14d, dword [rsp + 0x64]
jae 0x14001a70d
mov rdi, qword [rbp - 0x48]
jmp 0x14001a677
mov rbx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
cmp rsi, rax
je 0x14001a749
mov rcx, qword [rsi]
mov rax, qword [rsp + 0x70]
mov qword [rsi], rax
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rsp + 0x78]
mov qword [rsi + 8], rax
mov qword [rsp + 0x78], rcx
mov rax, qword [rsi + 0x10]
mov qword [rsi + 0x10], rbx
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x40]
cmp rdx, rax
je 0x14001a75b
mov rcx, rdx
call fcn.140002d40
nop
lea rcx, [rsp + 0x70]
call fcn.140018964
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400258c0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edx, eax
lea rcx, str.RegQueryInfoKey
call fcn.140003fec
nop
mov edx, eax
lea rcx, str.RegEnumKeyEx
call fcn.140003fec
int3
Function at 0x14001ccb8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov r9, rcx
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140019280
mov r11d, ebx
lea rax, [rsp + 0x40]
cmp word [rax], r15w
je 0x14001cd29
add rax, 2
sub r11, 1
jne 0x14001cd19
test r11, r11
je 0x14001cd36
mov rax, rbx
sub rax, r11
jmp 0x14001cd39
mov rax, r15
test r11, r11
je 0x14001cd59
mov rdx, rbx
sub rdx, rax
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
lea r9, [0x14002eff0]
call fcn.140019280
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001cda6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14001ceae
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14001b710
mov esi, eax
jmp 0x14001ceb1
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x34]
mov rcx, rdi
call fcn.14001cb40
mov esi, eax
test eax, eax
jns 0x14001cddc
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14001b6d4
jmp 0x14001ceb1
mov rax, rbx
lea rcx, [rsp + 0x40]
cmp word [rcx], r15w
je 0x14001cdf4
add rcx, 2
sub rax, 1
jne 0x14001cde4
test rax, rax
je 0x14001ce01
mov rcx, rbx
sub rcx, rax
jmp 0x14001ce04
mov rcx, r15
test rax, rax
je 0x14001ce24
sub rbx, rcx
lea rax, [rsp + 0x40]
lea rcx, [rax + rcx*2]
lea r9, [0x14002f030]
mov rdx, rbx
call fcn.140019280
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001ce59
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14001b710
mov esi, eax
jmp 0x14001ce81
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001cb40
mov esi, eax
test eax, eax
jns 0x14001ce91
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14001b6d4
nop
test rbx, rbx
je 0x14001ce8f
mov rcx, rbx
call fcn.14001c7bc
nop
jmp 0x14001ceb1
mov rcx, rbx
call fcn.14001c7bc
nop
movsxd rcx, dword [rsp + 0x30]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x34]
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14001cebf
mov rcx, rdi
call fcn.14001c7bc
nop
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400258c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140025890
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
Function at 0x140025c8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140025cd8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140025cd0
cmp dword [rcx + 0x3c], edx
jl 0x140025cd0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140025cd0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140025cd8
mov rax, rdx
add rsp, 0x18
ret