joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180051628
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r12d, r8d
mov rbp, rdx
mov rdi, rcx
jne 0x1800516f5
cmp dword [rcx + 8], 0xffffffff
jne 0x1800516f5
lea rdx, [rcx + 0x150]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rdi + 0x150]
call fcn.180064df0
mov cl, byte [rax + rdi + 0x14f]
cmp cl, 0x5c
je 0x180051699
cmp cl, 0x2f
je 0x180051699
mov byte [rax + rdi + 0x150], gethostbyname
mov byte [rax + rdi + 0x151], 0
mov r9d, 1
cmp esi, r9d
jne 0x1800516be
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800516be
mov eax, 0x2000000
jmp 0x1800516fa
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r12d
mov rcx, rbp
call fcn.18004efd8
test rax, rax
jne 0x1800516dc
mov eax, dword [rsp + 0x40]
jmp 0x1800516fa
mov rcx, rax
call fcn.180050eb8
mov qword [rdi], rax
neg rax
sbb eax, eax
not eax
and eax, 0x200
jmp 0x1800516fa
mov eax, 0x1000000
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x180051d24
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rdx
mov rsi, rcx
mov ebx, 0x104
test rcx, rcx
je 0x180051dca
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, rbx
sub r8, rcx
lea rax, [rsp + 0x20]
test rdx, rdx
je 0x180051d85
mov cl, byte [r8 + rax]
test cl, cl
je 0x180051d80
mov byte [rax], cl
inc rax
sub rdx, 1
jne 0x180051d68
test rdx, rdx
jne 0x180051d88
dec rax
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.180064df0
test rax, rax
je 0x180051dad
cmp byte [rsp + rax + 0x1f], 0x2f
je 0x180051da8
cmp byte [rsp + rax + 0x1f], 0x5c
jne 0x180051dad
mov byte [rsp + rax + 0x1f], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180051dca
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [rbp]
test al, al
je 0x180051ef3
mov rdi, rbp
mov rcx, rbp
cmp al, 0x2f
je 0x180051de3
cmp al, 0x5c
jne 0x180051de6
mov rdi, rcx
inc rcx
mov al, byte [rcx]
test al, al
jne 0x180051ddb
cmp rdi, rbp
je 0x180051e19
sub rdi, rbp
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov r8, rdi
call fcn.180066290
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov byte [rsp + rdi + 0x20], 0
call fcn.180051d24
xor edi, edi
mov byte [rsp + 0x130], dil
cmp rsi, rdi
je 0x180051e61
lea rdx, [rsp + 0x130]
mov rcx, rbx
lea rax, [rsp + 0x130]
sub rsi, rdx
cmp rcx, rdi
je 0x180051e5b
mov dl, byte [rsi + rax]
cmp dl, dil
je 0x180051e56
mov byte [rax], dl
inc rax
sub rcx, 1
jne 0x180051e3e
cmp rcx, rdi
jne 0x180051e5e
dec rax
mov byte [rax], dil
lea rcx, [rsp + 0x130]
mov byte [rsp + 0x233], dil
call fcn.180064df0
sub rbx, rax
lea rcx, [rsp + rax + 0x130]
cmp rbx, rdi
je 0x180051ec8
cmp rbx, 0x7fffffff
ja 0x180051ec8
cmp rbx, 0x7ffffffe
ja 0x180051ec5
mov rdx, rbx
sub rdx, rbx
sub rbp, rcx
lea rax, [rdx + rbx]
cmp rax, rdi
je 0x180051ebd
mov al, byte [rcx + rbp]
cmp al, dil
je 0x180051ebd
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x180051ea1
cmp rbx, rdi
jne 0x180051ec5
dec rcx
mov byte [rcx], dil
lea rcx, [rsp + 0x130]
mov byte [rsp + 0x233], dil
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180051ef3
lea rcx, [rsp + 0x130]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180064d20
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x180053000
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov byte [rcx + 0x2c], 1
mov rcx, qword [rcx + 0x20]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18005302f
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x20
pop rbx
ret

Function at 0x180054a24
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 0x28]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x180054044]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x20], rax
add rsp, 0x30
pop rbx
ret
Function at 0x18005a75c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.SetLayeredWindowAttributes
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.AnimateWindow
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.UpdateLayeredWindow
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.shell32.dll
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180096eb0]
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.CoInternetSetFeatureEnabled
mov rcx, rax
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x40]
lea rdx, str.CoInternetIsFeatureEnabled
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.uxtheme.dll
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.GetCurrentThemeName
mov rcx, rax
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.dwmapi.dll
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x68]
lea rdx, str.DwmEnableComposition
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ieframe.dll
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IEGetWriteableHKCU
mov rcx, rax
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.IERegCreateKeyEx
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x90], rax
setne al
cmp qword [rbx + 0x68], 0
mov byte [rbx + 1], al
setne al
mov byte [rbx], al
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x18005ba74
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov byte [rdx], 0
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
setns al
add rsp, 0x48
ret
Function at 0x18005c2c0
Capabilities:
Download url
Receive data

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
and dword [rsp + 0x30], 0
lea rdx, [0x18008cc60]
lea rcx, [r11 - 0x38]
call fcn.180002188
nop
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.c:TEMP_tmp.xml
mov rdx, rbx
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x18005c3c3
lea rdx, str.c:TEMP_tmp.xml
lea rcx, [rsp + 0x60]
call fcn.180002188
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.18005bcd0
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18005c3b5
mov qword [rsp + 0x50], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.18005be08
mov r11, qword [rsp + 0x48]
test r11, r11
je 0x18005c3b5
or eax, 0xffffffff
lock xadd dword [r11 + 0x10], eax
add eax, 0xffffffff
jne 0x18005c3b0
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005c393
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005c3a1
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov rbx, qword [rsp + 0x38]
jmp 0x18005c3b5
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18005c3c3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
test rax, rax
je 0x18005c3da
lock add dword [rax + 0x10], 1
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x18005c415
or ecx, 0xffffffff
lock xadd dword [rax + 0x10], ecx
add ecx, 0xffffffff
jne 0x18005c415
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005c3ff
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005c40d
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180064d20
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x18005c854
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov eax, dword [0x1800bd76c]
xor ebx, ebx
cmp eax, ebx
jne 0x18005c8b6
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, SysAllocStringByteLen
call fcn.1800649f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x30]
mov dword [0x1800bd76c], eax
mov dword [0x1800bd768], ecx
jmp 0x18005c8bc
mov ecx, dword [0x1800bd768]
cmp eax, 6
jne 0x18005c8c9
cmp ecx, 2
jne 0x18005c8c9
lea ebx, [rax - 5]
mov al, bl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180064d20
add rsp, 0xd0
pop rbx
ret
Function at 0x18005c8e4
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov eax, dword [0x1800bd774]
xor ebx, ebx
cmp eax, ebx
jne 0x18005c946
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, SysAllocStringByteLen
call fcn.1800649f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x30]
mov dword [0x1800bd774], eax
mov dword [0x1800bd770], ecx
jmp 0x18005c94c
mov ecx, dword [0x1800bd770]
cmp eax, 5
jne 0x18005c959
cmp ecx, 2
jne 0x18005c959
lea ebx, [rax - 4]
mov al, bl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180064d20
add rsp, 0xd0
pop rbx
ret

Function at 0x18005cb70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rax, r8
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, rcx
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x18005cbf4
mov rcx, qword [rsp + 0x38]
lea eax, [rbx + 4]
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x18005cbe9
cmp dword [rsp + 0x68], ebx
setne bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18005cc04
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov r10, r9
mov rdi, rdx
mov qword [r11 - 0x28], rbx
cmp r8b, bl
mov eax, ebx
setne al
mov rdx, rcx
mov rcx, r10
mov dword [r11 + 0x18], eax
lea rax, [r11 - 0x18]
xor r9d, r9d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x18005cc95
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 4]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [rbx + 1]
cmp eax, ebx
movzx ecx, bl
cmove ecx, edx
mov bl, cl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x18005d0f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, rdx
lea rax, [rsp + 0x38]
mov rsi, rcx
lea rdx, str.SOFTWAREMicrosoftInternet_Explorer
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x64
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18005d15e
mov eax, 0x284
jmp 0x18005d2db
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.Version
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x18005d1a5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x285
jmp 0x18005d2db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x1800974c8]
lea rcx, [rsp + 0x50]
call fcn.180065e9c
mov rdi, rax
test rax, rax
jne 0x18005d1ce
mov eax, 0x28a
jmp 0x18005d2db
lea rax, [rsp + 0x50]
mov r12d, edi
mov ebx, 5
sub r12d, eax
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8, rbx
inc r12d
call fcn.1800649f0
lea r11d, [r12 - 1]
movsxd r8, r11d
cmp r8, 0x7ffffffe
jbe 0x18005d208
mov byte [rsp + 0x44], 0
jmp 0x18005d243
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov rcx, rbx
sub r9, rdx
lea rax, [rsp + 0x44]
test r8, r8
je 0x18005d238
mov dl, byte [r9 + rax]
test dl, dl
je 0x18005d238
mov byte [rax], dl
dec r8
inc rax
sub rcx, 1
jne 0x18005d21d
test rcx, rcx
jne 0x18005d240
dec rax
mov byte [rax], 0
lea rcx, [rsp + 0x44]
call fcn.180067c80
inc rdi
lea rdx, [0x1800974c8]
mov rcx, rdi
mov dword [rsi], eax
call fcn.180065e9c
mov rsi, rax
test rax, rax
jne 0x18005d26e
and dword [rbp], eax
jmp 0x18005d2d9
lea rcx, [rsp + 0x44]
mov r8, rbx
xor edx, edx
call fcn.1800649f0
sub esi, r12d
lea rax, [rsp + 0x50]
sub esi, eax
movsxd rcx, esi
cmp rcx, 0x7ffffffe
jbe 0x18005d29a
mov byte [rsp + 0x44], 0
jmp 0x18005d2cc
lea rdx, [rsp + 0x44]
lea rax, [rsp + 0x44]
sub rdi, rdx
test rcx, rcx
je 0x18005d2c1
mov dl, byte [rdi + rax]
test dl, dl
je 0x18005d2c1
mov byte [rax], dl
dec rcx
inc rax
sub rbx, 1
jne 0x18005d2a7
test rbx, rbx
jne 0x18005d2c9
dec rax
mov byte [rax], 0
lea rcx, [rsp + 0x44]
call fcn.180067c80
mov dword [rbp], eax
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180064d20
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18005db08
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x20f8
call fcn.180080590
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0x20e0], rax
mov rdi, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
and dword [rsp + 0x34], 0
lea rcx, [0x1800ba5a8]
mov rax, qword [0x1800ba5a8]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18005dbf1
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x2080
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005dbe6
lea rcx, [rsp + 0x60]
call fcn.180065f84
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1800113a4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rsp + 0x20e0]
xor rcx, rsp
call fcn.180064d20
add rsp, 0x20f8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18005f090
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x610
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rsi, rdx
mov rdi, rcx
and dword [rsp + 0x80], 0
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [r11 - 0x590]
call fcn.1800649f0
and qword [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
mov rcx, qword [0x1800bd7a8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x50], 0x77583131
lea rdx, [rsp + 0x50]
lea rcx, [0x1800bd6f0]
call fcn.1800088e4
mov rbx, qword [rax]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x18005f13b
lock add dword [rbx + 0x10], 1
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18005f159
cmp qword [rbx + 8], 0
jne 0x18005f153
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov r9, qword [rbx + 8]
jmp 0x18005f15c
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r8, str._sdtuser.exe_runappasadmin___s____s_
mov edx, 0x400
lea rcx, [rsp + 0x200]
call fcn.18000d8e4
lea r11, [rsp + 0x60]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], SafeArrayAllocDescriptor
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne dil
test rbx, rbx
je 0x18005f206
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
jne 0x18005f206
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005f1f0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005f1fe
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov al, dil
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.180064d20
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180063b28
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x1800bd778], 0
je 0x180063b3a
xor al, al
jmp 0x180063b85
cmp qword [0x1800bd788], 0
jne 0x180063b5d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1800bd788], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180063834]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800bd790], rax
mov al, 1
add rsp, 0x38
ret
Function at 0x180063ef4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1800bd848]
test rcx, rcx
jne 0x180063e4b
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x180063e44
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180063e76
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x180063e40
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x1800bd848], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x180063ee9
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180063e99
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], SafeArrayAllocDescriptor
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x1800bd848]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x180063ec6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x180063ee9
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1800bd848]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x180063ecd
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x180063dd0

Function at 0x18006b91c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18006b790
Function at 0x18006beab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800ba600]
jne 0x180064d3a
rol rcx, 0x10
test cx, 0xffff
jne 0x180064d36
repz ret
ror rcx, 0x10
jmp 0x18006be04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800bdd90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800bde88]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18006be89
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800bdd90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18006beab
mov rax, qword [rsp + 0x88]
mov qword [0x1800bde88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800bde28], rax
mov rax, qword [0x1800bde88]
mov qword [0x1800bdd00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800bde10], rax
mov dword [0x1800bdcf0], 0xc0000409
mov dword [0x1800bdcf4], 1
mov rax, qword [0x1800ba600]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800ba608]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800bdd88], eax
mov ecx, 1
call fcn.18006d4dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180099140]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800bdd88], 0
jne 0x18006bf32
mov ecx, 1
call fcn.18006d4dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret