joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400704f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, dword [rdx + 0x10]
shl ebx, 7
mov rcx, rdx
mov edx, ebx
mov r8d, 0x80
call fcn.140070640
test al, al
je 0x1400705b5
mov ecx, ebx
add rcx, qword [rdi]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x28]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0x80
mov byte [rsp + 0x4c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140070583
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1400705cd
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
mov r8b, byte [rsp + 0x4c]
test rdx, rdx
je 0x1400705e4
test rbx, rbx
je 0x1400705e4
test ecx, ecx
je 0x1400705e4
test r8b, r8b
jne 0x1400705e0
jmp 0x1400705e4
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x30], 0
jmp 0x14007060f
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r8b, byte [rsp + 0x4c]
add dword [rdi + 0x10], 1
mov qword [rsi], rax
mov dword [rsi + 8], ecx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbx
mov eax, dword [rsp + 0x40]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x24], eax
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0x28], eax
mov byte [rsi + 0x2c], r8b
mov byte [rsi + 0x30], 1
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14007062c
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140072349
int3
Function at 0x140070640
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, qword [0x1400f6380]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400706c3
mov rsi, rcx
add edx, r8d
add edx, 0xffffffff
mov ecx, dword [rcx + 0xc]
mov al, 1
cmp edx, ecx
jb 0x1400706c5
cmp ecx, dword [rsi + 8]
jae 0x1400706c3
add rdi, rcx
mov al, byte [0x14012e1f0]
test al, al
je 0x1400706e2
mov edx, dword [0x140130270]
mov rcx, rdi
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1400706bb
mov al, byte [0x14012e1f0]
test al, al
je 0x140070718
mov eax, dword [0x140130270]
add dword [rsi + 0xc], eax
test rdi, rdi
setne al
jmp 0x1400706c5
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x1400706dd
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
call fcn.140072349
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x140070685
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x140070685
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x1400706b2
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x1400706b2

Function at 0x140071a50
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14, rcx
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov al, byte [0x14012e1f0]
test al, al
je 0x140071b1d
mov rdi, qword [r14 + 0x68]
mov rsi, qword [r14 + 0x70]
test rsi, rsi
je 0x140071ace
mov r13d, dword [0x140130270]
shl rsi, 4
xor ebx, ebx
lea r12, [rsp + 0x20]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax]
mov rcx, qword [rdi + rbx + 8]
mov r8d, dword [rdi + rbx]
mov rdx, r13
mov r9, r12
call rbp
add rbx, 0x10
cmp rsi, rbx
jne 0x140071ab0
mov rdi, qword [r14 + 0x68]
mov qword [r14 + 0x70], 0
lea rax, [r14 + 0x80]
cmp rdi, rax
je 0x140071aea
mov rcx, rdi
call sub.mozglue.dll_free
mov rcx, qword [r14 + 0x20]
add r14, 0x38
cmp rcx, r14
je 0x140071afc
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140071b57
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x140071a83
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x140071a83
call fcn.140072349
int3
Function at 0x140088de0
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 0x140088f62
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x140088fae
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x140088e44
test al, 8
je 0x140088f60
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
cmp byte [rsi + 0xa2], 0
je 0x140088ee5
mov rdi, qword [rsi + 0x20]
sub rdi, qword [rsi + 0x18]
jmp 0x140088f0b
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x140088e6a
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x68]
cmp eax, 0xffffffff
je 0x140088f62
lea r14, [rsi + 0x88]
lea r15, [rsp + 0x30]
mov edi, 0xffffffff
nop dword [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, r14
call qword [rax + 0x28]
mov ebp, eax
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, rbx
jne 0x140088f62
cmp ebp, 1
je 0x140088e80
cmp ebp, 2
je 0x140088f62
mov rcx, qword [rsi + 0x78]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
test eax, eax
jne 0x140088f62
jmp 0x140088f60
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r9, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x50]
sub rdi, r9
test eax, eax
jle 0x140088f71
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rdi, rcx
xor ebx, ebx
mov rcx, qword [rsi + 0x78]
neg edi
mov edx, edi
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
je 0x140088f2b
mov edi, 0xffffffff
jmp 0x140088f62
test bl, bl
je 0x140088f3b
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
xor edi, edi
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi + 0x18]
cmp rax, qword [rsi + 0x20]
je 0x140088f0b
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rax, qword [rsi + 0x10]
mov rbp, qword [rcx]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
call qword [rbp + 0x40]
mov eax, eax
add rdi, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rdi, rax
mov bl, 1
jmp 0x140088f0d
call fcn.140088830
int3
Function at 0x1400c0d30
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.1400c1f30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x1400cac70
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.1400c1f30
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 0x1400cb120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [sym.firefox.exe_Ordinal_0]
movzx edx, word [r8]
cmp edx, 0x5a4d
jne 0x1400cb18d
movsxd rdx, dword [r8 + 0x3c]
cmp dword [r8 + rdx], 0x4550
jne 0x1400cb18d
add r8, rdx
movzx edx, word [r8 + 0x18]
cmp edx, 0x20b
jne 0x1400cb18d
movzx edx, word [r8 + 6]
test edx, edx
je 0x1400cb18d
sub rcx, qword [sym.firefox.exe_Ordinal_0]
movzx eax, word [r8 + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1400cb179
add rax, 0x28
add edx, 0xffffffff
je 0x1400cb18d
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1400cb170
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1400cb170
jmp 0x1400cb18f
xor eax, eax
ret

Function at 0x1400cb190
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [sym.firefox.exe_Ordinal_0]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x1400cb1c6
movsxd r8, dword [rcx + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x1400cb1c6
movzx edx, word [rcx + r8 + 0x18]
cmp edx, 0x20b
jne 0x1400cb1c6
movzx eax, word [rcx + r8 + 6]
ret

Function at 0x1400cb240
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [sym.firefox.exe_Ordinal_0]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400cb26c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400cb26c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400cb26e
xor eax, eax
ret
Function at 0x1400cba10
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.1400cbf30
test al, al
je 0x1400cba4d
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.1400cafc0
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp fcn.1400cc010

Function at 0x1400cbac0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400cbf30
test al, al
je 0x1400cbaf5
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.1400cafc0
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400cc010
Function at 0x1400cbf30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x14012d5f1], 1
jne 0x1400cbf48
mov al, byte [0x14012d5f2]
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
add rsp, 0x28
ret

Function at 0x1400cbf70
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov edi, edx
mov rbx, rcx
cmp byte [0x14012d5f1], 1
jne 0x1400cbf94
mov al, byte [0x14012d5f2]
test al, al
jne 0x1400cbfb8
jmp 0x1400cbfdd
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
test al, al
je 0x1400cbfdd
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:___unw_get_reg_cursor_p__regNum_d__value_p__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.1400cafc0
mov rax, qword [rbx]
mov rcx, rbx
mov edx, edi
call qword [rax + 0x10]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x1400cc003
mov rax, qword [rbx]
mov rcx, rbx
mov edx, edi
call qword [rax + 0x18]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400cc010
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov edi, edx
mov rsi, rcx
cmp byte [0x14012d5f1], 1
jne 0x1400cc035
mov al, byte [0x14012d5f2]
test al, al
jne 0x1400cc059
jmp 0x1400cc07e
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
test al, al
je 0x1400cc07e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rbx
lea rdx, str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_llx__n
mov rcx, rax
mov r8, rsi
mov r9d, edi
call fcn.1400cafc0
mov rax, qword [rsi]
mov rcx, rsi
mov edx, edi
call qword [rax + 0x10]
mov ebp, 0xffffe672
test al, al
je 0x1400cc0ee
mov rax, qword [rsi]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [rax + 0x20]
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x1400cc0ee
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [rax + 0x48]
mov rax, qword [rsi]
xor ebp, ebp
mov rcx, rsi
xor edx, edx
call qword [rax + 0x68]
cmp qword [rsp + 0x50], 0
je 0x1400cc0ee
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [rax + 0x18]
add rax, qword [rsp + 0x50]
mov rbx, qword [rsi]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
call qword [rbx + 0x20]
mov eax, ebp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400cc250
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [0x14012d5f1], 1
jne 0x1400cc26d
mov al, byte [0x14012d5f2]
test al, al
jne 0x1400cc291
jmp 0x1400cc2ae
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
test al, al
je 0x1400cc2ae
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.libunwind:___unw_step_cursor_p__n
mov rcx, rax
mov r8, rsi
call fcn.1400cafc0
mov rax, qword [rsi]
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp qword [rax + 0x40]

Function at 0x1400cc2c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [0x14012d5f1], 1
jne 0x1400cc2e1
mov al, byte [0x14012d5f2]
test al, al
jne 0x1400cc305
jmp 0x1400cc325
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
test al, al
je 0x1400cc325
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.1400cafc0
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [rax + 0x48]
xor ecx, ecx
cmp qword [rsi + 8], 0
mov eax, 0xffffe66b
cmovne eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400cc350
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [0x14012d5f1], 1
jne 0x1400cc36d
mov al, byte [0x14012d5f2]
test al, al
jne 0x1400cc391
jmp 0x1400cc3ae
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
test al, al
je 0x1400cc3ae
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.libunwind:___unw_resume_cursor_p__n
mov rcx, rax
mov r8, rsi
call fcn.1400cafc0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
mov eax, 0xffffe674
add rsp, 0x20
pop rsi
ret

Function at 0x1400cc3d0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp byte [0x14012d5f1], 1
jne 0x1400cc3fa
mov al, byte [0x14012d5f2]
test al, al
jne 0x1400cc41e
jmp 0x1400cc442
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 [0x14012d5f2]
mov byte [0x14012d5f1], 1
test al, al
je 0x1400cc442
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], edi
lea rdx, str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
mov rcx, rax
mov r8, rsi
mov r9, rbx
call fcn.1400cafc0
mov rax, qword [rsi]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [rax + 0x60]
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400cc5e0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x14012d5f3], 1
jne 0x1400cc5f8
mov al, byte [0x14012d5f4]
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_UNWINDING
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
setne al
setne byte [0x14012d5f4]
mov byte [0x14012d5f3], 1
add rsp, 0x28
ret
Function at 0x1400d3d00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
add dword [rcx], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x7b
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400d3e2a
mov rdi, qword [rdi]
lea r15, [rdi + rax*8]
mov al, 1
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r14, str._null_
jmp 0x1400d3d85
mov ecx, 2
call rbx
mov edx, 6
mov r8d, 1
mov rcx, r14
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
add rdi, 8
xor eax, eax
cmp rdi, r15
je 0x1400d3e2a
mov r12, qword [rdi]
test al, 1
je 0x1400d3da0
test r12, r12
je 0x1400d3e08
mov rcx, r12
mov rdx, rsi
call fcn.1400cf180
jmp 0x1400d3d76
mov ecx, 2
call rbx
mov ecx, 0x2c
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400d3deb
xor ebp, ebp
nop
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add ebp, 1
cmp ebp, dword [rsi]
jne 0x1400d3dd0
mov byte [rsi + 4], 0
test r12, r12
je 0x1400d3d55
mov rcx, r12
mov rdx, rsi
call fcn.1400cf180
jmp 0x1400d3d72
mov ecx, 2
call rbx
mov edx, 6
mov r8d, 1
mov rcx, r14
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x1400d3d76
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x7d
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xffffffff
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400d3e60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, edx
mov rdi, rcx
mov bl, byte [rcx + 4]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test bl, bl
je 0x1400d3fea
mov ecx, 0x2c
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rdi], 0
je 0x1400d3edb
xor ebx, ebx
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop word cs:[rax + rax]
mov ecx, 2
call rsi
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add ebx, 1
cmp ebx, dword [rdi]
jne 0x1400d3ec0
mov byte [rdi + 4], 0
test ebp, ebp
je 0x1400d400c
test bpl, 1
je 0x1400d3f40
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.QualConst
mov edx, 9
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
and ebp, 0xfffffffe
je 0x1400d3fe1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, [0x14010e812]
mov edx, 3
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test bpl, 2
je 0x1400d3f95
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.QualVolatile
mov edx, 0xc
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
and ebp, 0xfffffffd
je 0x1400d3fe1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, [0x14010e812]
mov edx, 3
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test bpl, 4
je 0x1400d3fe1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.QualRestrict
mov edx, 0xc
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test ebp, 0xfffffffb
je 0x1400d3fe1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, [0x14010e812]
mov edx, 3
jmp 0x1400d4023
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14010e7b6]
mov edx, 2
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test ebp, ebp
jne 0x1400d3ee7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.QualNone
mov edx, 8
mov r8d, 1
mov r9, rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
Function at 0x1400d4040
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, edx
mov rsi, rcx
mov bl, byte [rcx + 4]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test bl, bl
je 0x1400d40e9
mov ecx, 0x2c
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400d40bb
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add edi, 1
cmp edi, dword [rsi]
jne 0x1400d40a0
mov byte [rsi + 4], 0
cmp bpl, 2
je 0x1400d4109
cmp bpl, 1
je 0x1400d411d
test bpl, bpl
jne 0x1400d414a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.FunctionRefQual::FrefQualNone
mov edx, 0x1d
jmp 0x1400d4134
lea rcx, [0x14010e7b6]
mov edx, 2
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp bpl, 2
jne 0x1400d40c5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.FunctionRefQual::FrefQualRValue
jmp 0x1400d412f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.FunctionRefQual::FrefQualLValue
mov edx, 0x1f
mov r8d, 1
mov r9, rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret