Function at 0x140055a80
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xdc80]
mov eax, 0xdd80
call fcn.1400dc350
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xddb8], rbx
mov qword [rsp + 0xddc0], rsi
mov qword [rsp + 0xddc8], rdi
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rbp + 0xdc70], rax
mov r13, rcx
mov qword [rbp - 0x68], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov esi, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov qword [rbp - 0x78], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r9d, eax
test eax, eax
jne 0x140055b32
mov dword [rsp + 0x38], r12d
mov r9d, r12d
mov rsi, qword [rbp - 0x78]
mov qword [rsp + 0x30], rsi
mov r8d, dword [0x1401ddd80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 4
jne 0x140055c0a
mov edx, r12d
nop word [rax + rax]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x140055b70
mov dword [0x1401ddd80], r8d
or r14, 0xffffffffffffffff
test r9d, r9d
je 0x140055f85
mov ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 8
jne 0x140055c77
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x2f4
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140166230]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140055cd0
mov ebx, r12d
test rsi, rsi
je 0x140055cc1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x30], rsi
call fcn.140052730
test al, al
jne 0x140055d17
mov ecx, dword [0x1401ddd80]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub ecx, edx
add ecx, 0x63
movsxd rcx, ecx
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
test ebx, ebx
je 0x140055f85
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x140055d6a
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140055d75
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002a60
jmp 0x140055d75
lea rcx, [rsp + 0x68]
call fcn.140003a70
nop
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea r8, [0x1401661e0]
test r8, 0xffffffffffff0000
jne 0x140055dc5
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140055e3a
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002a60
jmp 0x140055e3a
mov r15d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x15
or eax, ecx
jge 0x140055dff
mov edx, 0x15
lea rcx, [rsp + 0x58]
call fcn.140002860
mov rbx, qword [rsp + 0x58]
lea r8, [0x1401661e0]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0x2a
mov rcx, rbx
add rdx, rdx
cmp rdi, r15
ja 0x140055e1f
lea r8, [rbx + rdi*2]
call fcn.1400d7ac4
jmp 0x140055e24
call fcn.1400d7bc0
cmp dword [rbx - 0xc], 0x15
jl 0x140055f7a
mov dword [rbx - 0x10], 0x15
mov word [rbx + 0x2a], r12w
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.1400109e0
nop
mov qword [rbp - 0x80], r12
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140055ea0
mov ebx, r12d
test rsi, rsi
je 0x140055e92
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055eb9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055ed3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055eec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x140055f22
mov rcx, r13
call fcn.140056870
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140055f15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rax, r13
jmp 0x14005634b
mov ecx, dword [0x1401ddd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 1
jne 0x140055f73
mov eax, r8d
mov edx, 0xdf
lea ecx, [rax + r8]
lea r8d, [rax]
mov eax, ecx
dec edx
jns 0x140055f60
mov dword [0x1401ddd80], ecx
mov rsi, qword [rsp + 0x30]
jmp 0x140055f85
mov ecx, 0x80070057
call fcn.140001920
nop
mov word [rbp - 0x50], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.1400dc6e0
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea r8, [0x1401662a8]
test r8, 0xffffffffffff0000
jne 0x140055ff0
movzx edi, r8w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140056065
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002a60
mov rbx, qword [rsp + 0x48]
jmp 0x140056065
mov r15d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 3
or eax, ecx
jge 0x14005602a
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.140002860
mov rbx, qword [rsp + 0x48]
lea r8, [0x1401662a8]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, r15
ja 0x14005604a
lea r8, [rbx + rdi*2]
call fcn.1400d7ac4
jmp 0x14005604f
call fcn.1400d7bc0
cmp dword [rbx - 0xc], 3
jl 0x140056340
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r12w
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x140166288]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400561da
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x1400561da
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400560cf
test al, 1
jne 0x1400561da
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x1400560d4
jmp 0x1400561da
mov word [rbp - 0x50], r12w
lea rax, [rbp - 0x50]
mov rdi, r14
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400560e0
test edi, edi
jne 0x14005614f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400561da
cmp dword [rdx + 0x10], 0
jge 0x140056123
cmp dword [rbx - 0xc], 0
jge 0x140056116
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x1400561da
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140056133
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov rsi, qword [rsp + 0x30]
jmp 0x1400561da
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x50]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14005616c
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14005618e
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140002860
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400561b2
lea r8, [rbx + r15*2]
call fcn.1400d7ac4
jmp 0x1400561bb
lea r8, [rbp - 0x50]
call fcn.1400d7bc0
cmp edi, dword [rbx - 0xc]
jg 0x1400561cf
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
jmp 0x1400561da
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x1400561ed
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
cmp dword [rbx - 0x10], 0
je 0x14005625b
mov rcx, r12
lea rdx, [0x140166228]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x14005621b
cmp rcx, 4
jne 0x140056202
mov eax, r12d
jmp 0x140056220
sbb eax, eax
or eax, 1
test eax, eax
je 0x14005625b
lea rcx, [rbx - 0x18]
call fcn.1400028c0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x50], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140055f00
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140055f00
mov ecx, dword [0x1401ddd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 0xc
jne 0x140056313
mov word [rbp + 0x7b0], r12w
xor edx, edx
mov r8d, 0xd4b0
lea rcx, [rbp + 0x7b2]
call fcn.1400dc6e0
mov r10, r12
mov r9, r12
mov rax, r12
test r10, r10
je 0x1400562e8
test rax, rax
je 0x1400562e8
lea rcx, [r9 + rax]
lea r8, [rbp + 0x7b0]
lea r8, [r8 + rcx*2]
lea rcx, [r9 + rax]
movzx edx, word [rbp + rcx*2 + 0x666]
inc dx
add dx, word [r8 - 2]
mov word [r8], dx
inc rax
cmp rax, 0xa5
jl 0x1400562b7
inc r10
add r9, 0xa5
cmp r9, 0x6a59
jl 0x1400562b4
movsx eax, word [rbp + 0xdc60]
mov dword [0x1401ddd80], eax
mov rcx, r13
call fcn.140056870
mov dword [rsp + 0x50], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055f00
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140055f00
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0xdc70]
xor rcx, rsp
call fcn.1400d72a0
lea r11, [rsp + 0xdd80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret