joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001115e
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001cc70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400440f6]
call fcn.140011c76
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001ccc7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001cdd3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001cd6c
cmp qword [rbp + 0x28], 0
jle 0x14001cd6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001cd0c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011bc2
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001cdc2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001cdc2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400112a3
Capabilities:
Create thread

Disassembly:
jmp 0x14001fea0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x14003b568]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x140044226]
call fcn.140011c76
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400113ca
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.140011659
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400112d5
nop
lea rcx, [rbp + 0x108]
call fcn.140011532
lea rax, [0x140011875]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400118ac
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14001ffa0
lea rcx, [rbp + 8]
call fcn.14001156e
jmp 0x14001ffb9
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400112fd
nop
lea rcx, [rbp + 8]
call fcn.140011532
lea rcx, [rbp - 0x30]
lea rdx, [0x140033340]
call fcn.140011a5f
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.14001162c
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140011744
Capabilities:
Terminate process

Disassembly:
jmp 0x140028a20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400118d9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140029700
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140029720
xor al, al
jmp 0x1400297a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140029733
xor al, al
jmp 0x1400297a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002975d
xor al, al
jmp 0x1400297a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140029771
xor al, al
jmp 0x1400297a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140029783
xor al, al
jmp 0x1400297a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002979f
xor al, al
jmp 0x1400297a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011c49
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018c10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14003b568]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400440f6]
call fcn.140011c76
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140018c76
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018c7d
mov al, 1
jmp 0x140018dd7
call fcn.14001138e
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14001138e
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011a7d
movzx eax, al
test eax, eax
je 0x140018cd8
xor al, al
jmp 0x140018dd7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x140018d3d
cmp dword [rbp + 0x194], 1
je 0x140018d48
cmp dword [rbp + 0x194], 3
je 0x140018dc6
jmp 0x140018dd5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140018d98
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140018d98
xor al, al
jmp 0x140018dd7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018db3
mov dword [rbp + 0x194], 1
jmp 0x140018dbd
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140018dd7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140018dd7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140031800]
call fcn.140011a5f
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14001162c
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x14001eb54
Capabilities:
Terminate process

Disassembly:
jmp 0x140055540
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001ee7e
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400548f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140054910
xor al, al
jmp 0x140054991
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140054923
xor al, al
jmp 0x140054991
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14005494d
xor al, al
jmp 0x140054991
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140054961
xor al, al
jmp 0x140054991
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140054973
xor al, al
jmp 0x140054991
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005498f
xor al, al
jmp 0x140054991
mov al, 1
add rsp, 0x38
ret
Function at 0x1400014d4
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call sub.msvcrt.dll_memset
lea rdx, str.RunAs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x100
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jle 0x140001595
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140001556
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x140012c00]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x1400015a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000f1e0
add rsp, 0x240
pop rbx
ret
Function at 0x1400015c4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, rdx
mov dword [rsp + 0x70], 0x40
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x218
call sub.msvcrt.dll_memset
mov r12d, 0x10e
lea rcx, [rsp + 0x70]
mov edx, r12d
mov r8, r14
call fcn.140001164
or rdi, 0xffffffffffffffff
xor r15d, r15d
mov ebx, eax
test eax, eax
jne 0x14000169b
lea r8, str.__1001
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.140001164
mov ebx, eax
test eax, eax
jne 0x14000169b
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14000165b
lea eax, [rax*2 + 2]
mov r9d, 2
mov dword [rsp + 0x28], eax
lea rdx, str.LocalizedString
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jne 0x1400017e1
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, str.REG_SZ
lea rax, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x38], rax
lea rdx, str.Elevation
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400017e1
mov rcx, qword [rsp + 0x58]
lea r9d, [rax + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enabled
mov dword [rsp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400017d0
xor edx, edx
mov dword [rbp + 0x190], 0x40
mov r8d, 0x218
lea rcx, [rbp + 0x194]
call sub.msvcrt.dll_memset
mov r8, r14
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.140001164
mov ebx, eax
test eax, eax
jne 0x1400017d0
lea r8, str.__1002
mov rdx, r12
lea rcx, [rbp + 0x190]
call fcn.140001164
mov ebx, eax
test eax, eax
jne 0x1400017d0
lea rax, [rbp + 0x190]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14000178c
mov rcx, qword [rsp + 0x58]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.IconReference
lea rax, [rbp + 0x190]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140008488
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x2b8]
sub rsp, 0x3b0
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r14d, 0x104
lea rdx, [rbp + 0x190]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
test eax, eax
jne 0x1400084f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400086f6
lea r8, [rbp + 0x190]
mov rdx, r14
lea rax, [rbp + 0x80]
sub r8, rax
lea rcx, [rbp + 0x80]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140008530
mov al, byte [r8 + rcx]
test al, al
je 0x140008530
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140008511
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x1400086f6
lea r8, str.IDC
mov rdx, r14
lea rcx, [rbp + 0x80]
call fcn.1400063b8
mov ebx, eax
test eax, eax
js 0x1400086f6
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400084d7
lea rdx, [0x14001328c]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
je 0x1400086a0
lea rdx, [0x140013290]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
je 0x1400086a0
and dword [rsp + 0x28], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov rdx, r14
lea rcx, [rbp + 0x80]
call fcn.14000609c
mov ebx, eax
test eax, eax
js 0x1400086e7
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
lea r8, [0x140013304]
mov qword [rsp + 0x20], rax
call fcn.14000609c
mov ebx, eax
test eax, eax
js 0x1400086e7
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x6c]
mov rcx, qword [rsp + 0x38]
call fcn.140006020
mov ebx, eax
test eax, eax
js 0x1400086e7
test byte [rsp + 0x40], 0x10
je 0x1400086a0
mov edx, 0x90
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
lea rcx, [rbp + 0x80]
call fcn.1400071c0
mov ebx, eax
test eax, eax
js 0x1400086e7
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [rax + rax]
test eax, eax
jne 0x14000859c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
je 0x1400086e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140009960
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
and qword [rax - 0x30], 0
lea r9, [rax - 0x28]
and dword [rax + 8], 0
and dword [rax - 0x38], 0
mov qword [rax - 0x28], rcx
xor ecx, ecx
mov qword [rax - 0x20], rdx
xor edx, edx
mov qword [rax - 0x18], r8
lea r8, [0x140009850]
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140009a01
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
jne 0x1400099ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
jmp 0x140009a1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
add rsp, 0x50
pop rbx
ret
Function at 0x14000adf4
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14000ae28
xor al, al
jmp 0x14000ae66
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14000ae39
xor al, al
jmp 0x14000ae66
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14000ae60
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14000ae60
mov al, 1
jmp 0x14000ae66
xor al, al
jmp 0x14000ae66
add rsp, 0x50
pop rbx
ret

Function at 0x14000aee8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
mov esi, 0x10000
test rax, rax
je 0x14000af10
sub rbx, rax
add rbx, rsi
cmp rbx, rdi
jae 0x14000afba
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x14000af2f
mov ebx, 0x80010000
jmp 0x14000af10
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x14000afba
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], esi
jne 0x14000af98
cmp rcx, rsi
jb 0x14000af98
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
test rax, rax
jne 0x14000afbc
jmp 0x14000af0d
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14000af10
mov rax, rsi
sub rax, rcx
add rbx, rax
jmp 0x14000af10
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14000afd4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14000b0af
mov esi, 0x10000
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x14000b024
mov ebx, 0x4fff0000
jmp 0x14000b0a6
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x14000b0af
cmp dword [rsp + 0x40], esi
jne 0x14000b08a
cmp qword [rsp + 0x38], rsi
jb 0x14000b08a
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
test rax, rax
jne 0x14000b0b1
sub rbx, rsi
jmp 0x14000b0a6
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14000b00b
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000d5b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.140001be4
lea r8, [0x1400139b8]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001164
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000d661
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000d759
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
call fcn.14000d4bc
mov esi, eax
jmp 0x14000d73f
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14000d7bc
mov esi, eax
test eax, eax
jns 0x14000d69f
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14000d480
mov rcx, rbx
call fcn.14000d550
jmp 0x14000d73f
lea r8, [0x1400139c0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140001164
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000d6e8
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14000d4bc
mov esi, eax
jmp 0x14000d692
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000d7bc
mov esi, eax
test eax, eax
jns 0x14000d71c
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14000d480
mov rcx, rdi
call fcn.14000d550
jmp 0x14000d692
mov rcx, rdi
call fcn.14000d550
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.14000d550
xor esi, esi
test esi, esi
jns 0x14000d759
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.14000d480
jmp 0x14000d75e
mov r15, r14
xor esi, esi
test esi, esi
jns 0x14000d77a
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, reloc.urlmon.dll_Ordinal_107
call fcn.14000d480
mov eax, esi
jmp 0x14000d787
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret