joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c5d0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push rdi
push rsi
push rbx
sub rsp, 0x148
cmp qword [0x14003d858], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x14000c6b3
mov rax, qword [0x14003d848]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x14003d848], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x14000c6d0
xor ebx, ebx
cmp qword [rbp + 0x10], 0
je 0x14000c684
mov rcx, qword [rbp + 0x10]
mov edi, 7
call sub.msvcrt.dll_strlen
lea rcx, section..data
cmp rax, rdi
mov rsi, rax
cmovge rdi, rax
lea rdx, [rdi + 0x11]
call fcn.14000a320
mov rdx, qword [rbp + 0x10]
lea r8, [rsi + 1]
mov qword [rax + 8], rdi
lea rcx, [rax + 0x10]
mov rbx, rax
mov qword [rax], rsi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x14003d858]
mov rax, qword [0x14003d848]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x14003d848], rax
jne 0x14000c747
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x14000c760
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [0x14003d848]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x14003d848], rax
mov rax, qword [0x14003d840]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14000c70d
add qword [rbx - 0x10], 8
mov rax, qword [0x14003d840]
test rax, rax
je 0x14000c732
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000c732
mov rdx, rcx
lea rcx, [0x14003ac78]
call fcn.140005fd0
cmp qword [rbp - 0x128], 0
mov qword [0x14003d840], rbx
je 0x14000c6b3
mov rcx, qword [0x14003d840]
test rcx, rcx
je 0x14000c790
call fcn.14000cb50
jmp 0x14000c6b3
mov ecx, 2
call qword [fcn.140023750]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x14000c6c2
call fcn.14000c540
nop
nop word cs:[rax + rax]

Function at 0x14001d9b0
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.140023750
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.140023750
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 0x14001da20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400409d4]
mov rbx, rcx
test esi, esi
jle 0x14001db50
mov rax, qword [0x1400409d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001da6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001daf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001da50
mov rcx, rbx
call fcn.14001e470
mov rdi, rax
test rax, rax
je 0x14001db72
mov rax, qword [0x1400409d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001e5b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400409d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001db57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001daee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001db00
add dword [0x1400409d4], 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 [0x1400409d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001daee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001d9b0
nop dword [rax]
xor esi, esi
jmp 0x14001da78
mov rax, qword [0x1400409d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001d9b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001d9b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001e0e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140040a40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140040a20]
test rbx, rbx
je 0x14001e13c
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 0x14001e133
test rsi, rsi
je 0x14001e133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e118
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 0x14001e470
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14001e4f0
Capabilities:
Parse pe header

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

Function at 0x14001e5b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140027c00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001e5cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001e5d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140135000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x1400030f0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14001fa48]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140003130
mov eax, 0xff
jmp 0x1400032d4
mov r9d, dword [rsp + 0x3c]
and r9d, 0x7fff
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov r8d, dword [rsp + 0x40]
mov dword [0x140020428], r8d
mov dword [0x140020430], ecx
mov dword [0x140020434], edx
mov dword [0x140020438], eax
mov eax, r9d
bts eax, 0xf
cmp r8d, 2
cmove eax, r9d
mov dword [0x14002042c], eax
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400031c6
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400031c6
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x1400031c6
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x1400031c8
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x1400031c8
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140006518
test eax, eax
jne 0x1400031fe
cmp dword [0x140020408], 2
je 0x1400031ea
call fcn.140006300
mov ecx, 0x1c
call fcn.14000634c
mov ecx, 0xff
call fcn.140003a70
call fcn.140006250
test eax, eax
jne 0x14000322a
cmp dword [0x140020408], 2
je 0x140003215
call fcn.140006300
mov ecx, 0x10
call fcn.14000634c
mov ecx, 0xff
call fcn.140003a70
nop
call fcn.14000658c
test eax, eax
jns 0x14000323d
mov ecx, 0x1b
call fcn.140003a8c
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140022468], rax
call fcn.140006dbc
mov qword [0x140020400], rax
call fcn.14000681c
test eax, eax
jns 0x140003269
mov ecx, 8
call fcn.140003a8c
call fcn.140006b8c
test eax, eax
jns 0x14000327c
mov ecx, 9
call fcn.140003a8c
mov ecx, edi
call fcn.140003af0
test eax, eax
je 0x14000328e
mov ecx, eax
call fcn.140003a8c
mov r8, qword [0x140020418]
mov qword [0x140020450], r8
mov rdx, qword [0x140020410]
mov ecx, dword [0x14002040c]
call fcn.140002c8c
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
je 0x1400032f5
call fcn.140003adc
jmp 0x1400032d2
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400039d0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call fcn.140003e30
nop
mov ecx, eax
call fcn.140003a00
nop
int3
sub rsp, 0x28
call fcn.140153000
add rsp, 0x28
jmp 0x1400030f0

Function at 0x140004774
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14000478c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000478e
xor eax, eax
test eax, eax
je 0x14000479e
mov ecx, eax
call fcn.140008d78
or eax, 0xffffffff
jmp 0x1400047a0
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054a0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400054b0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140002f70
jmp 0x14000123c
mov rax, qword [0x1400054b0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov rdx, rax
mov rax, qword [0x1400054e0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400054b0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400054d0]
mov rdx, rax
mov rax, qword [0x1400054c0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400054b0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054a0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005400]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005400]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400021f8
mov rax, qword [0x140005530]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005490]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400019f0
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call fcn.14000147c
call fcn.140001787
mov rax, qword [0x140005420]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call fcn.1400036a0
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005410]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a00
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002d60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400026d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000276a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000274e
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 0x140002742
cmp qword [rbp - 0x10], 0
je 0x140002742
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 0x140002708
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000276b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140003280
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
lea rcx, str.kernel32.dll
movabs rax, 0x9453cc4db4096ace
mov rbp, rsp
push r15
push r14
movabs r14, 0x11d0418f2ecbb047
push r13
movabs r13, 0x5be9068a7aa938
push r12
push rdi
push rsi
movabs rsi, 0xf101a939d56c188d
push rbx
movabs rbx, 0xdef63b780f41dd96
and rsp, 0xffffffffffffffe0
add rsp, 0xffffffffffffff80
mov r12, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
lea r15, [rsp + 0x40]
movabs rax, 0xbb84532c6a35b2fb
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x48], rax
movabs rax, 0x11d0418f2ecbd426
mov qword [rsp + 0x50], rax
vmovdqa ymm1, ymmword [rsp + 0x40]
vpxor ymm0, ymm1, ymmword [rsp + 0x60]
vmovdqa ymmword [rsp + 0x40], ymm0
call r12
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov rcx, rax
call rdi
mov qword [rsp + 0x30], rsi
lea rcx, str.kernel32.dll
mov qword [rsp + 0x38], rbx
vmovdqa xmm2, xmmword [rsp + 0x30]
mov qword [0x1400040f0], rax
movabs rax, 0x8351cc4db4096ace
mov qword [rsp + 0x60], rax
movabs rax, 0xdef67a0b7c24bef9
mov qword [rsp + 0x68], rax
vpxor xmm0, xmm2, xmmword [rsp + 0x60]
vmovdqa xmmword [rsp + 0x60], xmm0
call r12
mov rcx, rax
lea rax, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x28], rax
call rdi
mov qword [rsp + 0x30], rsi
lea rcx, str.kernel32.dll
mov qword [rsp + 0x38], rbx
vmovdqa xmm3, xmmword [rsp + 0x30]
mov qword [0x1400040e0], rax
movabs rax, 0xb06dc84ca11e71db
mov qword [rsp + 0x60], rax
movabs rax, 0xdef6433d6c2eb1fa
mov qword [rsp + 0x68], rax
vpxor xmm0, xmm3, xmmword [rsp + 0x60]
vmovdqa xmmword [rsp + 0x60], xmm0
call r12
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call rdi
mov qword [rsp + 0x30], rsi
lea rcx, str.kernel32.dll
mov qword [rsp + 0x38], rbx
vmovdqa xmm4, xmmword [rsp + 0x30]
mov qword [0x140004100], rax
movabs rax, 0xb76dc84ca11e71db
mov qword [rsp + 0x60], rax
movabs rax, 0xdef63b004a24b8e4
mov qword [rsp + 0x68], rax
vpxor xmm0, xmm4, xmmword [rsp + 0x60]
vmovdqa xmmword [rsp + 0x60], xmm0
call r12
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call rdi
mov qword [rsp + 0x58], r13
lea rcx, str.kernel32.dll
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r13
mov qword [0x140004110], rax
movabs rax, 0x9e73f95ca1056ada
mov qword [rsp + 0x40], rax
movabs rax, 0xb19b5e357c32b8f5
mov qword [rsp + 0x48], rax
movabs rax, 0x11d0418f2ecbc935
mov qword [rsp + 0x50], rax
vmovdqa ymm5, ymmword [rsp + 0x40]
vpxor ymm0, ymm5, ymmword [rsp + 0x60]
vmovdqa ymmword [rsp + 0x40], ymm0
call r12
mov rdx, r15
mov rcx, rax
call rdi
mov qword [0x140004120], rax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400036a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbp
mov rbp, rsp
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
call fcn.140001787
lea rbx, [rsp + 0x4c]
xor ecx, ecx
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x1400036e6
or eax, 2
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.140003280
lea rcx, [rsp + 0x30]
mov rdx, rbx
movabs rax, 0x952fc55bbe1f79f9
mov qword [rsp + 0x30], rax
movabs rax, 0xdef63b780f41b1fa
mov qword [rsp + 0x38], rax
movabs rax, 0xf101a939d56c188d
mov qword [rsp + 0x20], rax
movabs rax, 0xdef63b780f41dd96
mov qword [rsp + 0x28], rax
vmovdqa xmm1, xmmword [rsp + 0x20]
vpxor xmm0, xmm1, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
call fcn.1400034d0
mov rbx, qword [rbp - 8]
xor eax, eax
leave
ret