joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r8
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov r14, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dc30]
mov r8d, 0x208
test eax, eax
jne 0x14000523a
mov qword [rsp + 0x58], rdi
call fcn.14001c5a0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x14002de50]
mov r9d, 0xc0
mov qword [rsp + 0x28], rbx
mov r8, r14
mov dword [rsp + 0x20], 0xc4
lea rdx, [0x14002dc36]
lea rcx, str._ws_ws_n_c_c__ws___
call fcn.140001010
xor edi, edi
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140005174
test rax, rax
je 0x140005202
mov qword [rsp + 0x98], rsi
mov rcx, rdi
mov qword [rsp + 0x50], r15
lea r15, [0x14002cab0]
nop dword [rax]
lea rsi, [rbx + rcx*2]
mov edx, 0x80
movzx ecx, word [rsi]
call fcn.14000cc48
test eax, eax
je 0x1400051db
call fcn.140009880
cdqe
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x1400051c3
xor edx, edx
div rcx
movzx eax, word [r15 + rdx*2]
mov word [rsi], ax
inc edi
mov rax, 0xffffffffffffffff
mov ecx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400051e6
cmp rcx, rax
jb 0x1400051a0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov eax, dword [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, rbx
lea rcx, str._ws_n_n
call fcn.140001010
mov rdi, qword [rsp + 0x58]
jmp 0x14000527a
call fcn.14001c5a0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x14002de50]
mov r8, r14
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006210
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret
Function at 0x140005290
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
mov eax, 0x2050
call fcn.14001c2b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlSystemInformation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
je 0x140005347
mov r8d, 0x208
mov dword [rsp + 0x38], 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, 0xffffffff80000002
call qword [0x14002de50]
lea r8, str.SYSTEMCurrentControlSetControlSystemInformation
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x14000552b
mov qword [rsp + 0x2060], rsi
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov r8d, 0x1ffe
call fcn.14001c5a0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1ffe
mov qword [rsp + 0x28], rax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400054bf
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140005425
mov qword [rsp + 0x2068], rdi
mov qword [rsp + 0x2070], r14
lea r14, [0x14002cab0]
mov eax, ebx
lea rdi, [rsp + 0x40]
movzx ecx, word [rdi + rax*2]
lea rdi, [rdi + rax*2]
mov edx, 0x80
call fcn.14000cc48
test eax, eax
je 0x14000540b
call fcn.140009880
cdqe
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x1400053f0
dec rcx
xor edx, edx
div rcx
movzx eax, word [r14 + rdx*2]
mov word [rdi], ax
mov eax, dword [rsp + 0x38]
inc ebx
cmp ebx, eax
jb 0x1400053c1
mov r14, qword [rsp + 0x2070]
mov rdi, qword [rsp + 0x2068]
mov dword [rsp + 0x28], eax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
mov r9d, 7
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002de50]
mov eax, dword [rsp + 0x38]
lea r8, str.ComputerHardwareIds
mov dword [rsp + 0x28], eax
lea rdx, [0x14002dc36]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
lea rcx, str._ws_ws_n_c_c_multi_string_of_length__d_n_n
call fcn.140001010
jmp 0x14000551a
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002de50]
lea r8, str.ComputerHardwareIds
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140006210
add rsp, 0x2050
pop rbx
ret
Function at 0x140005550
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
xor r8d, r8d
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400055f2
xor edx, edx
mov dword [rsp + 0x38], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r8, rsi
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x1400056e4
mov rbx, qword [rsp + 0x30]
call fcn.140009880
mov dword [rsp + 0x40], eax
call fcn.140009880
mov dword [rsp + 0x44], eax
mov r9d, 0xb
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x38], 0x208
lea rcx, [0x14002dc30]
mov r8d, 0x208
test eax, eax
jne 0x14000569b
call fcn.14001c5a0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rdi
lea rdx, [0x14002dc36]
lea rcx, str._ws_ws_n_c_c_qword_n_n
call fcn.140001010
jmp 0x1400056db
call fcn.14001c5a0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r8, rdi
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_write:__ws_ws_n_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006210
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, r8
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400057a4
xor edx, edx
mov dword [rsp + 0x38], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rdi
call qword [0x14002de50]
mov r8, rsi
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x140005918
mov rsi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rcx, rsi
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000582e
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002de50]
mov r8, rbp
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_query_size_of:__ws_ws_n_n
call fcn.140001010
jmp 0x14000590f
mov ecx, dword [rsp + 0x38]
call fcn.14000ccd0
mov rdi, rax
test rax, rax
jne 0x140005850
lea rcx, str.Failed_to_allocate_buffer_for_SpoofBinary_n_n
call fcn.140001010
jmp 0x14000590f
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14000587c
call fcn.140009880
and eax, 0x800000ff
jge 0x14000586d
dec eax
or eax, 0xffffff00
inc eax
mov ecx, ebx
inc ebx
mov byte [rcx + rdi], al
mov eax, dword [rsp + 0x38]
cmp ebx, eax
jb 0x140005858
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call fcn.14000ccc0
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002de50]
mov eax, dword [rsp + 0x38]
lea rdx, [0x14002dc36]
mov dword [rsp + 0x28], eax
lea rcx, str._ws_ws_n_c_c_binary_of_length__d_n_n
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rbp
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006210
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005940
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov qword [rsp + 0x50], 0
mov rdi, rdx
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, 0x3fd
jne 0x1400059bc
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140005a1c
xor edx, edx
mov dword [rsp + 0x58], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r8, rsi
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_create_key:__ws_ws_n_n
call fcn.140001010
jmp 0x140005b49
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
test eax, eax
jne 0x140005ae7
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor edx, edx
mov dword [rsp + 0x58], 0x208
lea rcx, [0x14002dc30]
mov r8d, 0x208
test eax, eax
jne 0x140005ab4
call fcn.14001c5a0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r9d, 0xc0
mov qword [rsp + 0x28], rsi
mov r8, rdi
mov dword [rsp + 0x20], 0xc4
lea rdx, [0x14002dc36]
lea rcx, str._ws_ws_n_c_c_renamed_to__ws_n_n
call fcn.140001010
jmp 0x140005b3e
call fcn.14001c5a0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
lea rcx, str.Failed_to_delete_key:__ws_ws_n_n
jmp 0x140005b2f
xor edx, edx
mov dword [rsp + 0x58], 0x208
mov r8d, 0x208
lea rcx, [0x14002dc30]
call fcn.14001c5a0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
lea rcx, str.Failed_to_copy_key:__ws_ws_n_n
mov r8, rdi
lea rdx, [0x14002dc36]
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006210
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005b60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 2
je 0x140005c39
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dc30]
mov r8d, 0x208
test eax, eax
jne 0x140005bf9
call fcn.14001c5a0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rdi
lea rdx, [0x14002dc36]
lea rcx, str._ws_ws_n_c_c_deleted_n_n
call fcn.140001010
jmp 0x140005c39
call fcn.14001c5a0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r8, rdi
lea rdx, [0x14002dc36]
lea rcx, str.Failed_to_delete_value:__ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006210
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140005c60
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, 2
je 0x140005d42
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dc30]
mov r8d, 0x208
test eax, eax
jne 0x140005cff
call fcn.14001c5a0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r9, rsi
mov dword [rsp + 0x28], 0xc4
mov r8, rdi
mov dword [rsp + 0x20], 0xc0
lea rdx, [0x14002dc36]
lea rcx, str._ws_ws_ws_n_c_c_deleted_n_n
call fcn.140001010
jmp 0x140005d42
call fcn.14001c5a0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dc30]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002de50]
mov r9, rsi
lea rdx, [0x14002dc36]
mov r8, rdi
lea rcx, str.Failed_to_delete_value:__ws_ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006210
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400060a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x208
call fcn.14001c5a0
mov r8, rdi
lea rdx, str._ws
lea rcx, [rsp + 0x480]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call fcn.14001c5a0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.14001c5a0
lea r9, [rsp + 0x4c]
mov r8, rdi
lea rdx, str._ws_ws
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x140006179
test ax, ax
je 0x1400061b3
cmp cx, cx
jne 0x140006179
cmp ax, cx
jne 0x140006179
cmp word [rsp + 0x50], 0
je 0x1400061b3
test byte [rsp + 0x20], 0x10
lea rdx, str.desktop.ini
je 0x140006196
lea rcx, [rsp + 0x270]
call fcn.1400060a0
jmp 0x1400061b3
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400061b3
lea rcx, [rsp + 0x270]
call fcn.140005d60
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006120
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140006210
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x6a0
pop rdi
ret

Function at 0x140006ad0
Capabilities:
Parse pe header

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

Disassembly:
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 0x14000d81b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d81b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d81b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d81b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d81b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d81b
cmp dword [rcx + 0xf8], 0
je 0x14000d81b
mov ecx, ebx
call fcn.14000d8c0
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.14000d6b4
nop
cmp dword [rbp + 0x20], 0
jne 0x14000d87c
call fcn.1400145f0
cmp eax, 1
jne 0x14000d86c
xor dl, dl
jmp 0x14000d876
call fcn.1400145bc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000d887
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d890
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000d7ac

Function at 0x14000d994
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d7ac
Function at 0x140013fac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013fdc
xor eax, eax
jmp 0x14001409f
mov rbp, rbx
cmp word [rax], si
je 0x140014001
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013fe8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013fe4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013ecc
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140014042
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013fd5
call fcn.14000fc50
mov rdi, rax
test rax, rax
jne 0x140014058
xor ecx, ecx
call fcn.14000edc0
jmp 0x140014037
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013ecc
test eax, eax
jne 0x140014089
mov rcx, rdi
call fcn.14000edc0
jmp 0x140014093
xor ecx, ecx
call fcn.14000edc0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001835c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140018372
mov al, 1
jmp 0x1400183de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018383
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400183dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400148cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400183dc
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400183dc
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400183dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400183de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140019ba4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140009a6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140019c2e
cmp byte [rbp - 0x21], r15b
je 0x140019c29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019c64
call fcn.14000f060
test eax, eax
jne 0x140019c50
cmp byte [rbp - 0x21], r15b
je 0x140019c48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019c64
cmp byte [rbp - 0x21], r15b
je 0x140019c61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400124a0
test eax, eax
jne 0x140019d04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009a6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140019ca3
cmp byte [rbp - 0x21], r15b
je 0x140019cd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140019cd8
call fcn.14000f060
test eax, eax
jne 0x140019cc4
cmp byte [rbp - 0x21], r15b
je 0x140019cbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140019cd8
cmp byte [rbp - 0x21], r15b
je 0x140019cd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400124a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019d04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140019d07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019d15
mov rcx, rdi
call fcn.14000edc0
cmp byte [rbp + 0x3f], r15b
je 0x140019d24
mov rcx, qword [rbp + 0x27]
call fcn.14000edc0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001c140
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001c168
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001c168
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret