Function at 0x180003948
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov ebp, dword [rsp + 0x80]
lea r14d, [r8 + 0x908]
mov eax, r14d
lea r15d, [rcx - 0x726]
add edx, 0xfffff696
xor eax, 0x1efa
mov rdi, r9
mov ebx, r8d
lea r12d, [rbp - 0x7b3]
lea esi, [rbp - 0x295]
xor ebp, 0x1f3d
cmp r8d, eax
jle 0x180003f25
lea eax, [rbp - 0x5ce]
cmp esi, eax
je 0x180003df6
lea eax, [rsi + 0x1e2]
cmp r14d, eax
jl 0x180003d36
lea eax, [rdx + 0x111d]
cmp r14d, eax
jl 0x180003f25
mov eax, dword [r9 + 0x134]
xor eax, dword [r9 + 0x144]
add eax, 0x105888
xor dword [0x18015e024], eax
mov eax, dword [0x18015e014]
mov edx, dword [r9 + 0x5c]
add eax, 0x94eb0
imul edx, eax
mov dword [r9 + 0x5c], edx
mov ecx, dword [r9 + 0x168]
cmp ecx, 0x403b
jae 0x180003a34
mov rax, qword [section..data]
mov eax, dword [rax + 0xf8]
add eax, 0x286c6
add eax, edx
mov dword [r9 + 0x5c], eax
mov edx, dword [0x18015e114]
jmp 0x180003a49
mov edx, dword [0x18015e114]
mov eax, 0x12b86c
sub eax, ecx
add edx, eax
mov dword [0x18015e114], edx
mov rcx, qword [section..data]
cmp dword [rcx + 0x100], 0x1343c
je 0x180003a6e
mov eax, dword [rcx + 0x14]
xor eax, edx
xor eax, 0x13dcc9
mov dword [0x18015e114], eax
jmp 0x180003a85
mov eax, dword [rcx + 0x10]
xor eax, dword [r9 + 0xf8]
add dword [rcx + 0x150], eax
mov rcx, qword [section..data]
mov eax, dword [r9 + 0x100]
cmp dword [rcx + 0x144], eax
jb 0x180003aa7
mov eax, 0xffee498a
sub eax, dword [rcx + 0x108]
sub eax, dword [rcx + 0x5c]
add dword [rcx + 0x48], eax
jmp 0x180003ab6
mov eax, dword [0x18015e0b4]
sub eax, dword [0x18015e02c]
mov dword [rcx + 0x6c], eax
mov eax, dword [0x18015e124]
mov ecx, dword [r9 + 0x144]
add eax, 0x132f75
imul ecx, eax
mov dword [r9 + 0x144], ecx
cmp dword [r9 + 0x168], 0xa60c
jbe 0x180003aeb
mov dword [0x18015e104], 0x1c55d1
jmp 0x180003b0a
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x134]
sub eax, dword [r9 + 0xf8]
xor eax, 0x218c
sub dword [rcx + 0xf4], eax
mov rcx, qword [section..data]
mov eax, dword [0x18015e060]
cmp dword [rcx + 0x1c], eax
jbe 0x180003b2c
mov eax, dword [r9 + 0x108]
add eax, 0x27f52b68
mov dword [r9 + 0x20], eax
mov eax, dword [r9 + 0x50]
xor eax, 0xfda4db4
mov dword [r9 + 0x24], eax
mov eax, dword [r9 + 0x10]
cmp dword [r9 + 0x16c], eax
jbe 0x180003b5c
mov eax, dword [r9 + 0xf4]
add eax, dword [r9 + 0x78]
xor eax, 0x1c40ed
sub dword [0x18015e034], eax
mov rcx, qword [section..data]
mov eax, dword [0x18015e020]
cmp dword [rcx + 0x10c], eax
jne 0x180003b7f
mov eax, dword [rcx + 0xf8]
or dword [0x18015e130], eax
jmp 0x180003b8e
mov dword [r9 + 0x40], 0x1052b
mov rcx, qword [section..data]
mov eax, dword [r9 + 0x16c]
sub eax, 0xfb33e
mov dword [0x18015e090], eax
mov eax, dword [rcx + 0x150]
cmp dword [0x18015e088], eax
jb 0x180003bc7
mov eax, dword [rcx + 0x28]
sub eax, dword [r9 + 0x6c]
xor eax, 0x497
sub dword [rcx + 0x80], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xdc]
add eax, dword [r9 + 0x100]
mov ecx, dword [r9 + 0x168]
xor eax, 0x3d711381
add dword [r9 + 0x80], eax
sub ecx, dword [r9 + 0x6c]
mov rax, qword [section..data]
sub ecx, 0x12c359
mov dword [rax + 0xfc], ecx
mov rcx, qword [section..data]
mov r8d, dword [0x18015e050]
cmp r8d, dword [rcx + 0x80]
ja 0x180003c88
mov eax, dword [0x18015e014]
xor eax, dword [r9 + 0x120]
xor eax, 1
sub dword [rcx + 0xb4], eax
mov eax, dword [0x18015e074]
xor dword [r9 + 0x15c], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xf8]
add eax, dword [r9 + 0x1c]
xor eax, 0xa71cf
add dword [0x18015e074], eax
mov eax, dword [r9 + 0xb4]
add dword [rcx + 0x1c], eax
mov eax, r8d
mov edx, dword [0x18015e10c]
mov rcx, qword [section..data]
imul eax, r8d
inc r8d
add edx, eax
mov dword [0x18015e10c], edx
cmp r8d, dword [rcx + 0x80]
jbe 0x180003c15
jmp 0x180003c8e
mov edx, dword [0x18015e10c]
mov eax, dword [rcx + 0x10c]
add eax, 5
imul edx, eax
mov dword [0x18015e10c], edx
cmp dword [rcx + 0x150], 0x7f43
jne 0x180003cbd
mov eax, dword [r9 + 0x50]
xor eax, 0x30c6c
add dword [rcx + 0xf8], eax
jmp 0x180003cca
mov eax, dword [r9 + 0xfc]
mov dword [rcx + 0xb8], eax
mov rcx, qword [section..data]
mov eax, dword [0x18015e02c]
cmp dword [rcx + 4], eax
jae 0x180003ce8
mov eax, dword [r9 + 0x20]
sub dword [rcx + 0xb8], eax
jmp 0x180003cf9
mov eax, dword [rcx + 0xf4]
xor eax, dword [r9 + 4]
mov dword [r9 + 0x168], eax
mov eax, dword [0x18015e10c]
mov rcx, qword [section..data]
mov dword [0x18015e100], eax
mov eax, dword [r9 + 0xdc]
cmp dword [rcx + 0x48], eax
jb 0x180003d22
mov eax, dword [r9 + 0x24]
add dword [rcx + 0xf0], eax
mov eax, dword [r9 + 0x64]
add eax, 0x19d7
mov dword [0x18015e04c], eax
jmp 0x180003f25
mov r10d, dword [0x18015e06c]
mov r9d, r12d
mov r8d, dword [0x18015e154]
mov eax, r15d
imul r10d, r14d
sub r8d, r15d
sub r14d, dword [0x18015e084]
mov ecx, ebp
or eax, 0xf3b
imul r9d, ebx
xor r8d, r12d
imul esi, eax
and ecx, 0xc46
lea edx, [r14 - 0x852]
mov qword [rsp + 0x20], r10
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rax, qword [section..data]
mov ecx, dword [rax + 0x64]
imul ecx, ebp
imul eax, ecx, 0xf8a
mov ecx, dword [rdi + 0x168]
xor ecx, r12d
add ecx, dword [rdi + 0x114]
or dword [rdi + 0x14], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rdi + 0x108]
sub eax, 0x722
cmp r15d, eax
jae 0x180003f25
mov edx, dword [rdi + 0x134]
mov eax, dword [0x18015e0b8]
mov ecx, dword [rdi + 0xb4]
and rdx, rax
add ecx, dword [rdi + 0x8c]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov rcx, qword [section..data]
lea eax, [rsi + rbx]
add dword [rcx + 0x144], eax
jmp 0x180003f25
mov eax, dword [r9 + 0xf8]
xor eax, dword [0x18015e104]
cmp r15d, eax
jne 0x180003f25
mov eax, edx
xor eax, 0xe88
imul eax, edx
or dword [0x18015e0b8], eax
mov eax, ebp
mov r11d, dword [r9 + 0x15c]
mov ebx, dword [r9 + 0x68]
and ebx, dword [r9 + 0x58]
mov r10d, dword [r9 + 0xb0]
imul r11d, dword [0x18015e144]
sub r10d, r12d
mov r8d, dword [rdi + 0x18]
sub r10d, 0x96a
mov ecx, dword [rdi + 0x10c]
xor r8d, edx
imul eax, esi
and ecx, r15d
sub ecx, dword [0x18015e09c]
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r10d
add r14d, eax
mov eax, dword [r9 + 0xf8]
or eax, edx
mov r9d, edx
mov edx, dword [0x18015e048]
xor esi, eax
mov eax, dword [0x18015e118]
sub r9d, r15d
or r9, rax
xor edx, 0xf3b
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [rdi + 0x28]
and ecx, r12d
add ecx, 0x111d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r10d, dword [rdi + 0x38]
lea r11d, [r14 + r15]
sub r10d, dword [rdi + 0x124]
mov ebx, esi
mov edx, dword [0x18015e110]
xor ebx, r15d
add r10d, dword [0x18015e088]
and edx, ebp
mov r8d, dword [rdi + 0x58]
mov r9d, ebp
mov ecx, dword [rdi + 0x10]
mov r14d, 0x1584
add edx, dword [0x18015e084]
add ebx, 0x96a
add ecx, dword [0x18015e09c]
and r9, r14
mov qword [rsp + 0x30], r10
or r8d, 0xca9
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [0x18015e060]
add edx, ebp
or edx, r14d
xor dword [rdi + 0x10], edx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x60]
xor esi, 0x1b3
mov rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret