joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800206d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
and qword [rsp + 0x78], 0
mov ebx, edx
mov rbp, rcx
lea rdx, [0x180036327]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov edi, eax
jne 0x180020864
mov r8, qword [0x180033e60]
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
xor edx, edx
call fcn.1800213b0
test eax, eax
mov edi, eax
jne 0x180020753
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18002083d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x180033e60]
mov rcx, qword [rsp + 0x30]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edi, eax
jne 0x1800207f5
and dword [rsp + 0x70], eax
mov rax, qword [0x180033bd0]
lea r14, [0x180000000]
lea r8, [rsp + 0x38]
lea rdx, [rax + r14 + 0x37eb2]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1800207f5
mov rax, qword [0x180033bd0]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 4]
lea rdx, [rax + r14 + 0x37b74]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x18002083d
mov rbx, qword [0x1800339c8]
test rbx, rbx
je 0x18002083d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rbx + 0x30]
test r8, r8
je 0x180020826
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, rbp
call fcn.18000715c
mov rcx, rbx
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rsp + 0x78], 0
je 0x180020859
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x180020874
Capabilities:
Access pe header
Allocate or change rwx memory
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
mov r15, qword [0x180033998]
xor ebx, ebx
mov rsi, rcx
mov rdi, rbx
mov qword [rsp + 0x28], rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp rax, rbx
mov r12, rax
je 0x180020a69
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov bpl, bl
call fcn.18001a948
cmp eax, ebx
jne 0x18002096b
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov ebp, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [rsp + 0x80], eax
je 0x180020954
mov rcx, qword [0x1800339a8]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r13, rax
je 0x180020954
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov r9, rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x180020942
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x30]
lea rdx, [0x18002d77c]
mov rcx, r13
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x180020942
mov rax, qword [rsp + 0x30]
mov ebp, dword [rax + 8]
mov rcx, qword [0x1800339a8]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x20]
mov rcx, qword [0x1800339a8]
xor edx, edx
shr ebp, 0x10
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov cl, bpl
call fcn.18001abcc
mov rcx, qword [0x180033b20]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [0x180033980], rax
call fcn.18002a0d4
cmp eax, ebx
jne 0x180020a00
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1800152b0
cmp eax, ebx
jne 0x180020a00
cmp dword [rsp + 0x88], 0x10
jne 0x180020a00
mov r8, qword [rsp + 0x30]
mov eax, dword [r12 + 0x58]
cmp dword [r8], eax
jne 0x1800209ec
cmp qword [r8 + 8], rbx
je 0x1800209ec
mov eax, dword [r12 + 0x50]
cmp qword [r8 + 8], rax
jae 0x1800209ec
mov rax, qword [r8 + 8]
lea rdi, [rsi + rax]
mov qword [rsp + 0x28], rdi
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rdi, rbx
jne 0x180020a52
xor ecx, ecx
mov edx, 0x1000000
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rbx
mov qword [0x180033aa8], rax
je 0x180020a61
mov eax, dword [r12 + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov qword [0x180033978], r15
mov qword [0x180033970], rsi
mov dword [0x180033968], eax
call fcn.180027f38
cmp eax, ebx
jne 0x180020a6e
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.180014dc0
mov ebx, eax
jmp 0x180020a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180020a5d
mov ebx, 0xb
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800210b8
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r9
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.180011f64
cmp rax, rbx
mov r13, rax
je 0x180021126
mov rdx, rdi
mov rcx, rax
call fcn.1800094a0
mov rdx, qword [rsi + 0x20]
lea r9, [rsi + 0x28]
mov r8d, dword [r9]
mov dword [rsi + 0x2c], r8d
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea ecx, [rbx + 1]
lea r8, [r13 - 0x34]
cmp eax, ebx
cmove ebx, ecx
xor edx, edx
xor ecx, ecx
call fcn.180022ca8
jmp 0x180021148
cmp dword [rsp + 0x60], ebx
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
je 0x180021140
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x180021146
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1800213b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rsp + 0x68], 0
mov r12, r8
lea rax, [r11 + 0x10]
mov rbp, r9
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
lea r9, [r11 - 0x28]
xor r8d, r8d
mov rdx, r12
mov rsi, rcx
mov qword [r11 - 0x20], rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180021477
mov rcx, qword [0x1800339a8]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180021472
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, eax
jne 0x18002145e
mov rcx, qword [rsp + 0x80]
mov qword [rbp], rbx
test rcx, rcx
je 0x180021477
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x180021477
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180021477
mov edi, 8
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x180021487
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180021964
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180033e80]
lea rbp, [0x180033e80]
jmp 0x180021a12
mov rsi, rbx
mov rbx, qword [rbx]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rdi, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1800219d6
lea rcx, [0x18003691e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1800372aa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180021a00
mov rcx, rdi
call rax
jmp 0x180021a00
cmp qword [0x180033c40], 0
je 0x180021a00
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r8, rdi
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rbx, rbp
jne 0x18002198b
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800226d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
mov rbp, r8
lea r8, [rax - 0x10]
mov rcx, 0xffffffff80000001
mov rsi, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x1800227c4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800227b9
mov rcx, qword [0x1800339a8]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800227b4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x1800227a0
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rdi
test rcx, rcx
je 0x1800227b9
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x1800227b9
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800227b9
mov ebx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180022e88
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x180022ec0
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x180022ec5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180022ec5
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180022ed0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
test rcx, rcx
mov qword [rsp + 0x68], rdi
je 0x180022f7d
xor edx, edx
call fcn.180017b98
test rax, rax
mov rbp, rax
je 0x180022f76
mov rsi, rax
lea ebx, [rdi + 0x57]
mov dx, 0x20
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
test rax, rax
mov rdi, rax
je 0x180022f1d
mov byte [rax], 0
add rdi, 1
mov rdx, qword [0x180033bd0]
lea rax, [0x180037f09]
mov rcx, rsi
add rdx, rax
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
cmp byte [rsi], 0
je 0x180022f5a
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov r9d, 1
mov rcx, rsi
call fcn.180017260
test eax, eax
mov ebx, eax
je 0x180022f62
test rdi, rdi
mov rsi, rdi
jne 0x180022f01
mov rcx, qword [0x1800339a8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180022fb5
mov ebx, 8
jmp 0x180022fba
mov rcx, qword [0x180033a88]
lea rax, [rsp + 0x60]
mov r9d, 1
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x80000007
mov dword [rsp + 0x20], 1
call fcn.180026bbc
mov ebx, eax
mov rdi, qword [rsp + 0x68]
test ebx, ebx
jne 0x1800230a5
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x1800230a0
cmp word [rax + 4], 0x8664
jne 0x1800230a0
mov ebx, dword [rsp + 0x60]
cmp ebx, 0x40000
ja 0x18002301f
mov r8d, dword [0x180033b9c]
xor r9d, r9d
mov edx, ebx
mov rcx, rdi
call fcn.180015164
lea rcx, [0x180036268]
mov r9d, 3
mov r8d, ebx
mov rdx, rdi
call fcn.18001ee14
mov ebx, eax
jmp 0x1800230a5
xor ecx, ecx
call fcn.180015180
test rax, rax
mov rsi, rax
je 0x180023099
and qword [rsp + 0x20], 0
mov r9d, ebx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.180018210
test eax, eax
mov ebx, eax
jne 0x180023085
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, dword [0x180033b9c]
xor r9d, r9d
mov ebx, eax
mov rcx, rsi
lea edx, [rbx + 1]
call fcn.180015164
lea r8d, [rbx + 1]
lea rcx, [0x180036268]
mov r9d, 3
mov rdx, rsi
call fcn.18001ee14
mov ebx, eax
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800230a5
mov ebx, 8
jmp 0x1800230a5
mov ebx, 0xb
test rdi, rdi
je 0x1800230bc
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180023b80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800339a8]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180023c3b
lea rdx, [0x180036452]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180033b28]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180023c29
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 1]
add eax, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180024718
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
and dword [rax + 0x18], 0
xor esi, esi
cmp byte [0x180033b94], 6
mov rbp, rdx
mov rbx, rcx
mov edi, 8
ja 0x1800247c4
test rcx, rcx
je 0x1800247c4
mov rax, qword [rdx + 0x30]
movabs r13, 0x8000000000000000
test qword [rax + 8], r13
jne 0x18002476b
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov esi, eax
je 0x1800247c4
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rbx
test qword [rcx + 8], r13
jne 0x1800247a1
lea ecx, [rdi - 2]
mov byte [rcx + rbx], 0x7e
jmp 0x1800247ae
movabs rax, 0x4000000000000000
or qword [rbx], rax
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180025438
Capabilities:
Get keyboard layout
Log keystrokes via polling

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 r12
sub rsp, 0x180
mov r12d, pe_nt_image_headers64
xor esi, esi
mov ebp, r9d
cmp edx, r12d
mov edi, r8d
mov rbx, rcx
jne 0x180025609
lea r8d, [rsi + 0x2a]
lea rcx, [rsp + 0x48]
xor edx, edx
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x80]
mov r8, r12
xor edx, edx
call sub.ntdll.dll_memset
lea edx, [rsi + 3]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetAncestor]
mov r12d, dword [rsp + 0x1b8]
mov ecx, dword [rsp + 0x1c0]
mov r8, rax
cmp rax, rsi
mov eax, dword [rsp + 0x1b0]
cmove r8, rbx
mov rdx, rbx
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r8
call fcn.18002a394
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x60], eax
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, esi
je 0x180025609
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 0xa0
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x120], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [rsi + 0x10]
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x121], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov qword [rsp + 0x30], rbx
mov r11w, ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
shr r11, 8
mov edx, ebp
mov ecx, edi
mov dword [rsp + 0x28], esi
mov word [rsp + 0x40], si
mov byte [rsp + 0x90], r11b
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 0xffffffff
je 0x180025604
cmp eax, esi
je 0x1800255ad
movsxd rbx, eax
cmp rbx, rsi
jle 0x180025604
movzx eax, word [rsp + rsi*2 + 0x40]
lea rcx, [rsp + 0x48]
mov word [rsp + 0x68], ax
call fcn.18001a494
add rsi, 1
cmp rsi, rbx
jl 0x18002558e
jmp 0x180025604
sub edi, 8
movzx eax, si
je 0x1800255ec
sub edi, 1
je 0x1800255e6
sub edi, 0x1c
je 0x1800255e0
sub edi, 1
je 0x1800255da
sub edi, 1
je 0x1800255d4
cmp edi, 1
jne 0x1800255f0
mov ax, 0x2193
jmp 0x1800255f0
mov ax, 0x2192
jmp 0x1800255f0
mov ax, 0x2191
jmp 0x1800255f0
mov ax, 0x2190
jmp 0x1800255f0
mov ax, 0x2423
jmp 0x1800255f0
mov ax, 0x21d0
cmp ax, si
mov word [rsp + 0x68], ax
je 0x180025604
lea rcx, [rsp + 0x48]
call fcn.18001a494
mov esi, 1
lea r11, [rsp + 0x180]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x180026c8c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x30
mov rcx, qword [0x180033b20]
mov ebx, dword [0x180032128]
lea r8, [rsp + 0x60]
mov edx, 1
mov dword [rsp + 0x50], 0x28
call fcn.18002a0d4
lea r13, [0x180032128]
test eax, eax
mov edi, eax
jne 0x180026d64
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x180036213]
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180026d08
cmp dword [rsp + 0x50], 0x28
je 0x180026d16
lea rcx, [0x180032130]
xor edx, edx
call fcn.18001c750
movzx eax, word [0x18003212c]
bt ax, 0xf
jb 0x180026d59
mov rcx, qword [rsp + 0x60]
or ax, 0x801c
lea rdx, [0x180036213]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov word [0x18003212c], ax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x180032128], 0
jne 0x180026da3
test ebx, ebx
mov dword [0x180032128], ebx
je 0x180026d99
mov r9d, 3
lea rcx, [0x180036213]
mov rdx, r13
lea r8d, [r9 + 0x25]
call fcn.18001ee14
cmp dword [0x180032128], 0
jne 0x180026da3
mov dword [0x180032128], 0x3e8
cmp qword [0x180033e38], 0
jne 0x180026e1b
mov rcx, qword [0x1800339a8]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180026e14
mov r11d, dword [0x18003213c]
mov r10d, dword [0x180032138]
mov r9d, dword [0x180032134]
mov r8d, dword [0x180032130]
mov rdx, qword [0x180033bd0]
lea rax, [0x180036465]
bswap r11d
bswap r10d
bswap r9d
mov dword [rsp + 0x28], r11d
bswap r8d
add rdx, rax
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfA]
mov qword [0x180033e38], rbx
mov eax, edi
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret

Function at 0x180027804
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov edi, eax
je 0x18002786b
mov rcx, qword [0x1800339a8]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18002786b
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x18002786b
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180027b90
Capabilities:
Access pe header
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, 0x57
call fcn.180009458
xor ebp, ebp
cmp eax, ebp
je 0x180027d84
cmp dword [rcx + 0x10], ebp
je 0x180027d84
mov rcx, qword [rcx]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
lea esi, [rbx - 0x4c]
cmp rax, rbp
je 0x180027bf3
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi]
mov rcx, qword [0x180033b20]
lea rdx, [0x1800376f7]
mov dword [rsp + 0x20], 1
call fcn.18001e71c
mov ebx, eax
jmp 0x180027bf5
mov ebx, esi
cmp ebx, ebp
jne 0x180027d84
cmp dword [rdi + 0x14], ebp
je 0x180027c3c
mov rcx, qword [rdi + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp rax, rbp
je 0x180027c38
mov r9d, dword [rdi + 0x14]
mov r8, qword [rdi + 8]
mov rcx, qword [0x180033b20]
lea rdx, [0x180037a24]
mov dword [rsp + 0x20], 1
call fcn.18001e71c
mov ebx, eax
jmp 0x180027c41
mov ebx, esi
jmp 0x180027c41
mov ebx, 0x57
cmp ebx, ebp
jne 0x180027d84
mov rdi, qword [0x1800339c8]
mov qword [rsp + 0x60], rbp
cmp rdi, rbp
je 0x180027c63
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x68]
lea rdx, [0x180036327]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebp
mov ebx, eax
jne 0x180027d76
mov r8, qword [0x180033e60]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.1800213b0
cmp eax, ebp
je 0x180027ccb
cmp rdi, rbp
je 0x180027cc6
mov rcx, qword [rdi + 0x30]
cmp rcx, rbp
je 0x180027cc6
xor edx, edx
call fcn.18000715c
mov rsi, rax
jmp 0x180027cd0
mov rsi, rbp
jmp 0x180027cd0
mov rsi, qword [rsp + 0x60]
cmp rsi, rbp
je 0x180027d66
cmp rdi, rbp
je 0x180027cf1
mov rcx, qword [rdi + 0x28]
cmp rcx, rbp
je 0x180027cf1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], rbp
lea rbx, [0x180037e40]
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, rbp
je 0x180027d0f
add rax, 0x12
jmp 0x180027d2b
mov dx, 0x20
mov rcx, rsi
mov rbx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, rbp
je 0x180027d2b
mov word [rax], bp
add rax, 2
lea rdx, [0x1800366e0]
mov r9, rax
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [0x1800339a8]
mov r8, rsi
mov rbx, rax
cmp eax, 0x20
cmovg ebx, ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180027d6b
mov ebx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp rdi, rbp
je 0x180027d84
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret