Function at 0x140004860
Capabilities:
Query or enumerate registry value
Read file on windows

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x1400b1080]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r15, rcx
xor r12d, r12d
add rcx, 0x10
call fcn.140004cf0
lea rcx, str.LOCALAPPDATA
call fcn.14006a360
test rax, rax
je 0x140004cba
mov qword [rsp + 0x6f0], rbx
mov rdx, rax
lea rbx, [r15 + 0x90]
mov rcx, rbx
call fcn.140009300
lea r9, [r15 + 0x154]
mov rcx, r15
lea r8, [r15 + 0x150]
lea rdx, [r15 + 0x110]
call fcn.140007740
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0xff
call fcn.14008b3c0
lea r8, [rbp - 0x80]
mov rcx, 0xffffffff80000001
lea rdx, str.SOFTWAREOneStart.aiOneStart_Software
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000495c
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a5d20]
lea rax, [rbp - 0x70]
mov dword [rbp - 0x78], 0xff
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rbp - 0x78]
cmp rax, 0xff
jae 0x140004cdc
mov rcx, qword [rbp - 0x80]
mov byte [rbp + rax - 0x70], r12b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x6f8], rsi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x6b8], rdi
xorps xmm0, xmm0
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x6b0], r14
xorps xmm1, xmm1
mov r8, rdi
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
inc r8
cmp byte [rax + r8], r12b
jne 0x140004993
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140002820
lea rax, [rsp + 0x40]
mov r14d, reloc.WS2_32.dll_ntohs
lea rsi, [r15 + 0x130]
cmp rsi, rax
je 0x140004a15
mov rdx, qword [rsi + 0x18]
cmp rdx, r14
jbe 0x1400049fa
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400049f5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004cd6
mov rcx, r8
call fcn.140011b30
movups xmm0, xmmword [rsp + 0x40]
mov rdx, r14
mov byte [rsp + 0x40], r12b
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140004a1a
mov rdx, qword [rsp + 0x58]
cmp rdx, r14
jbe 0x140004a51
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a4c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004cd6
call fcn.140011b30
cmp qword [rbx + 0x18], 7
jbe 0x140004a5b
mov rbx, qword [rbx]
lea rcx, [rbp - 0x70]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rcx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140004a70
lea rcx, [rbp - 0x70]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140004a90
lea r8, str.OneStart.aiOneStartUpdate
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140004ab0
lea rcx, [rbp - 0x70]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140004ad0
lea r8, str.intermediate.dat
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140004af0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp - 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x400
mov rbx, rax
call fcn.14008b3c0
cmp rbx, rdi
je 0x140004ba4
lea r9, [rbp - 0x78]
mov dword [rbp - 0x78], r12d
mov r8d, 0x3ff
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x1a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0x78]
mov eax, r12d
test r8d, r8d
je 0x140004ba4
mov edx, eax
movzx ecx, byte [rbp + rdx + 0x1a0]
cmp cl, 0xd
je 0x140004c3f
cmp cl, 0xa
je 0x140004c3f
inc eax
cmp eax, r8d
jb 0x140004b81
xorps xmm0, xmm0
lea rax, [rbp + 0x1a0]
xorps xmm1, xmm1
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x140004bc0
mov r8, rdi
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x60]
call fcn.140002820
lea rax, [rsp + 0x60]
lea rbx, [r15 + 0xf0]
cmp rbx, rax
je 0x140004c59
mov rdx, qword [rbx + 0x18]
cmp rdx, r14
jbe 0x140004c27
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140004c22
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004cd6
mov rcx, r8
call fcn.140011b30
movups xmm0, xmmword [rsp + 0x60]
mov byte [rsp + 0x60], r12b
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x140004c5e
cmp rdx, 0x400
jae 0x140004ce2
mov byte [rbp + rdx + 0x1a0], r12b
jmp 0x140004ba4
mov r14, qword [rsp + 0x78]
cmp r14, 0xf
jbe 0x140004c93
mov rcx, qword [rsp + 0x60]
lea rdx, [r14 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c8e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004cd6
call fcn.140011b30
mov rdi, qword [rsp + 0x6b8]
mov al, 1
mov rsi, qword [rsp + 0x6f8]
mov r14, qword [rsp + 0x6b0]
mov rbx, qword [rsp + 0x6f0]
mov byte [r15 + 8], 1
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140011830
add rsp, 0x6c0
pop r15
pop r12
pop rbp
ret
call fcn.1400691d0
int3
call fcn.140011958
int3
call fcn.140011958
int3