joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018db60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x14021cef0]
mov rsi, rcx
test rbx, rbx
je 0x14018dbe0
mov rax, qword [0x1401fede0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14018dbd0
mov rdx, qword [0x14021d128]
test rdx, rdx
je 0x14018dcd8
mov rcx, rbx
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
jmp 0x14018dbb1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140177300
test rax, rax
je 0x14018dcf8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401eacd0
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14018dc7e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14018dc70
test rbx, rbx
je 0x1401eacd0
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14018dc30
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.14018daa0
mov rbx, rax
mov qword [0x14021cef0], rbx
jmp 0x14018db82
lea rcx, [0x1401fb3a0]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x14021d128], rax
mov rdx, rax
jmp 0x14018dba2
mov rbx, qword [0x14021cf08]
test rbx, rbx
jne 0x14018dcc6
cmp byte [0x14021d122], 0
jne 0x14018dd17
mov ecx, 1
call fcn.1401579a0
mov rdx, 0xffffffffffffffff
lea rcx, [0x14021cf20]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x14021cf08], rax
mov rbx, rax
test rax, rax
je 0x14018dd40
add qword [rax], 1
jmp 0x14018dcc6
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x14018f570
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140177300
test rax, rax
je 0x14018f6d0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401eacee
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14018f626
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14018f618
test rbx, rbx
je 0x1401eacee
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14018f5d8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x14021d640]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1401fede0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14018f728
mov r8, rbx
mov rcx, rsi
call fcn.140179eb0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14018b390
sub qword [rbx], 1
jne 0x14018f6b4
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14021cf00]
lea rsi, [0x14021cf00]
test bl, bl
je 0x14018f6f0
mov rax, qword [0x14021cf08]
lea rsi, [0x14021cf08]
test rax, rax
jne 0x14018f6b4
cmp byte [0x14021d122], 0
jne 0x14018f706
movzx ecx, bl
call fcn.1401579a0
mov rdx, 0xffffffffffffffff
lea rcx, [0x14021cf20]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14018f755
add qword [rax], 1
jmp 0x14018f6b4
mov rdx, qword [0x14021d5b8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14018f760
mov r8, rdi
mov rcx, rsi
call fcn.140179eb0
mov qword [0x14021d640], rax
mov rdx, rax
jmp 0x14018f67e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401f7876]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x14021d5b8], rax
mov rdx, rax
test rax, rax
je 0x1401eacee
jmp 0x14018f73b
Function at 0x1401d0160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14021cee9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401d01e8
lea rdx, [0x1401fab1a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401d0250
mov rbx, qword [0x14021cd88]
jmp 0x1401d01a5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401d01a0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401bf390
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]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14021cd88], rax
mov ebx, dword [rax]
mov qword [0x14021cd88], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14021cd88], rdx
call fcn.1401cf290
cmp eax, ebx
jne 0x1401d02d7
mov byte [0x14021cee9], 1
jmp 0x1401d017c
cmp byte [0x14021cee8], 0
jne 0x1401d0193
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x14021d848], rax
call rbx
mov qword [0x14021d840], rax
call rbx
mov qword [0x14021d838], rax
call rbx
mov qword [0x14021d830], rax
call rbx
mov qword [0x14021d828], rax
call rbx
mov qword [0x14021d820], rax
call rbx
mov qword [0x14021d818], rax
call rbx
mov byte [0x14021cee8], 1
mov qword [0x14021d810], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x14021cd80], rax
jmp 0x1401d0193
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1401d89e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401ea170
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401ea170
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401d96b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14021dd08]
test eax, eax
je 0x1401d974a
lea rax, [0x14021dce0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14021dd10]
mov qword [rbp - 8], rax
jmp 0x1401d972e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401d9722
cmp qword [rbp - 0x10], 0
je 0x1401d9722
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401d96e8
lea rax, [0x14021dce0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401d974b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401d9850
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401d9878
mov eax, 0
jmp 0x1401d98c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401d98a1
mov eax, 0
jmp 0x1401d98c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401d98c1
mov eax, 0
jmp 0x1401d98c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401d98cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401d994a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401d9941
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401d9941
mov rax, qword [rbp - 8]
jmp 0x1401d995f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401d9914
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140074e30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140074e40]
mov dword [rax], 1
mov rax, qword [0x140074e50]
mov dword [rax], 1
mov rax, qword [0x140074e20]
mov dword [rax], 1
mov rax, qword [0x140074c30]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140074e10]
mov dword [0x14007c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140074d60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140074d40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140074ba0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140004e70
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140004e91
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush
Function at 0x140013210
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x1400133bf
test rdx, rdx
jle 0x140013286
mov ebx, dword [rcx]
mov rcx, qword [0x140074c10]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400132a0
xor r12d, r12d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x1400132a8
cmp rsi, rcx
jle 0x140013288
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x140013255
xor ecx, ecx
lea rdx, [rsi - 1]
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
jmp 0x140013293
mov rax, rsi
and eax, 3
je 0x1400133ea
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x1400133f1
cmp r8, rax
jb 0x1400133f1
test rdx, rdx
jne 0x1400133b3
cmp rsi, r8
jle 0x1400133a0
test r8, r8
js 0x1400133a0
movzx edx, byte [rbp + r8]
test rax, rax
je 0x14001334c
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x1400133fb
cmp r9, rax
jb 0x1400133fb
mov r8, r9
test r10, r10
jne 0x1400133b3
cmp rsi, r9
jle 0x1400133a0
test r9, r9
js 0x1400133a0
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x14001334c
test rcx, rcx
js 0x14001339d
cmp rsi, rcx
jle 0x14001339d
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x140074c10]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400132a0
imul ebx, ebx, 0x1b873593
mov eax, r12d
xor eax, esi
xor eax, ebx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul edx, eax, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul edx, eax, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140013293
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call sym.raiseIndexError2
xor eax, eax
jmp 0x140013293
call sym.raiseOverflow
xor eax, eax
jmp 0x140013293
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x1400133e7
sub rax, 1
xor ecx, ecx
xor r12d, r12d
mov r8, rax
jmp 0x1400132d8
xor r12d, r12d
xor ebx, ebx
jmp 0x140013355
mov edx, 1
jmp 0x1400132cf
mov r10d, 1
jmp 0x140013311

Function at 0x140013410
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x140013438
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
add rsp, 0x28
jmp sym.murmurHash__pureZhashes_u194
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call sym.raiseIndexError4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400434b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
lea rbp, [rdx + 7]
mov rsi, rcx
mov r14, rdx
cmovns rbp, rdx
mov ebx, r8d
sar rbp, 3
cmp rdx, 7
jle 0x1400435c5
mov rcx, qword [0x140074c10]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400435b8
xor ecx, ecx
lea r8, [0x14006fe80]
nop word [rax + rax]
mov edx, dword [rsi + rcx*8 + 4]
mov eax, dword [rsi + rcx*8]
add rcx, 1
mov r9d, edx
xor eax, ebx
movzx r10d, dl
movzx edi, dh
shr r9d, 0x18
shr edx, 0x10
mov ebx, dword [r8 + r9*4]
movzx r9d, al
xor ebx, dword [r8 + r10*4 + 0xc00]
movzx edx, dl
xor ebx, dword [r8 + r9*4 + 0x1c00]
mov r9d, eax
shr r9d, 0x18
xor ebx, dword [r8 + r9*4 + 0x1000]
xor ebx, dword [r8 + rdi*4 + 0x800]
xor ebx, dword [r8 + rdx*4 + 0x400]
movzx edx, ah
shr eax, 0x10
xor ebx, dword [r8 + rdx*4 + 0x1800]
movzx edx, al
xor ebx, dword [r8 + rdx*4 + 0x1400]
cmp rbp, rcx
jg 0x140043500
lea rdx, [rbp*8]
cmp r14, 7
mov ebp, 8
cmovle rdx, rbp
cmp r14, rdx
jle 0x1400435b8
add rdx, rsi
lea r8, [0x14006fe80]
add rsi, r14
nop dword [rax]
movzx ecx, byte [rdx]
add rdx, 1
xor ecx, ebx
shr ebx, 8
movzx ecx, cl
xor ebx, dword [r8 + rcx*4]
cmp rsi, rdx
jne 0x1400435a0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
xor edx, edx
jmp 0x14004358b
Function at 0x14005d150
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 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14005d1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14007c4f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14005d370
mov rax, qword [0x14007c4f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14005d20c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14005d297
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14005d1f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14005d3cd
mov rax, qword [0x14007c4f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14007c4f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14005d3b2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14005d290
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14005d320
add dword [0x14007c4f4], 1
cmp ebx, 8
jae 0x14005d2c8
test bl, 4
jne 0x14005d380
test ebx, ebx
je 0x14005d2b9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14005d3a0
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 0x14005d2b9
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 0x14005d2fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x14007c4f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14005d290
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x14005d217
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14005d2b9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14005d2b9
mov rax, qword [0x14007c4f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x14005d8e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14007c560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14007c540]
test rbx, rbx
je 0x14005d934
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 0x14005d92b
test r12, r12
je 0x14005d92b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14005d910
lea rcx, [0x14007c560]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14005db60
Capabilities:
Parse pe header

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

Function at 0x14005db80
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 0x14005dbc5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14005dbbc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14005dbc7
add rax, 0x28
cmp rax, r9
jne 0x14005dba8
xor eax, eax
ret

Function at 0x14005dc70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140074c30]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14005dce9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14005dce9
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 0x14005dce6
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 0x14005dcdd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14005dce9
add r8, 0x28
cmp r8, r9
jne 0x14005dcc8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14005ddd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140074c30]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14005de3f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14005de3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14005de3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14005de34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14005de48
add rax, 0x28
cmp rax, r9
jne 0x14005de20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x14005de60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140074c30]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x14005ded8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14005ded8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14005ded8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14005ded8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14005decc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14005dee0
add rdx, 0x28
cmp rdx, r10
jne 0x14005deb8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x14005def0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14005defe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14005ded5
test r8d, r8d
jg 0x14005dee8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x14005e050
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x14007c5e0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14007c5e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14005e0a0
lea rdx, [0x14005df60]
mov dword [0x14007c5d8], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14005e0a8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005e097
call sym.abort
nop
nop