joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f80c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x180057480]
xor rax, rsp
mov qword [rbp + 0x40], rax
cmp edx, 1
jne 0x18000f8e9
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x30]
call fcn.1800127b0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x26], 0x75732074
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.180012528
test rax, rax
jne 0x18000f91d
lea rdx, [sym.gphelper.dll_HookSetWindowPos]
lea rcx, [0x180058b50]
call fcn.180010628
test eax, eax
je 0x18000f91d
lea rdx, [sym.gphelper.dll_HookSetForegroundWindow]
lea rcx, [0x180058af0]
call fcn.180010628
test eax, eax
je 0x18000f91d
lea rdx, [sym.gphelper.dll_HookSetActiveWindow]
lea rcx, [0x180058d08]
call fcn.180010628
test eax, eax
je 0x18000f91d
lea rdx, [sym.gphelper.dll_HookBringWindowToTop]
lea rcx, [0x180058be8]
call fcn.180010628
jmp 0x18000f91d
test edx, edx
jne 0x18000f91d
lea rcx, [0x180058b50]
call fcn.1800108e0
lea rcx, [0x180058af0]
call fcn.1800108e0
lea rcx, [0x180058d08]
call fcn.1800108e0
lea rcx, [0x180058be8]
call fcn.1800108e0
mov eax, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180010fa0
add rsp, 0x150
pop rbp
ret
Function at 0x1800103b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180057480]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, r9
mov r15, r8
mov r14d, edx
mov rsi, rcx
xor ebx, ebx
call fcn.18000e9c0
mov rdi, rax
test rax, rax
je 0x18000ea9d
lea rdx, [rbp - 0x20]
mov rcx, rax
mov dword [rbp - 0x1d], 0x78654e6c
mov word [rbp - 0x17], 0x6f6f
mov word [rbp - 0x1f], 0x6c61
mov word [rbp - 0x14], 0x7845
mov word [rbp - 0x19], 0x4874
mov byte [rbp - 0x12], bl
mov byte [rbp - 0x20], reloc.OLEAUT32.dll_VarR4FromUI1
mov byte [rbp - 0x15], 0x6b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000ea94
mov r9, r12
mov r8, r15
mov edx, r14d
mov rcx, rsi
call rax
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180010fa0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, r8
mov r8, rdx
mov edx, ecx
xor ecx, ecx
jmp 0x18000ea0c
Function at 0x1800108e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
call fcn.1800105dc
lea r12, [0x180058da0]
xor r8d, r8d
mov rdx, r12
mov rbx, qword [rdx]
test rbx, rbx
je 0x18001091a
lea rax, [rbx + 0x38]
cmp rax, qword [rsi]
je 0x180010929
inc r8d
add rdx, 8
cmp r8d, 0x40
jb 0x180010909
xor ebx, ebx
test rbx, rbx
je 0x1800109e7
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
call fcn.180010be0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
and dword [rsp + 0x58], edi
mov rbp, rax
lea rax, [rsp + 0x58]
mov r9d, VarR4FromUI1
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1800109e2
mov r8, qword [rbx]
xor edx, edx
cmp dword [rbx + 8], edx
jbe 0x180010987
mov al, byte [rdx + rbx + 0x58]
mov byte [rdx + r8], al
inc edx
cmp edx, dword [rbx + 8]
jb 0x180010978
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
call fcn.18000eabc
mov r8d, dword [rbx + 8]
mov r9d, dword [rsp + 0x58]
mov rdx, qword [rbx]
lea rax, [rsp + 0x58]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rbx]
mov qword [rsi], rax
mov edi, 1
mov rcx, r12
xor eax, eax
cmp qword [rcx], rbx
je 0x1800109d7
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x1800109c5
jmp 0x1800109e2
and qword [r12 + rax*8], 0
dec dword [0x180058d44]
call fcn.180010a0c
lea rcx, [0x180058d70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x180010a0c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.18000eb54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call fcn.18000eb54
mov edx, CreateUpDownControl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180058d50], edi
jbe 0x180010a74
mov rcx, qword [0x180058d48]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180058d48]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x180058d50]
jb case.default.0x180010aa8
mov rcx, qword [0x180058d48]
call fcn.180013450
and qword [0x180058d48], 0
and dword [0x180058d50], 0
call fcn.18000eb54
mov edx, esi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]
Function at 0x180010af0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x180057480]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180010bb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180010bac
mov dword [rsp + 0x50], 0x100001
xor edi, edi
jmp 0x180010b98
cmp qword [rsp + 0x118], rsi
jb 0x180010bb4
lea rax, [rsi + rbp]
cmp qword [rsp + 0x118], rax
jae 0x180010bb4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x180010ba9
mov ecx, VarCyFromR8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180010b59
jmp 0x180010bb4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180010fa0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180010d94
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x180058d44], 0x40
jae 0x180010ec4
lea rbx, [rcx + rdx]
add rcx, r8
mov rbp, 0xfffffffffff80000
lea rax, [rcx + 0x7ff80000]
cmp rcx, 0xffffffff80000000
lea r8d, [rdi + 0x2c]
cmovb rbp, rax
and dword [rsp + 0x50], edi
lea rcx, [r11 - 0x34]
xor edx, edx
call fcn.180011940
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x80000000
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae 0x180010ec4
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180010e94
cmp dword [rsp + 0x40], 0x10000
jne 0x180010e82
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x180010e87
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x180010e87
lea eax, [rdx - 1]
xor edx, edx
mov r8d, 0x3000
add rax, rsi
div rcx
mov edx, 0x78
lea r9d, [rdx - 0x58]
imul rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x180010e99
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x20]
add rsi, rax
cmp rsi, rbp
jb 0x180010e1d
test rdi, rdi
je 0x180010ec4
lea rdx, [0x180058da0]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je 0x180010eb9
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb 0x180010ea5
jmp 0x180010ec4
add dword [0x180058d44], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400032c8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, qword [0x14004d200]
mov rdi, rcx
mov rax, qword [0x14004d208]
mov ebx, 1
jmp 0x140003380
test ebx, ebx
js 0x1400034b2
mov r14, qword [rsi]
test r14, r14
je 0x14000337c
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x140003315
xor ebx, ebx
jmp 0x14000337c
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x140044ab0]
call qword [0x1400442d8]
mov ebx, eax
test eax, eax
js 0x14000335e
mov rdx, qword [rsp + 0x50]
lea rax, [r14 + 0x28]
mov rcx, qword [r14]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRegisterClassObject]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003375
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400442d8]
mov rax, qword [0x14004d208]
add rsi, 8
cmp rsi, rax
jb 0x1400032f4
test ebx, ebx
js 0x1400034b2
jne 0x1400034ae
cmp byte [rdi + 0x60], 0
je 0x140003458
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x140003451
lea rax, [rsp + 0x58]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140003cf0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140003405
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x140003451
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140003440
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov edx, dword [rdi + 0x58]
mov rcx, rsi
add edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140003466
mov ebx, 0x80004005
jmp 0x14000346a
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jns 0x1400034b2
mov rdi, qword [0x14004d200]
xor eax, eax
mov rcx, qword [0x14004d208]
jmp 0x1400034a7
test eax, eax
jne 0x1400034b2
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400034a3
cmp dword [rdx + 0x28], eax
je 0x1400034a3
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
nop dword [rax + rax]
mov rcx, qword [0x14004d208]
add rdi, 8
cmp rdi, rcx
jb 0x14000347c
jmp 0x1400034b2
mov byte [rdi + 0x60], 0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a564
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x14004d298]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
lea r8, [rsp + 0x30]
mov r12, rdx
mov r14, rcx
mov r13d, 0x400
mov ebp, ebx
mov ecx, r13d
mov edi, ebx
lea esi, [rbx + 4]
mov r9d, esi
lea edx, [rbx + 0xe]
lea r15d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a5de
lea r8, [0x140044fa8]
mov edx, esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov rsi, r14
cmp r14, r13
jb 0x14000a5ff
cmp edi, 4
jae 0x14000a5ff
mov ebp, esi
add edi, r15d
and ebp, 0x3ff
shr rsi, 0xa
cmp rsi, r13
jae 0x14000a5e6
test edi, edi
je 0x14000a633
sub edi, r15d
je 0x14000a62c
sub edi, r15d
je 0x14000a625
sub edi, r15d
je 0x14000a61e
cmp edi, r15d
jne 0x14000a633
mov edx, 0x324
jmp 0x14000a640
mov edx, 0x323
jmp 0x14000a640
mov edx, 0x322
jmp 0x14000a640
mov edx, 0x321
jmp 0x14000a640
mov rsi, r14
mov ebp, ebx
mov r15d, ebx
mov edx, 0x325
mov rcx, qword [0x14004d970]
lea r8, [rsp + 0xc0]
mov edi, 0x40
mov r9d, edi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a683
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000a700
lea rcx, [rsp + 0x40]
mov r9, rsi
mov rdx, rdi
test r15d, r15d
je 0x14000a72e
imul eax, ebp, 0x64
lea r8, str._I64u_s_02d
shr eax, 0xa
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
test eax, eax
jle 0x14000a6fb
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x14000a6fb
lea r8, [rsp + 0xc0]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
test eax, eax
je 0x14000a700
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140040f60
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str._I64u
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
jmp 0x14000a6be
Function at 0x140018058
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov rbp, rcx
mov ecx, 8
mov r14, r8
mov r15, rdx
mov r9, qword [rax]
lea rax, str.CTieredVolume::QueryDesiredStorageClass
mov qword [rcx + r9], rax
lea rcx, [rsp + 0x48]
call fcn.1400096b0
and qword [rsp + 0xa8], 0
lea r8, [rsp + 0xa8]
mov rdx, r15
mov rcx, rbp
call fcn.1400146f8
mov dword [rsp + 0x50], eax
mov esi, eax
test eax, eax
jns 0x1400180f9
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400181ad
test byte [rcx + 0x1c], 1
je 0x1400181ad
cmp byte [rcx + 0x19], 2
jb 0x1400181ad
mov edx, 0x14f
mov dword [rsp + 0x30], esi
jmp 0x140018185
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0x40]
mov r9d, 8
mov dword [rsp + 0x20], 0x43
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x140018134
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
jmp 0x1400181ad
cmp edi, 0xc000050c
jne 0x140018142
and dword [r14], 0
jmp 0x1400181ad
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000425c
mov esi, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400181ad
test byte [rcx + 0x1c], 1
je 0x1400181ad
cmp byte [rcx + 0x19], 2
jb 0x1400181ad
mov edx, 0x150
mov dword [rsp + 0x30], edi
mov r9, qword [r15 + 8]
lea rax, [rbp + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140045600]
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
call fcn.14000c32c
cmp qword [rsp + 0xa8], 0
je 0x1400181cc
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.140009500
lea r11, [rsp + 0x70]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001b300
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov rdi, rcx
mov ecx, 8
mov esi, r9d
mov rbp, r8
mov rbx, rdx
mov r10, qword [rax]
lea rax, str.TieringJetDatabase::Initialize
mov qword [rcx + r10], rax
lea rcx, [r11 - 0x18]
call fcn.1400096b0
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x68], rax
mov qword [rdi], rbx
mov dword [rdi + 0x60], esi
mov qword [rdi + 0x70], rbp
cmp esi, 1
jne 0x14001b366
lea rax, str.TieringEngineHeat
jmp 0x14001b384
cmp esi, 2
jne 0x14001b374
lea rax, str.TieringPinnedFiles
jmp 0x14001b384
cmp esi, 3
jne 0x14001b432
lea rax, str.TieringPinnedCacheFiles
mov qword [rdi + 0x58], rax
xor esi, esi
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14001b3a4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
jmp 0x14001b425
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001b421
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [rsp + 0x38], r8d
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14001b421
test byte [rcx + 0x1c], 1
je 0x14001b421
cmp byte [rcx + 0x19], 2
jb 0x14001b421
mov r9, qword [rdi + 0x70]
lea edx, [rbx + 0x3d]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400458f8]
call fcn.14000468c
mov qword [rdi + 0x50], rbx
mov word [rdi + 0x4c], si
mov byte [rdi + 0x9c], 1
jmp 0x14001b47d
mov ebx, 0x8009300f
mov dword [rsp + 0x38], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14001b47b
test byte [rcx + 0x1c], 1
je 0x14001b47b
cmp byte [rcx + 0x19], 2
jb 0x14001b47b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400458f8]
mov edx, 0x3c
mov dword [rsp + 0x28], ebx
mov r9d, esi
mov qword [rsp + 0x20], rbp
call fcn.140018dd4
mov esi, ebx
lea rcx, [rsp + 0x30]
call fcn.140009500
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140040cc0
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.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14004dd08], rbx
je 0x140040d27
cmp rax, rbx
jne 0x140040d1a
mov ebx, 1
mov esi, ebx
jmp 0x140040d2c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140040cff
mov ebx, 1
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040d44
mov edi, 0x1f
mov ecx, edi
call fcn.1400e0000
jmp 0x140040db0
mov eax, dword [0x14004dd10]
test eax, eax
jne 0x140040da5
mov dword [0x14004dd10], ebx
lea r15, [0x140044330]
lea rdi, [0x140044318]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140040d97
test eax, eax
jne 0x140040d9b
cmp qword [rdi], r14
je 0x140040d8c
mov rax, qword [rdi]
mov rcx, qword [0x1400442d8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140040d6e
test eax, eax
je 0x140040dab
mov eax, 0xff
jmp 0x140040f06
mov dword [0x14004d384], ebx
mov edi, 0x1f
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040dd7
lea rdx, [0x140044310]
lea rcx, [0x1400442e0]
call sub.msvcrt.dll__initterm
mov dword [0x14004dd10], 2
test esi, esi
jne 0x140040de5
mov rax, r14
xchg qword [0x14004dd08], rax
cmp qword [0x14004dd28], r14
je 0x140040e18
lea rcx, [0x14004dd28]
call fcn.140041320
test eax, eax
je 0x140040e18
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004dd28]
mov r9, qword [0x1400442d8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140040e31
mov eax, 0xff
jmp 0x140040f06
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140040eb7
test ax, ax
je 0x140040e4c
test edx, edx
jne 0x140040eb7
sub ax, bx
cmp ax, di
ja 0x140040e62
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140040e4c
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.1400024cc
mov dword [0x14004d380], eax
cmp dword [0x14004d3a0], r14d
jne 0x140040ea0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004d384], r14d
jne 0x140040eb5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004d380]
jmp 0x140040f06
cmp ax, 0x22
jne 0x140040ecb
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 0x140040e3a
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.1400413b4
add rsp, 0x28
jmp 0x140040cc0
Function at 0x14004120c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140041258
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140041250
cmp dword [rcx + 0x3c], edx
jl 0x140041250
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140041250
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 0x140041258
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180001220
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180001253
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800011f0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret