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

Disassembly:
xor eax, eax
test rcx, rcx
je 0x140001923
mov r9, rdx
test rdx, rdx
je 0x140001923
cmp word [rcx], 0x5a4d
jne 0x140001929
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001929
push rbp
xor r8d, r8d
push rdi
push rsi
push rbx
mov edx, dword [rdx + 0x88]
add rdx, rcx
mov ebp, dword [rdx + 0x20]
mov edi, dword [rdx + 0x18]
movzx eax, r8w
cmp eax, edi
jae 0x14000191f
movzx eax, r8w
lea r10, [rcx + rax*4]
mov r11d, dword [r10 + rbp]
xor r10d, r10d
add r11, rcx
mov sil, byte [r11 + r10]
mov bl, byte [r9 + r10]
test sil, sil
je 0x1400018f8
inc r10
cmp bl, sil
je 0x1400018e1
jmp 0x14000191a
test bl, bl
jne 0x14000191a
mov r8d, dword [rdx + 0x24]
add rax, rax
add rax, rcx
movzx r8d, word [rax + r8]
mov eax, dword [rdx + 0x1c]
lea rdx, [rcx + r8*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x140001924
inc r8d
jmp 0x1400018c7
xor eax, eax
jmp 0x140001924
ret
pop rbx
pop rsi
pop rdi
pop rbp
ret
ret

Function at 0x140001e00
Capabilities:
Bypass uac via icmluautil

Disassembly:
push rbp
mov rbp, rsp
push r12
lea r12, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
push rdi
push rsi
push rbx
mov rbx, rcx
mov rcx, r12
and rsp, 0xfffffffffffffff0
sub rsp, 0x270
movups xmm0, xmmword [0x140004ab0]
mov rax, qword [0x140004a20]
and qword [rsp + 0x20], 0
movups xmmword [rsp + 0x28], xmm0
call qword [rax]
xchg rdx, rax
mov eax, 0x80004005
cmp rdx, 0x40
ja 0x140001ed1
lea rdi, [rsp + 0x38]
mov rax, qword [0x140004a00]
push 0x30
xor edx, edx
pop r8
mov rcx, rdi
call qword [rax]
mov rax, qword [0x140004a70]
lea r8, str.Elevation:Administrator_new:
mov edx, 0x104
lea rsi, [rsp + 0x68]
mov dword [rsp + 0x38], 0x30
mov rcx, rsi
mov dword [rsp + 0x4c], 4
call qword [rax]
mov rax, qword [0x140004a60]
mov r8, r12
mov rcx, rsi
mov edx, 0x104
call qword [rax]
mov rax, qword [0x140004820]
lea rdx, str.CoGetObject
mov rcx, qword [rax]
mov rax, qword [0x140004930]
call qword [rax]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call rax
mov rdx, qword [rsp + 0x20]
mov qword [rbx], rdx
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
Function at 0x140028d04
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c388
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c388
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028e54
cmp rax, 0xffffffffffffffff
je 0x140028e54
xor edi, edi
test rbp, rbp
jle 0x140028dff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f014
mov rbx, rax
test rax, rax
jne 0x140028d8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028df5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c38
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d070
cmp eax, 0xffffffff
je 0x140028dd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028d9c
mov edx, r15d
mov ecx, r14d
call fcn.140019c38
jmp 0x140028df5
cmp byte [rsi + 0x38], dil
je 0x140028dec
cmp dword [rsi + 0x34], 5
jne 0x140028dec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028df5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a574
jmp 0x140028e68
jns 0x140028e68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c388
cmp rax, 0xffffffffffffffff
jne 0x140028e20
cmp byte [rsi + 0x30], dil
je 0x140028e68
mov edi, dword [rsi + 0x2c]
jmp 0x140028e68
mov ecx, r14d
call fcn.140018768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028e68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028e61
mov eax, dword [rsi + 0x2c]
jmp 0x140028e66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c388
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029f60
Capabilities:
Parse pe header

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

Function at 0x140002f1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140018140]
test rax, rax
je 0x140002f66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f66
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002f68
xor al, al
add rsp, 0x28
ret

Function at 0x14000c5d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c3d4
Function at 0x140027e30
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b8b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b8b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f80
cmp rax, 0xffffffffffffffff
je 0x140027f80
xor edi, edi
test rbp, rbp
jle 0x140027f2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001deb8
mov rbx, rax
test rax, rax
jne 0x140027eb8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027f21
mov edx, 0x8000
mov ecx, r14d
call fcn.140015968
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c590
cmp eax, 0xffffffff
je 0x140027f01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027ec8
mov edx, r15d
mov ecx, r14d
call fcn.140015968
jmp 0x140027f21
cmp byte [rsi + 0x38], dil
je 0x140027f18
cmp dword [rsi + 0x34], 5
jne 0x140027f18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027f21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019f78
jmp 0x140027f94
jns 0x140027f94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b8b4
cmp rax, 0xffffffffffffffff
jne 0x140027f4c
cmp byte [rsi + 0x30], dil
je 0x140027f94
mov edi, dword [rsi + 0x2c]
jmp 0x140027f94
mov ecx, r14d
call fcn.14001705c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027f94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f8d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f92
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b8b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14000193c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001986
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001986
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001986
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001986
cmp dword [rcx + 0x84], 0xe
jbe 0x140001986
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001988
xor al, al
add rsp, 0x28
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140013050
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 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014390
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143b0
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143c3
xor al, al
jmp 0x140014431
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 0x1400143ed
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014401
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014413
xor al, al
jmp 0x140014431
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001442f
xor al, al
jmp 0x140014431
mov al, 1
add rsp, 0x38
ret
Function at 0x180001ee0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax]
mov eax, 0x5a4d
mov rdi, qword [rcx + 0x20]
cmp word [rdi], ax
jne 0x180001fb5
movsxd rax, dword [rdi + 0x3c]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], r12
mov ecx, dword [rax + rdi + 0x88]
add rcx, rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r14d, dword [rcx + 0x1c]
mov r12d, dword [rcx + 0x20]
add r14, rdi
mov r15d, dword [rcx + 0x24]
add r12, rdi
mov ebp, dword [rcx + 0x18]
add r15, rdi
test ebp, ebp
je 0x180001f9c
mov qword [rsp + 0x50], rsi
nop word [rax + rax]
movzx esi, bx
lea rdx, str.NtAllocateVirtualMemory
mov ecx, dword [r12 + rsi*4]
add rcx, rdi
call fcn.180029cd0
test eax, eax
jne 0x180001f8d
movzx eax, word [r15 + rsi*2]
mov ecx, dword [r14 + rax*4]
add rcx, rdi
mov qword [0x1800419c0], rcx
inc bx
movzx eax, bx
cmp eax, ebp
jb 0x180001f60
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x180006ff8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180007026
xor eax, eax
jmp 0x18000710c
cmp qword [rcx + 0x68], 0
je 0x180007037
call fcn.180007128
jmp 0x18000710c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000704e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007050
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180007082
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18000a060
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180007106
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1800070b9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1800070e2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800116e4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180007106
cmp rsi, rbx
ja 0x1800070c0
test rsi, rsi
je 0x180007106
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800116e4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800071ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18000721b
call fcn.1800072ac
jmp 0x180007292
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180007232
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180007234
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000728c
test ecx, ecx
jle 0x18000726d
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.18000a060
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18000728c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000728c
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.180010648
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1409091ef
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
jmp 0x140930c76
not edx
call fcn.140919835
and dword [rsp + 0xb], 0xdc8af239
test rcx, rcx
lea rsp, [rsp + 0x10]
je 0x140930cf8
mov r10d, 0x263fbd95
push rdi
lea rdi, [0x140924c10]
mov r10d, 0x4fa58935
movzx r10d, byte [r10 + rbp - 0x4fa58935]
xor r10d, edx
push 0x1c88698d
and r10d, 0xff
sub byte [rsp + 4], 0x11
mov r10d, dword [rdi + r10*4]
shr edx, 8
xor edx, r10d
and byte [rsp], 0x36
inc rbp
sal word [rsp + 6], 0x65
xor edx, 0x248f7d11
dec rcx
lea rsp, [rsp + 8]
jne 0x140930c9a
mov edi, 0xd816ea3b
push rdi
mov rdi, qword [rsp + 8]
lea rsp, [rsp + 0x10]
jmp 0x14092f67f

Function at 0x14092e1cd
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], 0xffffffffc8abcf19
lea r8, [0x140934fc0]
lea rsp, [rsp + 8]
mov r9d, 0xb12f611d
movzx r9d, byte [rdx]
push 0xffffffffacb1bf98
xor r9d, eax
and r9d, 0xff
ror word [rsp + 4], 1
mov r9d, dword [r8 + r9*4]
or byte [rsp], 0xaf
shr eax, 8
xor eax, r9d
inc rdx
xor eax, 0x42c0b24
dec rdi
lea rsp, [rsp + 8]
jne 0x14092e1e1
pop r8
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c05d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c05e0]
mov dword [rax], 1
mov rax, qword [0x1400c05f0]
mov dword [rax], 1
mov rax, qword [0x1400c0530]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c05c0]
mov dword [0x1400e600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c06b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c0690]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400bf990]
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 0x14000c000
Capabilities:
Write file on windows

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

Function at 0x14000c070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e60a4]
mov rbx, rcx
test esi, esi
jle 0x14000c1a0
mov rax, qword [0x1400e60a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000c0bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c145
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c0a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000c1c2
mov rax, qword [0x1400e60a8]
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 [0x1400e60a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c1a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000c13e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000c150
add dword [0x1400e60a4], 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 [0x1400e60a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c13e
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 0x14000c0c8
mov rax, qword [0x1400e60a8]
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 0x14000c750
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e6100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e60e0]
test rbx, rbx
je 0x14000c7ac
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 0x14000c7a3
test eax, eax
jne 0x14000c7a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c788
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 0x14000c9c0
Capabilities:
Parse pe header

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

Function at 0x14000c9f0
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 0x14000ca3d
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 0x14000ca34
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000ca3f
add rax, 0x28
cmp rax, r9
jne 0x14000ca20
xor eax, eax
ret

Function at 0x14000ca40
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000cad0
mov rdx, qword [0x1400c0530]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000cabe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000cabe
cmp word [rax + 0x18], 0x20b
jne 0x14000cabe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000cad0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000caa9
add rbx, 0x28
cmp rbx, rdi
je 0x14000cad0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000caa0
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 0x14000cae0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000cb60
Capabilities:
Parse pe header

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