joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001818
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 0x180001850
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x180001855
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180001855
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180001860
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x180052eb0]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001966
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x18000194c
mov dx, 0x3a
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x180058890]
mov r8, rdi
lea rcx, [rax + 2]
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x18000194c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001930
xor ebx, ebx
jmp 0x180001938
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180001954
call fcn.180001818
jmp 0x180001952
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001978
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov esi, r9d
mov r13d, edx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001aa9
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x180052eb0]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001aae
lea ecx, [r12 + 1]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [0x180057163]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.1800193cc
test eax, eax
mov ebx, eax
jne 0x180001a95
test esi, esi
je 0x180001a95
lea r8, [rsp + 0x30]
lea rdx, [0x180057257]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180001a95
movsx r8d, byte [0x180057200]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
add eax, 1
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001aae
mov ebx, 0xb
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x180001acc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rsi, r8
mov r13, rdx
mov r14, rcx
lea r8, [rsp + 0x48]
lea rdx, [0x180057257]
mov rcx, 0xffffffff80000001
mov rdi, r9
xor ebp, ebp
lea r12, [r9 + 0x208]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001bb1
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r8, rdi
mov edx, ebp
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x98], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
mov ebx, eax
jne 0x180001ba2
cmp dword [rsp + 0x44], 1
jne 0x180001b91
mov eax, dword [rsp + 0x98]
mov rdx, r14
mov rcx, r12
shr rax, 1
and word [r12 + rax*2], bx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x180001b96
add ebp, 1
jmp 0x180001b1a
test rsi, rsi
mov qword [r13], rdi
je 0x180001ba2
mov qword [rsi], r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180001bc3
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x180001be0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rcx, qword [0x180052eb0]
mov rbx, r8
xor edx, edx
mov r8d, 0x410
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180001c23
lea rdx, [rsp + 0x48]
mov r9, rax
xor r8d, r8d
mov rcx, rbx
call fcn.180001acc
mov ebx, eax
jmp 0x180001c28
mov ebx, 8
test ebx, ebx
jne 0x180001ca1
lea r8, [rsp + 0x30]
lea rdx, [0x180057257]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001c8d
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180001c82
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180001dc0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180053038]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001e1d
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.180018804
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180001f28
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and qword [rsp + 0x70], 0
cmp edx, 0x20
mov ebp, r8d
mov rbx, rcx
jb 0x180002096
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x14]
add r9d, dword [rcx + 0x10]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180002096
add qword [rcx], rcx
add qword [rcx + 8], rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x18000208f
mov eax, dword [0x180053080]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x180053078]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x88]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x38], rax
call fcn.18001b654
test eax, eax
mov edi, eax
jne 0x18000209b
cmp dword [rbx + 0x18], eax
je 0x18000204c
mov ecx, 0xd80
call fcn.1800177e0
test rax, rax
mov rsi, rax
je 0x18000204c
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180001e2c
test eax, eax
jne 0x18000203a
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001e2c
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x18000203a
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180052eb0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x18000209b
mov rcx, qword [rsp + 0x88]
lea rdx, [0x1800581a2]
xor r9d, r9d
xor r8d, r8d
call fcn.18001a59c
test rax, rax
je 0x180002088
mov eax, dword [rax]
add rax, qword [rsp + 0x88]
je 0x180002088
lea rcx, [0x1800525b8]
xor edx, edx
call rax
jmp 0x18000209b
mov edi, 0x7f
jmp 0x18000209b
mov edi, 0xb
jmp 0x18000209b
mov edi, 0x57
mov rcx, qword [0x180052eb0]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x1800581d5]
mov r8d, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov ecx, 0x10d
call fcn.180011298
mov rcx, qword [0x180052eb0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800024a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x180052eb0]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180002544
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, 1
test eax, eax
jne 0x1800024f8
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.1800176e8
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x180002520
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.1800176e8
lea rcx, [0x180057417]
mov edx, ebx
call fcn.18000210c
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002549
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002c34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov r12, rdx
cmp r8, rbx
mov r13, rcx
mov ebp, ebx
je 0x180002c69
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x180052eb0]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x180002cf3
cmp ebp, ebx
mov qword [rax], r13
mov qword [rax + 8], r12
je 0x180002ca2
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002ca5
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x180002bd8]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
je 0x180002cd7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002cf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002cf8
mov ebx, 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180004c94
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rax + 0x20], 0
mov r12, rcx
mov rcx, qword [0x180053018]
mov rsi, r8
mov rbp, rdx
lea r8, [rax - 0x28]
xor edx, edx
call fcn.180004c00
test eax, eax
mov ebx, eax
jne 0x180004d61
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x180004d56
mov r8d, dword [rsi]
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180004d51
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x180004d3d
mov qword [rbp], rdi
jmp 0x180004d56
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180004d56
mov ebx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x180004d78
Capabilities:
Delete registry value
Set registry value

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, 0x40
mov rsi, rcx
mov rcx, qword [0x180053018]
mov r12d, r8d
mov rdi, rdx
lea r8, [rax - 0x18]
mov edx, 1
mov ebp, r9d
call fcn.180004c00
test eax, eax
mov ebx, eax
jne 0x180004df0
test rdi, rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
je 0x180004ddd
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180004de3
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x180004fb4
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180053010]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.1800196f4
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180005040
mov rcx, qword [0x180052eb0]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180005040
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x18000502e
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.1800416ac
xor dword [rdi], eax
mov rcx, qword [0x180052eb0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x1800050ac
mov rcx, qword [0x180052eb0]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800050ac
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x18000509a
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.1800416ac
xor dword [rdi + 0xc], eax
mov rcx, qword [0x180052eb0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret
Function at 0x1800050d4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x30
mov rcx, qword [0x180053018]
mov edi, dword [0x180052570]
lea r8, [rsp + 0x60]
mov edx, 1
mov dword [rsp + 0x50], 0x28
call fcn.180004c00
lea r13, [0x180052570]
test eax, eax
mov ebx, eax
jne 0x1800051aa
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800571ac]
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x180005150
cmp dword [rsp + 0x50], 0x28
je 0x18000515c
lea rcx, [0x180052578]
call fcn.180004fb4
movzx eax, word [0x180052574]
bt ax, 0xf
jb 0x18000519f
mov rcx, qword [rsp + 0x60]
or ax, 0x800c
lea rdx, [0x1800571ac]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov word [0x180052574], ax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x180052570], 0
jne 0x1800051e9
test edi, edi
mov dword [0x180052570], edi
je 0x1800051df
mov r9d, 3
lea rcx, [0x1800571ac]
mov rdx, r13
lea r8d, [r9 + 0x25]
call fcn.180004d78
cmp dword [0x180052570], 0
jne 0x1800051e9
mov dword [0x180052570], 0x3e8
cmp qword [0x180052ef8], 0
jne 0x18000524e
mov rcx, qword [0x180052eb0]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [0x180052ef8], rax
je 0x18000524e
mov edx, dword [0x180052584]
mov ecx, dword [0x180052580]
mov r9d, dword [0x18005257c]
mov r8d, dword [0x180052578]
bswap edx
bswap ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x180057391]
bswap r9d
bswap r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, ebx
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret

Function at 0x18000525c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test ecx, ecx
movzx edi, r8w
mov eax, ecx
mov ebx, 0x57
jne 0x180005282
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
test eax, eax
je 0x1800052e5
mov rcx, qword [0x180053018]
lea r8, [rsp + 0x30]
mov edx, 1
mov dword [0x180052570], eax
mov word [0x180052574], di
call fcn.180004c00
test eax, eax
mov ebx, eax
jne 0x1800052e5
mov rcx, qword [rsp + 0x30]
lea rax, [0x180052570]
lea r9d, [rbx + 3]
lea rdx, [0x1800571ac]
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800052f4
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [0x180052eb0]
xor edx, edx
mov r8d, 0x1000
xor edi, edi
mov dword [rax + 0x10], 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800053a2
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
test rax, rax
mov rsi, rax
je 0x180005390
mov edi, 1
mov rcx, qword [rbx + 8]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x18000536a
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x38], 0x1000
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x18000534e
mov rcx, rsi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, qword [0x180052eb0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1800053bc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor ebx, ebx
cmp edx, 8
mov r14, r8
mov edi, edx
mov rbp, rcx
jbe 0x1800055a6
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r12, rax
je 0x1800055a6
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
lea r15d, [rbx + 1]
mov edx, edi
mov r8d, r15d
mov rcx, rbp
call fcn.180004b94
cmp eax, ebx
je 0x18000557d
mov r13d, dword [rbp]
mov rcx, qword [0x180052eb0]
xor edx, edx
lea r8d, [r13 + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rsi, rax
je 0x180005594
lea rcx, [rbp + 4]
mov rdx, rax
call fcn.180040a50
cmp eax, r13d
jne 0x180005569
lea rdx, [0x180058201]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
jne 0x180005491
mov edx, edi
mov rcx, r12
call fcn.1800416ac
not eax
mov dword [0x180052ee4], eax
lea rcx, [0x180053c60]
mov r9d, r13d
mov r8, rsi
mov rdx, r14
call fcn.18000767c
mov rcx, qword [0x180053030]
lea r8, [rsp + 0xc8]
mov edx, r15d
call fcn.180004c00
cmp eax, ebx
jne 0x1800054f8
mov rcx, qword [rsp + 0xc8]
mov r9d, 3
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0xc8]
cmp eax, ebx
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov r8d, 6
lea rax, [rdi + 4]
mov edi, dword [rdi]
mov dword [rcx], edi
mov qword [rdx], rax
add rdi, rax
add rcx, 4
add rdx, 8
sub r8, r15
jne 0x18000550b
cmp dword [rsp + 0x30], r15d
jb 0x180005569
mov edx, dword [rsp + 0x34]
cmp edx, r15d
jbe 0x1800054fb
mov rcx, qword [rsp + 0x50]
add edx, 0xffffffff
call fcn.1800416ac
xor eax, dword [0x18005308c]
cmp eax, 0x661ca87
jne 0x1800054fb
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
xor r9d, r9d
mov ecx, 0x102
call fcn.180011298
jmp 0x1800054fb
mov rcx, qword [0x180052eb0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180005594
mov rcx, qword [0x180053c50]
lea rdx, [0x180052576]
add rcx, 8
call fcn.180004e10
mov rcx, qword [0x180052eb0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret