joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800050c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x180058460]
xor ebx, ebx
call qword [rax + 0x2d8]
mov rdi, rax
test rax, rax
je 0x1800050f0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800050f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1800297b8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180005120
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x180058460]
mov rbx, rdx
xor edi, edi
call qword [rax + 0x2d8]
mov rcx, rbx
mov rsi, rax
mov rax, qword [0x180058460]
call qword [rax + 0x2d8]
mov rbx, rax
test rsi, rsi
je 0x180005171
test rax, rax
je 0x180005171
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x180005179
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.1800297b8
mov rcx, rbx
call fcn.1800297b8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x1800051b0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x180058460]
mov rbx, rdx
xor edi, edi
call qword [rax + 0x2d8]
mov rcx, rbx
mov rsi, rax
mov rax, qword [0x180058460]
call qword [rax + 0x2d8]
mov rbx, rax
test rsi, rsi
je 0x180005204
test rax, rax
je 0x180005204
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18000520c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.1800297b8
mov rcx, rbx
call fcn.1800297b8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x180006b50
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x10280
call fcn.18002b3a0
sub rsp, rax
mov rax, qword [rdx]
mov r14, r8
mov rbp, rcx
mov r9, rcx
mov rdi, rdx
lea r8, [0x180040c38]
lea rcx, [rsp + 0x280]
mov edx, 0x8000
mov qword [rsp + 0x20], rax
call fcn.18002b968
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180006c88
mov qword [rsp + 0x10290], rbx
movzx edx, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5e]
cmp dx, word [0x180040c30]
jne 0x180006bdf
cmp cx, word [0x180040c32]
je 0x180006c45
cmp dx, word [0x180040bf8]
jne 0x180006bff
cmp cx, word [0x180040bfa]
jne 0x180006bff
movzx eax, word [rsp + 0x60]
cmp ax, word [0x180040bfc]
je 0x180006c45
test byte [rsp + 0x30], 0x10
jne 0x180006c45
mov rbx, qword [rsp + 0x44]
mov rcx, rbx
call fcn.180005b60
mov ecx, dword [rdi + 0x14]
cmp ecx, 0xffffffff
je 0x180006c1f
cmp ecx, eax
ja 0x180006c45
mov ecx, dword [rdi + 0x18]
cmp ecx, 0xffffffff
je 0x180006c2b
cmp ecx, eax
jb 0x180006c45
mov r9d, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.180005ba0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180006bc3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x10290]
xor eax, eax
lea r11, [rsp + 0x10280]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x180006c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180006c6e
Function at 0x180006cb0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x2a0
xor esi, esi
mov rbx, rcx
mov rbp, rdx
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x30], esi
mov edi, esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x50], esi
call fcn.180029f20
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x180006cf5
add rcx, 5
cmp dword [rsp + 0x2d8], 0x20
jg 0x180006ee6
cmp rcx, 0x8000
jae 0x180006ee6
mov edx, 2
call fcn.180029774
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180006ee6
lea r8, str._s.
mov r9, rbx
mov edx, 0x8000
mov rcx, rax
call fcn.18002b968
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x180006ec5
nop dword [rax + rax]
test byte [rsp + 0x50], 0x10
je 0x180006e64
cmp dword [rbp + 0x10], 0
je 0x180006e94
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, word [0x180040c30]
jne 0x180006da5
cmp ax, word [0x180040c32]
je 0x180006e94
cmp cx, word [0x180040bf8]
jne 0x180006dcc
cmp ax, word [0x180040bfa]
jne 0x180006dcc
movzx eax, word [rsp + 0x80]
cmp ax, word [0x180040bfc]
je 0x180006e94
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180006dd0
lea rdx, [rsp + 0x7c]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x180006df0
lea rsi, [rax + rcx]
mov edx, 2
lea rcx, [rsi + 0x20]
call fcn.180029774
mov rdi, rax
test rax, rax
je 0x180006e8c
lea rax, [rsp + 0x7c]
lea r8, [0x180040c38]
lea rdx, [rsi + 0x20]
mov r9, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18002b968
mov r9d, dword [rsp + 0x2d8]
mov r8, qword [rsp + 0x2d0]
inc r9d
mov rdx, rbp
mov rcx, rdi
call fcn.180006cb0
mov rcx, rdi
mov esi, eax
mov dword [rsp + 0x30], eax
call fcn.1800297b8
jmp 0x180006e90
test edi, edi
jne 0x180006e94
mov r8, qword [rsp + 0x2d0]
mov rdx, rbp
mov rcx, rbx
call fcn.180006b50
mov edi, 1
mov esi, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edi
jmp 0x180006e94
mov esi, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180006d70
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x40]
call fcn.1800297b8
mov eax, esi
jmp 0x180006ee8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x180006ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rsp + 0x40]
call fcn.1800297b8
mov eax, esi
jmp 0x180006ee8
xor eax, eax
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006fe0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [rsp + 0x58]
mov ebx, 0x61
mov ebp, eax
xor r12d, r12d
nop dword [rax]
nop word [rax + rax]
movzx r9d, bx
lea ecx, [r9 - 0x61]
movzx edx, cl
bt ebp, edx
jae 0x18000707e
xor eax, eax
lea r8, [0x180041008]
lea rcx, [rsp + 0x58]
lea edx, [rax + 3]
mov word [rsp + 0x58], r12w
mov dword [rsp + 0x5a], eax
call fcn.18002b968
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffd
cmp eax, 1
ja 0x18000707e
lea rax, [rsp + 0x58]
mov r9, r14
mov r8, rdi
xor edx, edx
mov rcx, r15
mov qword [rdi + 8], rax
call fcn.180006f10
mov esi, eax
inc bx
cmp bx, 0x7a
jbe 0x180007020
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 8], r12
mov eax, esi
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x180007150
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov rcx, qword [rcx + 0x18]
mov rdi, rdx
xor eax, eax
lea rdx, [rsp + 0x20]
lea r8, [r11 + 0x18]
mov dword [r11 + 0x18], 0x80
mov word [r11 + 8], ax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x180007193
mov eax, 0x507
add rsp, 0xa0
pop rdi
ret
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xb8], rbx
call fcn.180007220
mov rbx, rax
test rax, rax
jne 0x1800071c9
lea eax, [rbx + 0xe]
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov r8, rax
mov rax, qword [0x180058460]
mov edx, 0x105de
mov rcx, rdi
call qword [rax + 0x50]
mov rax, qword [0x180058460]
movzx r8d, word [rsp + 0xb0]
mov edx, 0x205df
mov rcx, rdi
call qword [rax + 0x58]
mov rcx, rbx
call fcn.1800297b8
mov rbx, qword [rsp + 0xb8]
xor eax, eax
add rsp, 0xa0
pop rdi
ret
Function at 0x180008170
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor eax, eax
mov r15, r9
movzx r13d, r8w
mov r12, rdx
mov edi, eax
mov ebx, eax
mov ebp, eax
test r9, r9
je 0x1800081ab
mov qword [r9], rax
mov r14, qword [rsp + 0xb0]
test r14, r14
je 0x1800081bb
mov qword [r14], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], eax
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800081e9
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000825f
mov eax, 2
movzx ecx, r13w
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, r12
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
cmp eax, 0xffffffff
jne 0x180008240
mov rcx, r12
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x18000822a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000825f
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x34]
mov rdx, qword [rdx]
call fcn.1800299a0
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000826e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test eax, eax
je 0x18000835b
jmp 0x180008300
mov ecx, 0x28
call fcn.1800297f8
mov rdi, rax
test rax, rax
jne 0x180008285
lea ebx, [rax + 8]
jmp 0x180008300
xor eax, eax
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x18], rsi
xor ecx, ecx
mov qword [rdi], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rax, [0x180008430]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
lea rax, [0x180008540]
mov qword [rsp + 0x50], rax
mov rax, qword [0x180058460]
call qword [rax + 0x1f8]
mov rbp, rax
test rax, rax
jne 0x180008312
mov rcx, rdi
lea ebx, [rax + 8]
call fcn.1800083a0
xor edi, edi
test rsi, rsi
je 0x18000830e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebp, ebp
jmp 0x18000835b
mov qword [rdi + 8], rax
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x18000835b
mov rcx, qword [rdi + 0x18]
mov r8d, 0x21
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rax, qword [0x180058460]
mov rcx, qword [rdi + 0x10]
lea r9, [0x180008580]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [rax + 0x2c0]
test r15, r15
je 0x180008363
mov qword [r15], rbp
mov eax, ebx
test r14, r14
je 0x18000836d
mov qword [r14], rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180009a90
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov ebp, ecx
mov r13, r8
mov rbx, rdx
xor r14d, r14d
lea rcx, [rsp + 0x54]
mov esi, 1
xor edx, edx
mov r8d, 0x234
mov r12, r9
mov edi, 6
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x50], r14d
call fcn.180029f20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x22]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180009b60
xor eax, eax
lea r8, [rsp + 0x44]
lea rdx, str.SeDebugPrivilege
mov dword [rsp + 0x4c], eax
xor ecx, ecx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x44], rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x180009b55
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180009c83
lea rdx, [0x180040ab8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Process32FirstW
mov rcx, r15
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Process32NextW
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x180009c6f
test r14, r14
je 0x180009c6f
test rsi, rsi
je 0x180009c6f
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180009c59
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x238
call r14
test eax, eax
je 0x180009c59
mov r14, qword [rsp + 0x2c8]
mov dword [rsp + 0x30], 0
nop dword [rax + rax]
mov ecx, dword [rsp + 0x58]
call fcn.180009960
cmp ebp, eax
jne 0x180009c4b
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x7c]
call fcn.18002bcd8
test rax, rax
jne 0x180009c4b
mov ecx, dword [rsp + 0x58]
mov r9, r12
mov r8, r13
mov rdx, r14
call fcn.18000c990
mov edi, eax
test eax, eax
je 0x180009c59
lea rdx, [rsp + 0x50]
mov rcx, rbx
call rsi
test eax, eax
jne 0x180009c10
test rbx, rbx
je 0x180009c67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x2c8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x30], 0
jne 0x180009c83
mov eax, edi
jmp 0x180009c93
mov r9, r12
mov r8, r13
mov rdx, rbx
mov ecx, ebp
call fcn.180009cc0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000e710
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, qword [r8]
xor esi, esi
mov r14d, r9d
mov rdi, r8
mov rbp, rcx
test dl, dl
je 0x18000e75d
mov r8d, r14d
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x18000e75d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000e7af
mov r8, qword [rdi]
lea rax, [rsp + 0x60]
mov r9, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000e755
mov r9d, dword [rsp + 0x70]
cmp r9d, 0x40
je 0x18000e7ad
lea rax, [rsp + 0x58]
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x18000e7ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
mov rbp, qword [rsp + 0x68]
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x18000f480
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180058460]
mov r15, rcx
mov rcx, rdx
mov rbp, r8
call qword [rax + 0xe0]
mov r14, rax
test rax, rax
je 0x18000f605
mov qword [rsp + 0x90], rbx
mov ebx, 0x57
test rbp, rbp
je 0x18000f5e8
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
jne 0x18000f5e3
mov ebx, dword [rsp + 0xa8]
mov qword [rsp + 0x98], rsi
lea edx, [rax + 2]
inc ebx
mov qword [rsp + 0x68], rdi
mov esi, r12d
mov ecx, ebx
mov dword [rsp + 0xa8], ebx
call fcn.180029774
mov rdi, rax
test rax, rax
jne 0x18000f54f
lea ebx, [rax + 8]
jmp 0x18000f5d6
mov r9d, ebx
mov r8, rax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x18000f5c4
nop word [rax + rax]
mov rax, qword [0x180058460]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rbx, rax
test rax, rax
je 0x18000f5a6
mov r9, qword [0x180058460]
mov r8, rax
mov edx, 0x103eb
mov rcx, r14
call qword [r9 + 0x50]
mov rcx, rbx
call fcn.1800297b8
mov r9d, dword [rsp + 0xa8]
inc esi
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
je 0x18000f570
cmp ebx, 0x103
mov rcx, rdi
cmove ebx, r12d
call fcn.1800297b8
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x98]
mov r12, qword [rsp + 0x60]
mov rax, qword [0x180058460]
mov r8, r14
mov rdx, r15
mov ecx, ebx
call qword [rax + 0xc0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r15
pop r14
pop rbp
ret
Function at 0x18000f620
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x180058460]
mov r15, rcx
mov rcx, rdx
mov rbp, r8
call qword [rax + 0xe0]
mov r14, rax
test rax, rax
je 0x18000f7e1
mov qword [rsp + 0xa0], rbx
mov ebx, 0x57
test rbp, rbp
je 0x18000f7c4
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
jne 0x18000f7bf
mov ebx, dword [rsp + 0xb8]
mov qword [rsp + 0xa8], rsi
lea edx, [rax + 2]
inc ebx
mov qword [rsp + 0x78], rdi
mov esi, r12d
mov ecx, ebx
mov dword [rsp + 0xb8], ebx
call fcn.180029774
mov rdi, rax
test rax, rax
jne 0x18000f6f2
lea ebx, [rax + 8]
jmp 0x18000f7b2
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x60]
mov r8, rax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x18000f7a0
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x180058460]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rbx, rax
test rax, rax
je 0x18000f766
mov r9, qword [0x180058460]
mov r8, rax
mov edx, 0x103f2
mov rcx, r14
call qword [r9 + 0x50]
mov rcx, rbx
call fcn.1800297b8
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
inc esi
lea r9, [rsp + 0x60]
mov r8, rdi
mov rcx, rbp
mov edx, esi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
je 0x18000f730
cmp ebx, 0x103
mov rcx, rdi
cmove ebx, r12d
call fcn.1800297b8
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x70]
mov rax, qword [0x180058460]
mov r8, r14
mov rdx, r15
mov ecx, ebx
call qword [rax + 0xc0]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r15
pop r14
pop rbp
ret
Function at 0x18000fc80
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push r12
push r15
sub rsp, 0x48
mov rax, qword [0x180058460]
mov r15, rcx
mov rcx, rdx
mov r12, r8
mov rsi, rdx
call qword [rax + 0xe0]
mov rbp, rax
test rax, rax
je 0x18000fdea
mov qword [rsp + 0x70], rbx
mov rbx, qword [0x180058460]
mov edx, 0x103f2
mov rcx, rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x40], r14
call qword [rbx + 0xc8]
mov rcx, rax
call qword [rbx + 0x2d8]
mov r8, qword [0x180058460]
mov edx, 0x203f3
mov rcx, rsi
mov r14, rax
call qword [r8 + pe_nt_image_headers64]
mov r9, qword [0x180058460]
lea r8, [rsp + 0x30]
mov edx, 0x403f4
mov rcx, rsi
mov edi, eax
call qword [r9 + 0x88]
test eax, eax
je 0x18000fd21
mov edi, 0x57
jmp 0x18000fdbe
test edi, edi
je 0x18000fd89
cmp edi, 2
jbe 0x18000fd5a
cmp edi, 7
jne 0x18000fd89
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x88], rax
call fcn.18000fa30
mov rbx, rax
mov rax, qword [rsp + 0x88]
jmp 0x18000fd92
mov rax, qword [0x180058460]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x2d8]
mov rbx, rax
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18000fd73
lea rax, [rax*2 + 2]
jmp 0x18000fd92
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov r9d, edi
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp rbx, qword [rsp + 0x38]
je 0x18000fdbe
mov rcx, rbx
call fcn.1800297b8
mov rcx, r14
call fcn.1800297b8
mov rax, qword [0x180058460]
mov r8, rbp
mov rdx, r15
mov ecx, edi
call qword [rax + 0xc0]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r15
pop r12
pop rsi
pop rbp
ret
Function at 0x18000fe00
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x48
mov rax, qword [0x180058460]
mov r12, rcx
mov rcx, rdx
mov r14, r8
mov rsi, rdx
call qword [rax + 0xe0]
mov rdi, rax
test rax, rax
je 0x180010005
mov qword [rsp + 0x70], rbx
mov rbx, qword [0x180058460]
mov qword [rsp + 0x78], rbp
xor ebp, ebp
mov edx, 0x103f2
mov rcx, rsi
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x30], ebp
call qword [rbx + 0xc8]
mov rcx, rax
call qword [rbx + 0x2d8]
xor r9d, r9d
xor r8d, r8d
mov r15, rax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov rdx, r15
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x18000ffd9
mov ecx, dword [rsp + 0x88]
inc ecx
mov dword [rsp + 0x88], ecx
mov edx, ecx
lea ecx, [rax + 1]
call fcn.180029774
mov rbx, rax
test rax, rax
je 0x18000ffd9
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x18000ffd9
mov rax, qword [0x180058460]
mov r8d, dword [rsp + 0x30]
mov edx, 0x203f3
mov rcx, rdi
call qword [rax + 0x58]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18000ffbc
cmp eax, 2
jbe 0x18000ff84
cmp eax, 4
je 0x18000ff6d
cmp eax, 7
jne 0x18000ffbc
mov eax, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov qword [rsp + 0x38], rax
call fcn.18000f800
mov edx, 0x403f4
mov rsi, rax
mov rcx, rdi
test rax, rax
je 0x18000ffc4
mov r10, qword [0x180058460]
mov r9d, dword [rsp + 0x38]
mov r8, rax
call qword [r10 + 0x48]
mov rcx, rsi
call fcn.1800297b8
jmp 0x18000ffd9
mov rax, qword [0x180058460]
mov r8d, dword [rbx]
mov edx, 0x403f4
mov rcx, rdi
call qword [rax + 0x58]
jmp 0x18000ffd9
mov rax, qword [0x180058460]
mov rcx, rbx
call qword [rax + 0x2e0]
mov edx, 0x403f4
mov rcx, rdi
mov rsi, rax
test rax, rax
je 0x18000ffc4
mov r9, qword [0x180058460]
mov r8, rax
call qword [r9 + 0x50]
mov rcx, rsi
call fcn.1800297b8
jmp 0x18000ffd9
mov edx, 0x403f4
mov rcx, rdi
mov rax, qword [0x180058460]
mov r9d, dword [rsp + 0x88]
mov r8, rbx
call qword [rax + 0x48]
mov rcx, r15
call fcn.1800297b8
mov rax, qword [0x180058460]
mov r8, rdi
mov rdx, r12
mov ecx, ebp
call qword [rax + 0xc0]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r14
pop r12
pop rdi
pop rsi
ret