joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016b0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140001640
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000172a
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400017c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000186f
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001864
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 4
jne 0x140001855
cmp dword [rsp + 0x3c], 1
jne 0x140001855
mov dword [rsp + 0x30], 1
jmp 0x14000185d
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
jmp 0x140001871
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x58
ret
Function at 0x140001900
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x198
mov rax, qword [0x14002b040]
xor rax, rsp
mov qword [rsp + 0x180], rax
call fcn.140001880
movzx eax, al
test eax, eax
je 0x140001935
xor ecx, ecx
call fcn.14000d9d0
mov r9d, 0x24
lea r8, str.Question
lea rdx, str.DLSS_Enabler_detected_that_NVIDIA_signature_checks_are_enabled._n_nDo_you_want_to_disable_NVIDIA_signature_checks_in_Windows_Registry__n_nThis_operation_is_required_to_make_the_mod_work_when_AMD_Intel_support_package_is_installed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 6
je 0x140001963
xor ecx, ecx
call fcn.14000d9d0
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000198e
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, str.Failed_to_retrieve_the_filename_of_the_current_executable.
call fcn.140001160
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, str.runas
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.140002d20
nop
mov dword [rsp + 0x30], 1
jmp 0x1400019c3
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x1a0]
cmp dword [rsp + 0x30], eax
jge 0x140001a1a
movsxd rax, dword [rsp + 0x30]
lea rdx, [0x14001db8c]
mov rcx, qword [rsp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.14000d5a0
test eax, eax
je 0x140001a18
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x1a8]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x50]
call fcn.140003220
mov dl, 0x20
lea rcx, [rsp + 0x50]
call fcn.1400031f0
jmp 0x1400019b9
lea rcx, [rsp + 0x50]
call fcn.140003a50
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
ja 0x140001a6c
xor r8d, r8d
mov edx, 0xfffffffe
lea rcx, str.Failed_to_request_admin_privileges.
call fcn.140001160
nop
lea rcx, [rsp + 0x50]
call fcn.140002ff0
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140004ae0
add rsp, 0x198
ret

Function at 0x140005534
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000d83b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d83b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d83b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d83b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d83b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d83b
cmp dword [rcx + 0xf8], 0
je 0x14000d83b
mov ecx, ebx
call fcn.14000d8ec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000d6c8
nop
cmp dword [rbp + 0x20], 0
je 0x14000d889
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d894
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d7cc

Function at 0x14000db40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14000db77
call fcn.14000f9a8
mov dword [rax], 0x16
call fcn.14000b5dc
xor eax, eax
jmp 0x14000dc05
mov rdx, r9
mov rcx, r8
call fcn.14000dadc
mov rbx, rax
test rax, rax
je 0x14000dc02
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000da08]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14000dbef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000f91c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000dbd6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000dbe5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14000f9c8
jmp 0x14000dc02
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000dbff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140013b5c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013b8c
xor eax, eax
jmp 0x140013c4f
mov rbp, rbx
cmp word [rax], si
je 0x140013bb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013b98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013b94
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013a7c
movsxd r14, eax
test eax, eax
jne 0x140013bef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013b85
mov rcx, r14
call fcn.14000fa04
mov rdi, rax
test rax, rax
jne 0x140013c08
xor ecx, ecx
call fcn.14000f9c8
jmp 0x140013be4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013a7c
test eax, eax
jne 0x140013c39
mov rcx, rdi
call fcn.14000f9c8
jmp 0x140013c43
xor ecx, ecx
call fcn.14000f9c8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400189e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140012b4c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018a6a
cmp byte [rbp - 0x21], r15b
je 0x140018a65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018aa0
call fcn.1400115c4
test eax, eax
jne 0x140018a8c
cmp byte [rbp - 0x21], r15b
je 0x140018a84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018aa0
cmp byte [rbp - 0x21], r15b
je 0x140018a9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001212c
test eax, eax
jne 0x140018b40
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140012b4c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140018adf
cmp byte [rbp - 0x21], r15b
je 0x140018b14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018b14
call fcn.1400115c4
test eax, eax
jne 0x140018b00
cmp byte [rbp - 0x21], r15b
je 0x140018af9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018b14
cmp byte [rbp - 0x21], r15b
je 0x140018b11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001212c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018b40
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140018b43
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018b51
mov rcx, rdi
call fcn.14000f9c8
cmp byte [rbp + 0x3f], r15b
je 0x140018b60
mov rcx, qword [rbp + 0x27]
call fcn.14000f9c8
lea r11, [rsp + 0xa0]
mov eax, ebx
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 0x14001ae00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ae28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ae28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400033a0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
movsxd rax, dword [rsp + 0x78]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x78]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140004520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140004542
xor eax, eax
jmp 0x1400046e5
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x140004567
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400051d0
jmp 0x1400046e5
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.140007140
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1400045fd
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400046f0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.140007300
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140007f90
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140007260
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400046d5
mov rcx, qword [rsp + 0x60]
call fcn.140006c30
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14000469d
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1400180c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x14000469b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1400046e5
jmp 0x140004623
cmp qword [rsp + 0x20], 0
jbe 0x1400046d5
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1400180c4
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x140004cd0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140045020]
xor rax, rsp
mov qword [rsp + 0xa8], rax
call fcn.140007eb0
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x50]
call fcn.140007f10
movzx eax, al
test eax, eax
je 0x140004d26
lea rcx, [rsp + 0xc8]
call fcn.140007ec0
jmp 0x140004f65
mov rcx, qword [rsp + 0xc0]
call fcn.1400072e0
test rax, rax
je 0x140004d92
mov rcx, qword [rsp + 0xc0]
call fcn.1400072e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140007230
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x140004d92
lea rcx, [rsp + 0xc8]
call fcn.140004f80
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0xc0]
call fcn.140007090
movzx ecx, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0xc8]
jmp 0x140004f65
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x80], 0
jne 0x140004dae
call fcn.140007eb0
jmp 0x140004f65
mov rcx, qword [rsp + 0xc0]
call fcn.140006c30
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
jne 0x140004e14
lea rcx, [rsp + 0xc8]
call fcn.140004f80
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rcx + 0x80]
movzx ecx, al
call fcn.140003310
movzx eax, al
test eax, eax
je 0x140004e02
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x48], eax
jmp 0x140004e0b
call fcn.140007eb0
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x140004f65
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xc8]
call fcn.140004f80
mov byte [rsp + 0x40], al
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0xc0]
add rdx, 0x74
lea r8, [rsp + 0x68]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x68]
call fcn.140005b60
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140004ea8
cmp dword [rsp + 0x44], 1
je 0x140004ea8
cmp dword [rsp + 0x44], 3
je 0x140004f24
jmp 0x140004f60
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140004efc
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140016de8
cmp qword [rsp + 0x58], rax
je 0x140004efc
call fcn.140007eb0
jmp 0x140004f65
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x70], rax
je 0x140004f1d
mov eax, dword [rsp + 0xc8]
jmp 0x140004f65
call fcn.140007eb0
jmp 0x140004f65
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x40]
call fcn.140003310
movzx eax, al
test eax, eax
je 0x140004f51
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x4c], eax
jmp 0x140004f5a
call fcn.140007eb0
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x140004f65
call fcn.140007eb0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14000d7c0
add rsp, 0xb8
ret
Function at 0x140006ce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140045020]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x140006d1d
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006d24
mov al, 1
jmp 0x140006e6c
call fcn.140007eb0
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.140007eb0
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140007f10
movzx eax, al
test eax, eax
je 0x140006d75
xor al, al
jmp 0x140006e6c
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.1400081e0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006dda
cmp dword [rsp + 0x30], 1
je 0x140006de6
cmp dword [rsp + 0x30], 3
je 0x140006e5a
jmp 0x140006e6a
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140006e31
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140016de8
cmp qword [rsp + 0x40], rax
je 0x140006e31
xor al, al
jmp 0x140006e6c
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006e4b
mov dword [rsp + 0x34], 1
jmp 0x140006e53
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140006e6c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140006e6c
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000d7c0
add rsp, 0x98
ret

Function at 0x140013c44
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140013ad7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013ad7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013ad7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013ad7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013ad7
cmp dword [rcx + 0x84], 0xe
jbe 0x140013ad7
cmp dword [rcx + 0xf8], 0
je 0x140013ad7
mov ecx, ebx
call fcn.140013b78
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140013968
cmp dword [rbp + 0x20], 0
je 0x140013b24
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013b2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140013a70
Function at 0x1804e6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1804e61df
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 0x1804e6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804e606f
add dl, dl
jne 0x1804e6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804e60f6
xor eax, eax
add dl, dl
jne 0x1804e60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804e61ad
add dl, dl
jne 0x1804e60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804e60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804e60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804e60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1804e60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1804e607e
mov eax, 1
add dl, dl
jne 0x1804e6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804e6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804e60fb
sub eax, ebx
mov ebx, 1
jne 0x1804e614c
mov ecx, 1
add dl, dl
jne 0x1804e612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1804e613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804e6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804e607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1804e6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1804e6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804e615d
cmp eax, 0x7d00
jae 0x1804e619b
cmp eax, 0x500
jb 0x1804e6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804e607e
cmp eax, 0x7f
ja 0x1804e619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804e607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1804e61d2
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 0x1804e607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20