Function at 0x140004550
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [rcx]
mov qword [rsp + 0x58], rsi
mov rsi, rcx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r12
mov r12, rdx
mov edi, r8d
mov r8, qword [rbx + 0x18]
mov rax, r8
mov qword [rsp + 0x30], r13
cmp r8, qword [rbx + 0x10]
jb 0x1400045a4
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400045a4
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], DecryptFileW
mov r13, rdi
inc qword [rbx + 0x18]
test edi, edi
je 0x1400047da
mov qword [rsp + 0x50], rbp
lea rax, sym.imp.advapi32.dll_RegEnumKeyW
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
xor r15d, r15d
nop
movzx ebp, byte [r12]
lea r12, [r12 + 1]
mov rbx, qword [rsi]
inc r15
mov r14d, ebp
movzx edi, byte [rbp + rax + 0x2667f0]
mov r8, qword [rbx + 0x18]
mov rax, r8
test dil, dil
je 0x14000478d
cmp r8, qword [rbx + 0x10]
jb 0x140004634
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140004634
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
lea rbp, sym.imp.advapi32.dll_RegEnumKeyW
movzx edi, byte [r14 + rbp + 0x2667f0]
mov qword [rbx + 0x18], rax
jmp 0x14000463b
lea rbp, sym.imp.advapi32.dll_RegEnumKeyW
mov byte [rax], 0x5c
movzx ecx, dil
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140004683
mov r10, qword [rbx + 8]
cmp r8, r10
je 0x140004683
mov r9, qword [rbx]
sub r8, r10
mov edx, 1
mov rcx, r10
call fcn.140191600
mov rax, qword [rbx + 8]
movzx ecx, byte [r14 + rbp + 0x2667f0]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
inc qword [rbx + 0x18]
cmp cl, 0x75
jne 0x1400047bb
mov rbx, qword [rsi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400046c4
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400046c4
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x30
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400046fc
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400046fc
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x30
mov rax, r14
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
shr rax, 4
mov r8, qword [rbx + 0x18]
movzx edi, byte [rax + rbp + 0x266a70]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140004743
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140004743
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
and r14d, 0xf
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
movzx edi, byte [r14 + rbp + 0x266a70]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140004788
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140004788
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
jmp 0x1400047b7
cmp r8, qword [rbx + 0x10]
jb 0x1400047b4
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400047b4
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], bpl
inc qword [rbx + 0x18]
lea rax, sym.imp.advapi32.dll_RegEnumKeyW
cmp r15, r13
jb 0x1400045d0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsi]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rbx + 0x18]
mov rax, r8
mov rsi, qword [rsp + 0x58]
cmp r8, qword [rbx + 0x10]
jb 0x14000481f
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14000481f
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], DecryptFileW
mov al, 1
inc qword [rbx + 0x18]
add rsp, 0x40
pop rbx
ret