Function at 0x140053f60
Capabilities:
Encode data using xor
Hash data via wincrypt
Initialize hashing via wincrypt
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14013e0a0]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r12, rcx
xor edi, edi
mov r15d, edi
mov dword [rbp - 0x80], edi
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
xor eax, eax
xor ecx, ecx
cpuid
mov r9d, eax
mov dword [rbp + 0x11c], edx
mov eax, 1
xor ecx, ecx
cpuid
mov dword [rbp + 0x110], eax
mov dword [rbp + 0x114], ebx
mov dword [rbp + 0x118], ecx
mov dword [rsp + 0x20], edx
lea r8, str._08X_08X
lea edx, [rdi + 0xd]
lea rcx, [rbp + 0x110]
call fcn.14004bd40
mov dword [rbp - 0x18], 0x100
movdqa xmm0, xmmword [0x14011ed60]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14011ed20]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0xc1cbdfde
mov dword [rsp + 0x74], 0xc1d7e7c4
mov dword [rsp + 0x78], 0xd9d9dcc7
mov word [rsp + 0x7c], 0x100
mov ecx, edi
nop dword [rax + rax]
lea eax, [rcx - 0x74]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x2c
jb 0x140054040
mov byte [rsp + 0x7d], dil
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400540ed
mov dword [rsp + 0x30], 0xebe1ffdc
mov dword [rsp + 0x34], 0xdae6f2e5
mov word [rsp + 0x38], 0xf0
mov byte [rsp + 0x3a], 1
mov rcx, rdi
nop dword [rax]
lea eax, [rcx - 0x74]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x1400540a0
mov byte [rsp + 0x3a], dil
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x58]
test eax, eax
je 0x1400540f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1400545f8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x110]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140054120
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x30]
call fcn.1400035b0
nop
lea rax, [rbp + 0x140]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140054142
mov r9, rbx
lea r8, [rbp + 0x140]
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14004ad90
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], rdi
mov r14d, send
mov qword [rax + 0x18], r14
mov byte [rax], 0
or r15d, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400541d1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400541cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054633
call fcn.1400a09c0
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
mov esi, dword [rbp]
mov r13d, 0x20
mov dword [rbp - 0x50], r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [0x14011e7a0]
movdqu xmmword [rbp - 0x28], xmm1
mov byte [rbp - 0x38], 0
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r13 - 8]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140054573
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14005425a
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140054573
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x48]
test eax, eax
je 0x140054297
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x120]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x48]
test eax, eax
jne 0x1400542ae
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140054573
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x10]
call fcn.1400c2030
lea rcx, [rbp + 0x10]
call fcn.1400567d0
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov eax, dword [rbp + rcx + 0x38]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rbp + rcx + 0x38], eax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx + 0x78], 0x30
cmp dword [rbp - 0x50], 0
jbe 0x14005434e
lea rsi, [rbp + 0x120]
nop
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14007af54
mov rbx, qword [rax]
mov rcx, qword [rbp + 0x20]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp + 0x20]
add rcx, rdx
mov rdx, qword [rax + 8]
call rbx
movzx edx, byte [rsi]
lea rcx, [rbp + 0x20]
call fcn.140057e00
inc edi
lea rsi, [rsi + 1]
cmp edi, dword [rbp - 0x50]
jb 0x140054310
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm6, xmmword [0x14011e7a0]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
or r15d, 8
mov dword [rbp - 0x80], r15d
movups xmmword [rsp + 0x30], xmm0
mov rcx, qword [rbp + 0x98]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400543ac
mov rax, qword [rbp + 0x68]
mov r8, qword [rax]
test r8, r8
je 0x1400543ac
mov rax, qword [rbp + 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x90]
cmovb r8, qword [rbp + 0x90]
sub r8, rdx
jmp 0x1400543dd
test cl, 4
jne 0x1400543d3
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400543d3
mov rax, qword [rbp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x78]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x1400543dd
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400543f2
lea rcx, [rsp + 0x50]
call fcn.1400078e0
movdqu xmm6, xmmword [rsp + 0x60]
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14005442d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054428
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054639
call fcn.1400a09c0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x38], xmm0
movdqu xmmword [rbp - 0x28], xmm6
lea rdi, [rbp - 0x38]
movq rcx, xmm0
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r8, xmm0
cmp r8, 0x10
cmovae rdi, rcx
lea rsi, [rbp - 0x38]
cmovae rsi, rcx
movq rdx, xmm6
add rsi, rdx
lea rbx, [rbp - 0x38]
cmp r8, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x14005449f
sub rdi, rbx
nop
movzx ecx, byte [rbx]
call fcn.1400da818
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x140054480
mov r8, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x38]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
cmp rdx, 0x20
cmovb r13, rdx
lea rdx, [rbp - 0x38]
cmp r8, 0x10
cmovae rdx, rcx
mov r8, r13
lea rcx, [rbp - 0x78]
call fcn.1400035b0
lea rax, [rbp - 0x78]
cmp r12, rax
je 0x14005452c
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x140054513
mov rcx, qword [r12]
inc rdx
cmp rdx, 0x1000
jb 0x14005450e
add rdx, 0x27
mov rbx, qword [rcx - 8]
sub rcx, rbx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140054639
mov rcx, rbx
call fcn.1400a09c0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [r12 + 0x10], xmm1
mov byte [rbp - 0x78], 0
jmp 0x140054530
mov r14, qword [rbp - 0x60]
cmp r14, 0x10
jb 0x140054569
lea rdx, [r14 + 1]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054639
call fcn.1400a09c0
nop
lea rcx, [rbp + 0x10]
call fcn.14004fc70
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400545ae
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400545a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005463f
call fcn.1400a09c0
movdqa xmm0, xmmword [0x14011e7a0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400545f6
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400545f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005462d
call fcn.1400a09c0
mov al, 1
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400a09a0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400d2350
nop
call fcn.1400d2350
nop
call fcn.1400d2350
nop
call fcn.1400d2350
int3