joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140130430
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14031a940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140130450
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140130458
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140130450
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1401304a5
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 0x14013049c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140130450
add rax, 0x28
cmp rax, r9
jne 0x140130488
xor eax, eax
ret

Function at 0x1401304b0
Capabilities:
Parse pe header

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

Function at 0x140130560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14031a940]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140130580
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140130588
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140131ee0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14031a9c0]
mov rax, qword [rsi]
test rax, rax
je 0x140131f70
cmp qword [rax + 0x30], 0
jne 0x140131f90
lea rbx, [0x1401599c8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140131f40
cmp qword [rax + 0x30], 0
jne 0x140131f60
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14013ad50
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140136de0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140131f22
test rax, rax
jne 0x140131f60
call fcn.140136de0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140131f30
call fcn.140136de0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140131f00
test rax, rax
jne 0x140131f90
call fcn.140136de0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140131f0b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140131fa0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1401320b2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14013208a
add rax, 1
cmp rax, 0x6b
je 0x1401320a7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140132080
cmp edx, 0x6a
je 0x1401320a7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14013209b
Function at 0x140132ac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14031a9c0]
mov rax, qword [rsi]
test rax, rax
je 0x140132cb0
cmp qword [rax + 0x28], 0
jne 0x140132c98
lea rcx, [0x140378a18]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140132ca5
call fcn.1401320d0
mov rax, qword [rsi]
test rax, rax
je 0x140132b40
cmp qword [rax + 0x30], 0
jne 0x140132b60
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140132b74
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140136de0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140132b10
test rax, rax
jne 0x140132b60
call fcn.140136de0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x140132b2e
call fcn.140131c10
cmp qword [0x14037c050], 0
mov rbx, rax
je 0x140132b2e
test rax, rax
je 0x140132b2e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140138c80
cmp eax, 1
je 0x140132d1d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14013ad56
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140132cf8
cmp qword [rax + 0x30], 0
je 0x140132ce0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14013ad56
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140132afc
mov rax, qword [rsi]
jmp 0x140132b09
call fcn.140136de0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140132ae8
test rax, rax
jne 0x140132c98
call fcn.140136de0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140132afc
jmp 0x140132b01
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140132c6e
call fcn.140136de0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140132ce0
test rax, rax
jne 0x140132c6a
call fcn.140136de0
jmp 0x140132c6a
call fcn.140131fa0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14031a9c0]
mov rdx, qword [rax]
lea rax, [0x140378a28]
mov qword [rdx + 0x10], rax
ret
Function at 0x140136c60
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140136c80
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140136cc8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140136c74
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140136cb5
Function at 0x140136de0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140378b00]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140136e03
lea rax, [0x140378b08]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140136e4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140136e48
lea rax, [0x140378b40]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140136e7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140136e78
xor ecx, ecx
mov byte [0x140378b59], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140378b62], rdx
lea r8, [0x140378b00]
lea rbx, [0x140378b5a]
mov qword [0x140378b72], rdx
mov qword [0x140378b82], rdx
mov qword [0x140378b92], rdx
xor edx, edx
mov qword [0x140378b5a], rax
mov qword [0x140378b6a], rax
mov qword [0x140378b7a], rax
mov qword [0x140378b8a], rax
mov byte [0x140378b9a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140137056
lea rcx, [0x140378b40]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140136fa1
lea rsi, [0x140378a40]
lea r8, [0x140378b9a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140136f4d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140136f40
lea rcx, [0x140378b40]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140137043
lea rcx, [0x140136cf0]
mov qword [0x140378a40], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140378a40]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140378b40]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x140378b9a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140137076
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140136ff3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140136fe0
mov rax, rdx
mov qword [0x140378a40], rax
lea rsi, [0x140378a40]
jmp 0x140137019
cmp rdx, rsi
je 0x140136f7f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140137010
cmp rdx, rsi
je 0x140136f7f
mov qword [rdx + 8], rsi
lea rcx, [0x140136cf0]
call sub.msvcrt.dll__onexit
jmp 0x140136f7f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140136c60
xor eax, eax
jmp 0x140136f98
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140136c60
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140136c60
xor eax, eax
jmp 0x140136fff
Function at 0x140259d50
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.1402dd6a0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14027dfd0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140259daf
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret

Function at 0x140259dc0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea rsi, [rsp + 0x20]
mov rbx, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, rsi
call fcn.14027dfd0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop rbx
pop rsi
ret

Function at 0x140259e80
Capabilities:
Set environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rdi, r8
mov rbp, rdx
mov r12, rcx
call fcn.140277de0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.python38.dll_PyUnicode_FromString]
test rdi, rdi
mov rsi, rax
je 0x140259f2f
mov rdx, rdi
mov rcx, rbp
call fcn.140259dc0
mov rcx, rdi
mov rdx, 0xffffffffffffffff
call sub.python38.dll_PyUnicode_FromWideChar
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
mov r8, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
jne 0x140259f71
sub qword [rdi], 1
jne 0x140259efe
mov rcx, rdi
call fcn.140259e00
sub qword [rsi], 1
jne 0x140259f0c
mov rcx, rsi
call fcn.140259e00
sub qword [rbx], 1
jne 0x140259f24
mov rcx, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140259e00
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbp
mov word [rsp + 0x20], 0
mov rcx, rdi
call fcn.14027dfd0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x140259efe
mov rcx, r12
call fcn.140259e10
jmp 0x140259efe
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
nop
nop dword [rax + rax]
Function at 0x1402d2f80
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1403184b9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1402d3008
lea rdx, [0x1402f0c7a]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1402d3120
mov rsi, qword [0x140318378]
jmp 0x1402d2fc5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test ebx, ebx
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
jne 0x1402d2fc0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1402c26c0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140318378], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x140318378], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x140318378], rcx
test eax, eax
je 0x1402d3108
lea r8, [rcx + rax]
mov eax, 0xffffffff
nop word cs:[rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp rcx, r8
jne 0x1402d3070
not eax
cmp r9d, eax
jne 0x1402d31ba
mov byte [0x1403184b9], 1
jmp 0x1402d2f9e
cmp byte [0x1403184b8], 0
jne 0x1402d2fb5
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x140317b68]
call rbx
mov qword [0x140318de8], rax
call rbx
mov qword [0x140318de0], rax
call rbx
mov qword [0x140318dd8], rax
call rbx
mov qword [0x140318dd0], rax
call rbx
mov qword [0x140318dc8], rax
call rbx
mov qword [0x140318dc0], rax
call rbx
mov qword [0x140318db8], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x140318db0], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x1402d3198
mov byte [0x1403184b8], 1
jmp 0x1402d2fb5
lea rcx, str.Error__corrupted_constants_object
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x1402dc8e0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1402de410
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1402dc950
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403191e4]
test esi, esi
mov rbx, rcx
jle 0x1402dca80
mov rax, qword [0x1403191e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1402dc99b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1402dca25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1402dc980
mov rcx, rbx
call fcn.1402dd3c0
test rax, rax
mov rdi, rax
je 0x1402dcaa2
mov rax, qword [0x1403191e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1402dd500
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403191e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402dca87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1402dca1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1402dca30
add dword [0x1403191e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1403191e8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1402dca1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1402dc8e0
nop dword [rax]
xor esi, esi
jmp 0x1402dc9a8
mov rax, qword [0x1403191e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1402dc8e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1402dc8e0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1402dd010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140319240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140319220]
test rbx, rbx
je 0x1402dd06c
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 0x1402dd063
test rsi, rsi
je 0x1402dd063
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402dd048
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 0x1402dd280
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1402dd2b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1402dd2c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1402dd290
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1402dd2b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1402dd2c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1402dd2a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1402dd2b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1402dd2c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x1402dd440
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402f1f10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1402dd45f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1402dd468
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1402dd45f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1402dd500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402f1f10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1402dd51f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1402dd528
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret