joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bfb
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x480
xor edi, edi
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001cd2
mov rsi, rax
lea rdi, [rsp + 0x48]
mov r8d, 0x438
mov rcx, rdi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rdi], 0x438
mov rcx, rsi
mov rdx, rdi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x140001cb7
lea rdi, [rsp + 0x78]
lea rbx, [rsp + 0x30]
lea r12, str.ScriptControl
lea r14, [rsp + 0x20]
lea r15, [rsp + 0x48]
mov rcx, rbx
mov rdx, rdi
call fcn.140001ddc
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0xd
mov rcx, rbx
mov rdx, r14
call fcn.140001e74
mov ebp, eax
test byte [rsp + 0x30], 1
je 0x140001ca3
mov rcx, qword [rsp + 0x40]
call fcn.140002310
test bpl, bpl
jne 0x140001cc4
mov rcx, rsi
mov rdx, r15
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x140001c6c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x140001cd2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x480
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140001ce7
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x28
lea rcx, str.mscoree.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001d87
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001bfb
test rax, rax
je 0x140001d87
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001d7b
mov rdi, rax
lea r9, [rsp + 0x24]
mov edx, 3
mov rcx, rax
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne sil
je 0x140001d92
mov byte [rdi + 2], 0xc3
mov word [rdi], 0xc033
lea r9, [rsp + 0x24]
mov r8d, dword [r9]
mov edx, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001d87
lea rcx, str.Succesfully_patched
jmp 0x140001d99
lea rcx, str.Could_not_get_mem_address_for__script_control_DLL
call fcn.14004bcb0
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.failed_to_set_read_execute_perms_on_the_address_of_script_control_DLL
call fcn.14004bcb0
jmp 0x140001d89
Function at 0x14000fdf0
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 0x14000ff44
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x14000ffd0
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x14000fe54
test al, 8
je 0x14000ff44
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
cmp byte [rsi + 0xa2], 0
je 0x14000fef9
mov rbx, qword [rsi + 0x20]
sub rbx, qword [rsi + 0x18]
jmp 0x14000ff26
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x14000fe81
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x140139008]
cmp eax, 0xffffffff
je 0x14000ff44
lea rdi, [rsi + 0x88]
lea r15, [rsp + 0x30]
nop dword [rax]
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [0x140139008]
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 0x14000ff3f
cmp ebx, 1
je 0x14000fe90
cmp ebx, 2
je 0x14000ff3f
mov rcx, qword [rsi + 0x78]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov edi, 0
test eax, eax
jne 0x14000ff3f
jmp 0x14000ff44
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140139008]
mov r9, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x50]
sub rbx, r9
test eax, eax
jle 0x14000ff8b
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 ebx
mov edx, ebx
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
je 0x14000ff53
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 0x14000ff64
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 0x14000ff44
mov rdx, qword [rsi + 0x18]
cmp rdx, qword [rsi + 0x20]
je 0x14000ff26
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rdx, qword [rsi + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x30]
call qword [0x140139008]
mov eax, eax
add rbx, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rbx, rax
mov bpl, 1
jmp 0x14000ff28
call fcn.14000f870
int3
Function at 0x14004b700
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.14005b660
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

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

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

Function at 0x14005b3f0
Capabilities:
Parse pe header

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

Function at 0x14005b4a0
Capabilities:
Parse pe header

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

Function at 0x14005b7c0
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.14005b660
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 0x14005bf40
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.14005c240
test al, al
je 0x14005bf7d
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.14005b240
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp fcn.14005c340
Function at 0x14005bff0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14005c240
test al, al
je 0x14005c025
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.14005b240
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14005c340

Function at 0x14005c080
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 [0x140132ec3], 1
jne 0x14005c0a5
cmp byte [0x140132ec2], 0
jne 0x14005c0c4
jmp 0x14005c0e4
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c0e4
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.14005b240
lea rax, [0x140088208]
mov qword [rsi], rax
lea rax, [0x140132518]
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 0x14005c22b
mov rcx, rsi
call fcn.14004fc50
test al, al
jne 0x14005c232
mov byte [rsi + 0x658], 1
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14005c240
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140132ec3], 1
jne 0x14005c25c
cmp byte [0x140132ec2], 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 [0x140132ec2]
mov byte [0x140132ec3], 1
add rsp, 0x28
ret

Function at 0x14005c290
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 [0x140132ec3], 1
jne 0x14005c2b3
cmp byte [0x140132ec2], 0
jne 0x14005c2d2
jmp 0x14005c2f7
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c2f7
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.14005b240
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x140139008]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x14005c32b
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x140139008]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005c340
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 [0x140132ec3], 1
jne 0x14005c364
cmp byte [0x140132ec2], 0
jne 0x14005c383
jmp 0x14005c3a8
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c3a8
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.14005b240
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
mov edx, edi
call qword [0x140139008]
mov ebp, 0xffffe672
test al, al
je 0x14005c449
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [0x140139008]
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x14005c449
mov rax, qword [rsi]
mov rax, qword [rax + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [0x140139008]
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
xor ebp, ebp
mov rcx, rsi
xor edx, edx
call qword [0x140139008]
cmp qword [rsp + 0x50], 0
je 0x14005c449
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [0x140139008]
add rax, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x20]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
mov rax, r9
call qword [0x140139008]
mov eax, ebp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14005c5c0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [0x140132ec3], 1
jne 0x14005c5dc
cmp byte [0x140132ec2], 0
jne 0x14005c5fb
jmp 0x14005c618
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c618
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.14005b240
mov rax, qword [rsi]
mov rax, qword [rax + 0x40]
mov r8, qword [0x140139008]
mov rcx, rsi
xor edx, edx
add rsp, 0x20
pop rsi
jmp r8

Function at 0x14005c6c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [0x140132ec3], 1
jne 0x14005c6e0
cmp byte [0x140132ec2], 0
jne 0x14005c6ff
jmp 0x14005c71f
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c71f
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.14005b240
mov rax, qword [rdi]
mov rax, qword [rax + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [0x140139008]
xor ecx, ecx
cmp qword [rsi + 8], 0
mov eax, 0xffffe66b
cmovne eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14005c750
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [0x140132ec3], 1
jne 0x14005c76c
cmp byte [0x140132ec2], 0
jne 0x14005c78b
jmp 0x14005c7a8
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c7a8
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.14005b240
mov rax, qword [rsi]
mov rax, qword [rax + 0x50]
mov rcx, rsi
call qword [0x140139008]
mov eax, 0xffffe674
add rsp, 0x20
pop rsi
ret

Function at 0x14005c7d0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp byte [0x140132ec3], 1
jne 0x14005c7f9
cmp byte [0x140132ec2], 0
jne 0x14005c818
jmp 0x14005c83c
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x140132ec3], 1
test rax, rax
setne byte [0x140132ec2]
je 0x14005c83c
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, r14
mov r9, rbx
call fcn.14005b240
mov rax, qword [r14]
mov rax, qword [rax + 0x60]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [0x140139008]
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 0x14005c9f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140132ec1], 1
jne 0x14005ca0c
cmp byte [0x140132ec0], 0
setne al
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 [0x140132ec0]
mov byte [0x140132ec1], 1
add rsp, 0x28
ret
Function at 0x14005f620
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov r14, qword [rdx + 8]
inc dword [rcx]
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
test r14, r14
je 0x14005f6c5
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005f66f
mov rdx, rsi
call fcn.14005dda0
cmp r14, 1
jne 0x14005f69a
jmp 0x14005f6c5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp r14, 1
je 0x14005f6c5
shl r14, 3
mov r15d, 8
nop word cs:[rax + rax]
mov rdx, qword [rbx + r15]
mov rcx, rsi
call fcn.14005f700
add r15, 8
cmp r14, r15
jne 0x14005f6b0
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
dec dword [rsi]
cmp qword [rdi + 8], 0
je 0x14005f6ea
mov byte [rsi + 4], 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14005f700
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
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 0x14005f76a
xor ebp, ebp
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
inc ebp
cmp ebp, dword [rsi]
jne 0x14005f750
mov byte [rsi + 4], 0
test rdi, rdi
je 0x14005f780
mov rcx, rdi
mov rdx, rsi
call fcn.14005dda0
jmp 0x14005f7a5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14005f7c0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r14, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400897c1]
lea r8, str.DotSuffix
mov rcx, rax
call fcn.14005b240
mov rdi, qword [r14 + 0x18]
movups xmm0, xmmword [r14 + 0x20]
movaps xmmword [rsp + 0x20], xmm0
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 0x14005f83a
xor ebp, ebp
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x14005f820
mov byte [rsi + 4], 0
test rdi, rdi
je 0x14005f850
mov rcx, rdi
mov rdx, rsi
call fcn.14005dda0
jmp 0x14005f875
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14005f8c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14005f8c0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx ebx, 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 0x14005f941
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 0x14005f93b
xor ebx, ebx
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop word cs:[rax + rax]
mov ecx, 2
call r14
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebx
cmp ebx, dword [rdi]
jne 0x14005f920
mov byte [rdi + 4], 0
jmp 0x14005f95b
lea rcx, [0x1400897da]
mov edx, 2
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rdi, qword [rsi]
mov esi, dword [rsi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esi, edi
lea rdx, str.__.s_
mov rcx, rax
mov r8d, esi
mov r9, rdi
call fcn.14005b240
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret