Function at 0x140008bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2d8], rbx
mov rax, qword [0x1400230b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x50], r8
mov edi, edx
mov qword [rsp + 0x58], rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor r14d, r14d
lea r15d, [r14 + 1]
cmp edi, 2
jne 0x140008d38
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rdi, rcx
test ecx, ecx
jne 0x140008cab
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140008e45
cmp dword [rdx + 0x10], eax
jge 0x140008c7d
cmp dword [rbx - 0xc], eax
jge 0x140008c71
mov ecx, 0x80070057
call fcn.140005e00
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140008e45
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140008c94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140008e45
mov esi, dword [rbx - 0x10]
lea r12, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
sub r12, rbx
sar r12, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140008cdb
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140005ac0
mov rbx, qword [rsp + 0x30]
cmp r12, rsi
ja 0x140008cfb
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14000a9c0
jmp 0x140008d17
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
mov rdx, rsi
mov rcx, rbx
call fcn.14000b780
test edi, edi
js 0x140008d2d
cmp edi, dword [rbx - 0xc]
jg 0x140008d2d
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], r14w
jmp 0x140008e45
mov ecx, 0x80070057
call fcn.140005e00
int3
cmp edi, r15d
jne 0x1400092a0
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rdi, rcx
test ecx, ecx
jne 0x140008dc0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140008e45
cmp dword [rdx + 0x10], eax
jge 0x140008d92
cmp dword [rbx - 0xc], eax
jge 0x140008d86
mov ecx, 0x80070057
call fcn.140005e00
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140008e45
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140008da9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140008e45
mov esi, dword [rbx - 0x10]
lea r12, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
sub r12, rbx
sar r12, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140008df0
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140005ac0
mov rbx, qword [rsp + 0x30]
cmp r12, rsi
ja 0x140008e10
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14000a9c0
jmp 0x140008e2c
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
mov rdx, rsi
mov rcx, rbx
call fcn.14000b780
test edi, edi
js 0x140009295
cmp edi, dword [rbx - 0xc]
jg 0x140009295
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], r14w
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
lea rdx, [0x14001e800]
test rdx, 0xffffffffffff0000
jne 0x140008e99
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140005cd0
test rax, rax
je 0x140008f9d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400057c0
jmp 0x140008f9d
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140008f16
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140008f9d
cmp dword [rdx + 0x10], eax
jge 0x140008ee3
cmp dword [rsi - 0xc], eax
jge 0x140008ed7
mov ecx, 0x80070057
call fcn.140005e00
int3
mov dword [rsi - 0x10], r14d
mov word [rsi], ax
jmp 0x140008f9d
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140008efa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x30]
jmp 0x140008f9d
mov r12d, dword [rsi - 0x10]
mov r13, rdx
sub r13, rsi
sar r13, 1
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140008f4a
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140005ac0
mov rsi, qword [rsp + 0x38]
lea rdx, [0x14001e800]
cmp r13, r12
ja 0x140008f6a
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rsi
call fcn.14000a9c0
jmp 0x140008f82
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
mov r8, rdx
mov rdx, r12
mov rcx, rsi
call fcn.14000b780
test edi, edi
js 0x14000928a
cmp edi, dword [rsi - 0xc]
jg 0x14000928a
mov dword [rsi - 0x10], edi
mov word [r12 + rsi], 0
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140006c00
nop
mov r12, qword [rax]
movsxd r15, dword [r12 - 0x10]
mov rsi, r12
sub rsi, rbx
sar rsi, 1
mov r13d, dword [rbx - 0x10]
lea edi, [r13 + r15]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140008fee
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140005ac0
mov rbx, qword [rsp + 0x30]
cmp rsi, r13
ja 0x140008ff7
lea r12, [rbx + rsi*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rbx + r13*2]
mov r9, rdx
mov r8, r12
call fcn.14000b780
test edi, edi
js 0x14000927f
cmp edi, dword [rbx - 0xc]
jg 0x14000927f
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000904a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000906a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
cmp dword [rsi], 0
jne 0x140009118
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400090f0
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.EventNum
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove r14d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsi], r14d
test r14d, r14d
jne 0x140009118
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140009111
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400092bf
lea rcx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14000916c
mov dword [rsp + 0x20], 0x208
lea r9, [rsi + 4]
lea r8, str.EventAppName
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140009e20
test eax, eax
jne 0x14000916c
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140009165
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400092bf
lea rbx, [rsi + 0x20c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140009262
mov word [rsp + 0x70], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.14000c470
mov dword [rsp + 0x20], 0x208
lea r9, [rsp + 0x70]
lea r8, str.EventAppPath
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140009e20
test eax, eax
jne 0x1400091e2
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x1400091db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400092bf
mov r8d, 0x208
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140009370
test al, al
jne 0x140009219
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140009212
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400092bf
lea rcx, [rsi + 0x414]
mov edx, 0x104
sub rbx, rcx
nop
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140009254
movzx eax, word [rbx + rcx]
test ax, ax
je 0x140009254
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140009230
jmp 0x140009259
test rdx, rdx
jne 0x14000925d
sub rcx, 2
mov word [rcx], 0
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14000927b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
jmp 0x1400092bf
mov ecx, 0x80070057
call fcn.140005e00
nop
mov ecx, 0x80070057
call fcn.140005e00
nop
mov ecx, 0x80070057
call fcn.140005e00
nop
lea rdx, [rbx - 0x18]
or rbp, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x1400092bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000a6e0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret