joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006d3e
Capabilities:
Compress data via winapi

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp - 0x24], 0
mov eax, dword [0x1400181dc]
cmp eax, 9
ja 0x140006d6a
mov edx, 2
jmp 0x140006d6f
mov edx, 3
mov eax, dword [0x1400181dc]
cmp eax, 9
ja 0x140006d81
mov eax, 0
jmp 0x140006d86
mov eax, 0x100
or eax, edx
mov word [rbp - 0x26], ax
mov qword [rbp - 0x30], 0
mov dword [rbp - 0x34], 0
movzx eax, word [rbp - 0x26]
movzx eax, ax
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x1c]
mov r8, rcx
mov ecx, eax
call sub.ntdll.dll_RtlGetCompressionWorkSpaceSize
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
js 0x140006f09
mov eax, dword [rbp - 0x1c]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140006f1d
mov dword [rbp - 8], 0xc0000023
mov dword [rbp - 4], 0x10000
jmp 0x140006e4d
movzx eax, word [rbp - 0x26]
movzx eax, ax
mov r9, qword [rbp - 0x10]
mov r8d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x24]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x1000
mov ecx, dword [rbp - 4]
mov dword [rsp + 0x20], ecx
mov ecx, eax
call sub.ntdll.dll_RtlCompressBuffer
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jns 0x140006e4a
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
shl dword [rbp - 4], 1
cmp dword [rbp - 8], 0xc0000023
jne 0x140006e75
mov eax, dword [rbp - 4]
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140006df6
cmp dword [rbp - 8], 0
js 0x140006ef7
movzx eax, word [rbp - 0x26]
and ah, 0xfe
mov word [rbp - 0x26], ax
lea rcx, [rbp - 0x26]
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x30]
mov r9d, 2
mov r8, rcx
mov rcx, rax
call fcn.140004d55
mov r8d, dword [rbp - 0x24]
mov rcx, qword [rbp - 0x10]
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x30]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call fcn.140004d55
mov ecx, dword [rbp - 0x34]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x20]
mov r8d, ecx
mov rcx, rax
call fcn.140006c30
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
jmp 0x140006f1d
mov eax, dword [rbp - 8]
mov edx, eax
lea rax, str.____RtlGetCompressionWorkSpaceSize_Failed_0x_08x_n
mov rcx, rax
call fcn.140004ad0
nop
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x140007347
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0xc0000004
mov dword [rbp - 8], 0x1000
jmp 0x1400073a0
mov edx, dword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
lea rcx, [rbp - 8]
mov r9, rcx
mov r8d, edx
mov rdx, rax
mov ecx, 0x10
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x1400073a0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
cmp dword [rbp - 4], 0xc0000004
jne 0x1400073d2
mov eax, dword [rbp - 8]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov rdx, qword [rbp + 0x10]
mov qword [rdx], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
jne 0x140007363
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x140009126
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
pxor xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov eax, dword [rbp + 0x20]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400092da
cmp qword [rbp - 0x10], 0xffffffffffffffff
je 0x1400092da
mov qword [rbp - 8], 0
jmp 0x1400092b8
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp - 8]
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 8
movzx eax, word [rax]
mov edx, dword [rbp + 0x20]
cmp ax, dx
jne 0x1400092b3
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp - 8]
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0xe
movzx eax, word [rax]
movzx eax, ax
mov rcx, rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdx
mov r8, 0xffffffffffffffff
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.ntdll.dll_ZwDuplicateObject]
call rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x40], rax
mov eax, dword [rbp + 0x38]
mov dword [rbp - 0x38], eax
mov rax, qword [rbp + 0x40]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140008e00]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0x3e8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add qword [rbp - 8], 1
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
mov eax, eax
cmp qword [rbp - 8], rax
jb 0x1400091a1
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x90
pop rbp
ret

Function at 0x1400096c0
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 fcn.14000f450
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000f450
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140009730
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140018254]
mov rbx, rcx
test esi, esi
jle 0x140009860
mov rax, qword [0x140018258]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000977b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140009805
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140009760
mov rcx, rbx
call fcn.14000a180
mov rdi, rax
test rax, rax
je 0x140009882
mov rax, qword [0x140018258]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000a2c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140018258]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140009867
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400097fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140009810
add dword [0x140018254], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140018258]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400097fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400096c0
nop dword [rax]
xor esi, esi
jmp 0x140009788
mov rax, qword [0x140018258]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400096c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400096c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140009df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400182c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400182a0]
test rbx, rbx
je 0x140009e4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140009e43
test rsi, rsi
je 0x140009e43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009e28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000a180
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140012860]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000a1a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000a1a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000a1a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000a1fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000a1f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000a1a0
add rax, 0x28
cmp rax, r9
jne 0x14000a1e0
xor eax, eax
ret

Function at 0x14000a200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012860]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000a21f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000a228
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000a21f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000a2c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012860]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000a2df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000a2e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x6dba06e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dbc15e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dba0868
mov rax, qword [0x6dbc15e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dba072c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dba07b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dba0710
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dba089d
mov rax, qword [0x6dbc15e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dbc15e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dba0880
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dba07ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dba0810
add dword [0x6dbc15e4], 1
cmp edi, 8
jae 0x6dba07e3
test dil, 4
jne 0x6dba0854
test edi, edi
je 0x6dba07d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dba086f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dba07d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dba07fc
jmp 0x6dba07d8
add rsi, qword [0x6dbc15e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dba07ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dba07d8
xor esi, esi
jmp 0x6dba0737
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dba07d8
mov rax, qword [0x6dbc15e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dba0ff0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dbc18c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dbc18a0]
test rbx, rbx
je 0x6dba1044
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6dba103b
test rsi, rsi
je 0x6dba103b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dba1020
lea rcx, [0x6dbc18c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6dba1280
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6dba1290
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6dba12a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6dba12e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6dba12d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6dba12e3
add rax, 0x28
cmp rax, r9
jne 0x6dba12c4
xor eax, eax
ret

Function at 0x6dba1380
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dbbe1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6dba13ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dba13ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dba13ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dba13e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dba13ef
add rax, 0x28
cmp rax, r9
jne 0x6dba13d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6dba14f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dbbe1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6dba1510
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dba1508
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dba156d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dba1564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dba1574
add rax, 0x28
cmp rax, r9
jne 0x6dba1550
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6dba1590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dbbe1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dba15fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dba15fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dba15fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dba15fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dba15f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6dba1605
add rcx, 0x28
cmp rcx, rax
jne 0x6dba15e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6dba1618
jmp 0x6dba15fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6dba1626
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dba15fe
test r9d, r9d
jg 0x6dba1610
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dba1960
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140003a60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a94
cmp word [rcx], 0x5a4d
jne 0x140003a94
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a94
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a94
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400039a0
test eax, eax
jne 0x140003ab0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a10
test rax, rax
je 0x140003aa5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000425c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004160
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004100
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009764
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14057a1d8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14057a1d4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400097b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400097aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009899
inc ebx
add rax, 0x28
jmp 0x14000978a
mov rcx, r12
call fcn.140009f91
mov rbp, rax
test rax, rax
jne 0x1400097d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140009700
movsxd rbx, ebx
mov rax, qword [0x14057a1d8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a03f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14057a1d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009833
mov rax, qword [0x14057a1d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140009700
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009893
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009893
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14057a1d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009893
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140009700
inc dword [0x14057a1d4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140009cc0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14057a240]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14057a220]
test rbx, rbx
je 0x140009d0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009d06
test eax, eax
jne 0x140009d06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009cde
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140009ec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140009ee3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140009ee3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140009ee4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140009f1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140009f15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140009f20
inc r8d
add rax, 0x28
jmp 0x140009efc
xor eax, eax
ret

Function at 0x140009f91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056fc10]
mov r8, rcx
mov rcx, r9
call fcn.140009ec0
test eax, eax
je 0x140009fbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140009ee4
xor eax, eax
add rsp, 0x28
ret