joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400271cc
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400271fc
xor eax, eax
jmp 0x1400272bf
mov rbp, rbx
cmp word [rax], si
je 0x140027221
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140027208
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140027204
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140020e54
movsxd r14, eax
test eax, eax
jne 0x14002725f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400271f5
mov rcx, r14
call fcn.14002019c
mov rdi, rax
test rax, rax
jne 0x140027278
xor ecx, ecx
call fcn.14001fd18
jmp 0x140027254
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140020e54
test eax, eax
jne 0x1400272a9
mov rcx, rdi
call fcn.14001fd18
jmp 0x1400272b3
xor ecx, ecx
call fcn.14001fd18
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002a188
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001e95c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002a229
cmp ebx, dword [rsp + 0x30]
je 0x14002a222
test esi, esi
je 0x14002a222
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002a1fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002a20a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002a1e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002a20e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002a22b
mov eax, 1
jmp 0x14002a22b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d51c
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.140017818
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002d5a6
cmp byte [rbp - 0x21], r15b
je 0x14002d5a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002d5dc
call fcn.140020554
test eax, eax
jne 0x14002d5c8
cmp byte [rbp - 0x21], r15b
je 0x14002d5c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002d5dc
cmp byte [rbp - 0x21], r15b
je 0x14002d5d9
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.14001769c
test eax, eax
jne 0x14002d67c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140017818
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002d61b
cmp byte [rbp - 0x21], r15b
je 0x14002d650
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002d650
call fcn.140020554
test eax, eax
jne 0x14002d63c
cmp byte [rbp - 0x21], r15b
je 0x14002d635
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002d650
cmp byte [rbp - 0x21], r15b
je 0x14002d64d
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.14001769c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002d67c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002d67f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002d68d
mov rcx, rdi
call fcn.14001fd18
cmp byte [rbp + 0x3f], r15b
je 0x14002d69c
mov rcx, qword [rbp + 0x27]
call fcn.14001fd18
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 0x14002dbb8
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.1400234b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400234b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002dd08
cmp rax, 0xffffffffffffffff
je 0x14002dd08
xor edi, edi
test rbp, rbp
jle 0x14002dcb3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140021fc8
mov rbx, rax
test rax, rax
jne 0x14002dc40
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002dca9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ba18
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.14001fa10
cmp eax, 0xffffffff
je 0x14002dc89
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002dc50
mov edx, r15d
mov ecx, r14d
call fcn.14001ba18
jmp 0x14002dca9
cmp byte [rsi + 0x38], dil
je 0x14002dca0
cmp dword [rsi + 0x34], 5
jne 0x14002dca0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002dca9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001fd18
jmp 0x14002dd1c
jns 0x14002dd1c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400234b4
cmp rax, 0xffffffffffffffff
jne 0x14002dcd4
cmp byte [rsi + 0x30], dil
je 0x14002dd1c
mov edi, dword [rsi + 0x2c]
jmp 0x14002dd1c
mov ecx, r14d
call fcn.140027c34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002dd1c
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 0x14002dd1c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002dd15
mov eax, dword [rsi + 0x2c]
jmp 0x14002dd1a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400234b4
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 0xc66c60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xc66c6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xc66c7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xc66c65
lea eax, [rcx + 1]
jmp 0xc66c8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xc66c9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xc66c84
sub eax, 3
jb 0xc66cbe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xc66d0d
sar eax, 1
movsxd rbp, eax
jb 0xc66cf4
jmp 0xc66ccc
add ebx, ebx
jne 0xc66cca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc66cf4
inc ecx
add ebx, ebx
jne 0xc66cda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc66cf4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xc66ced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xc66cdc
add ecx, 2
jmp 0xc66cf9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00c66c22
jmp 0xc66c6d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4fca00
mov dl, 0x5d
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xc66d5d
cmp rsi, rcx
jae 0xc66d65
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xc66d44
cmp al, 0x8f
ja 0xc66d44
cmp byte [rsi - 2], 0xf
je 0xc66d4a
sub al, 0xe8
cmp al, 1
ja 0xc66d2e
cmp rsi, rcx
jae 0xc66d65
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xc66d34
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xc66d65
lodsb al, byte [rsi]
jmp 0xc66d44
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x85f000]
mov eax, dword [rdi]
or eax, eax
je 0xc66dc2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x866000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xc66d72
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xc66dbc
mov qword [rbx], rax
add rbx, 8
jmp 0xc66d92
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xc66e06
cmp al, 0xef
ja 0xc66dee
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xc66dce
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xc66ddd
mov eax, dword [rdi]
add rdi, 4
jmp 0xc66ddd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.00c66e85], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00c66e85
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xc66e75
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x1400012d0
Capabilities:
Execute command

Disassembly:
mov r11, rsp
sub rsp, 0x168
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [r11 + 8], rbx
lea rcx, str.wmic_diskdrive_get_serialnumber
mov qword [r11 + 0x10], rsi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Unspoofed_Serialnumbers:__n
call fcn.1400014b0
xor esi, esi
mov qword [rsp + 0x160], rdi
mov ebx, esi
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
lea rdx, str..Scsi_i:
lea rcx, [rsp + 0x40]
call fcn.140001450
cmp eax, 0xffffffff
je 0x14000138f
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000138f
mov edx, ebx
mov rcx, rax
call fcn.140001070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x140001320
mov rdi, qword [rsp + 0x160]
lea rcx, str.pause
mov rsi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001690
add rsp, 0x168
ret

Function at 0x140001f64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001fae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fae
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fb0
xor al, al
add rsp, 0x28
ret
Function at 0x140007ec0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x140022048]
test rcx, rcx
je 0x140007efb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007f20
mov rcx, qword [0x140022048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002b0a8], 0
jne 0x140007f38
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x140022048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007eee
lea r12, [rsp + 0x20]
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
lea rsi, [0x14001c394]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
lea rdi, [0x14002b0c0]
movq xmm0, rsi
mov word [rsp + 0x40], dx
movq xmm6, rdi
mov dword [rsp + 0x44], 0
punpcklqdq xmm6, xmm0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x48], 0
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140008004
test al, 0x10
je 0x140007f04
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x140007f04
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007fb0
jmp 0x140007f04
Function at 0x14000f770
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015000
sub rsp, rax
mov eax, dword [0x14002f0c0]
test eax, eax
mov rsi, rcx
je 0x14000f810
lea rdi, [0x14002d0c0]
xor ebx, ebx
test eax, eax
jg 0x14000f7ac
jmp 0x14000f7c0
add rbx, 1
cmp dword [0x14002f0c0], ebx
jle 0x14000f7c0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f7a0
jmp 0x14000f7f7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f7d5
cmp word [rsi + 2], 0x3a
je 0x14000f7f7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f860
movsxd rbx, dword [0x14002f0c0]
cmp ebx, 0x3ff
jle 0x14000f878
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
lea rbx, str._HOME_
mov rcx, rdi
mov rdx, rbx
call fcn.140007690
test al, al
je 0x14000f89a
movsxd rbx, dword [0x14002f0c0]
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
lea rdi, [0x14002d0c0]
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002f0c0]
add eax, 1
mov dword [0x14002f0c0], eax
jmp 0x14000f791
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f7e4
xor eax, eax
jmp 0x14000f7fc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x14002f0c0], 1
mov rdx, rax
lea rax, [0x14002d0c0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f7f7
mov rcx, rbx
call fcn.140007e90
nop
nop word cs:[rax + rax]
nop
Function at 0x140014240
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 fcn.14001a020
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.14001a020
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 0x1400142b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f144]
test esi, esi
mov rbx, rcx
jle 0x1400143e0
mov rax, qword [0x14002f148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400142fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014385
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400142e0
mov rcx, rbx
call fcn.140014d20
test rax, rax
mov rdi, rax
je 0x140014402
mov rax, qword [0x14002f148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014e60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400143e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001437e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014390
add dword [0x14002f144], 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 [0x14002f148]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001437e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014240
nop dword [rax]
xor esi, esi
jmp 0x140014308
mov rax, qword [0x14002f148]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140014240
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140014240
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140014970
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f180]
test rbx, rbx
je 0x1400149cc
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 0x1400149c3
test rsi, rsi
je 0x1400149c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400149a8
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 0x140014be0
Capabilities:
Parse pe header

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

Function at 0x140014bf0
Capabilities:
Parse pe header

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

Function at 0x140014c00
Capabilities:
Parse pe header

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

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

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

Function at 0x140014da0
Capabilities:
Parse pe header

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

Function at 0x140014e60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001da10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014e7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014e88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x414060
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4141e6
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042cd00
xorps xmm15, xmm15
mov r14, qword [0x00656618]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4140d6
mov rbx, qword [rsp + 0x60]
jmp 0x4140ea
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
nop
ret
sub rax, rbx
add rcx, rbx
mov rbx, rax
test rbx, rbx
jbe 0x41410e
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov rax, rbx
jmp 0x414122
cmp rbx, 0x1000
jae 0x4140e1
jmp 0x41419a
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
cmp rbx, 0x1000
jae 0x41412f
xor edx, edx
jmp 0x414191
mov qword [rsp + 0x30], rbx
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax + rax]
call fcn.0042cd00
xorps xmm15, xmm15
mov r14, qword [0x00656618]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov edx, eax
mov rax, qword [rsp + 0x38]
test dl, dl
jne 0x414118
jmp 0x414100
call fcn.00455700
xorps xmm15, xmm15
mov r14, qword [0x00656618]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
cmp eax, 8
jne 0x4141ca
lea rax, [0x004be2af]
mov ebx, 0xd
call fcn.0042f420
cmp eax, 0x5af
je 0x4141b9
lea rax, [0x004c2468]
mov ebx, 0x1f
nop dword [rax]
call fcn.0042f420
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00451b60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414060