Function at 0x180002500
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12d, r9d
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x48], 0xffffffff
mov rax, qword [0x18004ee68]
mov r15, qword [rax]
mov rbx, qword [r15 + 0x20]
xor r13d, r13d
test rbx, rbx
je 0x1800025a7
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
cmp dword [rcx + 0xc], 0x4a9a0ae
jne 0x180002573
cmp dword [rcx + 0x1c], 1
jne 0x18000257b
mov rbx, rax
test rax, rax
jmp 0x18000255a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rdx, qword [0x18004ee68]
mov rax, qword [rdx]
mov qword [rax + 0x20], r13
mov rax, qword [rdx]
mov qword [rax + 0x28], r13
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbp, qword [0x18004ee58]
mov rax, qword [rsi + 0x10]
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1800025bf
mov r9, qword [rsi]
mov r10d, r13d
lea r11, [rax + r9]
cmp r9, r11
je 0x180002604
nop dword [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
lea eax, [r8 + 0x20]
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r10d
imul r10d, eax, 0x401
mov eax, r10d
shr eax, 6
xor r10d, eax
inc r9
cmp r9, r11
jne 0x1800025d0
lea ecx, [r10 + r10*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul ebx, ecx, 0x8001
mov rax, qword [r14 + 0x10]
mov r9, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180002626
mov r9, qword [r14]
mov r10d, r13d
lea r11, [rax + r9]
cmp r9, r11
je 0x180002674
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
lea eax, [r8 + 0x20]
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r10d
imul r10d, eax, 0x401
mov eax, r10d
shr eax, 6
xor r10d, eax
inc r9
cmp r9, r11
jne 0x180002640
lea edx, [r10 + r10*8]
mov eax, edx
shr eax, 0xb
xor edx, eax
imul r8d, edx, 0x8001
mov dword [rsp + 0x20], 4
mov r9d, ebx
lea rdx, [rsp + 0x48]
mov rcx, r15
call rbp
test al, al
je 0x1800028de
mov rax, qword [rdi + 0x10]
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1800026b4
mov r9, qword [rdi]
mov r10d, r13d
lea r11, [rax + r9]
cmp r9, r11
je 0x1800026f4
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
lea eax, [r8 + 0x20]
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r10d
imul r10d, eax, 0x401
mov eax, r10d
shr eax, 6
xor r10d, eax
inc r9
cmp r9, r11
jne 0x1800026c0
lea ecx, [r10 + r10*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 1
mov rax, qword [0x18004ee68]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x180002790
nop word [rax + rax]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rax + 8]
cmp dword [rbx + 0xc], 0x4a9a0ae
je 0x18000275b
mov rax, rcx
test rcx, rcx
jne 0x180002740
jmp 0x180002790
cmp dword [rbx + 0x1c], r13d
jne 0x180002790
mov rax, qword [0x18004ee70]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call rax
test al, al
je 0x180002790
mov eax, dword [rbx + 0x24]
cmp eax, 0x51d518f6
je 0x180002790
cmp eax, 0xe0475fc
je 0x180002790
mov rcx, rbx
call qword [0x18004ee50]
mov r9d, dword [rsp + 0x48]
mov rax, qword [0x18004ee68]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1800028de
nop dword [rax]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 8]
xor r8b, r8b
cmp r9d, dword [rcx + 8]
je 0x1800027cb
mov rax, rdx
test rdx, rdx
je 0x1800027f4
jmp 0x1800027b0
mov eax, dword [rcx + 0x1c]
cmp eax, 1
je 0x1800027f4
cmp eax, 3
je 0x1800027f4
cmp eax, 4
je 0x1800027f4
cmp byte [rcx + 0x2c], r8b
jne 0x1800027f4
mov byte [rcx + 0x2c], 1
mov dword [rcx + 0x30], r13d
call qword [0x18004ee50]
mov r8b, 1
test r8b, r8b
je 0x1800028de
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x180002837
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x180002832
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800028c9
mov rcx, r8
call fcn.18003b650
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18000287d
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x180002878
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800028d0
mov rcx, r8
call fcn.18003b650
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800028c2
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800028bd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800028d7
mov rcx, r8
call fcn.18003b650
mov al, 1
jmp 0x1800029b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.failed_to_add_money_n
call fcn.1800011b0
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x180002925
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x180002920
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800029ea
mov rcx, r8
call fcn.18003b650
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18000296f
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x18000296a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800029f1
mov rcx, r8
call fcn.18003b650
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800029b4
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800029af
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800029f8
mov rcx, r8
call fcn.18003b650
xor al, al
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18003b630
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3