joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ed0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x20]
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140004f0a
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400305f0
add rsp, 0x50
pop rbx
ret

Function at 0x140005e5c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rsi, rcx
xor ebx, ebx
lea edi, [rbx + 1]
test rcx, rcx
je 0x140048670
mov edx, 0x105
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1400486ac
cmp eax, 0x104
ja 0x1400486e4
lea r8d, [rbx + 0x32]
mov word [rsp + 0xa6], bx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x14004871d
lea rcx, [rsp + 0x30]
call fcn.140008170
mov qword [rsi], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400305f0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov r9d, 0x57
mov edi, ebx
mov ebx, r9d
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x140005eeb
test byte [rcx + 0x1c], 8
je 0x140005eeb
lea edx, [r9 - 0x49]
lea rax, [0x140132260]
jmp 0x140048764
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x140005eeb
test byte [rcx + 0x1c], 8
je 0x140005eeb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0xf
jmp 0x140048753
mov r9d, 0x7a
mov edi, ebx
mov ebx, r9d
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x140005eeb
test byte [rcx + 0x1c], 8
je 0x140005eeb
lea edx, [r9 - 0x6a]
lea rax, str.ERROR_INSUFFICIENT_BUFFER
jmp 0x140048764
mov edi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14015a290]
lea rax, [0x14015a290]
cmp rcx, rax
je 0x140005eeb
test byte [rcx + 0x1c], 8
je 0x140005eeb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x11
mov rcx, qword [0x14015a290]
mov r9d, eax
lea rax, str.GetLastError___
mov rcx, qword [rcx + 0x10]
lea r8, str.yO4
mov qword [rsp + 0x20], rax
call fcn.1400d5cb0
nop
jmp 0x140005eeb
Function at 0x1400086d0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rbx, rcx
lea r14, str.base_stor_vssmodules_registry_registry.cxx
mov qword [rsp + 0x40], r14
lea r15, str.CVssRegistryKeyIterator::GetCurrentKeyName
mov qword [rsp + 0x48], r15
lea r12, str.REGREGSC
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x2d1
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
xor esi, esi
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140010990
nop
cmp byte [rbx + 0x28], sil
je 0x14004b6b4
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x14004b6b4
mov eax, dword [rbx + 0x10]
mov dword [rbp + 0xa0], eax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0xa0]
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
jne 0x14004b5f0
mov rbx, qword [rbx + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140010ab0
mov rax, rbx
add rsp, 0x160
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
cmp eax, 0x103
je 0x14004b67d
mov dword [rsp + 0x58], 0x2ea
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x20]
test edi, edi
jle 0x14004b646
movzx edi, di
or edi, 0x80070000
mov eax, dword [rbp + 0xa0]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, str.RegEnumKeyExW__p__lu__p__lu_..._
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400cf12c
int3
mov dword [rsp + 0x58], 0x2ee
call sub.msvcrt.dll_memset
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x20], eax
lea r9, str.Unexpected_error:_dwIndex_out_of_scope__lu__lu
mov r8d, 0x8000ffff
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400cf12c
int3
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x2d5
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r9, str.Unexpected_error:_noninitialized_iterator
mov r8d, 0x8000ffff
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400ce7c0
int3
Function at 0x14001df3c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, r9
mov rdi, r8
mov r14d, edx
mov rbx, rcx
lea r12, str.base_stor_vssinc_vs_vol.hxx
mov qword [rsp + 0x30], r12
lea r13, str.GetVolumeNameWithCheck
mov qword [rsp + 0x38], r13
lea rax, str.INCVOLH
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x15b
mov dword [rsp + 0x4c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x50], 0xff
xor r15d, r15d
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [r15 + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140010990
nop
mov word [rsi], r15w
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r13
lea rax, str.INCVOLH
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x163
mov dword [rsp + 0x4c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [r15 + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
mov r9, rdi
lea r8, str.GetVolumeNameForVolumeMountPointW_will_be_called_on__s
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140010920
mov r8d, dword [rbp + 0xb0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x14003c508
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r13
lea rax, str.INCVOLH
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x16b
mov dword [rsp + 0x4c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [r15 + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
mov r9, rsi
lea r8, str.GetVolumeNameForVolumeMountPointW_succeeded_and_the_output_is__s
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140010920
nop
lea rcx, [rbp - 0x20]
call fcn.140010ab0
nop
mov rcx, rbx
call fcn.140019ca4
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140019d00
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, str.GetVolumeNameForVolumeMountPoint__s_...__failed_with_error_code_0x_08lx
mov r8d, r14d
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1400ce7c0
int3
Function at 0x1400254fc
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
lea rsi, str.base_stor_vssincworker.hxx
mov qword [rsp + 0x30], rsi
lea r14, str.CVssWorkerThread::StartJob
mov qword [rsp + 0x38], r14
lea r15, str.INCWORKH
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x171
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 0xff
xor ebx, ebx
mov dword [rbp - 0x30], 0x1000000
lea r13d, [rbx + 0x78]
mov r8d, r13d
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140010990
nop
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140044677
cmp dword [rdi + 0x1c], 2
jne 0x140044677
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400445a0
mov byte [rdi + 0x20], 1
lea rcx, [rbp - 0x20]
call fcn.140010ab0
mov eax, ebx
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x184
mov dword [rsp + 0x4c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, dword [rdi + 0x1c]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rdi + 0x10]
lea r8, str.ResumeThread__p____1__GetLastError____0x_08lx__m_eThreadState___d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400ce0a0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x187
mov dword [rsp + 0x4c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov eax, dword [rdi + 0x1c]
mov dword [rsp + 0x20], eax
lea r8, str.ResumeThread_failed._Error:_0x_08lx._State:__d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140010920
mov dword [rdi + 0x1c], 5
mov eax, 0x8007000e
jmp 0x1400446d2
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x176
mov dword [rsp + 0x4c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
mov r9d, dword [rdi + 0x1c]
lea r8, str.Bad_state__d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140010920
mov eax, 0x8000ffff
mov ebx, eax
jmp 0x1400255b9
Function at 0x14002f790
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r12, str.base_stor_vssmodules_registry_registry.cxx
mov qword [rsp + 0x40], r12
lea r13, str.CVssRegistryKey::SetBinaryValue
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x16c
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140010990
nop
mov dword [rsp + 0x28], 0x48
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x140059bf8
lea rcx, [rbp - 0x10]
call fcn.140010ab0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x17f
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x18]
test ebx, ebx
jle 0x140059c4e
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x38], 0x48
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
lea r9, str.RegSetValueExW_0x_08lx__s_0_REG_BINARY__p._lu_
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400cf12c
int3
Function at 0x140030340
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x14015ab50], rbx
je 0x1400303a9
cmp rax, rbx
jne 0x14003039c
mov edi, 1
mov r14d, edi
jmp 0x1400303ae
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140030380
mov edi, 1
mov eax, dword [0x14015ab58]
cmp eax, edi
jne 0x1400303c6
mov esi, 0x1f
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x140030437
mov eax, dword [0x14015ab58]
test eax, eax
jne 0x14003042c
mov dword [0x14015ab58], edi
lea r12, [0x1400eab08]
lea rbx, [0x1400eaaf0]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x14003041e
test eax, eax
jne 0x140030422
mov rsi, qword [rbx]
test rsi, rsi
je 0x140030413
mov rcx, rsi
mov rax, qword [fcn.140031010]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400303f0
test eax, eax
je 0x140030432
mov eax, 0xff
jmp 0x140030593
mov dword [0x14015a544], edi
mov esi, 0x1f
mov eax, dword [0x14015ab58]
cmp eax, edi
jne 0x14003045e
lea rdx, [0x1400eaae8]
lea rcx, [0x1400eaa78]
call sub.msvcrt.dll__initterm
mov dword [0x14015ab58], 2
test r14d, r14d
jne 0x14003046d
mov rax, r15
xchg qword [0x14015ab50], rax
cmp qword [0x14015ab70], r15
je 0x1400304a4
lea rcx, [0x14015ab70]
call fcn.140030e80
test eax, eax
je 0x1400304a4
mov rbx, qword [0x14015ab70]
mov rcx, rbx
mov rax, qword [fcn.140031010]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rdx, qword [rax]
test rdx, rdx
jne 0x1400304bd
mov eax, 0xff
jmp 0x140030593
mov qword [rsp + 0x28], rdx
mov ecx, dword [rsp + 0x20]
cmp word [rdx], 0x20
ja 0x140030544
cmp word [rdx], r15w
je 0x1400304d6
test ecx, ecx
jne 0x140030544
movzx eax, word [rdx]
sub ax, di
cmp ax, si
ja 0x1400304ec
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x1400304d6
mov ecx, dword [rsp + 0x7c]
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
and cl, dil
cmovne r9d, eax
mov r8, rdx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000483c
mov dword [0x14015a540], eax
cmp dword [0x14015a560], r15d
jne 0x14003052d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14015a544], r15d
jne 0x140030542
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14015a540]
jmp 0x140030593
cmp word [rdx], 0x22
jne 0x140030558
mov eax, r15d
test ecx, ecx
sete al
mov ecx, eax
mov dword [rsp + 0x20], eax
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x1400304c6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call fcn.1401f8000
add rsp, 0x28
jmp 0x140030340
Function at 0x140030d6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140030db8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140030db0
cmp dword [rcx + 0x3c], edx
jl 0x140030db0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140030db0
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 0x140030db8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14005bebc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rbx
mov rbp, rdx
mov qword [r11 - 0x28], rbx
xor r9d, r9d
mov qword [r11 - 0x30], rbx
xor r8d, r8d
mov qword [r11 - 0x38], rbx
xor edx, edx
mov qword [r11 - 0x40], rax
mov rcx, rbp
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov dword [r11 + 8], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14005bf14
xor eax, eax
jmp 0x14005bf8e
mov esi, 1
cmp dword [rsp + 0x80], esi
jne 0x14005bf82
mov ecx, 0x2000
mov dword [rsp + 0x90], 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005bf10
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x90]
mov qword [rsp + 0x30], rbx
mov r8, rax
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x14005bf73
cmp word [rdi], bx
jne 0x14005bf75
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, esi
jmp 0x14005bf8e
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005c9c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.14005c5a4
jmp 0x14005ca2b
lea rdx, [rsp + 0x70]
call fcn.14005c9c0
xor ecx, ecx
test eax, eax
mov ebx, eax
jne 0x14005ca86
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x48]
test eax, eax
je 0x14005ca21
call fcn.14005b880
mov rdx, rsi
mov rcx, rdi
call fcn.14005bab0
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.14005b880
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400305f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005cc54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov rbx, r9
mov rsi, r8
mov rax, rdx
xor edi, edi
mov qword [rbp], rdi
mov qword [rbp + 0x10], rcx
mov qword [rbp + 8], rdi
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov r15, rax
test rax, rax
jne 0x14005ccd5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005ce59
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14005ce59
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rbx, rax
test rax, rax
jne 0x14005cd0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005ce4f
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14005ce4f
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14005ccef
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rsi, r14
mov r12d, eax
movabs r13, 0xffffffffffffff0
cmp byte [r12 + r14], dil
je 0x14005cdab
lea esi, [rax + 1]
cmp esi, 0x400
ja 0x14005cd7a
mov ebx, esi
mov ecx, esi
call fcn.14005dbd0
test al, al
je 0x14005cd7a
lea rax, [rsi + 0xf]
cmp rax, rbx
ja 0x14005cd67
mov rax, r13
and rax, 0xfffffffffffffff0
call fcn.140031b10
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x14005cd8a
mov ebx, esi
mov edx, esi
lea rcx, [rbp]
call fcn.14005b7f0
mov rsi, rax
test rsi, rsi
jne 0x14005cd99
mov ebx, 0x8007000e
jmp 0x14005ce4f
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rsi], dil
test rsi, rsi
je 0x14005ce3a
or r12, 0xffffffffffffffff
mov r14, r12
inc r14
cmp byte [rsi + r14], dil
jne 0x14005cdbb
inc r14d
movsxd rbx, r14d
add rbx, rbx
cmp rbx, 0x400
ja 0x14005ce01
mov rcx, rbx
call fcn.14005dbd0
test al, al
je 0x14005ce01
lea rax, [rbx + 0xf]
cmp rax, rbx
ja 0x14005cdee
mov rax, r13
and rax, 0xfffffffffffffff0
call fcn.140031b10
sub rsp, rax
lea rbx, [rsp + 0x30]
jmp 0x14005ce10
mov rdx, rbx
lea rcx, [rbp]
call fcn.14005b7f0
mov rbx, rax
test rbx, rbx
je 0x14005ce3a
mov word [rbx], di
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r9d, r12d
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, rbx
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.14005cac8
mov ebx, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rcx, [rbp]
call fcn.14005ae44
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.1400305f0
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14005d7b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
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, 0x20
cmp word [rdx], 0
mov r14, rdx
mov rbx, rcx
jne 0x14005d7e1
mov rax, rcx
jmp 0x14005d86d
cmp word [rcx], 0
je 0x14005d86b
cmp word [rbx], 0
mov rdi, rbx
mov rsi, r14
je 0x14005d853
cmp word [rsi], 0
je 0x14005d888
movzx ecx, word [rdi]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x14005d853
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
sub rax, rsi
mov rcx, rbp
sub rcx, rdi
xor rax, rcx
test rax, 0xfffffffffffffffe
jne 0x14005d853
jmp 0x14005d848
add rdi, 2
add rsi, 2
movzx ecx, word [rsi]
movzx eax, word [rdi]
cmp eax, ecx
je 0x14005d84d
cmp rdi, rbp
jb 0x14005d836
cmp word [rdi], 0
jne 0x14005d7f7
cmp word [rsi], 0
je 0x14005d888
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rbx, rax
cmp word [rax], 0
jne 0x14005d7eb
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14005d86d