joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e4afa320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x1e4afa4b7
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov byte [rsp + 0xb0], bl
mov dword [rsp + 0xb4], ecx
mov dword [rsp + 0xb8], edi
mov dword [rsp + 0xbc], esi
mov dword [rsp + 0xc0], r8d
mov dword [rsp + 0xc4], r9d
mov dword [rsp + 0xc8], r10d
mov dword [rsp + 0xcc], r11d
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rdx
mov rax, qword [0x1e4f0f8b0]
mov qword [rsp + 0x70], rax
nop
call fcn.1e4af9620
test rax, rax
jne 0x1e4afa4ab
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rsp + 0x80]
mov r12d, dword [rsp + 0xc8]
mov r12d, r12d
mov r13, qword [rsp + 0x78]
mov rax, qword [rdx + 0x18]
mov qword [rsp], r12
mov edx, dword [rsp + 0xcc]
mov edx, edx
mov qword [rsp + 8], rdx
mov edx, dword [rsp + 0x98]
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r13
mov qword [rsp + 0x20], 0
movzx edx, byte [rsp + 0xb0]
movzx edi, dl
mov edx, dword [rsp + 0xb4]
mov esi, edx
mov edx, dword [rsp + 0xb8]
mov r8d, edx
mov edx, dword [rsp + 0xbc]
mov r9d, edx
mov edx, dword [rsp + 0xc0]
mov r10d, edx
mov edx, dword [rsp + 0xc4]
mov r11d, edx
mov ebx, 0xb
call fcn.1e48f0780
test rax, rax
jne 0x1e4afa491
test rcx, rcx
jne 0x1e4afa463
mov rcx, qword [0x1e4c11510]
mov rdx, qword [0x1e4c11518]
jmp 0x1e4afa495
cmp rcx, 0x3e5
jne 0x1e4afa47c
mov rcx, qword [0x1e4c11520]
mov rdx, qword [0x1e4c11528]
jmp 0x1e4afa495
mov rax, rcx
nop
call fcn.1e489bb80
lea rcx, [0x1e4d4b6a0]
mov rdx, rax
jmp 0x1e4afa495
xor ecx, ecx
xor edx, edx
mov rax, rcx
mov rbx, rdx
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
je 0x1e4afa4b1
mov rax, qword [rax + 8]
call fcn.1e48c6ba0
nop
mov qword [rsp + 0x18], rax
mov byte [rsp + 0x20], bl
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x3c], r11d
call fcn.1e48f1d00
mov rax, qword [rsp + 0x18]
movzx ebx, byte [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov esi, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov r10d, dword [rsp + 0x38]
mov r11d, dword [rsp + 0x3c]
jmp fcn.1e4afa320
Function at 0x1e4bd4f90
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0xa0], r8
mov r13, rcx
mov rdi, rdx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x1e4bd50f0
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualAlloc
mov rcx, rax
call rbx
mov rsi, rax
test rax, rax
je 0x1e4bd50f0
lea rdx, str.VirtualProtect
mov rcx, r12
call rbx
mov rbp, rax
test rax, rax
je 0x1e4bd50f0
lea rdx, str.VirtualFree
mov rcx, r12
call rbx
mov r14, rax
test rax, rax
je 0x1e4bd50f0
lea rdx, str.CreateThread
mov rcx, r12
call rbx
mov r15, rax
test rax, rax
je 0x1e4bd50f0
lea rdx, str.WaitForSingleObject
mov rcx, r12
call rbx
mov rbx, rax
test rax, rax
je 0x1e4bd50f0
mov r9d, 4
mov r8d, 0x3000
mov edx, edi
xor ecx, ecx
call rsi
mov rsi, rax
test rax, rax
je 0x1e4bd50f0
mov r8, rdi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0xa0]
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov r8d, 0x20
lea rdx, [rax + 0x1000]
call rbp
test eax, eax
je 0x1e4bd50e0
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r8, rsi
call r15
mov r13, rax
test rax, rax
je 0x1e4bd50e0
mov edx, 0xffffffff
mov rcx, rax
call rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1e4bd50f2
mov r8d, 0x8000
xor edx, edx
mov rcx, rsi
call r14
nop
xor esi, esi
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1e4bda4d0
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.1e4bdb8e0
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.1e4bdb8e0
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 0x1e4bda540
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1e4f79964]
mov r12, rcx
test ebx, ebx
jle 0x1e4bda670
mov rax, qword [0x1e4f79968]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1e4bda58c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1e4bda613
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1e4bda570
mov rcx, r12
call fcn.1e4bdacc0
mov rsi, rax
test rax, rax
je 0x1e4bda692
mov rax, qword [0x1e4f79968]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1e4bdadf0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1e4f79968]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1e4bda677
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1e4bda60c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1e4bda620
add dword [0x1e4f79964], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1e4f79968]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1e4bda60c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1e4bda4d0
nop dword [rax]
xor ebx, ebx
jmp 0x1e4bda597
mov rax, qword [0x1e4f79968]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1e4bda4d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1e4bda4d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1e4bda930
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1e4f799a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1e4f79980]
test rbx, rbx
je 0x1e4bda984
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 0x1e4bda97b
test r12, r12
je 0x1e4bda97b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1e4bda960
lea rcx, [0x1e4f799a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1e4bdacc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1e4f0c690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1e4bdace0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1e4bdace8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1e4bdace0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1e4bdad35
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1e4bdad2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1e4bdace0
add rax, 0x28
cmp rax, r9
jne 0x1e4bdad18
xor eax, eax
ret

Function at 0x1e4bdad40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1e4f0c690]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1e4bdad60
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1e4bdad68
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1e4bdad60
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1e4bdadf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1e4f0c690]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1e4bdae10
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1e4bdae18
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140011299
Capabilities:
Terminate process

Disassembly:
jmp 0x140014a70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011348
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015dc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015de0
xor al, al
jmp 0x140015e61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015df3
xor al, al
jmp 0x140015e61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015e1d
xor al, al
jmp 0x140015e61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015e31
xor al, al
jmp 0x140015e61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015e43
xor al, al
jmp 0x140015e61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015e5f
xor al, al
jmp 0x140015e61
mov al, 1
add rsp, 0x38
ret
Function at 0x1400114d3
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140012a70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x558
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xea
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x578]
mov rax, qword [0x14001f018]
xor rax, rbp
mov qword [rbp + 0x518], rax
lea rcx, [0x1400250fd]
call fcn.140011488
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.14001123a
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x140012bed
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400112d0
test eax, eax
je 0x140012be3
mov dword [rbp + 0x2a4], 0
mov rdx, qword [rbp + 0x540]
lea rcx, [rbp + 0x7c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140012bce
mov r8d, dword [rbp + 0x58]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x2c8], rax
cmp qword [rbp + 0x2c8], 0
je 0x140012bce
lea rax, [rbp + 0x348]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x328]
lea r8, [rbp + 0x308]
lea rdx, [rbp + 0x2e8]
mov rcx, qword [rbp + 0x2c8]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x140012bc1
mov eax, dword [rbp + 0x328]
mov dword [rbp + 0x368], eax
mov eax, dword [rbp + 0x32c]
mov dword [rbp + 0x36c], eax
xor edx, edx
mov rax, qword [rbp + 0x368]
mov ecx, 0x2710
div rcx
mov dword [rbp + 0x384], eax
mov eax, dword [rbp + 0x2a4]
cmp dword [rbp + 0x384], eax
jbe 0x140012bc1
mov eax, dword [rbp + 0x384]
mov dword [rbp + 0x2a4], eax
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x2c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.14001141a
test eax, eax
jne 0x140012b01
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001be90]
call fcn.1400113f2
mov eax, edi
mov rcx, qword [rbp + 0x518]
xor rcx, rbp
call fcn.14001124e
lea rsp, [rbp + 0x528]
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002b430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002b440]
mov dword [rax], 1
mov rax, qword [0x14002b450]
mov dword [rax], 1
mov rax, qword [0x14002b3c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002b420]
mov dword [0x14002e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14002b500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14002b4e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002b3a0]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14002b480]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x14002b490]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14002e008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14002b3f0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14002b470]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14002e028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14002e020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14002e020], rbp
call dbg.__main
mov rax, qword [0x14002b400]
mov r8, qword [0x14002e018]
mov ecx, dword [0x14002e028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14002e020]
call sym.main
mov ecx, dword [0x14002e00c]
mov dword [0x14002e010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14002e008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14002b490]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x14002b4b0]
mov rcx, qword [0x14002b4a0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x14002e010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14002b4d0]
mov rcx, qword [0x14002b4c0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x1400015f5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001628
mov eax, 0
jmp 0x14000176a
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001654
mov eax, 0
jmp 0x14000176a
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xf8]
test eax, eax
je 0x14000166c
mov eax, 0
jmp 0x14000176a
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 0x108
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400016e5
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400016f3
mov eax, 0
jmp 0x14000176a
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x14], 0
jmp 0x140001756
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
call sym.memcpy
add qword [rbp - 0x10], 0x28
add dword [rbp - 0x14], 1
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x14], eax
jl 0x140001718
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x140001d10
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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002e0a4]
mov rbx, rcx
test esi, esi
jle 0x140001eb0
mov rax, qword [0x14002e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001db0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ed2
mov rax, qword [0x14002e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001eb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001e4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001e60
add dword [0x14002e0a4], 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 [0x14002e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001dd8
mov rax, qword [0x14002e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002e0e0]
test rbx, rbx
je 0x1400024cc
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 rsi, rsi
je 0x1400024c3
test eax, eax
jne 0x1400024c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024a8
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 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002700
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002710
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000275d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002754
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000275f
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027f0
mov rdx, qword [0x14002b3c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027de
cmp word [rax + 0x18], 0x20b
jne 0x1400027de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400027f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400027f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002b3c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000287d
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 0x140002874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002820
add rax, 0x28
cmp rax, r9
jne 0x140002860
xor eax, eax
ret

Function at 0x140002880
Capabilities:
Parse pe header

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

Function at 0x1400028c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14002b3c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002930
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002927
test rcx, rcx
je 0x1400028e0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002918
xor eax, eax
ret