joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490400
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4904ca
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060fe90]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4904af
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004d7300]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x49049e
mov edi, 1
lea rsi, [0x004d7300]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00523420]
lea rsi, [0x005227d8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString

Function at 0x4a1680
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a172c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060fe90]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x4a16f3
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call sym.runtime.stringtoslicebyte
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x4a1706
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x4a1719
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x4a1703
mov byte [rax + rcx], dl
jmp 0x4a1703
mov rcx, rbx
mov rbx, rax
xor eax, eax
call sym.runtime.slicebytetostring
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp sym.internal_filepathlite.replaceStringByte
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400078e0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400078f0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140007850]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140003db0
mov rcx, qword [0x140007970]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400078d0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140003bc0
mov ebx, dword [0x14000a028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x14000a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000a020], rbp
call fcn.1400039c0
mov rax, qword [0x140007860]
mov r8, qword [0x14000a018]
mov ecx, dword [0x14000a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000a020]
call fcn.140004ea0
mov ecx, dword [0x14000a00c]
mov dword [0x14000a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400078f0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140004b60
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140007910]
mov rcx, qword [0x140007900]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140007930]
mov rcx, qword [0x140007920]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140007880]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x1400014e0
Capabilities:
Execute command

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rcx, qword [0x14000a030]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov qword [0x14000a030], rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp rax, 4
jbe 0x140001521
mov rdx, qword [0x14000a030]
add rax, rax
lea rcx, [rdx + rax - 8]
cmp word [rcx], 0x2e
je 0x140001650
lea rcx, section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
lea rcx, str.color_2
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
mov rsi, qword [0x14000a030]
mov ecx, 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rbx
lea rdx, str._Usage:__s__command___machine__args_n_n
mov r8, rsi
mov rcx, rax
lea rsi, [0x140006548]
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str.___machine__use_machine_cert_store_instead_of_current_user_n_n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str._The__command_can_be_one_of_the_following__or_just_first_letter__eg__l_:_n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str.___list_____Lists_valid_certificates_that_can_be_used_to_sign_n____________No_Arguments._n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str.___create___Creates_a_certificate_to_be_used_for_signing_n____________args:_cert_name_n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str.___sign_____Signs_files_using_a_certificate__creates_the_cert_if_necessary_n____________args:_cert_name_file_..._n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str.___export___Exports_a_certificate_to_a_file_n____________args:___CA__cert_name_file_n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str.___install__Install_a_certificate_into_an_off_line_registry_hive_n____________args:_cert_name_reg_hive_file_n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
lea rdx, str._All_commands_run_with_normal_privileges_except_the_following_require_admin_command_line:_n___machine___install_n
mov rcx, rax
call fcn.140001450
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001450
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret
cmp word [rdx + rax - 6], 0x65
jne 0x140001521
cmp word [rdx + rax - 4], 0x78
jne 0x140001521
cmp word [rdx + rax - 2], 0x65
jne 0x140001521
xor eax, eax
mov word [rcx], ax
jmp 0x140001521
Function at 0x140003180
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
mov edx, 0x40000000
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov rcx, rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003220
mov rdx, qword [rsi + 8]
lea r9, [rsp + 0x4c]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, dword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400031fa
mov eax, dword [rsp + 0x4c]
xor ebp, ebp
cmp dword [rsi + 0x10], eax
je 0x14000320b
mov rdx, rdi
lea rcx, str.Failed_to_completely_write_file__s
call fcn.1400037a0
mov ebp, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rdi
lea rcx, str.Failed_to_open_file__s
call fcn.1400037a0
mov ebp, eax
mov eax, ebp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140003bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400049d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x140003c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0c4]
mov rbx, rcx
test esi, esi
jle 0x140003d70
mov rax, qword [0x14000a0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140003c8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003d15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003c70
mov rcx, rbx
call fcn.1400046b0
mov rdi, rax
test rax, rax
je 0x140003d92
mov rax, qword [0x14000a0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400047f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003d77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140003d0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003d20
add dword [0x14000a0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003bd0
nop dword [rax]
xor esi, esi
jmp 0x140003c98
mov rax, qword [0x14000a0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003bd0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003bd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004320
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140007820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400046d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400046d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400046d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000472d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140004724
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400046d0
add rax, 0x28
cmp rax, r9
jne 0x140004710
xor eax, eax
ret

Function at 0x140004730
Capabilities:
Parse pe header

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

Function at 0x1400047f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007820]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000480f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004818
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002930
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
movabs rax, 0xc2b2ae3d27d4eb4f
movabs rdx, 0x9e3779b185ebca87
movabs r10, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
mov r9d, dword [rcx + 0x48]
add r9, rcx
add r9, 0x28
mov rsi, qword [rcx]
cmp rsi, 0x20
jb 0x140002a09
mov r14, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov r11, qword [rcx + 0x20]
mov r15, r14
rol r15, 1
mov r12, rbx
rol r12, 7
add r12, r15
mov r15, rdi
rol r15, 0xc
mov r13, r11
rol r13, 0x12
add r13, r15
add r13, r12
imul r14, rax
rol r14, 0x1f
imul r14, rdx
xor r14, r13
imul r14, rdx
add r14, r10
imul rbx, rax
rol rbx, 0x1f
imul rbx, rdx
xor rbx, r14
imul rbx, rdx
imul rdi, rax
rol rdi, 0x1f
add rbx, r10
imul rdi, rdx
xor rdi, rbx
imul rdi, rdx
add rdi, r10
imul r11, rax
rol r11, 0x1f
imul r11, rdx
xor r11, rdi
imul r11, rdx
add r11, r10
jmp 0x140002a10
mov r11, qword [rcx + 0x18]
add r11, r8
lea rdi, [rcx + 0x28]
add r11, rsi
add rcx, 0x30
cmp rcx, r9
jbe 0x140002a30
mov rsi, r11
mov rbx, rdi
jmp 0x140002a60
mov rsi, qword [rdi]
imul rsi, rax
rol rsi, 0x1f
imul rsi, rdx
xor rsi, r11
rol rsi, 0x1b
imul rsi, rdx
add rsi, r10
lea rbx, [rdi + 8]
add rdi, 0x10
mov r11, rsi
cmp rdi, r9
mov rdi, rbx
jbe 0x140002a30
movabs rcx, 0x165667b19e3779f9
lea r10, [rbx + 4]
cmp r10, r9
jbe 0x140002a7d
mov r10, rbx
cmp r10, r9
jb 0x140002aa0
jmp 0x140002ac0
mov r11d, dword [rbx]
imul r11, rdx
xor r11, rsi
rol r11, 0x17
imul r11, rax
add r11, rcx
mov rsi, r11
cmp r10, r9
jae 0x140002ac0
nop word [rax + rax]
movzx r11d, byte [r10]
imul r11, r8
xor r11, rsi
rol r11, 0xb
imul r11, rdx
inc r10
mov rsi, r11
cmp r10, r9
jb 0x140002aa0
jmp 0x140002ac3
mov r11, rsi
mov rdx, r11
shr rdx, 0x21
xor rdx, r11
imul rdx, rax
mov r8, rdx
shr r8, 0x1d
xor r8, rdx
imul r8, rcx
mov rax, r8
shr rax, 0x20
xor rax, r8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140012130
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov word [rsp + 0x30], 0
movzx eax, byte [rcx]
test al, al
je 0x1400121f6
mov rdi, rcx
mov r15d, 0x28
lea r12, [rsp + 0x30]
lea rbx, [rsp + 0x2a]
lea r14, [rsp + 0x2e]
nop
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.14001a66c
cmp rax, 1
jne 0x140012226
cmp word [r12], 0
mov rcx, r15
mov rax, r12
je 0x1400121d1
mov rdx, r12
mov rcx, r15
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400121c0
test rcx, rcx
je 0x140012226
movzx ecx, word [rsp + 0x2a]
mov word [rax], cx
mov word [rax + 2], 0
add r12, 2
dec r15
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140012180
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140014070
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14001a5f0
int3
Function at 0x140012ae0
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003daf8]
test rcx, rcx
je 0x140012b4a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012b3d
mov rcx, qword [0x14003daf8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003daf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140040340], 1
jne 0x140012bf7
mov rbx, qword [0x14002e060]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002e050]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002e040]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002e030]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003db10]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140012bf7
and eax, 0x10
je 0x140012bf7
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140012bc0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014070
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140013eb0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140014010
sub rsp, rax
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003db00]
test eax, eax
je 0x140013ee5
test eax, eax
jg 0x140013f2d
jmp 0x140013f62
lea rdx, [0x140034436]
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400123e0
test al, al
je 0x140013fea
lea rcx, [rsp + 0x20]
call fcn.14001a314
movsxd rcx, dword [0x14003db00]
lea rdx, [0x140042b80]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003db00], eax
test eax, eax
jle 0x140013f62
lea rdi, [0x140042b80]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001af70
test eax, eax
je 0x140013fcb
inc rbx
movsxd rax, dword [0x14003db00]
add rdi, 8
cmp rbx, rax
jl 0x140013f40
mov rcx, rsi
call fcn.14001afa8
cmp rax, 2
jne 0x140013f79
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x140013fcd
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140013f98
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x140013fcd
cmp dword [0x14003db00], 0x3ff
jg 0x140013fcd
mov rcx, rsi
call fcn.14001a314
movsxd rcx, dword [0x14003db00]
lea rdx, [0x140042b80]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003db00], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014070
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140034436]
call fcn.140013400
int3

Function at 0x1400147e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001482a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001482a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001482a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001482a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001482a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001482c
xor al, al
add rsp, 0x28
ret
Function at 0x1400190e0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019228
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140019297
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019297
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019297
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019297
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019297
cmp dword [rcx + 0x84], 0xe
jbe 0x140019297
cmp dword [rcx + 0xf8], 0
je 0x140019297
mov ecx, ebx
call fcn.140019160
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400193bc
nop
cmp dword [rbp + 0x20], 0
je 0x1400192e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400191f4
int3

Function at 0x140019228
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019228
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140019297
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019297
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019297
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019297
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019297
cmp dword [rcx + 0x84], 0xe
jbe 0x140019297
cmp dword [rcx + 0xf8], 0
je 0x140019297
mov ecx, ebx
call fcn.140019160
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400193bc
nop
cmp dword [rbp + 0x20], 0
je 0x1400192e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400191f4
int3

Function at 0x14001b430
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b458
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b458
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140020cdc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140020d63
mov rsi, rbx
cmp word [rax], bp
je 0x140020d22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140020d0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140020d08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e204
mov rdi, rax
test rax, rax
je 0x140020d50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140029f40
mov rbp, rdi
xor ecx, ecx
call fcn.14001d2b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret