joyce8/EMBER2024-capa huggingface dataset:
Function at 0x27e221db0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x27e542080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x27e542060]
test rbx, rbx
je 0x27e221e04
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x27e221dfb
test r12, r12
je 0x27e221dfb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x27e221de0
lea rcx, [0x27e542080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x27e222030
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x27e222040
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x27e222050
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x27e222095
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x27e22208c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x27e222097
add rax, 0x28
cmp rax, r9
jne 0x27e222078
xor eax, eax
ret

Function at 0x27e222140
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x27e53f7b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x27e2221b9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x27e2221b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x27e2221b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x27e2221ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x27e2221b9
add r8, 0x28
cmp r8, r9
jne 0x27e222198
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x27e2222a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x27e53f7b0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x27e22230f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x27e22230f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x27e22230d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x27e222304
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x27e222318
add rax, 0x28
cmp rax, r9
jne 0x27e2222f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x27e222330
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x27e53f7b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x27e2223a8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x27e2223a8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x27e2223a8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x27e2223a8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x27e22239c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x27e2223b0
add rdx, 0x28
cmp rdx, r10
jne 0x27e222388
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x27e2223c0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x27e2223ce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x27e2223a5
test r8d, r8d
jg 0x27e2223b8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001a60
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor dil, dil
mov byte [rsp + 0x38], 0
xor ebx, ebx
movzx esi, cl
nop dword [rax]
lea rdx, [rsp + 0x38]
lea rcx, [0x140002190]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rsp + 0x38], 0
jne 0x140001aba
call fcn.140002e20
test eax, eax
sete dil
test eax, eax
je 0x140001aba
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x14
jl 0x140001a80
test dil, dil
je 0x140001ad8
movzx ecx, sil
call fcn.140003650
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x48
xor r14d, r14d
mov dword [rbp + 0x38], 4
lea rax, [rbp + 0x40]
mov dword [rbp + 0x28], r14d
mov esi, 1
mov dword [rbp + 0x30], 4
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000002
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002016
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.InitDelay
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000200c
cmp dword [rbp + 0x30], 4
jne 0x14000200c
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rbp + 0x28]
test edi, edi
jne 0x140002137
jmp 0x140002016
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x18]
mov dword [rbp + 0x38], r14d
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x40], 4
lea rdx, str.SYSTEMCurrentControlSet_services_amdkmdap
mov dword [rbp + 0x30], 4
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002135
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
xor r8d, r8d
lea rdx, str.DetachGfxPlatform
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000212b
cmp dword [rbp + 0x30], 4
jne 0x14000212b
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x38], esi
jne 0x140002135
lea rax, [rbp - 0x18]
mov dword [rbp + 0x40], 4
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x30], 4
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000002
mov edi, 6
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002135
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.InitDelayDetachGfxPlatform
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000211f
cmp dword [rbp + 0x30], 4
jne 0x14000211f
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rbp + 0x28]
jmp 0x140002135
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002139
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jle 0x14000217b
lea r9, str.AMDRSDelayInitE
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
imul edx, edi, 0x3e8
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov rcx, rbx
cmovne esi, r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, esi
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002600
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0x208
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREATI_TechnologiesInstallCNext
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400026f0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.InstallDir
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400026e5
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x1400026e5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x1400026d0
test rax, rax
je 0x1400026f0
mov edi, 1
jmp 0x1400026f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x1400085f8]
mov rcx, rbx
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
mov dword [rsp + 0x40], 1
test edi, edi
je 0x14000273a
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__long_long___int64__]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140006ed0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
Function at 0x140002760
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [0x1400085f8]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x28]
call fcn.1400028b0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 9
movzx eax, word [rsp + 0x40]
cmp cx, ax
je 0x14000283c
mov ecx, 6
cmp cx, ax
je 0x14000283c
mov dword [rsp + 0x88], edi
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000280d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x88]
call rdi
cmp dword [rsp + 0x88], 0
jne 0x14000283c
lea rcx, [rsp + 0x88]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QChar___cdecl_QDir::separator_void_]
movzx edx, word [rax]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QChar____ptr64]
lea rdx, str.amddvr.msi
jmp 0x14000285f
lea rcx, [rsp + 0x88]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QChar___cdecl_QDir::separator_void_]
movzx edx, word [rax]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QChar____ptr64]
lea rdx, str.amddvr64.msi
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::append_char_const____ptr64____ptr64]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const____ptr64_]
test al, al
je 0x140002886
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rbx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140002a50
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
lea rcx, [rsp + 0x70]
call fcn.140002600
nop
lea rdx, str.INSTALLDIR__1_
lea rcx, [rsp + 0x88]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
mov rbx, rax
mov edx, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt6Core.dll___0QChar__QEAA__S_Z]
movzx ecx, word [rax]
mov word [rsp + 0x20], cx
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.Qt6Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call fcn.140002760
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QString::toWCharArray_wchar_t____ptr64_const___ptr64]
cdqe
add rax, rax
cmp rax, 0x208
jae 0x140002c1c
xor edi, edi
mov word [rsp + rax + 0xb0], di
mov ebx, 0xffffffff
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const____ptr64_]
test al, al
je 0x140002bd6
mov qword [rsp + 0x38], rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x140002540]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rdx, [rsp + 0x38]
mov ecx, 0x202
call sub.msi.dll_MsiSetPropertyW
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x140002b78
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call sub.msi.dll_MsiOpenDatabaseW
mov ebx, eax
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x140002bd6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006ab8
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140006ed0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2d0
pop rdi
ret
call fcn.140006bc8
nop
int3
Function at 0x140002e20
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1258
call fcn.140006e70
sub rsp, rax
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x1240], rax
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x140002f95
mov qword [rsp + 0x1268], rbp
mov ebp, dword [rsp + 0x20]
mov qword [rsp + 0x1250], rdi
xor edi, edi
shr ebp, 2
test ebp, ebp
je 0x140002f91
mov qword [rsp + 0x1260], rbx
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x1270], rsi
mov esi, dword [rbx]
test esi, esi
je 0x140002f39
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x140008658]
lea rcx, [rsp + 0x1044]
xor edx, edx
mov dword [rsp + 0x24], 0x104
mov r8d, 0x1f4
movaps xmmword [rsp + 0x1030], xmm0
mov dword [rsp + 0x1040], eax
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140002f30
lea r9, [rsp + 0x24]
xor edx, edx
lea r8, [rsp + 0x1030]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x1030]
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x140002f30
lea rcx, [rax + 2]
lea rdx, [0x140008660]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140002f81
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rbx, 4
cmp edi, ebp
jb 0x140002e91
xor eax, eax
mov rsi, qword [rsp + 0x1270]
mov rbx, qword [rsp + 0x1260]
mov rbp, qword [rsp + 0x1268]
mov rdi, qword [rsp + 0x1250]
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.140006ed0
add rsp, 0x1258
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002f49
xor eax, eax
jmp 0x140002f59
xor eax, eax
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.140006ed0
add rsp, 0x1258
ret
Function at 0x140003260
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x4d0
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rdi, rcx
mov qword [rsp + 0x90], rcx
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x2b0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rsp + 0xa0]
mov edx, 0x104
lea r8, str._s_netsh.exe
lea rcx, [rsp + 0x2b0]
call fcn.140005bd0
cmp qword [rdi + 0x18], 8
lea rax, [rsp + 0x2b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], 0x70
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
jb 0x140003333
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
lea rax, str.runas
mov dword [rsp + 0x24], 0x100
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, 0xc8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140003cf0
mov eax, ebx
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.140006ed0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4d0
pop rdi
ret
Function at 0x140001000
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5c], 0
mov rbx, rcx
jne 0x14000105a
cmp dword [rcx + 8], 0
jne 0x14000106a
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edx, 1
mov r8d, 0x4000
mov dword [rax], 0
mov r9, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x68]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test eax, eax
mov dword [rbx + 8], eax
jne 0x140001063
mov rcx, qword [rbx + 0x60]
mov dword [rbx + 0x5c], 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x14000105a
mov dword [rbx + 0x58], 0xffffffff
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x68]
mov qword [rbx], rax
mov rax, qword [rbx]
add dword [rbx + 8], 0xffffffff
movzx ecx, byte [rax]
add rax, 1
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140001090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 8]
mov rdi, rcx
cmp ebx, 2
jae 0x14000111f
test ebx, ebx
je 0x1400010b5
mov rax, qword [rcx]
mov rdx, qword [rcx + 0x68]
movzx eax, byte [rax]
mov byte [rdx], al
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ecx, ebx
mov edx, 1
mov dword [rax], 0
mov r9, qword [rdi + 0x60]
mov eax, 0x4000
sar eax, cl
mov rcx, rbx
add rcx, qword [rdi + 0x68]
movsxd r8, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test eax, eax
mov rbx, rax
jne 0x1400010fc
mov rcx, qword [rdi + 0x60]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x1400010fc
mov dword [rdi + 0x58], 0xffffffff
add dword [rdi + 8], ebx
mov ecx, dword [rdi + 8]
mov rax, qword [rdi + 0x68]
cmp ecx, 2
mov qword [rdi], rax
jae 0x14000111f
mov dword [rdi + 0x90], ecx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rdi]
cmp byte [rax], 0x1f
jne 0x140001235
cmp byte [rax + 1], 0x8b
jne 0x140001235
add dword [rdi + 8], 0xfffffffe
add rax, 2
mov rcx, rdi
mov qword [rdi], rax
mov qword [rsp + 0x30], rsi
call fcn.140001000
mov rcx, rdi
mov ebx, eax
call fcn.140001000
cmp ebx, 8
mov esi, eax
jne 0x14000121e
test al, 0xe0
jne 0x14000121e
mov ebx, 6
nop
mov rcx, rdi
call fcn.140001000
sub rbx, 1
jne 0x140001170
test sil, 4
je 0x1400011b6
mov rcx, rdi
call fcn.140001000
mov rcx, rdi
mov ebx, eax
call fcn.140001000
shl eax, 8
add ebx, eax
nop
nop
mov ecx, ebx
add ebx, 0xffffffff
test ecx, ecx
je 0x1400011b6
mov rcx, rdi
call fcn.140001000
cmp eax, 0xffffffff
jne 0x1400011a0
test sil, 8
je 0x1400011d1
nop
mov rcx, rdi
call fcn.140001000
test eax, eax
je 0x1400011d1
cmp eax, 0xffffffff
jne 0x1400011c0
test sil, 0x10
je 0x1400011e8
mov rcx, rdi
call fcn.140001000
test eax, eax
je 0x1400011e8
cmp eax, 0xffffffff
jne 0x1400011d7
test sil, 2
je 0x140001201
mov ebx, 2
mov rcx, rdi
call fcn.140001000
sub rbx, 1
jne 0x1400011f3
mov eax, dword [rdi + 0x5c]
mov rsi, qword [rsp + 0x30]
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
mov dword [rdi + 0x58], ecx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rdi + 0x58], 0xfffffffd
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rdi + 0x90], 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001320
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test rcx, rcx
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
je 0x1400013f6
cmp byte [rcx + 0x94], 0x77
jne 0x1400013f6
test r8d, r8d
mov qword [rcx], rdx
mov dword [rcx + 8], r8d
je 0x1400013d0
nop
nop
cmp dword [rbx + 0x18], 0
jne 0x14000138d
mov rcx, qword [rbx + 0x70]
mov r9, qword [rbx + 0x60]
mov edx, 1
mov r8d, 0x4000
mov qword [rbx + 0x10], rcx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, 0x4000
jne 0x1400013c9
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 8]
xor edx, edx
mov rcx, rbx
add dword [rbx + 0x9c], eax
mov eax, dword [rbx + 0x18]
add dword [rbx + 0xa0], eax
call fcn.1400019e0
mov ecx, dword [rbx + 8]
sub dword [rbx + 0x9c], ecx
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x58], eax
sub dword [rbx + 0xa0], ecx
test eax, eax
jne 0x1400013d0
cmp dword [rbx + 8], eax
jne 0x140001360
jmp 0x1400013d0
mov dword [rbx + 0x58], 0xffffffff
mov ecx, dword [rbx + 0x78]
mov r8d, edi
mov rdx, rsi
call fcn.140003a50
sub edi, dword [rbx + 8]
mov dword [rbx + 0x78], eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 0xfffffffe
add rsp, 0x20
pop rdi
ret

Function at 0x140001410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x20
xor r12d, r12d
test rcx, rcx
mov ebp, edx
mov esi, r12d
mov rbx, rcx
je 0x14000150f
cmp byte [rcx + 0x94], 0x77
jne 0x14000150f
mov qword [rsp + 0x30], rdi
mov dword [rcx + 8], r12d
nop
mov edi, 0x4000
sub edi, dword [rbx + 0x18]
je 0x140001486
mov r9, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x70]
mov r8d, edi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp eax, edi
jne 0x140001503
mov rax, qword [rbx + 0x70]
mov dword [rbx + 0x18], 0x4000
mov qword [rbx + 0x10], rax
test esi, esi
jne 0x1400014de
mov eax, dword [rbx + 0x18]
mov edx, ebp
mov rcx, rbx
add dword [rbx + 0xa0], eax
call fcn.1400019e0
mov ecx, dword [rbx + 0x18]
sub dword [rbx + 0xa0], ecx
test edi, edi
mov dword [rbx + 0x58], eax
jne 0x1400014b6
cmp eax, 0xfffffffb
jne 0x1400014b6
mov dword [rbx + 0x58], r12d
test ecx, ecx
jne 0x1400014c5
cmp dword [rbx + 0x58], 1
je 0x1400014c5
mov esi, r12d
jmp 0x1400014ca
mov esi, 1
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x140001450
cmp eax, 1
je 0x140001450
mov eax, dword [rbx + 0x58]
cmp eax, 1
cmove eax, r12d
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov dword [rbx + 0x58], 0xffffffff
or eax, 0xffffffff
jmp 0x1400014e8
mov eax, 0xfffffffe
jmp 0x1400014ed