joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c5150
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c5192
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c51d5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c5232
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c51f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c5273
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, str.6digit
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d5bdb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c5240
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400029c0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp ecx, 3
jge 0x140002a41
lea rdx, str.__run_pe_v
lea rcx, [0x140043250]
call fcn.1400011f0
mov rcx, rax
mov rdx, qword [section..data]
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x14002b784]
call fcn.1400011f0
mov rcx, rax
lea rdx, str.Args:__payload_path___target_path__n
call fcn.1400011f0
lea rcx, str.pause
call fcn.14000f3e8
or rax, 0xffffffffffffffff
jmp 0x140002c21
mov rsi, qword [rdx + 8]
mov rdi, qword [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
or rbx, 0xffffffffffffffff
cmp byte [rax], 0
jne 0x140002a74
xor r8d, r8d
jmp 0x140002a8a
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002a80
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002190
nop
cmp byte [rdi], 0
jne 0x140002aa1
xor ebx, ebx
jmp 0x140002aaa
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140002aa1
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400026d0
mov r9, qword [rsp + 0x58]
mov r8, rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140002960
nop
lea rdx, str.Payload:
lea rcx, [0x140043250]
call fcn.1400011f0
mov rcx, rax
mov rdx, rsi
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x14002b79c]
call fcn.1400011f0
lea rdx, str.Target:
lea rcx, [0x140043250]
call fcn.1400011f0
mov rcx, rax
mov rdx, rdi
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x14002b79c]
call fcn.1400011f0
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae r8, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.140006250
lea rcx, str.pause
call fcn.14000f3e8
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140002bb0
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140002bab
test cl, 0x1f
je 0x140002b7e
call fcn.14000f370
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140002b8d
call fcn.14000f370
int3
sub rcx, rax
cmp rcx, 8
jae 0x140002b9c
call fcn.14000f370
int3
cmp rcx, 0x27
jbe 0x140002ba8
call fcn.14000f370
int3
mov rcx, rax
call fcn.1400066f0
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140002c1f
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x140002c1a
test cl, 0x1f
je 0x140002bed
call fcn.14000f370
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140002bfc
call fcn.14000f370
int3
sub rcx, rax
cmp rcx, 8
jae 0x140002c0b
call fcn.14000f370
int3
cmp rcx, 0x27
jbe 0x140002c17
call fcn.14000f370
int3
mov rcx, rax
call fcn.1400066f0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000b6a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400047c0
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
movzx r14d, r9b
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test rcx, rcx
jne 0x1400047ef
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbx]
mov r9d, 0x3000
mov r8, rbp
mov qword [rsp + 0x58], rsi
xor edx, edx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140004832
lea rdx, str.Could_not_allocate_memory_in_the_remote_process_n
lea rcx, [0x140043530]
call fcn.1400011f0
xor al, al
jmp 0x1400048e5
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.140007310
test al, al
jne 0x140004861
lea rdx, str.Could_not_relocate_the_module__n
lea rcx, [0x140043250]
call fcn.1400011f0
xor al, al
jmp 0x1400048e5
mov rdx, rsi
mov rcx, rdi
call fcn.140006e30
mov rcx, qword [rbx]
lea rax, [rsp + 0x50]
mov r9, rbp
mov qword [rsp + 0x20], rax
mov r8, rdi
mov qword [rsp + 0x50], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400048ac
lea rdx, str.Writing_to_the_remote_process_failed__n
lea rcx, [0x140043250]
call fcn.1400011f0
xor al, al
jmp 0x1400048e5
movzx r9d, r14b
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140006150
test al, al
jne 0x1400048d9
lea rdx, str.Redirecting_failed__n
lea rcx, [0x140043530]
call fcn.1400011f0
xor al, al
jmp 0x1400048e5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

Function at 0x140004bd0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xc0
mov rdi, rdx
mov rbx, r8
xor edx, edx
mov rsi, rcx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.14000e520
mov qword [rsp + 0x48], rbx
xor eax, eax
mov qword [rbx], rax
xor r9d, r9d
mov qword [rbx + 8], rax
xor r8d, r8d
mov qword [rbx + 0x10], rax
mov rdx, rdi
xor ebx, ebx
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140004ca3
lea rdx, str._ERROR__CreateProcess_failed__Error_
lea rcx, [0x140043530]
call fcn.1400011f0
mov rdi, rax
test rax, rax
je 0x140004c72
mov rax, qword [rax]
movsxd rbx, dword [rax + 4]
add rbx, rdi
and dword [rbx + 0x18], 0xfffff9ff
or dword [rbx + 0x18], 0x800
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400032d0
mov rcx, rax
lea rdx, [0x14002b79c]
call fcn.1400011f0
xor al, al
jmp 0x140004ca5
mov al, 1
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400063e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
mov esi, ecx
mov r8d, ecx
xor dil, dil
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000641a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14000642e
mov dil, 1
jmp 0x140006470
lea rdx, str._ERROR__Could_not_terminate_the_process._PID_
lea rcx, [0x140043530]
call fcn.1400011f0
mov rcx, rax
test rax, rax
je 0x140006453
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
add rax, rcx
and dword [rax + 0x18], 0xfffff3ff
mov edx, esi
or dword [rax + 0x18], 0x200
call fcn.1400032d0
mov rcx, rax
call fcn.140002c40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140006730
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov esi, edx
movzx ebp, r8b
mov rbx, rcx
cmp edx, 0x10
jb 0x14000675f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x1400067d1
mov edx, 0x40
call fcn.1400075c0
test al, al
jne 0x1400067d1
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400067d1
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400067d1
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x1400067d1
cmp dword [rdi], 0x4550
jne 0x1400067d1
mov rcx, rbx
call fcn.140006a50
mov ecx, 0x20b
cmp ax, cx
lea rax, [rsi + 0x11]
je 0x1400067c3
lea rax, [rsi + 0xf]
lea rax, [rdi + rax*8]
test bpl, bpl
jne 0x1400067d3
cmp dword [rax], 0
jne 0x1400067d3
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x1400067f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140006860
mov edx, 0x40
call fcn.1400075c0
test al, al
jne 0x140006860
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006860
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006860
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006860
cmp dword [rdi], 0x4550
jne 0x140006860
mov rcx, rbx
call fcn.140006a50
mov ecx, 0x20b
cmp ax, cx
mov eax, dword [rdi + 0x28]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006900
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.140006a50
mov ecx, 0x20b
cmp ax, cx
sete sil
test rbx, rbx
je 0x140006997
mov edx, 0x40
mov rcx, rbx
call fcn.1400075c0
test al, al
jne 0x140006997
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006997
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006997
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006997
cmp dword [rdi], 0x4550
jne 0x140006997
test sil, sil
je 0x140006984
mov rax, qword [rdi + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rdi + 0x34]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400069b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140006a3d
mov edx, 0x40
call fcn.1400075c0
test al, al
jne 0x140006a3d
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006a3d
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006a3d
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006a3d
cmp dword [rdi], 0x4550
jne 0x140006a3d
mov rcx, rbx
call fcn.140006a50
mov ecx, 0x20b
cmp ax, cx
mov rcx, rbx
jne 0x140006a2a
call fcn.140006b60
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140006ad0
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006a50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140006ac2
mov edx, 0x40
call fcn.1400075c0
test al, al
jne 0x140006ac2
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006ac2
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006ac2
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006ac2
cmp dword [rdi], 0x4550
jne 0x140006ac2
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006ac2
movzx eax, word [rdi + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006ad0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140006ae6
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov edx, 0x40
mov qword [rsp + 0x30], rdi
call fcn.1400075c0
test al, al
jne 0x140006b4f
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006b4f
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006b4f
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006b4f
cmp dword [rdi], 0x4550
jne 0x140006b4f
mov rcx, rbx
call fcn.140006a50
xor ecx, ecx
mov edx, 0x20b
cmp ax, dx
cmovne rcx, rdi
mov rdi, qword [rsp + 0x30]
mov rax, rcx
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140006b60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140006b76
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov edx, 0x40
mov qword [rsp + 0x30], rdi
call fcn.1400075c0
test al, al
jne 0x140006bdf
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006bdf
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006bdf
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006bdf
cmp dword [rdi], 0x4550
jne 0x140006bdf
mov rcx, rbx
call fcn.140006a50
xor ecx, ecx
mov edx, 0x20b
cmp ax, dx
cmove rcx, rdi
mov rdi, qword [rsp + 0x30]
mov rax, rcx
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140006bf0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140006c1c
test rdx, rdx
je 0x140006c29
mov r9d, 0x40
mov r8, rcx
call fcn.140006700
test al, al
jne 0x140006c37
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.1400075c0
test al, al
jne 0x140006c1c
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140006c1c
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140006c1c
mov qword [rsp + 0x30], rbx
lea rbx, [rdi + rax]
test rsi, rsi
je 0x140006c84
mov r9d, pe_nt_image_headers64
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140006700
test al, al
jne 0x140006c95
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.1400075c0
test al, al
jne 0x140006c72
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp dword [rbx], 0x4550
cmovne rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006ce0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140006cf6
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov edx, 0x40
mov qword [rsp + 0x30], rdi
call fcn.1400075c0
test al, al
jne 0x140006d5a
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006d5a
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006d5a
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006d5a
cmp dword [rdi], 0x4550
jne 0x140006d5a
mov rcx, rbx
call fcn.140006a50
mov ecx, 0x20b
cmp ax, cx
movzx eax, word [rdi + 0x5c]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140006d70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140006dfd
mov edx, 0x40
call fcn.1400075c0
test al, al
jne 0x140006dfd
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006dfd
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006dfd
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006dfd
cmp dword [rdi], 0x4550
jne 0x140006dfd
mov rcx, rbx
call fcn.140006a50
mov edx, 0x20b
mov ecx, 0xa0
cmp ax, dx
mov r8d, 0xb0
cmove ecx, r8d
cmp dword [rcx + rdi], 0
lea rax, [rcx + rdi]
je 0x140006dfd
test rax, rax
je 0x140006dfd
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006e30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140006a50
mov ecx, 0x20b
cmp ax, cx
sete bpl
test rdi, rdi
je 0x140006eb7
mov edx, 0x40
mov rcx, rdi
call fcn.1400075c0
test al, al
jne 0x140006eb7
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140006eb7
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140006eb7
lea rbx, [rdi + rax]
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.1400075c0
test al, al
jne 0x140006eb7
cmp dword [rbx], 0x4550
jne 0x140006eb7
test bpl, bpl
je 0x140006eb0
mov qword [rbx + 0x30], rsi
mov al, 1
jmp 0x140006eb9
mov dword [rbx + 0x34], esi
mov al, 1
jmp 0x140006eb9
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007e30
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r15, rdx
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r14, rcx
mov dword [rsp + 0x20], 3
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007e8b
xor eax, eax
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x70], rsi
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
jne 0x140007ec4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140007fd4
xor r9d, r9d
mov qword [rsp + 0x68], rbp
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rcx, rsi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x140007f02
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140007fcf
xor edx, edx
mov qword [rsp + 0x60], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rax, qword [r15]
test rax, rax
je 0x140007f23
cmp rax, rbx
cmovbe rbx, rax
mov rdx, rbx
mov rcx, rbp
call fcn.1400075c0
test al, al
je 0x140007f86
lea rdx, str.____Mapping_of
lea rcx, [0x140043530]
call fcn.1400011f0
mov rcx, rax
mov rdx, r14
call fcn.1400011f0
mov rcx, rax
lea rdx, str._is_invalid_
call fcn.1400011f0
mov rcx, rax
call fcn.140002c40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140007fca
mov rcx, rbx
call fcn.1400066a0
mov r14, rax
test rax, rax
je 0x140007fa9
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.14000d7b0
mov qword [r15], rbx
jmp 0x140007fac
mov qword [r15], r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140017750
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140017524
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017524
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017524
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017524
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017524
cmp dword [rcx + 0x84], 0xe
jbe 0x140017524
cmp dword [rcx + 0xf8], esi
je 0x140017524
mov ecx, r14d
call fcn.14001766c
mov ecx, 2
call fcn.140013714
nop
cmp byte [0x140044378], 0
jne 0x1400175ee
mov r15d, 1
mov eax, r15d
xchg dword [0x140044368], eax
test ebx, ebx
jne 0x140017597
mov rdi, qword [0x140042080]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140044370]
cmp rcx, rax
je 0x14001758e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140008350]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400444a8]
jmp 0x1400175a3
cmp ebx, r15d
jne 0x1400175a9
lea rcx, [0x1400444c0]
call fcn.140018228
nop
test ebx, ebx
jne 0x1400175c0
lea rdx, [0x14002b438]
lea rcx, [0x14002b418]
call fcn.1400184f4
lea rdx, [0x14002b448]
lea rcx, [0x14002b440]
call fcn.1400184f4
movzx eax, byte [0x140044378]
test esi, esi
cmove eax, r15d
mov byte [0x140044378], al
jmp 0x1400175ee
mov ecx, 2
call fcn.140013768
test esi, esi
jne 0x140017605
mov ecx, r14d
call fcn.140017620
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400174b4
Function at 0x140011037
Capabilities:
Set console window title

Disassembly:
jmp 0x140017bc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x140039018]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14004100a]
call fcn.140011956
mov rax, qword [rbp + 0x120]
mov rcx, rax
call fcn.1400115cd
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov rcx, qword [rbp + 0x128]
call fcn.1400118f7
movzx eax, al
test eax, eax
jne 0x140017c59
mov rcx, qword [rbp + 0x128]
call fcn.1400116d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14002f814]
lea rdx, [0x14002f818]
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14002f820]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14002f820]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_freopen_s]
mov rax, qword [rbp + 0x120]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002e290]
call fcn.1400117cb
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400114b0
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret