joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400703d0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400461c0
test al, al
je 0x1400703f2
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140072f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov r9d, dword [rsp + 0xa0]
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140072fea
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140072fea
test ebp, ebp
setne cl
cmp r14, rsi
sete al
and al, cl
jmp 0x140072fec
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14007300b
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x1400731b0
Capabilities:
Patch process command line

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [0x1401372f0], 0
je 0x140073308
cmp qword [0x1401372f0], 0
je 0x140073355
mov rcx, qword [0x1401372f0]
lea rdx, [0x1400fede0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14007335b
xorps xmm6, xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x20], 0
xor edi, edi
lea r8, [rsp + 0x60]
mov rcx, rsi
xor edx, edx
mov r9d, 0x30
call rax
test eax, eax
jne 0x14007335e
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x28], 0
mov rdx, qword [rsp + 0x68]
lea r15, [rsp + 0x28]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x30]
mov r9d, 0x28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x14007335e
cmp qword [rsp + 0x28], 0x28
jne 0x14007335e
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x96], 0
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x96]
mov r9d, 2
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x14007335e
cmp qword [rsp + 0x28], 2
jne 0x14007335e
movzx eax, byte [rsp + 0x96]
movzx ecx, byte [rsp + 0x97]
xor al, 0x4d
xor cl, 0x5a
xor edx, edx
or cl, al
cmovne rbx, rdx
mov rdi, rbx
jmp 0x14007335e
lea rcx, [0x1400fee00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
mov rax, qword [0x1400faca8]
add rax, 0x10
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0x60]
call fcn.1400447b0
test al, al
jne 0x14007333c
int3
xor eax, eax
lock cmpxchg qword [0x1401372f0], rdi
cmp qword [0x1401372f0], 0
jne 0x1400731fa
int3
int3
mov rax, qword [rsp + 0x98]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14007338b
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x140073bf0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, qword [0x1400f74a8]
mov rax, qword [rsi]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [0x1400ff030]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x140073d24
movaps xmm0, xmmword [str.kernel32]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140136fa0], 0
jne 0x140073c5b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140136fa0], rax
mov qword [rsp + 0x28], 0
lea rax, [0x140136f78]
mov qword [rsp + 0x30], rax
lea rdi, [0x140136f88]
mov qword [rsp + 0x38], rdi
lea rax, [0x1400ff04b]
mov qword [rsp + 0x40], rax
lea rax, [0x140073d50]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x140136f80]
lea rdx, [0x140073dd0]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140073d24
cmp qword [rsp + 0x28], 0
je 0x140073d24
mov qword [rsp + 0x28], 0
lea rax, [0x140136fc8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
lea rax, [0x1400ff057]
mov qword [rsp + 0x40], rax
lea rax, [0x140073d70]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x140136fd0]
lea rdx, [0x140079020]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140073d24
cmp qword [rsp + 0x28], 0
jne 0x140073d29
call fcn.140044d20
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rsi]
cmp rcx, rax
jne 0x140073d40
add rsp, 0x68
pop rdi
pop rsi
ret
call fcn.1400c8850
int3
Function at 0x140076600
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov sil, 1
test dl, dl
je 0x1400766ee
mov rbx, qword [rcx + 8]
movsx rdi, dl
movzx eax, byte [0x140135360]
test al, al
je 0x14007670f
add rdi, rbx
mov r8d, dword [0x140137868]
mov rax, rbx
shr rax, 0x20
je 0x14007665d
mov rax, rbx
xor edx, edx
div r8
mov rcx, rax
jmp 0x140076666
mov eax, ebx
xor edx, edx
div r8d
mov ecx, eax
mov rax, rdi
shr rax, 0x20
je 0x14007667e
mov rax, rdi
xor edx, edx
div r8
cmp rcx, rax
jne 0x14007668a
jmp 0x1400766ee
mov eax, edi
xor edx, edx
div r8d
cmp rcx, rax
je 0x1400766ee
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov rdx, rdi
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x1400766de
xor esi, esi
cmp qword [rsp + 0x68], 0
je 0x1400766ee
cmp dword [rsp + 0x48], 0
je 0x1400766ee
cmp dword [rsp + 0x58], 0x1000
jne 0x1400766ee
cmp dword [rsp + 0x5c], 1
setne sil
jmp 0x1400766ee
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14007670a
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
lea rcx, [0x140135360]
call fcn.1400c6e84
test eax, eax
je 0x14007663d
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x3c]
mov dword [0x140137868], eax
lea rcx, [0x140135360]
call fcn.1400c6f5f
jmp 0x14007663d
Function at 0x140076750
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [0x140135368]
test al, al
je 0x14007683a
mov ebx, dword [0x14013786c]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
mov r9, r14
call fcn.140012dd0
movzx eax, byte [0x1401352d8]
test al, al
je 0x140076874
lea rcx, [0x140136fe8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140137010]
lea rdx, [rsp + 0x30]
call fcn.1400768c0
test rax, rax
je 0x1400767fb
mov r14, rax
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, ebx
call fcn.140076ef0
test eax, eax
je 0x1400767fb
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov byte [rsi + 0x10], 1
jmp 0x140076809
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
lea rcx, [0x140136fe8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x1400768b8
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140135368]
call fcn.1400c6e84
test eax, eax
je 0x140076789
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov dword [0x14013786c], eax
lea rcx, [0x140135368]
call fcn.1400c6f5f
jmp 0x140076789
lea rcx, [0x1401352d8]
call fcn.1400c6e84
test eax, eax
je 0x1400767b5
lea rcx, [0x140136fe8]
mov edx, 0xfa0
mov r8d, 0x1000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x1401376c0], 1
lea rcx, [0x1401352d8]
call fcn.1400c6f5f
jmp 0x1400767b5
call fcn.1400c8850
int3

Function at 0x140076ef0
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x68], rax
test edx, edx
je 0x140076f79
mov rsi, rcx
cmp qword [rcx], 0
jne 0x140076f74
mov rdi, r8
mov ebp, edx
movzx eax, byte [0x140135368]
test al, al
je 0x140076f9d
mov ecx, dword [0x14013786c]
xor ebx, ebx
mov eax, ebp
xor edx, edx
div ecx
sub ecx, edx
test edx, edx
cmove ecx, edx
add ecx, ebp
mov dword [rsi + 8], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rsi + 8]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, rsi
mov rdx, rax
call fcn.140076fe0
mov qword [rsi], rax
test rax, rax
je 0x140076f7b
mov ebx, dword [rsi + 8]
jmp 0x140076f7b
xor ebx, ebx
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140076f98
mov eax, ebx
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
lea rcx, [0x140135368]
call fcn.1400c6e84
test eax, eax
je 0x140076f29
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov dword [0x14013786c], eax
lea rcx, [0x140135368]
call fcn.1400c6f5f
jmp 0x140076f29
Function at 0x1400773a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, dword [rdx + 0x10]
shl ebx, 7
mov rcx, rdx
mov edx, ebx
mov r8d, 0x80
call fcn.1400774e0
test al, al
je 0x140077465
mov ecx, ebx
add rcx, qword [rdi]
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0x80
mov byte [rsp + 0x5c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140077432
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
test rcx, rcx
je 0x140077479
mov r8, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
movzx edx, byte [rsp + 0x5c]
test r8, r8
je 0x14007748b
test rax, rax
je 0x14007748b
test r9d, r9d
je 0x14007748b
test dl, dl
jne 0x140077488
jmp 0x14007748b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x1400774b1
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
movzx edx, byte [rsp + 0x5c]
inc dword [rdi + 0x10]
mov qword [rsi], rcx
mov dword [rsi + 8], r9d
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x30], eax
mov byte [rsi + 0x34], dl
mov byte [rsi + 0x38], 1
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x1400774ce
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
int3
Function at 0x1400774e0
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx]
test rbx, rbx
je 0x14007755f
mov rdi, rcx
lea ecx, [rdx + r8]
dec ecx
mov eax, dword [rdi + 0xc]
mov sil, 1
cmp ecx, eax
jb 0x140077561
cmp eax, dword [rdi + 8]
jae 0x14007755f
add rbx, rax
movzx eax, byte [0x140135360]
test al, al
je 0x140077582
mov edx, dword [0x140137868]
mov rcx, rbx
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14007755f
movzx eax, byte [0x140135360]
test al, al
je 0x1400775b8
mov eax, dword [0x140137868]
add dword [rdi + 0xc], eax
jmp 0x140077561
xor esi, esi
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14007757d
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
lea rcx, [0x140135360]
call fcn.1400c6e84
test eax, eax
je 0x140077529
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov dword [0x140137868], eax
lea rcx, [0x140135360]
call fcn.1400c6f5f
jmp 0x140077529
lea rcx, [0x140135360]
call fcn.1400c6e84
test eax, eax
je 0x140077554
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov dword [0x140137868], eax
lea rcx, [0x140135360]
call fcn.1400c6f5f
jmp 0x140077554
Function at 0x140078de0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx eax, byte [0x140135360]
test al, al
je 0x140078e96
mov rdi, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
test r12, r12
je 0x140078e5d
shl r12, 4
add r12, rdi
mov ebx, dword [0x140137868]
lea r14, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax]
mov rcx, qword [rdi]
mov r8d, dword [rdi + 8]
mov rdx, rbx
mov r9, r14
call r13
add rdi, 0x10
cmp rdi, r12
jne 0x140078e40
mov rdi, qword [rsi + 8]
mov qword [rsi + 0x10], 0
add rsi, 0x20
cmp rdi, rsi
je 0x140078e76
mov rcx, rdi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x58]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140078ed0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140135360]
call fcn.1400c6e84
test eax, eax
je 0x140078e13
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140137868], eax
lea rcx, [0x140135360]
call fcn.1400c6f5f
jmp 0x140078e13
call fcn.1400c8850
int3
Function at 0x14008f230
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
xor edi, edi
cmp qword [rcx + 0x78], 0
je 0x14008f379
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x14008f3ff
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x14008f294
test al, 8
je 0x14008f379
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
cmp byte [rsi + 0xa2], 0
je 0x14008f332
mov rbx, qword [rsi + 0x20]
sub rbx, qword [rsi + 0x18]
jmp 0x14008f358
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x14008f2ba
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x68]
cmp eax, 0xffffffff
je 0x14008f379
lea rdi, [rsi + 0x88]
lea r15, [rsp + 0x30]
nop word cs:[rax + rax]
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [rax + 0x28]
mov ebx, eax
mov r14, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub r14, rcx
mov edx, 1
mov r8, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, r14
jne 0x14008f374
cmp ebx, 1
je 0x14008f2d0
cmp ebx, 2
je 0x14008f374
mov rcx, qword [rsi + 0x78]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov edi, 0
test eax, eax
jne 0x14008f374
jmp 0x14008f379
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r9, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x50]
sub rbx, r9
test eax, eax
jle 0x14008f3c0
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rbx, rcx
xor ebp, ebp
mov rcx, qword [rsi + 0x78]
neg rbx
mov rdx, rbx
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x14008f388
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test bpl, bpl
je 0x14008f399
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x88], rax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x48], rax
mov dword [rsi + 0x9c], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
jmp 0x14008f379
mov rax, qword [rsi + 0x18]
cmp rax, qword [rsi + 0x20]
je 0x14008f358
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rax, qword [rsi + 0x10]
mov r10, qword [rcx]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
call qword [r10 + 0x40]
cdqe
add rbx, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rbx, rax
mov bpl, 1
jmp 0x14008f35a
call fcn.14008ecc0
int3

Function at 0x1400c7ac0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.1400c8d70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x1400c8850
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, str._stack_smashing_detected_:_terminated_n
mov ecx, 2
mov r8d, 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400c8880
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
int3

Function at 0x1400d0470
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rdi
lea rcx, str.libcabi:
mov edx, 0xb
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov ecx, 2
call rdi
mov r8, qword [rsp + 0x20]
mov rcx, rax
mov rdx, rsi
call fcn.1400c8d70
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

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

Disassembly:
mov rax, qword [0x1400f7010]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x1400d096c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400d096c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x1400d096c
movzx edx, word [rax + 6]
test edx, edx
je 0x1400d096c
sub rcx, qword [0x1400f7010]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1400d0958
add rax, 0x28
dec edx
je 0x1400d096c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1400d0950
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1400d0950
jmp 0x1400d096e
xor eax, eax
ret

Function at 0x1400d0970
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x1400f7010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x1400d09a5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x1400d09a5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x1400d09a5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400d0a20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f7010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400d0a4c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400d0a4c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400d0a4e
xor eax, eax
ret

Function at 0x1400d0bb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, str._buffer_overflow_detected_:_terminated_n
mov ecx, 2
mov r8d, 0x2d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400d0be0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
Function at 0x1400d1200
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov edi, edx
mov rbx, rcx
call fcn.1400d1680
test al, al
je 0x1400d123d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0llx__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.1400d07c0
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp fcn.1400d1770

Function at 0x1400d12b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400d1680
test al, al
je 0x1400d12e5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.libunwind:__Unwind_SetIP_context_p__value0x_0llx__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.1400d07c0
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d1770
Function at 0x1400d14c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov rdi, rdx
mov rsi, rcx
cmp byte [0x1401372fa], 1
jne 0x1400d14e5
cmp byte [0x1401372f9], 0
jne 0x1400d1504
jmp 0x1400d1524
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x1401372fa], 1
test rax, rax
setne byte [0x1401372f9]
je 0x1400d1524
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.libunwind:___unw_init_local_cursor_p__context_p__n
mov rcx, rax
mov r8, rsi
mov r9, rdi
call fcn.1400d07c0
lea rax, [0x14010fc80]
mov qword [rsi], rax
lea rax, [0x1401370c0]
mov qword [rsi + 8], rax
xorps xmm0, xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], 0
lea rax, [rsi + 0x580]
lea rcx, [rsi + 0xb0]
movaps xmmword [rsi + 0x580], xmm0
movaps xmmword [rsi + 0x590], xmm0
movaps xmmword [rsi + 0x5a0], xmm0
movaps xmmword [rsi + 0x5b0], xmm0
movaps xmmword [rsi + 0x5c0], xmm0
movaps xmmword [rsi + 0x5d0], xmm0
movaps xmmword [rsi + 0x5e0], xmm0
movaps xmmword [rsi + 0x5f0], xmm0
movaps xmmword [rsi + 0x600], xmm0
movaps xmmword [rsi + 0x610], xmm0
movaps xmmword [rsi + 0x620], xmm0
movaps xmmword [rsi + 0x630], xmm0
movaps xmmword [rsi + 0x640], xmm0
movups xmmword [rsi + 0x649], xmm0
mov qword [rsi + 0x80], rcx
mov qword [rsi + 0x98], rax
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
mov rdx, qword [rdi + 0x80]
movups xmm0, xmmword [rdi + 0x10]
movdqu xmm1, xmmword [rdi + 0x30]
pshufd xmm1, xmm1, 0x4e
movdqu xmm2, xmmword [rdi + 0x20]
pshufd xmm2, xmm2, 0x4e
movups xmm3, xmmword [rdi + 0x40]
movups xmm4, xmmword [rdi + 0x50]
movups xmm5, xmmword [rdi + 0x60]
movups xmm6, xmmword [rdi + 0x70]
mov dword [rsi + 0xe0], 0x10000b
mov qword [rsi + 0x128], rax
movaps xmmword [rsi + 0x130], xmm0
mov qword [rsi + 0x140], rcx
movdqu xmmword [rsi + 0x148], xmm1
movdqu xmmword [rsi + 0x158], xmm2
movups xmmword [rsi + 0x168], xmm3
movups xmmword [rsi + 0x178], xmm4
movups xmmword [rsi + 0x188], xmm5
movups xmmword [rsi + 0x198], xmm6
mov qword [rsi + 0x1a8], rdx
test rdx, rdx
je 0x1400d166b
mov rcx, rsi
call fcn.1400ca630
test al, al
jne 0x1400d1672
mov byte [rsi + 0x658], 1
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1400d1680
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1401372fa], 1
jne 0x1400d169c
cmp byte [0x1401372f9], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
setne al
setne byte [0x1401372f9]
mov byte [0x1401372fa], 1
add rsp, 0x28
ret