joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13920
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x1850
call sub.ntoskrnl.exe___chkstk
sub rsp, rax
mov rax, qword [0x0001a100]
xor rax, rsp
mov qword [rsp + 0x1840], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, 0x17ff
rep stosb byte [rdi], al
movzx eax, byte [0x0001ae41]
test eax, eax
jne 0x13985
jmp 0x139c1
lea rax, [rsp + 0x1868]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x1860]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_vsprintf]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.00017030
add rsp, 0x1850
pop rdi
ret
Function at 0x13e10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 0
lea rdi, [rsp + 0xcc]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0x80], 0
lea rdi, [rsp + 0x84]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0xb8], 0
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x240
lea rax, [rsp + 0x60]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x88]
mov edx, 0x80000000
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xc4], eax
cmp dword [rsp + 0xc4], 0
jge 0x13f9e
mov r8d, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0xf0]
lea rcx, [0x00017e50]
call fcn.000139e0
jmp 0x1407a
mov rcx, qword [rsp + 0x78]
call fcn.00014320
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x13fb8
jmp 0x1407a
mov edx, dword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0xc4], eax
cmp dword [rsp + 0xc4], 0
jl 0x14050
mov rcx, qword [rsp + 0x100]
mov eax, dword [rsp + 0xd0]
mov dword [rcx], eax
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xb8]
mov qword [rcx], rax
jmp 0x1407a
mov r8d, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0xf0]
lea rcx, [0x00017e80]
call fcn.000139e0
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0xc0], eax
cmp qword [rsp + 0x78], 0
je 0x1408d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0xc0]
add rsp, 0xe0
pop rdi
ret
Function at 0x140b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov dword [rsp + 0xc8], 0
lea rdi, [rsp + 0xcc]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0
lea rdi, [rsp + 0x84]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov eax, dword [0x0001f1c8]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x88], 0
lea rax, [0x0001f3a0]
test rax, rax
je 0x1413b
cmp dword [rsp + 0x100], 0
jne 0x14140
jmp 0x142e8
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x240
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x90]
mov edx, 2
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jge 0x14226
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xf0]
lea rcx, [0x00017eb0]
call fcn.000139e0
jmp 0x142e8
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jge 0x142a3
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xf0]
lea rcx, [0x00017ef0]
call fcn.000139e0
jmp 0x142e8
mov eax, dword [rsp + 0x100]
cmp rax, qword [rsp + 0xd0]
je 0x142da
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xf0]
lea rcx, [0x00017f30]
call fcn.000139e0
jmp 0x142e8
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0x78], 0
je 0x142fb
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x88]
add rsp, 0xe0
pop rdi
ret

Function at 0x14320
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rdi, [rsp + 0x38]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [0x0001f1d8]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1438a
xor eax, eax
jmp 0x14390
mov eax, dword [0x0001f1e0]
add rsp, 0x50
pop rdi
ret
Function at 0x143a0
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov dword [rsp + 0x68], 0xc0000001
mov qword [rsp + 0x70], 0
mov qword [rsp + 0xb0], 0
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0x240
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x78]
mov edx, 0xf001f
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jl 0x1464c
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0x240
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0x40
xor r9d, r9d
lea r8, [rsp + 0x78]
mov edx, 0xf001f
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jl 0x14623
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x70]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jl 0x145f7
mov rdx, qword [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x145cf
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x110]
mov eax, dword [rsp + 0xb0]
mov dword [rdx], eax
mov rcx, qword [rsp + 0x108]
mov rax, qword [rsp + 0xd0]
mov qword [rcx], rax
mov dword [rsp + 0x68], 0
jmp 0x145e3
lea rdx, [rsp + 0xb8]
lea rcx, [0x00017f70]
call fcn.000139e0
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
jmp 0x14613
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xb8]
lea rcx, [0x00017fa0]
call fcn.000139e0
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1463f
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xb8]
lea rcx, [0x00017fe0]
call fcn.000139e0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14668
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xb8]
lea rcx, [0x00018020]
call fcn.000139e0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x68]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x15da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x88], 0x70000000
jb 0x15de9
mov eax, 0x80000000
cmp qword [rsp + 0x88], rax
jae 0x15de9
mov qword [rsp + 0x88], 0x70000000
xor eax, eax
cmp eax, 1
je 0x15f20
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x30
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [0x0001f180]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x15e45
mov edx, dword [rsp + 0x68]
lea rcx, [0x000184f0]
call fcn.00013920
xor eax, eax
jmp 0x15f22
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x88], rax
je 0x15e63
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
jmp 0x15e76
mov rax, qword [rsp + 0x40]
sub rax, 0x10000
mov qword [rsp + 0x88], rax
cmp dword [rsp + 0x58], 0x10000
jne 0x15f1b
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x2000
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jl 0x15f0b
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jl 0x15ef9
mov rax, qword [rsp + 0x38]
jmp 0x15f22
mov edx, dword [rsp + 0x68]
lea rcx, [0x00018510]
call fcn.00013920
jmp 0x15f1b
mov edx, dword [rsp + 0x68]
lea rcx, [0x00018510]
call fcn.00013920
jmp 0x15de9
xor eax, eax
add rsp, 0x78
ret
Function at 0x16a50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov dword [rsp + 0xa8], 0xc0000001
call fcn.00011030
movzx eax, al
test eax, eax
jle 0x16a8b
lea rcx, [0x00017d70]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0xa8]
jmp 0x16b7e
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x70]
mov edx, 0x80
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jl 0x16b77
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0xa8]
add rsp, 0xd8
ret
Function at 0x16ed0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x90], 0
jne 0x16f6a
xor r9d, r9d
mov r8d, 0x93b
lea rdx, [0x00018490]
lea rcx, [0x000184e0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x70], 0
jmp 0x16f72
mov dword [rsp + 0x70], 1
cmp qword [rsp + 0x90], 0
jne 0x16f84
xor eax, eax
jmp 0x1700c
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x16f97
xor eax, eax
jmp 0x1700c
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x16fda
xor eax, eax
jmp 0x1700c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x16ff3
mov eax, 0x40
jmp 0x1700c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1700a
mov eax, 0x20
jmp 0x1700c
xor eax, eax
add rsp, 0x88
ret

Function at 0x22064
Capabilities:
Create device object
Print debug messages

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00022008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00011620
Function at 0x140001e64
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002fde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002fde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002fde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002fde
cmp dword [rcx + 0x84], 0xe
jbe 0x140002fde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002fe0
xor al, al
add rsp, 0x28
ret
Function at 0x140004e70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004f43
cmp byte [rcx + 0x71], 0
je 0x140004f43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004f3f
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 0x140004f04
sub eax, 1
je 0x140004f08
cmp eax, 2
jne 0x140004f3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005930
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004f36
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 0x140004f3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004eec
xor al, al
jmp 0x140004eec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005930
add rsp, 0x60
pop rbx
ret

Function at 0x1400062c4
Capabilities:
Parse pe header

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

Disassembly:
call fcn.141e441df
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 0x141e44089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e4406f
add dl, dl
jne 0x141e44096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e440f6
xor eax, eax
add dl, dl
jne 0x141e440a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e441ad
add dl, dl
jne 0x141e440b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e440c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e440d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e440dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141e440ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141e4407e
mov eax, 1
add dl, dl
jne 0x141e44106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e44113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e440fb
sub eax, ebx
mov ebx, 1
jne 0x141e4414c
mov ecx, 1
add dl, dl
jne 0x141e4412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141e4413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e44123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e4407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141e44168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141e44175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e4415d
cmp eax, 0x7d00
jae 0x141e4419b
cmp eax, 0x500
jb 0x141e44196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e4407e
cmp eax, 0x7f
ja 0x141e4419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e4407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141e441d2
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 0x141e4407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140664058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406641df
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 0x140664089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14066406f
add dl, dl
jne 0x140664096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406640f6
xor eax, eax
add dl, dl
jne 0x1406640a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406641ad
add dl, dl
jne 0x1406640b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406640c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406640d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406640dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406640ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14066407e
mov eax, 1
add dl, dl
jne 0x140664106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140664113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406640fb
sub eax, ebx
mov ebx, 1
jne 0x14066414c
mov ecx, 1
add dl, dl
jne 0x14066412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14066413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140664123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14066407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140664168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140664175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14066415d
cmp eax, 0x7d00
jae 0x14066419b
cmp eax, 0x500
jb 0x140664196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14066407e
cmp eax, 0x7f
ja 0x14066419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14066407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406641d2
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 0x14066407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400270d0]
mov dword [rax], 1
mov rax, qword [0x1400270e0]
mov dword [rax], 1
mov rax, qword [0x1400270f0]
mov dword [rax], 1
mov rax, qword [0x1400270c0]
mov dword [rax], 1
mov rax, qword [0x140026f70]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004516
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140004546
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x14000454b
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e68f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret