joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov dword [rax], 1
mov rax, qword [0x140005550]
mov dword [rax], 1
mov rax, qword [0x140005520]
mov dword [rax], 1
mov rax, qword [0x1400053d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001bd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002802
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000289a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000287e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002872
cmp qword [rbp - 0x10], 0
je 0x140002872
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002838
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000289b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002100
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp], rax
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor eax, eax
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rsi, rcx
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0xc], eax
movups xmmword [rbp - 0x5c], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x68], xmm0
jb 0x140002167
mov rsi, qword [rcx]
mov rbx, qword [rcx + 0x10]
movabs rdi, 0x7ffffffffffffffe
cmp rbx, rdi
ja 0x14000234c
mov qword [rsp + 0x150], r15
xor r15d, r15d
cmp rbx, 8
jae 0x1400021aa
mov eax, 7
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rax
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x68], xmm0
jmp 0x14000225b
mov rax, rbx
or rax, 7
cmp rax, rdi
jbe 0x1400021c6
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400021f8
mov ecx, 0xa
mov rdi, rax
cmp rax, rcx
movabs rax, 0x7fffffffffffffff
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, rax
ja 0x140002352
add rcx, rcx
cmp rcx, 0x1000
jb 0x140002227
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002352
mov rcx, rax
call fcn.140006bd0
mov rcx, rax
test rax, rax
je 0x14000231b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002236
test rcx, rcx
je 0x140002233
call fcn.140006bd0
jmp 0x140002236
mov rax, r15
lea r8, [rbx*2 + 2]
mov qword [rsp + 0x68], rax
mov rdx, rsi
mov qword [rsp + 0x78], rbx
mov rcx, rax
mov qword [rbp - 0x80], rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x80]
cmp rax, 8
lea rdx, [rsp + 0x68]
lea rax, [rsp + 0x50]
cmovae rdx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400022a7
xor bl, bl
jmp 0x1400022e3
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140002327
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002322
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002322
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c0c
mov r15, qword [rsp + 0x150]
movzx eax, bl
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140006a90
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3
Function at 0x140004040
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004068
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000408e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004090
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400040e9
test ecx, ecx
jle 0x1400040c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400040e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400040e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140004110
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 0x140004132
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004148
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 0x140004164
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004166
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400041a2
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 0x14000423e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400041dd
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 0x14000421e
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 0x14000423e
cmp rbx, rax
ja 0x1400041f0
test rbx, rbx
je 0x14000423e
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
Function at 0x140004660
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000468d
xor eax, eax
jmp 0x1400047f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400046c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400046c7
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 0x1400047f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400047ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000470a
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 0x140004735
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 0x1400047f1
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 0x1400047a4
sub eax, 1
je 0x1400047a4
cmp eax, 2
jne 0x1400047ec
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 0x1400047f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400047d2
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 0x1400047ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400047f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006a90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004b60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004c33
cmp byte [rcx + 0x71], 0
je 0x140004c33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004c2f
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 0x140004bf4
sub eax, 1
je 0x140004bf8
cmp eax, 2
jne 0x140004c2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006a90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004c26
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 0x140004c2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004bdc
xor al, al
jmp 0x140004bdc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006a90
add rsp, 0x60
pop rbx
ret
Function at 0x140005e70
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x170], rax
movzx ebx, cl
mov dword [rsp + 0x50], 0x11c
xor edi, edi
mov qword [rsp + 0x5c], rdi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x64]
call sub.VCRUNTIME140.dll_memset
mov word [rsp + 0x166], di
xor eax, eax
mov dword [rsp + 0x168], eax
mov r8b, 3
lea edx, [rdi + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov rcx, rax
mov r8b, 3
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov rcx, rax
mov r8b, 3
lea edx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rsp + 0x54], 0xa
mov word [rsp + 0x164], di
mov r8, rax
lea edx, [rdi + 0x23]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140005f60
cmp bl, 1
jne 0x140005f59
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 0x43]
lea rdx, str.You_are_on_Windows_10__please_make_sure_you_enabled_developer_mode_
lea rcx, [rsp + 0x20]
call fcn.140001a90
lea rcx, [rsp + 0x20]
call fcn.1400013d0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov al, 1
jmp 0x140005feb
mov dword [rsp + 0x48], edi
lea rax, str.powershell__Command_if___Get_ItemPropertyValue__Path_HKLM:SOFTWAREMicrosoftWindowsCurrentVersionAppModelUnlock__Name_AllowDevelopmentWithoutDevLicense___eq_0___Write_Output_Developer_Mode_is_already_disabled.__else__Set_ItemProperty__Path_HKLM:SOFTWAREMicrosoftWindowsCurrentVersionAppModelUnlock__Name_AllowDevelopmentWithoutDevLicense__Value_0__
lea rdx, str.powershell__Command_if___Get_ItemPropertyValue__Path_HKLM:SOFTWAREMicrosoftWindowsCurrentVersionAppModelUnlock__Name_AllowDevelopmentWithoutDevLicense___eq_1___Write_Output_Developer_Mode_is_already_enabled.__else__Set_ItemProperty__Path_HKLM:SOFTWAREMicrosoftWindowsCurrentVersionAppModelUnlock__Name_AllowDevelopmentWithoutDevLicense__Value_1__
test bl, bl
cmove rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004940
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140002100
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005fda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005fd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c0c
test bl, bl
je 0x140005fe9
cmp dword [rsp + 0x48], 0
je 0x140005f59
xor al, al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140006a90
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rdi
ret
Function at 0x140006010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor dil, dil
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14000604b
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000605f
mov edi, eax
shr edi, 4
and dil, 1
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x14000621e
cmp qword [rbx + 0x18], 0x10
jb 0x140006084
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1400088c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x40]
call fcn.140005ba0
nop
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400060b9
mov r9, qword [rsi]
mov rsi, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140006106
lea rax, [rcx + rsi]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
lea rax, [rsp + 0x40]
jmp 0x140006118
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140005600
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000618d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006188
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006188
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c0c
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [r14], dil
cmp eax, 0xffffffff
setne al
mov byte [r14 + 1], al
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x1400061f7
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400061f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c0c
mov rax, r14
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006a90
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret
call fcn.1400011b0
int3
Function at 0x140007544
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000758e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000758e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000758e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000758e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000758e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007590
xor al, al
add rsp, 0x28
ret
Function at 0x1400011e0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
mov rbp, rdx
lea rdx, [rax - 0x18]
mov rdi, r9
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x140001231
test rcx, rcx
je 0x140001231
mov r9, rdi
mov r8, rbp
mov rdx, rsi
call fcn.140001250
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001348
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
mov rbp, rdx
lea rdx, [rax - 0x18]
mov rdi, r9
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x140001399
test rcx, rcx
je 0x140001399
mov r9, rdi
mov r8, rbp
mov rdx, rsi
call fcn.1400013b8
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001950
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov dword [0x140042038], 0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [0x140042038]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov eax, dword [0x140042038]
test eax, eax
jle 0x140001af5
test rdi, rdi
je 0x140001af5
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, 1
xor esi, esi
mov r12d, 0xffffffff
nop dword [rax + rax]
mov r8, qword [rdi + rbx*8 - 8]
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r9d, r12d
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
call rbp
add esi, eax
mov eax, dword [0x140042038]
mov edx, ebx
add rbx, 1
cmp edx, eax
jl 0x1400019c0
add eax, 1
movsxd rdx, esi
cdqe
lea rcx, [rdx + rax*8]
call sub.avutil_55.dll_av_mallocz
test rax, rax
mov r13, rax
mov qword [0x140042040], rax
mov r12d, dword [0x140042038]
je 0x140001b10
test r12d, r12d
jle 0x140001b30
add r12d, 1
mov rdx, r13
xor r15d, r15d
movsxd r12, r12d
xor ebx, ebx
mov r14d, 0xffffffff
lea rax, [r12*8]
xor r12d, r12d
mov qword [rsp + 0x48], rax
jmp 0x140001a68
mov rdx, qword [0x140042040]
movsxd rax, ebx
add rax, qword [rsp + 0x48]
mov r8, qword [rdi + r12]
mov r9d, r14d
mov ecx, 0xfde9
add r15d, 1
add rax, r13
mov qword [rdx + r12], rax
mov edx, esi
mov qword [rsp + 0x38], 0
sub edx, ebx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], edx
add r12, 8
xor edx, edx
call rbp
add ebx, eax
cmp r15d, dword [0x140042038]
jl 0x140001a61
mov r13, qword [0x140042040]
movsxd r11, r15d
shl r11, 3
mov qword [r13 + r11], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x140042038]
mov rsi, qword [rsp + 0x50]
mov dword [rsi], eax
mov rax, qword [0x140042040]
mov rsi, qword [rsp + 0x58]
mov qword [rsi], rax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LocalFree]
xor r11d, r11d
jmp 0x140001ac7