joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a290
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a2b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000a2c1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a2e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a2e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a322
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a3be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a35d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a39e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a3be
cmp rbx, rax
ja 0x14000a370
test rbx, rbx
je 0x14000a3be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
jo fcn.140037a5f
add byte [rax], al
enter 0x7b, 0
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add word [rax], 0xa000
invalid
Function at 0x14000a820
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a84d
xor eax, eax
jmp 0x14000a9b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a887
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a887
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000a9b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a9ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a8ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000a8f5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a9b1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a964
sub eax, 1
je 0x14000a964
cmp eax, 2
jne 0x14000a9ac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a9b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a992
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000a9ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a9b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140010b60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ad10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ade3
cmp byte [rcx + 0x71], 0
je 0x14000ade3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000addf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000ada4
sub eax, 1
je 0x14000ada8
cmp eax, 2
jne 0x14000addf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010b60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000add6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000addf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ad8c
xor al, al
jmp 0x14000ad8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010b60
add rsp, 0x60
pop rbx
ret
Function at 0x14000fff8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140010032
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140010037
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140010080
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140013660]
cmp byte [rcx + rax], 0
je 0x140010080
dec r8
sub rdx, 1
jne 0x140010066
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140010718
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140010110
mov ebx, eax
test eax, eax
jne 0x140010748
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400107ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400107a2
test al, 0x10
je 0x1400107a2
bt eax, 0xa
jae 0x14001079b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400107bc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140010797
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140010797
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400107a2
and dword [rsp + 0x3c], 0
jmp 0x1400107a7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001184c
Capabilities:
Parse pe header

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

Disassembly:
add r9, 0xc
mov qword [rsp], 0xffffffffd012d0bf
xor ebp, ebp
test r8, r8
lea rsp, [rsp + 8]
je 0x14016cc7b
jmp 0x14016cbf6
push rdi
push r10
lea rdi, [0x140165638]
mov r10d, 0x8fb209bd
add r10d, r10d
movzx r10d, byte [rdx + r10*4 - 0x7d904de8]
xor r10d, ebp
push 0x79b9901f
and r10d, 0xff
push 0x3432c02e
not word [rsp + 7]
mov r10d, dword [rdi + r10*4]
xor byte [rsp + 3], 0x81
shr ebp, 8
xor ebp, r10d
push 0xffffffffe10f3e99
inc rdx
xor ebp, 0x73011939
dec r8
not qword [rsp + 0x10]
lea rsp, [rsp + 0x18]
jne 0x14016cc00
mov r10d, 0x36384f82
not r10d
pop r10
mov edi, 0xf0b1d490
lea rdi, [rdi - 0x34540460]
lea rdi, [rdi + rdi*4 - 0x6ae1f15f]
pop rdi
call fcn.1401588c3

Function at 0x14015e739
Capabilities:
Encode data using xor

Disassembly:
lea rax, [0x14013def8]
lea rsp, [rsp + 8]
movzx r8d, byte [rbx]
push 0x342c63b6
xor r8d, ecx
and r8d, 0xff
rol dword [rsp + 1], 0x8b
push 0xffffffffc7ae372d
mov r8d, dword [rax + r8*4]
shr ecx, 8
dec byte [rsp + 2]
xor ecx, r8d
inc rbx
shr qword [rsp + 8], 0x8d
xor ecx, 0x2398f034
push 0x329b21bc
dec rdx
lea rsp, [rsp + 0x18]
jne 0x14015e745
not ecx
push 0xffffffffde27f53f
call fcn.1401616c1
push 0x25b7fe14
sar qword [rsp], 0xad
mov edx, dword [r8]
call fcn.140174649
Function at 0x140001f30
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, rdx
mov rbx, rcx
mov qword [rcx + 8], rdx
lea rdx, [rcx + 0x24]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140004210
nop
mov dword [rsp + 0xb8], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xc0]
lea rdx, str.ExtraHelperCapabilitiesFlags
lea rcx, [rsp + 0x70]
call fcn.140003bc0
mov eax, dword [rsp + 0xc0]
mov dword [rbx + 0x28], eax
mov dword [rsp + 0xb0], 1
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400041a0
nop
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140004430
test eax, eax
je 0x14000201f
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb0]
lea rdx, str.UseSetProcessDPIAware
lea rcx, [rsp + 0x40]
call fcn.140003bc0
lea rcx, [rsp + 0x40]
call fcn.140003b70
cmp dword [rsp + 0xb0], 1
jne 0x14000204b
lea rdx, str.SetProcessDPIAware
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000204b
call rax
xor edx, edx
lea rcx, str.SynTPEnhWndClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbx + 0x10], rax
mov edx, 0x8000
mov rcx, qword [rbx + 8]
call fcn.140006020
test eax, eax
jne 0x140002095
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140002700]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call fcn.140007700
mov rcx, rbx
call fcn.1400018b0
nop
lea rcx, [rsp + 0x38]
call fcn.1400042d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400042d0
mov eax, 1
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140002220
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2890
call fcn.140007990
sub rsp, rax
mov rax, qword [0x140025b20]
xor rax, rsp
mov qword [rsp + 0x2880], rax
mov rbp, r8
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000231d
lea r9, [rsp + 0x40]
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000231d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x2828
call fcn.140007a20
mov eax, dword [rsi]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [0x140019640]
lea r8, [rsp + 0x68]
mov r9d, 0x104
mov rcx, rdi
movaps xmmword [rsp + 0x2860], xmm0
mov dword [rsp + 0x50], 0xf
mov dword [rsp + 0x2870], eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x140002314
mov r8, qword [rsi + 8]
xor eax, eax
lea r9, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea edx, [rbx + 0x4a]
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x2828
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x2880]
xor rcx, rsp
call fcn.1400079f0
mov rbx, qword [rsp + 0x28c8]
add rsp, 0x2890
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x140003be9
mov r14d, dword [r9]
test rdx, rdx
je 0x140003cb3
test r8, r8
je 0x140003cb3
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140003ca4
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x140003c41
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003ca4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x140003c81
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140003ca4
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x140003c9b
cmp eax, 3
jne 0x140003ca0
cmp dword [rsp + 0x68], 4
jne 0x140003ca0
mov ebx, 1
mov eax, ebx
jmp 0x140003cb5
test rdi, rdi
je 0x140003cb3
mov dword [rsi], r14d
mov eax, 1
jmp 0x140003cb5
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140003cd0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r14, r9
mov rdi, r8
mov r15, rdx
mov r12d, esi
test rdx, rdx
je 0x140003e7f
test r8, r8
je 0x140003e7f
test r9, r9
je 0x140003e7f
mov rcx, qword [rcx + 0x10]
mov qword [r11 + 8], rbx
or rbx, 0xffffffffffffffff
mov qword [r11 + 0x18], rbp
test rcx, rcx
je 0x140003e2f
mov rbp, qword [rsp + 0x98]
mov r12d, dword [r9]
mov qword [r11 - 0x38], rcx
test rbp, rbp
je 0x140003d5c
lea rax, [r11 - 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003e2f
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbp, rbp
je 0x140003d8a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x140003dfc
mov eax, 2
mul r12
cmovo rax, rbx
mov rcx, rax
call fcn.140006674
mov rbp, rax
test rax, rax
je 0x140003df8
mov r8d, r12d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rdi
mov rcx, rbp
sub rdx, rbp
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x140003dd0
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x140003de4
mov rcx, rbp
mov dword [r14], eax
call fcn.140006714
mov ecx, dword [rsp + 0x78]
test r15d, r15d
jne 0x140003e2f
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140003e0e
cmp ecx, 7
jne 0x140003e13
mov esi, 1
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140003e7b
nop dword [rax]
cmp word [rcx + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x140003e40
lea edx, [rbx*2 + 2]
cmp edx, r12d
ja 0x140003e7b
sub rdi, rcx
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdi + rcx - 2], ax
test ax, ax
jne 0x140003e60
mov dword [r14], edx
mov eax, 1
jmp 0x140003e15
xor eax, eax
jmp 0x140003e15
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140004e60
Capabilities:
Get disk information

Disassembly:
push rbx
push rdi
sub rsp, 0x658
mov rbx, rdx
mov edi, ecx
test rdx, rdx
je 0x14000504b
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140004e80
cmp rax, 0x104
ja 0x14000504b
lea rdx, [0x140019ec4]
mov rcx, rbx
call fcn.140007ed0
test rax, rax
je 0x14000504b
mov qword [rsp + 0x670], rbp
mov qword [rsp + 0x678], rsi
mov qword [rsp + 0x680], r14
xor r14d, r14d
mov r8d, edi
xor edx, edx
mov ecx, 0x400
mov qword [rsp + 0x650], r15
mov ebp, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000503e
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000503e
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r15d, [r14 + 1]
test rax, rax
je 0x140004f3b
lea rdx, [rsp + 0x440]
mov r8d, 0x104
mov rcx, rdi
call rax
test eax, eax
cmovne ebp, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x14000503e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x230]
sub rcx, rbx
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x140004f60
lea rcx, [rsp + 0x230]
call fcn.1400084e8
lea rdx, [0x140019ec4]
lea rcx, [rsp + 0x230]
call fcn.140007ed0
lea rcx, [rsp + 0x440]
mov rbx, rax
call fcn.1400084e8
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x440]
call fcn.140007ed0
test rax, rax
je 0x140005047
mov word [rax - 2], r14w
mov word [rbx + 2], r14w
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r14w
call fcn.140007a20
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140005047
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x440]
call fcn.140008174
test eax, eax
jne 0x140005047
mov eax, r15d
mov r14, qword [rsp + 0x680]
mov rsi, qword [rsp + 0x678]
mov rbp, qword [rsp + 0x670]
mov r15, qword [rsp + 0x650]
add rsp, 0x658
pop rdi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005014
xor eax, eax
add rsp, 0x658
pop rdi
pop rbx
ret
Function at 0x140004e18
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140004ea9
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140004ea9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004ea9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140004e8d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004e87
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004e8f
add rdx, 0x28
jmp 0x140004e6c
xor edx, edx
test rdx, rdx
jne 0x140004e98
xor al, al
jmp 0x140004eaf
test dword [rdx + 0x24], 0x80000000
je 0x140004ea5
xor al, al
jmp 0x140004eaf
mov al, 1
jmp 0x140004eaf
xor al, al
jmp 0x140004eaf
add rsp, 0x18
ret
Function at 0x140002cd0
Capabilities:
Parse pe header

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

Function at 0x140008b0c
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 0x140008b7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008b7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008b7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008b7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008b7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140008b7b
cmp dword [rcx + 0xf8], 0
je 0x140008b7b
mov ecx, ebx
call fcn.140008c20
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.140008a14
nop
cmp dword [rbp + 0x20], 0
jne 0x140008bdc
call fcn.14000bf4c
cmp eax, 1
jne 0x140008bcc
xor dl, dl
jmp 0x140008bd6
call fcn.14000bf18
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140008be7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008bf0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140008b0c

Function at 0x140008cf4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008b0c
Function at 0x14000b9c0
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 0x14000b9f0
xor eax, eax
jmp 0x14000bab3
mov rbp, rbx
cmp word [rax], si
je 0x14000ba15
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000b9fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000b9f8
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.14000b8e0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14000ba56
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000b9e9
call fcn.1400095d0
mov rdi, rax
test rax, rax
jne 0x14000ba6c
xor ecx, ecx
call fcn.140009c20
jmp 0x14000ba4b
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.14000b8e0
test eax, eax
jne 0x14000ba9d
mov rcx, rdi
call fcn.140009c20
jmp 0x14000baa7
xor ecx, ecx
call fcn.140009c20
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