joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000aaf0
Capabilities:
Get graphical window text

Disassembly:
mov r8d, dword [rcx + 0x10]
lea r9, [rcx + 0x238]
jmp fcn.18000a590

Function at 0x18000ba10
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
sub rsp, 0x258
mov rax, qword [0x1800a5cc0]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp dword [rcx + 8], 0
mov rsi, rdx
mov rbx, rcx
je 0x18000bc1b
mov rcx, qword [rcx + 0x438]
mov qword [rsp + 0x250], r12
xor r12d, r12d
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x18000ba5f
mov qword [rbx + 0x438], r12
cmp qword [rbx + 0x438], r12
jne 0x18000bc16
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x280], rbp
mov qword [rsp + 0x288], rdi
lea rdi, [rbx + 0xc]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x18000bad5
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], r12w
call fcn.18002f310
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.180030810
test rax, rax
je 0x18000bb9a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbx + 0x214]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x18000bb30
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], r12w
call fcn.18002f310
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rbx + 0x214]
lea rcx, [rsp + 0x30]
call fcn.180030810
test rax, rax
je 0x18000bb9a
cmp qword [rbx + 0x428], r12
je 0x18000bb59
mov edx, 0xfffffff0
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rdx, qword [rbx + 0x428]
mov rcx, rdx
and rcx, rax
cmp rcx, rdx
jne 0x18000bb9a
cmp qword [rbx + 0x430], r12
je 0x18000bb82
mov edx, 0xffffffec
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rdx, qword [rbx + 0x430]
mov rcx, rdx
and rcx, rax
cmp rcx, rdx
jne 0x18000bb9a
mov eax, dword [rbx + 0x420]
inc dword [rbx + 0x41c]
test eax, eax
je 0x18000bbcf
cmp dword [rbx + 0x41c], eax
jae 0x18000bbcf
mov eax, r12d
mov rdi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x280]
mov r12, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18002f2e0
add rsp, 0x258
pop rsi
pop rbx
ret
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
cmp dword [0x1800acaa0], r12d
je 0x18000bc08
mov qword [rsp + 0x28], rax
lea r9, str.CTFWTest::IsRelatedWnd_________hWnd:__08x___hParent:__08x_
lea r8, [0x180078c50]
lea rcx, [0x1800ac1b8]
or edx, 0xffffffff
mov qword [rsp + 0x20], rsi
call fcn.18002d570
mov qword [rbx + 0x438], rsi
mov eax, 1
jmp 0x18000bb9d
mov eax, r12d
jmp 0x18000bbad
mov eax, 1
jmp 0x18000bbb5
Function at 0x180015d50
Capabilities:
Set global application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edi, edx
mov rbx, rcx
call qword [rax + 0x120]
test eax, eax
jne 0x180015e2c
xor eax, eax
lea rdx, [0x180014a40]
mov r9d, edi
mov dword [rsp + 0x44], eax
lea ecx, [rax + 0xc]
xor r8d, r8d
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], 1
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
lea ecx, [r8 + 3]
lea rdx, [0x180012080]
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x50], rax
mov rax, qword [rbx]
call qword [rax + 0x110]
cmp dword [0x1800acaa0], 0
je 0x180015e2c
mov eax, dword [rsp + 0x44]
lea r9, str.CTWindowTrace::InstallThreadMsgHook_____tid:__08x___hhook:__08x___hgetmsghook:__08x___bhook:__d_
lea r8, [0x180078c50]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
lea rcx, [0x1800ac1b8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
or edx, 0xffffffff
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
call fcn.18002d570
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x180017060
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800a8144], 0
jne 0x180017097
lea rbx, [0x1800a8040]
mov edx, 0x104
mov dword [0x1800a8144], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1800a8040]
add rsp, 0x20
pop rbx
ret

Function at 0x180017390
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800a89b8], 0
jne 0x1800173c7
lea rbx, [0x1800a87b0]
mov edx, 0x104
mov dword [0x1800a89b8], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1800a87b0]
add rsp, 0x20
pop rbx
ret

Function at 0x180017830
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800a9b44], 0
jne 0x1800178c3
mov dword [0x1800a9b44], 1
call fcn.18005c9d0
test eax, eax
je 0x1800178a5
lea rbx, [0x1800a9a40]
xor r8d, r8d
mov edx, 0x104
mov rcx, rbx
call fcn.180064f40
test eax, eax
je 0x1800178ba
mov qword [rsp + 0x30], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rcx, qword [0x1800893b0]
mov rax, rbx
mov qword [rdi - 1], rcx
movzx ecx, word [0x1800893b8]
mov word [rdi + 7], cx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rbx, [0x1800a9a40]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1800a9a40]
add rsp, 0x20
pop rbx
ret
Function at 0x180017b60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800aa2a8], 0
jne 0x180017bfd
mov dword [0x1800aa2a8], 1
call fcn.18005c9d0
test eax, eax
je 0x180017bdf
lea rbx, [0x1800aa0a0]
xor r8d, r8d
mov edx, 0x104
mov rcx, rbx
call fcn.18005e540
test eax, eax
je 0x180017bf4
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rcx, qword [str.SysWow64]
mov rax, rbx
mov qword [rdi - 2], rcx
mov rcx, qword [0x1800893c8]
mov qword [rdi + 6], rcx
mov ecx, dword [0x1800893d0]
mov dword [rdi + 0xe], ecx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rbx, [0x1800aa0a0]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1800aa0a0]
add rsp, 0x20
pop rbx
ret
Function at 0x18001bcc0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, r9
mov rsi, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rcx, rbp
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18001bd2a
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov edx, 1
movsxd rdi, edi
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x30], rdi
nop dword [rax + rax]
test byte [rsi], 0x10
je 0x18001be6a
cmp byte [rsi + 0x2c], 0x2e
jne 0x18001bd69
movzx eax, byte [rsi + 0x2d]
cmp al, 0x2e
jne 0x18001bd61
cmp byte [rsi + 0x2e], 0
je 0x18001bea2
test al, al
je 0x18001bea2
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x2c]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov qword [rsp + 0x38], rcx
lea eax, [rcx + 1]
cmp dword [rsp + 0x24], eax
jb 0x18001be98
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x88]
lea rdx, [rsi + 0x2c]
mov r8d, 0x10002
mov rcx, rbp
mov byte [rax + rbp - 1], 0
call qword [rsp + 0x80]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rsi + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18001bdc0
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rsi
repne scasb al, byte [rdi]
movzx eax, word [0x1800899f4]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x1800899f6]
mov byte [rdi + 1], al
call fcn.18001bcc0
lea rcx, [rsi + 0x2c]
xor edx, edx
mov r8d, 0x104
call fcn.18002f310
mov eax, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x38]
lea rdx, [rax + rbp - 1]
lea rcx, [rsi + 0x2c]
call fcn.180030f90
mov rdi, qword [rsp + 0x30]
mov r9, qword [rsp + 0x88]
lea rdx, [rsi + 0x2c]
mov r8d, 0x20002
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x80]
mov byte [rdi + rbp - 1], 0x2a
mov edx, eax
mov dword [rsp + 0x20], eax
mov byte [rdi + rbp], 0
jmp 0x18001be9d
lea rdx, [rsi + 0x2c]
mov r9, rbx
mov r8d, 1
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
mov byte [rdi + rbp - 1], 0x2a
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x18001beaa
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x88]
test edx, edx
je 0x18001bec8
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x18001bd40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001ec10
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 0x18001ec73
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001ec73
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x18001ec85
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x18001ec60
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.18001eb00
test eax, eax
jne 0x18001eca3
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 0x18001f160
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 0x18001f1cb
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x18001f1cb
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x18001f1e2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x18001f1b5
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.18002f5d0
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x18001f1cd

Function at 0x180029b30
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 0x180029b5e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029a90
mov rbx, rax
jmp 0x180029b61
mov rbx, rcx
test rbx, rbx
je 0x180029c07
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 0x180029bfa
cmp dword [rsp + 0x30], 4
jne 0x180029bfa
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 0x180029bfa
cmp rbx, rdi
je 0x180029be5
mov rcx, rbx
call fcn.180029b10
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180029c07
mov rcx, rbx
call fcn.180029b10
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x180029c20
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 0x180029c4e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029a90
mov rbx, rax
jmp 0x180029c51
mov rbx, rcx
test rbx, rbx
je 0x180029cef
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 0x180029ce2
cmp dword [rsp + 0x30], 3
jne 0x180029ce2
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180029ce2
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 0x180029ce2
cmp rbx, rdi
je 0x180029ccd
mov rcx, rbx
call fcn.180029b10
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180029cef
mov rcx, rbx
call fcn.180029b10
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180029d10
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 0x180029d3e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029a90
mov rbx, rax
jmp 0x180029d41
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180029df3
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 0x180029de6
cmp dword [rsp + 0x30], 3
jne 0x180029de6
mov ecx, dword [rsp + 0x58]
call fcn.180030240
mov rdi, rax
test rax, rax
je 0x180029de6
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 0x180029dde
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 0x180029dd7
mov rcx, rbx
call fcn.180029b10
mov eax, 1
jmp 0x180029df5
mov rcx, rdi
call fcn.18002f904
cmp rbx, rsi
je 0x180029df3
mov rcx, rbx
call fcn.180029b10
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 0x180029e10
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 0x180029e3e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029a90
mov rbx, rax
jmp 0x180029e41
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180029f30
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 0x180029f23
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180029e9a
cmp eax, 2
je 0x180029e9a
cmp eax, 6
je 0x180029e9a
cmp eax, 7
jne 0x180029f23
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180030240
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.18002f310
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 0x180029f0a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.18001fb50
cmp rbx, rdi
je 0x180029efb
mov rcx, rbx
call fcn.180029b10
mov rcx, rsi
call fcn.18002f904
mov eax, 1
jmp 0x180029f32
mov rcx, rsi
call fcn.18002f904
mov rcx, qword [rsp + 0x70]
lea rdx, [0x18008a0b8]
call fcn.18001fb50
cmp rbx, rdi
je 0x180029f30
mov rcx, rbx
call fcn.180029b10
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 0x180029f50
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 [0x1800a5cc0]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x180029f98
or r9d, 0x20019
mov r8d, r9d
call fcn.180029a90
mov rbx, rax
jmp 0x180029f9b
mov rbx, rcx
test rbx, rbx
je 0x18002a18d
call fcn.18005ca70
test eax, eax
je 0x18002a0b6
test r13, r13
je 0x18002a015
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 0x180029fdd
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.180073e80
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x18002a015
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 0x18002a019
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 0x18002a180
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18002a05d
cmp eax, 2
je 0x18002a05d
cmp eax, 6
je 0x18002a05d
cmp eax, 7
jne 0x18002a180
mov ecx, dword [rbp]
add ecx, 2
call fcn.180030240
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18002f310
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 0x18002a168
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.1800214b0
jmp 0x18002a14c
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 0x18002a180
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18002a0fc
cmp eax, 2
je 0x18002a0fc
cmp eax, 6
je 0x18002a0fc
cmp eax, 7
jne 0x18002a180
mov ecx, dword [rbp]
add ecx, 2
call fcn.180030240
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18002f310
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 0x18002a168
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.180023ef0
cmp rbx, r12
je 0x18002a159
mov rcx, rbx
call fcn.180029b10
mov rcx, rdi
call fcn.18002f904
mov eax, 1
jmp 0x18002a18f
mov rcx, rdi
call fcn.18002f904
mov rcx, qword [rbp + 0x50]
lea rdx, [0x18008a0b8]
call fcn.180023ef0
cmp rbx, r12
je 0x18002a18d
mov rcx, rbx
call fcn.180029b10
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.18002f2e0
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
Function at 0x18002a1c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18002a1ee
or r9d, 0x20006
mov r8d, r9d
call fcn.180029ac0
mov rbx, rax
jmp 0x18002a1f1
mov rbx, rcx
test rbx, rbx
je 0x18002a250
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x18002a243
cmp rbx, rdi
je 0x18002a22e
mov rcx, rbx
call fcn.180029b10
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x18002a250
mov rcx, rbx
call fcn.180029b10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x18002a270
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18002a29e
or r9d, 0x20006
mov r8d, r9d
call fcn.180029ac0
mov rbx, rax
jmp 0x18002a2a1
mov rbx, rcx
test rbx, rbx
je 0x18002a300
mov eax, dword [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x18002a2f3
cmp rbx, rdi
je 0x18002a2de
mov rcx, rbx
call fcn.180029b10
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x18002a300
mov rcx, rbx
call fcn.180029b10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x18002a320
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x18002a34e
or r9d, 0x20006
mov r8d, r9d
call fcn.180029ac0
mov rbx, rax
jmp 0x18002a351
mov rbx, rcx
test rbx, rbx
je 0x18002a3c4
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x18002a3b7
cmp rbx, rsi
je 0x18002a3a2
mov rcx, rbx
call fcn.180029b10
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x18002a3c4
mov rcx, rbx
call fcn.180029b10
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret