joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000cde0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x18008cb00]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, rcx
mov rcx, rdx
mov ebp, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18000cecd
test al, 1
je 0x18000ce30
and ebx, 0xfffffffe
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 0x10
je 0x18000cecd
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x20], 0
call fcn.18002a9c0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str._s.bak_08X
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rdi
call fcn.18002c00c
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000cebf
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str._s.bak_08X
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rdi
call fcn.18002c00c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc ebx
cmp ebx, 0xa
jge 0x18000ceff
cmp eax, 0xffffffff
jne 0x18000ce80
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.18002a990
mov rbx, qword [rsp + 0x268]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x18000cedc

Function at 0x18000d180
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rdi, rdx
mov rbp, rcx
call fcn.1800290c0
test eax, eax
je 0x18000d1b1
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
test rdi, rdi
je 0x18000d23c
test esi, esi
je 0x18000d23c
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
call fcn.18002a9c0
mov rcx, rsi
call fcn.18002ae9c
mov r12, rax
test rax, rax
je 0x18000d232
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.18002a9c0
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test eax, eax
je 0x18000d232
mov r9d, esi
mov r8, rdi
or edx, 0xffffffff
mov rcx, r12
xor ebx, ebx
call fcn.1800089c0
test eax, eax
je 0x18000d232
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e170
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
xor ebx, ebx
mov dword [rsp + 0x60], ebx
cmp dword [0x18008c338], 0xffffffff
jne 0x18000e2b1
mov dword [0x18008c338], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x18000e2b1
cmp dword [rsp + 0x60], 2
jl 0x18000e2a8
mov rdx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.1800191c0
nop
mov rcx, qword [0x1800723b0]
mov qword [rsp + 0x70], rcx
lea edx, [rbx + 0x5c]
lea rcx, [rsp + 0x68]
call fcn.1800144f0
cmp eax, 0xffffffff
je 0x18000e22c
mov rcx, qword [rsp + 0x68]
cmp eax, dword [rcx - 8]
jge 0x18000e22c
mov r8d, dword [rcx - 8]
sub r8d, eax
dec r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.180019730
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180016930
nop
lea rcx, [rsp + 0x30]
call fcn.180016820
mov rdx, qword [str.winrdlv3.exe]
mov rcx, qword [rsp + 0x70]
call fcn.18002c4d8
test eax, eax
sete bl
test ebx, ebx
jne 0x18000e253
lea rcx, [rsp + 0x70]
call fcn.180016820
nop
jmp 0x18000e29e
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x78]
call fcn.1800191c0
lea rdx, str.OAgentTray.dll_RunOAgentTray32
mov rcx, qword [rsp + 0x78]
call fcn.18002c4d8
mov ecx, dword [0x18008c338]
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [0x18008c338], ecx
lea rcx, [rsp + 0x78]
call fcn.180016820
nop
lea rcx, [rsp + 0x70]
call fcn.180016820
nop
lea rcx, [rsp + 0x68]
call fcn.180016820
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x18008c338]
mov dword [rsp + 0x20], eax
lea r9, str.IsOAgentTray_1___lu_
lea r8, str.OAgentTray
or edx, 0xffffffff
lea rcx, [0x180092038]
call fcn.180011f30
mov eax, dword [0x18008c338]
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x18000f1d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp dword [0x18009f038], 0
jne 0x18000f294
cmp rcx, 0x10
je 0x18000f252
cmp rcx, 0x5c
je 0x18000f252
cmp rcx, 0x5b
je 0x18000f252
cmp cl, 0x53
jne 0x18000f294
cmp dword [0x180092ae4], 0
je 0x18000f243
lea r9, [0x18000f100]
xor edx, edx
xor ecx, ecx
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
lea r9, str.TimerID_is__d
lea r8, str.Thook
lea rcx, [0x180092038]
or edx, 0xffffffff
mov dword [0x18009f038], eax
mov dword [rsp + 0x20], eax
call fcn.180011f30
mov dword [0x180092ae4], 0
add rsp, 0x38
ret
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18000f272
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18000f294
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x180092ae4]
mov edx, 1
test ax, ax
cmovs ecx, edx
mov dword [0x180092ae4], ecx
add rsp, 0x38
ret
Function at 0x18000f2a0
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [0x18009f01c], 0
mov rbx, r8
mov rdi, rdx
mov esi, ecx
je 0x18000f303
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18000f2d8
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov qword [rsp + 0x30], rbx
lea r9, str.ProcessSnapShotMsg_VK_SNAPSHOT___lu__lu__lu_
lea r8, str.VKSNAPSHOT
lea rcx, [0x180092038]
or edx, 0xffffffff
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], esi
call fcn.180011f30
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x18000fc80
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbx
sub rsp, 0x70
cmp dword [0x180092a30], 0
mov ebx, ecx
jne 0x18000fc99
xor eax, eax
add rsp, 0x70
pop rbx
ret
call fcn.18000efe0
lea rcx, [rsp + 0x30]
call fcn.180006b40
lea rdx, str.dis_msghook
lea rcx, [rsp + 0x88]
call fcn.1800191c0
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.180006f50
cmp dword [rsp + 0x68], 0xf0000001
jne 0x18000fcec
lea rcx, [rsp + 0x30]
call fcn.180006d10
xor edx, edx
cmp eax, 1
mov ecx, edx
setne cl
test ecx, ecx
cmove ebx, edx
lea rcx, [rsp + 0x30]
call fcn.180006bb0
test ebx, ebx
je 0x18000fd75
mov r8, qword [0x180092a00]
xor r9d, r9d
lea rdx, [0x18000f550]
lea ecx, [r9 + 2]
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov r8, qword [0x180092a00]
xor r9d, r9d
lea ecx, [r9 + 0xd]
lea rdx, [0x18000f320]
mov qword [0x18009f050], rax
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
lea r9, str.SetKeyboardFilterHook__0x_x_
lea r8, str.uihelper
mov qword [0x18009f060], rax
mov rax, qword [0x18009f050]
lea rcx, [0x180092038]
or edx, 0xffffffff
mov qword [rsp + 0x20], rax
call fcn.180011f30
cmp qword [0x18009f050], 0
je 0x18000fc91
mov eax, 1
add rsp, 0x70
pop rbx
ret
Function at 0x1800107b0
Capabilities:
Enumerate gui resources

Disassembly:
movzx eax, dx
movzx edx, word [rsp + 0x28]
movzx r10d, r8w
shl edx, 0x10
shl r10d, 0x10
mov r11, rcx
or r10d, eax
movzx eax, r9w
or edx, eax
cmp dword [0x1800929f8], 0
movsxd rcx, r10d
movsxd rdx, edx
je 0x1800107f4
mov r9, rdx
mov edx, dword [0x180092a34]
mov r8, rcx
mov rcx, r11
jmp qword [sym.imp.USER32.dll_PostMessageA]
jmp fcn.1800103c0
Function at 0x180011300
Capabilities:
Set global application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
cmp dword [0x180092a30], 0
mov edi, edx
mov ebx, ecx
je 0x1800113a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.SetHook_1__0x_lx_0x_lx__lu_
lea r8, str.Thook
mov dword [rsp + 0x30], eax
lea rcx, [0x180092038]
or edx, 0xffffffff
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call fcn.180011f30
test ebx, ebx
je 0x1800113a9
lea rcx, [rsp + 0x70]
call fcn.180006b40
lea rdx, str.dis_msghook
lea rcx, [rsp + 0xd0]
call fcn.1800191c0
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.180006f50
cmp dword [rsp + 0xa8], 0xf0000001
jne 0x1800113bc
lea rcx, [rsp + 0x70]
call fcn.180006d10
xor ecx, ecx
cmp eax, 1
setne cl
test ecx, ecx
jne 0x1800113bc
lea rcx, [rsp + 0x70]
call fcn.180006bb0
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
lea rcx, [rsp + 0x70]
call fcn.180006bb0
mov ecx, ebx
call sym.THooks.dll_UnSetHook
mov r8, qword [0x180092a00]
xor r9d, r9d
lea ecx, [r9 + 3]
lea rdx, [0x1800110e0]
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x18009f008], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.SetHook_2__0x_lx__lu_
mov dword [rsp + 0x28], eax
mov rax, qword [0x18009f008]
lea r8, str.Thook
lea rcx, [0x180092038]
or edx, 0xffffffff
mov qword [rsp + 0x20], rax
call fcn.180011f30
mov r8, qword [0x180092a00]
xor r9d, r9d
lea ecx, [r9 + 6]
lea rdx, [0x180011150]
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x18009f020], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.SetHook_3__0x_lx__lu_
mov dword [rsp + 0x28], eax
mov rax, qword [0x18009f020]
lea r8, str.Thook
lea rcx, [0x180092038]
or edx, 0xffffffff
mov qword [rsp + 0x20], rax
call fcn.180011f30
cmp qword [0x18009f030], 0
jne 0x1800114c9
cmp qword [0x18009f008], 0
jne 0x1800114c9
cmp qword [0x18009f020], 0
jne 0x1800114c9
mov qword [0x18009f030], 0
mov qword [0x18009f008], 0
mov qword [0x18009f020], 0
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
mov dword [section.ThooksV3], ebx
mov dword [0x18009f05c], edi
mov dword [0x1800929fc], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x18009f014], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, dword [section.ThooksV3]
mov dword [rsp + 0x60], eax
mov eax, dword [0x18009f014]
lea r8, str.Thook
mov dword [rsp + 0x58], eax
mov eax, dword [0x1800929fc]
lea rcx, [0x180092038]
mov dword [rsp + 0x50], eax
mov eax, dword [0x18009f05c]
or edx, 0xffffffff
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], r9d
mov r9, qword [0x18009f020]
mov qword [rsp + 0x38], r9
mov r9, qword [0x18009f008]
mov qword [rsp + 0x30], r9
mov r9, qword [0x18009f028]
mov qword [rsp + 0x28], r9
mov r9, qword [0x18009f030]
mov qword [rsp + 0x20], r9
lea r9, str.SetHook_4__0x_lx_0x_lx_0x_lx_0x_lx_0x_lx_0x_lx__lu__lu__lu_
call fcn.180011f30
mov rbx, qword [rsp + 0xc0]
mov eax, 1
add rsp, 0xb0
pop rdi
ret
Function at 0x180011800
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.18001e400
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x18001188f
test rsi, rsi
je 0x18001188f
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.18001e480
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180014100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x180014163
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180014163
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x180014175
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x180014150
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rbx, dword [rsp + 0x50]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.180013fe0
test eax, eax
jne 0x180014193
mov byte [rbx + rsi - 1], al
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
dec eax
add rsp, 0x20
pop rdi
ret

Function at 0x180014650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x1800146bb
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x1800146bb
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x1800146d2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x1800146a5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.18002aac0
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x1800146bd

Function at 0x18001e6e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18001e70e
or r9d, 0x20019
mov r8d, r9d
call fcn.18001e640
mov rbx, rax
jmp 0x18001e711
mov rbx, rcx
test rbx, rbx
je 0x18001e7b7
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001e7aa
cmp dword [rsp + 0x30], 4
jne 0x18001e7aa
mov eax, dword [rsp + 0x58]
mov ecx, 4
mov rdx, rsi
cmp eax, ecx
cmova eax, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001e7aa
cmp rbx, rdi
je 0x18001e795
mov rcx, rbx
call fcn.18001e6c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18001e7b7
mov rcx, rbx
call fcn.18001e6c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x18001e7d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18001e7fe
or r9d, 0x20019
mov r8d, r9d
call fcn.18001e640
mov rbx, rax
jmp 0x18001e801
mov rbx, rcx
test rbx, rbx
je 0x18001e89f
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001e892
cmp dword [rsp + 0x30], 3
jne 0x18001e892
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x18001e892
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001e892
cmp rbx, rdi
je 0x18001e87d
mov rcx, rbx
call fcn.18001e6c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18001e89f
mov rcx, rbx
call fcn.18001e6c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x18001e8c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x18001e8ee
or r9d, 0x20019
mov r8d, r9d
call fcn.18001e640
mov rbx, rax
jmp 0x18001e8f1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x18001e9a3
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001e996
cmp dword [rsp + 0x30], 3
jne 0x18001e996
mov ecx, dword [rsp + 0x58]
call fcn.18002ae9c
mov rdi, rax
test rax, rax
je 0x18001e996
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001e98e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x18001e987
mov rcx, rbx
call fcn.18001e6c0
mov eax, 1
jmp 0x18001e9a5
mov rcx, rdi
call fcn.18002af40
cmp rbx, rsi
je 0x18001e9a3
mov rcx, rbx
call fcn.18001e6c0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x18001e9c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x18001e9ee
or r9d, 0x20019
mov r8d, r9d
call fcn.18001e640
mov rbx, rax
jmp 0x18001e9f1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x18001eae0
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001ead3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18001ea4a
cmp eax, 2
je 0x18001ea4a
cmp eax, 6
je 0x18001ea4a
cmp eax, 7
jne 0x18001ead3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.18002ae9c
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.18002a9c0
lea r11, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001eaba
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180015040
cmp rbx, rdi
je 0x18001eaab
mov rcx, rbx
call fcn.18001e6c0
mov rcx, rsi
call fcn.18002af40
mov eax, 1
jmp 0x18001eae2
mov rcx, rsi
call fcn.18002af40
mov rcx, qword [rsp + 0x70]
lea rdx, [0x18006f66e]
call fcn.180015040
cmp rbx, rdi
je 0x18001eae0
mov rcx, rbx
call fcn.18001e6c0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18001eb00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x18008cb00]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x18001eb48
or r9d, 0x20019
mov r8d, r9d
call fcn.18001e640
mov rbx, rax
jmp 0x18001eb4b
mov rbx, rcx
test rbx, rbx
je 0x18001ed3d
call fcn.180029060
test eax, eax
je 0x18001ec66
test r13, r13
je 0x18001ebc5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9d, [rax + 1]
lea ecx, [r9 + r9]
movsxd rdx, ecx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x18001eb8d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18002b0c0
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x18001ebc5
mov dword [rsp + 0x28], r9d
xor edi, edi
mov r8, r13
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov word [rsi], di
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x18001ebc9
xor edi, edi
mov esi, edi
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001ed30
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18001ec0d
cmp eax, 2
je 0x18001ec0d
cmp eax, 6
je 0x18001ec0d
cmp eax, 7
jne 0x18001ed30
mov ecx, dword [rbp]
add ecx, 2
call fcn.18002ae9c
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18002a9c0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001ed18
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.1800169a0
jmp 0x18001ecfc
lea rax, [rbp]
lea r9, [rbp + 4]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001ed30
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18001ecac
cmp eax, 2
je 0x18001ecac
cmp eax, 6
je 0x18001ecac
cmp eax, 7
jne 0x18001ed30
mov ecx, dword [rbp]
add ecx, 2
call fcn.18002ae9c
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18002a9c0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001ed18
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.1800193e0
cmp rbx, r12
je 0x18001ed09
mov rcx, rbx
call fcn.18001e6c0
mov rcx, rdi
call fcn.18002af40
mov eax, 1
jmp 0x18001ed3f
mov rcx, rdi
call fcn.18002af40
mov rcx, qword [rbp + 0x50]
lea rdx, [0x18006f66e]
call fcn.1800193e0
cmp rbx, r12
je 0x18001ed3d
mov rcx, rbx
call fcn.18001e6c0
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.18002a990
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x10]
pop r13
pop r12
pop rbp
ret