joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004fdf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rcx
mov rsi, r8
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x14004fef7
and dword [rsp + 0x34], 0
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 3
jb 0x14004fe49
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x14004fed3
cmp dword [rsp + 0x30], 3
jne 0x14004fed3
test eax, eax
jne 0x14004ff22
mov edx, dword [rsp + 0x34]
mov rcx, rsi
call fcn.14000a590
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb rcx, rcx
and rcx, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14004fea3
mov rdx, qword [rbx]
jmp 0x14004fea6
mov rdx, rbx
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004ff56
mov al, 1
jmp 0x14004fed5
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400387b0
mov rbx, qword [rsp + 0x418]
add rsp, 0x3e0
pop rdi
pop rsi
pop rbp
ret
mov r9, rdx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.140014590
lea rdx, [0x14008be38]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.14004d570
lea rdx, [0x14008be38]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.14004d570
lea rdx, [0x14008be38]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140053d38
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rcx, rdi
call fcn.1400548ec
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov dword [rsp + 0x30], eax
cmp qword [rsi + 0x18], 8
jb 0x140053d90
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.1400541e4
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140053dbd
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.14004ef08
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x40], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.MonitoredScope::ExecuteUnderStopWatch
mov edx, 0x3b0
mov ecx, 0x51054a
mov r8d, 0x32
call fcn.140016fd8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004f90
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140004f90
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400387b0
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005513c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
je 0x140055173
xor edx, edx
call fcn.14004b418
test al, al
je 0x1400551d3
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140055183
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbx + 0x20]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
mov r9, rdi
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400551fb
mov dword [rbx + 0x28], 0x103
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.1400387b0
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
lea r8, str.Attempting_to_start_a_new_thread_when_the_thread_has_already_been_started
mov edx, 0x53
lea rcx, [rsp + 0x30]
call fcn.14003d7f0
lea rdx, [0x14008be38]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_start_thread.
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140034c60
lea rdx, [0x14008be38]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140058f78
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
lea r14, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
lea r15, str.ContextData
test al, al
je 0x1400590ae
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.140058ed8
nop
cmp qword [rax + 0x18], 8
jb 0x140058fed
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rdx, str.Watcher_is_running_successfully._WatcherName:_s
lea rcx, [rbp + 0x10]
call fcn.140014f9c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x140059014
mov rdi, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.14004ef08
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.Watcher::Watch
mov edx, 0x3b0
mov ecx, 0x71d70b
mov r8d, 0x32
call fcn.140016fd8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004f90
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.140004f90
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140004f90
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [rsp + 0x30], eax
cmp qword [rbx + 0x18], 8
jb 0x1400590c4
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.1400541e4
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400590f1
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.14004ef08
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.MonitoredScope::ExecuteUnderStopWatch
mov edx, 0x3b0
mov ecx, 0x51054a
mov r8d, 0x32
call fcn.140016fd8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004f90
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004f90
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140004f90
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400387b0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400635d4
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor edi, edi
mov dword [rbp - 0x49], edi
mov r8b, 1
mov edx, 0x3e8
lea rcx, [rbp - 1]
call fcn.14006384c
nop
cmp qword [rbp + 0xf], rdi
sete al
test al, al
je 0x1400637c7
mov r8b, 1
mov edx, 0xbb9
lea rcx, [rbp + 0x1f]
call fcn.14006384c
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rdi
lea ebx, [rdi + 7]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea r8d, [rdi + 1]
lea rdx, [0x140075750]
lea rcx, [rbp - 0x21]
call fcn.1400054c8
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x1f]
call fcn.1400383f8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140004f90
mov rax, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
sub rax, rcx
sar rax, 5
cmp rax, 3
jb 0x1400637af
lea esi, [rdi + 1]
dec rax
cmp rsi, rax
jae 0x1400637af
lea r15d, [rdi + 0x20]
lea rdx, [rcx + r15]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x21]
call fcn.140005390
nop
mov r8, qword [rbp - 0x11]
test r8, r8
sete al
test al, al
jne 0x14006372c
mov r14, rdi
test r8, r8
je 0x14006372c
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rax, qword [rbp - 0x21]
lea rbx, [rbp - 0x21]
cmovae rbx, qword [rbp - 0x21]
movzx ecx, word [rax + r14*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rbx + r14*2], ax
inc r14
mov r8, qword [rbp - 0x11]
cmp r14, r8
jb 0x1400636f4
mov ebx, 7
mov qword [rsp + 0x20], rbx
lea r9, str.culture
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.14000e9a8
test eax, eax
je 0x14006377a
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140004f90
add rsi, 2
add r15, 0x40
mov rax, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
sub rax, rcx
sar rax, 5
dec rax
cmp rsi, rax
jb 0x1400636bd
jmp 0x1400637af
lea rdx, [rsi + 1]
shl rdx, 5
add rdx, qword [rbp - 0x41]
lea rax, [rbp - 1]
cmp rax, rdx
je 0x1400637a0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 1]
call fcn.140005390
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140004f90
nop
lea rcx, [rbp - 0x41]
call fcn.140033878
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1f]
call fcn.140004f90
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rcx, qword [rbp - 1]
mov r9d, 2
lea r8, [rbp - 0x49]
mov edx, 0x20000070
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, dword [rbp - 0x49]
test eax, eax
je 0x14006380f
sub eax, 1
je 0x14006380c
sub eax, 1
je 0x14006380f
cmp eax, 1
je 0x14006380c
mov ecx, 0x3413a3
call fcn.140034800
jmp 0x14006380f
mov dil, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 1]
call fcn.140004f90
mov al, dil
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400387b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140064460
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140064568
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov esi, 0x104
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], esi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140064559
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x43], bl
jne 0x140064522
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x140064559
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140064545
mov al, byte [rcx + rdi]
test al, al
je 0x140064545
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x140064527
test rsi, rsi
jne 0x140064552
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14006456a
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400387b0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140060b7c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x140060bc4
lea edi, [rsi + 0xd]
jmp 0x140060c7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x140060c7f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140060c04
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x140060c45
jbe 0x140060c45
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x140060c28
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.14003d494
mov rdi, qword [rbp - 0x20]
jmp 0x140060c45
sub rdx, rcx
je 0x140060c41
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140060c71
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140060c7f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140003804
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.14001aec4
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400616e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400ac180], eax
call fcn.140061b80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400ac180], 0
jne case.default.0x140061736
mov ecx, 1
call fcn.140061b80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
loope 0x140112c4c
adc dh, byte [rdi + 0x61e2b374]
test ch, dl
invalid
xchg ebx, eax
xchg r14, r15
push rdi
fidiv dword [rbp - 0x15]
pop r9
invalid
Function at 0x140027b17
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003e110
mov rcx, qword [rsp + 0x90]
call fcn.140031ac8
sub rsp, 0x18
mov rdx, 1
lea rax, [rsp + 0x40]
push rax
xor r9, r9
mov r8, 0xb
mov rcx, 2
sub rsp, 0x20
call fcn.14003db10
add rsp, 0x40
mov qword [rsp + 0x28], rax
push 0
push 0
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
movsxd r15, dword [rsp + 0x48]
and r15, r15
jne 0x140027bc8
movabs rcx, 0x14007b028
push rcx
sub rsp, 0x28
call fcn.14003e180
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14003e410
add rsp, 0x28
pop rax
push rax
call fcn.14003e1d0
pop rdx
add rax, rdx
jmp 0x140027c9a
movsxd rax, dword [rsp + 0x48]
inc rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.14003dccc
movsxd r15, dword [rsp + 0x48]
add r15, r15
mov rax, r15
push rax
mov rbp, qword [rsp + 0x30]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.140035c40
movsxd rax, dword [rsp + 0x48]
mov rax, rax
push rax
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
push rcx
sub rsp, 0x28
call fcn.14003e180
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14003e180
add rsp, 0x28
pop rcx
push rax
push 0x19
push 0xffffffffffffffff
mov rbp, qword [rsp + 0x50]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140035d80
add rsp, 0x28
movabs rcx, 0x14007b182
sub rsp, 0x28
call fcn.14003e410
add rsp, 0x28
pop rax
push rax
call fcn.14003e1d0
pop rdx
add rax, rdx
jmp 0x140027c9a
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003ddf4
add rsp, 0x28
pop rax
add rsp, 0x58
pop r15
pop rbp
ret

Function at 0x140031ac8
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14007dd5c]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14000109c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
lea rcx, [0x140002f90]
call fcn.140002684
test rax, rax
je 0x1400011c2
lea r8, [0x140002fa0]
mov rcx, rax
lea rdx, [0x140002fb0]
call fcn.1400025e8
test rax, rax
je 0x1400011c2
movsxd rdx, dword [rax + 3]
lea rcx, [0x140002f90]
xor r8d, r8d
mov qword [rdx + rax + 7], r8
xor edx, edx
call fcn.140002684
mov rbx, rax
test rax, rax
jne 0x140001106
lea rcx, [0x140002fc0]
jmp 0x1400011a6
lea r8, [0x140002ff0]
mov rcx, rbx
lea rdx, [0x140003000]
call fcn.1400025e8
test rax, rax
je 0x140001146
movsxd rcx, dword [rax + 3]
lea rdx, [rax + 7]
add rdx, rcx
mov r8d, 0x10
mov ecx, dword [0x140006080]
call fcn.1400028b8
lea rcx, [0x140003010]
jmp 0x14000114d
lea rcx, [0x140003040]
call sub.ntoskrnl.exe_DbgPrint
lea r8, [0x140002fa0]
mov rcx, rbx
lea rdx, [0x140002fb0]
call fcn.1400025e8
test rax, rax
je 0x1400011b9
movsxd rcx, dword [rax + 3]
xor edx, edx
mov qword [rcx + rax + 7], rdx
lea rcx, [0x140003080]
call sub.ntoskrnl.exe_DbgPrint
lea r8, [0x1400030f0]
mov rcx, rbx
lea rdx, [0x140003110]
call fcn.1400025e8
test rax, rax
je 0x1400011b0
lea rcx, [0x140003130]
add rsp, 0x20
pop rbx
jmp sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x140003160]
jmp 0x1400011a6
lea rcx, [0x1400030b0]
jmp 0x1400011a6
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400025e8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r9, dword [rcx + 0x3c]
lea rbx, [rcx + 0x18]
add rbx, r9
xor r10d, r10d
xor edi, edi
mov r14, r8
mov r15, rdx
mov rbp, rcx
movzx eax, word [r9 + rcx + 0x14]
movzx esi, word [r9 + rcx + 6]
add rbx, rax
test esi, esi
je 0x140002668
cmp dword [rbx], 0x45474150
je 0x140002642
cmp dword [rbx], 0x7865742e
jne 0x14000265e
cmp byte [rbx + 4], 0x74
jne 0x14000265e
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rbp
mov r8, r15
call fcn.140002574
mov r10, rax
test rax, rax
jne 0x140002668
inc edi
add rbx, 0x28
cmp edi, esi
jb 0x14000262c
mov rbx, qword [rsp + 0x40]
mov rax, r10
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140002684
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x150
xor ebx, ebx
lea r9, [rax + 0x18]
mov r14, rdx
mov dword [rax + 0x18], ebx
mov r15, rcx
xor r8d, r8d
xor edx, edx
mov ebp, ebx
lea esi, [rbx + 0xb]
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1400027de
mov edx, dword [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400027de
mov r8d, dword [rsp + 0x180]
xor r9d, r9d
mov rdx, rax
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x1400027ce
mov esi, ebx
cmp dword [rdi], ebx
jbe 0x1400027cb
mov eax, esi
mov edx, 2
imul rcx, rax, 0x128
lea rax, [rdi + 8]
add rax, rcx
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14000272c
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.140002800
mov rcx, rax
mov rdx, r15
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x1400027ba
inc esi
cmp esi, dword [rdi]
jb 0x140002712
jmp 0x1400027cb
mov rbp, qword [rsp + 0x30]
test r14, r14
je 0x1400027cb
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
mov rbx, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
jmp 0x1400027e0
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400028b8
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x1400028d2
mov eax, r8d
lea rcx, str.
xor byte [rdx], cl
inc rdx
sub rax, 1
jne 0x1400028c0
ret