joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800312b0
Capabilities:
Enumerate process modules

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x260
mov rax, qword [0x18007f080]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r12, rdx
lea r9, [rsp + 0x20]
xor edi, edi
xor edx, edx
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x1800312f6
xor eax, eax
jmp 0x1800313ff
mov qword [rsp + 0x290], rbx
mov eax, 8
mov qword [rsp + 0x258], rsi
mov esi, dword [rsp + 0x20]
shr esi, 3
mov ecx, esi
mul rcx
mov rcx, qword [0x180085850]
mov rbx, rax
mov qword [rsp + 0x250], r14
mov rax, 0xffffffffffffffff
cmovo rbx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x18003141c
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.ucrtbase.dll_memset
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1800313d2
mov ebx, edi
test esi, esi
je 0x1800313d2
mov r12, qword [r12]
mov qword [rsp + 0x298], rbp
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea r8, [rsp + 0x30]
mov r9d, 0x104
mov rcx, r15
mov rbp, qword [r14 + rax*8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x1800313c7
inc ebx
cmp ebx, esi
jb 0x180031390
jmp 0x1800313ca
mov rdi, rbp
mov rbp, qword [rsp + 0x298]
mov rcx, qword [0x180085850]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x258]
mov rax, rdi
mov rbx, qword [rsp + 0x290]
mov r14, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18003efb0
add rsp, 0x260
pop r15
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x278]
call fcn.18000b570
int3
Function at 0x18003a1a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.ucrtbase.dll_memset
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18003a1ec
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18003a2ba
cmp dword [rsp + 0x60], 0x1000
jne 0x18003a211
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18003a211
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x18003a223
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18003a2ba
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18003a24b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18003a2ba
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18003a280
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18003a2ba
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18003a29c
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18003a2ba
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
jmp 0x18003a2ba
add rsp, 0x78
ret

Function at 0x18003a420
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18003a640
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18003a527
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18003a484
mov rax, qword [0x18007f008]
cmp qword [rsp + 0x20], rax
ja 0x18003a484
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18003a446
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.ucrtbase.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18003a4b3
jmp 0x18003a527
cmp dword [rsp + 0x50], 0x10000
jne 0x18003a50a
cmp qword [rsp + 0x48], 0x10000
jb 0x18003a50a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003a4f8
mov rax, qword [rsp + 0x28]
jmp 0x18003a529
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18003a522
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18003a640
mov qword [rsp + 0x20], rax
jmp 0x18003a446
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003a530
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18003a680
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18003a633
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18003a58b
mov rax, qword [0x18007f008]
cmp qword [rsp + 0x20], rax
ja 0x18003a58b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18003a54d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.ucrtbase.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18003a5ba
jmp 0x18003a633
cmp dword [rsp + 0x50], 0x10000
jne 0x18003a611
cmp qword [rsp + 0x48], 0x10000
jb 0x18003a611
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003a5ff
mov rax, qword [rsp + 0x28]
jmp 0x18003a635
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18003a62e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18003a680
mov qword [rsp + 0x20], rax
jmp 0x18003a54d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003a6d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18003ac60
mov qword [rsp + 0x28], 0
cmp qword [0x180084778], 0
jne 0x18003a718
cmp qword [0x180084770], 0
je 0x18003a718
mov rax, qword [0x180084770]
mov qword [0x180084778], rax
cmp qword [0x180084778], 0
je 0x18003a7be
mov rax, qword [0x180084778]
cmp qword [rax + 0x10], 0
je 0x18003a7be
mov rax, qword [0x180084778]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003a7be
mov rax, qword [0x180084778]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003a7be
mov rax, qword [0x180084778]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18003a784
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18003a78b
xor eax, eax
jmp 0x18003a939
mov rax, qword [0x180084778]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.ucrtbase.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18003a939
mov rax, qword [0x180084770]
mov qword [0x180084778], rax
jmp 0x18003a7e0
mov rax, qword [0x180084778]
mov rax, qword [rax + 8]
mov qword [0x180084778], rax
cmp qword [0x180084778], 0
je 0x18003a82d
cmp qword [0x180084778], 0
je 0x18003a82b
mov rax, qword [0x180084778]
cmp qword [rax + 0x10], 0
je 0x18003a82b
mov rax, qword [0x180084778]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003a82b
mov rax, qword [0x180084778]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003a82b
jmp 0x18003a75c
jmp 0x18003a7ce
mov rcx, qword [rsp + 0x60]
call fcn.18003cb10
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18003a940
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18003a937
mov rax, qword [rsp + 0x48]
mov qword [0x180084778], rax
mov rax, qword [0x180084778]
mov dword [rax], 0x52727464
mov rax, qword [0x180084778]
mov qword [rax + 0x10], 0
mov rax, qword [0x180084778]
mov rcx, qword [0x180084770]
mov qword [rax + 8], rcx
mov rax, qword [0x180084778]
mov qword [0x180084770], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180084778]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18003a8e8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18003a922
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18003a8de
mov rax, qword [0x180084778]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18003a75c
xor eax, eax
add rsp, 0x58
ret
Function at 0x14000df90
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov rax, qword [0x140034180]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x490], 0xffffffffffffffff
je 0x14000e025
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x490]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x14000dfec
mov rax, qword [rsp + 0x20]
jmp 0x14000e02a
mov rdx, qword [rsp + 0x498]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000e00f
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
jmp 0x14000e025
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x490]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x14000dfec
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140026650
add rsp, 0x488
ret
Function at 0x14000e3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14000e40f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcess_failed:_0x_08X_n
call fcn.140015830
xor al, al
add rsp, 0x38
pop rdi
pop rsi
ret
mov qword [rsp + 0x58], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbp
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14000e420
add rbx, rbx
mov dword [rsp + 0x20], 0x40
mov r8, rbx
mov r9d, 0x3000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x14000e47e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAllocEx_failed:_0x_08X_n
call fcn.140015830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000e4b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WriteProcessMemory_failed:_0x_08X_n
call fcn.140015830
jmp 0x14000e4da
lea r8, str.LoadLibraryW
mov rcx, rdi
lea rdx, str.kernel32.dll
call fcn.14000e050
test rax, rax
jne 0x14000e50b
lea rcx, str.Cant_find_LoadLibrary_n
call fcn.140015830
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], 0
mov r8, rbp
mov rdx, rax
call fcn.14000e5a0
mov rcx, rdi
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x14000e578
lea rcx, str.StartRoutine_failed_n
call fcn.140015830
mov edx, dword [rsp + 0x50]
lea rcx, str.LastWin32Error:_0x_08X_n
call fcn.140015830
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov rdx, qword [rsp + 0x60]
lea rcx, str.Success__LoadLibrary_returned_0x_p_n
call fcn.140015830
mov rbx, qword [rsp + 0x58]
mov al, 1
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14000e920
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140034180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
mov dword [rsp + 0xa0], 0x1c
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32First
nop
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000eab7
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0xac], eax
jne 0x14000eab2
lea rdx, str.NtQueryInformationThread
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000e9e7
xor al, al
jmp 0x14000eac4
mov r8d, dword [rsp + 0xa8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x58]
mov edx, 9
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x50]
mov dword [rsp + 0x4c], eax
mov r9d, 0x30
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14000eab2
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0x60], rax
jne 0x14000eab2
lea rdx, str.Suspending_protection_thread
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001870
mov qword [rsp + 0x68], rax
lea rdx, [0x140009e00]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000eac4
jmp 0x14000e990
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140026650
add rsp, 0xd0
pop rdi
ret
Function at 0x14000f440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140034180]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000f47d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000f484
mov al, 1
jmp 0x14000f5dc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140011f90
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140011f90
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140011fb0
movzx eax, al
test eax, eax
je 0x14000f4d9
xor al, al
jmp 0x14000f5dc
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000f549
cmp dword [rsp + 0x30], 1
je 0x14000f555
cmp dword [rsp + 0x30], 3
je 0x14000f5ca
jmp 0x14000f5da
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000f5a1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14000f5a1
xor al, al
jmp 0x14000f5dc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000f5bb
mov dword [rsp + 0x34], 1
jmp 0x14000f5c3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000f5dc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000f5dc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140026650
add rsp, 0xa8
ret
Function at 0x140013a00
Capabilities:
Create process on windows
Set environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov dword [rsp + 0xa0], 0x68
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, str.RUNASINVOKER
lea rcx, str.__COMPAT_LAYER
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140013b49
lea rdx, str.Failed_to_start_the_launcher._Exiting...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001870
mov qword [rsp + 0x60], rax
lea rdx, [0x140009e00]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001870
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov qword [rsp + 0x70], rax
lea rdx, [0x140009e00]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov dword [rsp + 0x58], 3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x90]
call fcn.140001330
mov rcx, rax
call fcn.14000adb0
nop
xor al, al
jmp 0x140013b64
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x110
pop rdi
ret
Function at 0x140014720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140014745
xor eax, eax
jmp 0x14001490c
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14001476e
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call 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]
jmp 0x14001490c
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14001480e
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000ab40
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140011270
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1400148fc
mov rcx, qword [rsp + 0x70]
call fcn.14000fd50
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400148af
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400148ad
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14001490c
jmp 0x140014834
cmp qword [rsp + 0x20], 0
jbe 0x1400148fc
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret