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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1800507f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800700a6
cmp byte [rbp - 0x21], r15b
je 0x1800700a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800700dc
call fcn.1800618e4
test eax, eax
jne 0x1800700c8
cmp byte [rbp - 0x21], r15b
je 0x1800700c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800700dc
cmp byte [rbp - 0x21], r15b
je 0x1800700d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18005bb0c
test eax, eax
jne 0x18007017c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800507f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18007011b
cmp byte [rbp - 0x21], r15b
je 0x180070150
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180070150
call fcn.1800618e4
test eax, eax
jne 0x18007013c
cmp byte [rbp - 0x21], r15b
je 0x180070135
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180070150
cmp byte [rbp - 0x21], r15b
je 0x18007014d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18005bb0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18007017c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18007017f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18007018d
mov rcx, rdi
call fcn.1800615e0
cmp byte [rbp + 0x3f], r15b
je 0x18007019c
mov rcx, qword [rbp + 0x27]
call fcn.1800615e0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180071024
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.1800602ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800602ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180071174
cmp rax, 0xffffffffffffffff
je 0x180071174
xor edi, edi
test rbp, rbp
jle 0x18007111f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180061568
mov rbx, rax
test rax, rax
jne 0x1800710ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180071115
mov edx, 0x8000
mov ecx, r14d
call fcn.180070ea8
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.180062c40
cmp eax, 0xffffffff
je 0x1800710f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800710bc
mov edx, r15d
mov ecx, r14d
call fcn.180070ea8
jmp 0x180071115
cmp byte [rsi + 0x38], dil
je 0x18007110c
cmp dword [rsi + 0x34], 5
jne 0x18007110c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180071115
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800615e0
jmp 0x180071188
jns 0x180071188
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800602ac
cmp rax, 0xffffffffffffffff
jne 0x180071140
cmp byte [rsi + 0x30], dil
je 0x180071188
mov edi, dword [rsi + 0x2c]
jmp 0x180071188
mov ecx, r14d
call fcn.18006c290
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180071188
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 0x180071188
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180071181
mov eax, dword [rsi + 0x2c]
jmp 0x180071186
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800602ac
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 0x140002df0
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.140004980
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.140004980
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 0x140002e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f90
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002eab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e90
mov rcx, rbx
call fcn.1400038b0
mov rdi, rax
test rax, rax
je 0x140002fb2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f40
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002df0
nop dword [rax]
xor esi, esi
jmp 0x140002eb8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002df0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002df0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003520
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000357c
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 0x140003573
test rsi, rsi
je 0x140003573
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003558
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 0x1400038b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003930
Capabilities:
Parse pe header

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

Function at 0x1400039f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007e10
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140007e3a
mov rcx, qword [rdi]
lea rdx, [0x14025a2ed]
call fcn.14003c6f4
test rax, rax
je 0x140007ece
mov rbx, rax
mov qword [rbp - 8], rdi
xor esi, esi
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.14003c980
mov rcx, rbx
call fcn.14003cd24
mov r14d, eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.14003c980
movsxd r15, r14d
mov rcx, r15
call fcn.1400235f0
mov rdi, rax
mov r8d, 1
mov rcx, rax
mov rdx, r15
mov r9, rbx
call fcn.14003d48c
mov rcx, rbx
call fcn.14003c7c4
test r15d, r15d
je 0x140007f6a
mov edx, r14d
mov eax, edx
and eax, 3
cmp r14d, 4
jae 0x140007ee3
xor ecx, ecx
xor esi, esi
jmp 0x140007f3c
xor esi, esi
mov rax, qword [rdi + 0x18]
cmp rax, 0x10
jae 0x140007f84
jmp 0x140007fbc
and edx, 0xfffffffc
xor ecx, ecx
xor esi, esi
nop word [rax + rax]
movzx r8d, byte [rdi + rcx]
imul r9d, esi, 0x1003f
add r9d, r8d
movzx r8d, byte [rdi + rcx + 1]
imul r9d, r9d, 0x1003f
add r9d, r8d
movzx r8d, byte [rdi + rcx + 2]
imul r9d, r9d, 0x1003f
add r9d, r8d
movzx r8d, byte [rdi + rcx + 3]
imul esi, r9d, 0x1003f
add esi, r8d
add rcx, 4
cmp rdx, rcx
jne 0x140007ef0
test rax, rax
je 0x140007f6a
mov rdx, rdi
add rdx, rcx
xor ecx, ecx
nop dword [rax]
movzx r8d, byte [rdx + rcx]
imul esi, esi, 0x1003f
add esi, r8d
inc rcx
cmp rax, rcx
jne 0x140007f50
mov rcx, rdi
call fcn.1400235f8
mov rdi, qword [rbp - 8]
mov rax, qword [rdi + 0x18]
cmp rax, 0x10
jb 0x140007fbc
mov rcx, qword [rdi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140007fb7
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140007fde
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400235f8
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call fcn.140024088
int3
Function at 0x140003950
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003984
cmp word [rcx], 0x5a4d
jne 0x140003984
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003984
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003984
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003890
test eax, eax
jne 0x1400039a0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003900
test rax, rax
je 0x140003995
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000415b
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004050
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003ff0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405299d8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405299d4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004512
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000450a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045f9
inc ebx
add rax, 0x28
jmp 0x1400044ea
mov rcx, r12
call fcn.140004cf1
mov rbp, rax
test rax, rax
jne 0x140004531
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004460
movsxd rbx, ebx
mov rax, qword [0x1405299d8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d9f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405299d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004593
mov rax, qword [0x1405299d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004460
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045f3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045f3
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 [0x1405299d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004460
inc dword [0x1405299d4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140529a40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140529a20]
test rbx, rbx
je 0x140004a6c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a66
test eax, eax
jne 0x140004a66
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a3e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c20
Capabilities:
Parse pe header

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

Function at 0x140004c44
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c7e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c75
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c80
inc r8d
add rax, 0x28
jmp 0x140004c5c
xor eax, eax
ret

Function at 0x140004cf1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140525bf0]
mov r8, rcx
mov rcx, r9
call fcn.140004c20
test eax, eax
je 0x140004d1d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c44
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002730
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.140004360
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.140004360
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 0x1400027a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400028d0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400027eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002875
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400027d0
mov rcx, rbx
call fcn.1400031f0
mov rdi, rax
test rax, rax
je 0x1400028f2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400028d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000286e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002880
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000286e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002730
nop dword [rax]
xor esi, esi
jmp 0x1400027f8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002730
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002730
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x140002ebc
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 0x140002eb3
test rsi, rsi
je 0x140002eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002e98
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 0x1400031f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003270
Capabilities:
Parse pe header

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

Function at 0x140003330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000334f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14006c720
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov dword [rsp + 0x24], ecx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], r8
mov eax, dword [rsp + 0x24]
xor eax, 0xffffffff
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
cmp qword [rsp + 0x10], 4
jb 0x14006c824
mov eax, dword [rsp + 0xc]
shr eax, 8
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp]
movzx edx, byte [rdx]
xor ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1400c0660]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 8
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp]
movzx edx, byte [rdx + 1]
xor ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1400c0660]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 8
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp]
movzx edx, byte [rdx + 2]
xor ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1400c0660]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 8
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp]
movzx edx, byte [rdx + 3]
xor ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1400c0660]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
mov rax, qword [rsp + 0x10]
sub rax, 4
mov qword [rsp + 0x10], rax
jmp 0x14006c746
jmp 0x14006c829
cmp qword [rsp + 0x10], 0
je 0x14006c880
mov eax, dword [rsp + 0xc]
shr eax, 8
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp]
movzx edx, byte [rdx]
xor ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x1400c0660]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
mov rax, qword [rsp + 0x10]
add rax, 0xffffffffffffffff
mov qword [rsp + 0x10], rax
jmp 0x14006c829
mov eax, dword [rsp + 0xc]
xor eax, 0xffffffff
add rsp, 0x28
ret