Function at 0x180059e30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13, qword [rsp + 0x68]
lea r10, [0x180000000]
mov ebp, r8d
xor ebx, ebx
mov r8, rdx
mov r12, rcx
mov r15d, ebp
lea r14d, [rbp - 0xd]
mov dword [rsp + 0x50], r14d
cmp ebp, r14d
jbe 0x18005a10c
mov rcx, qword [rsp + 0x68]
lea r14d, [rbp - 0xda]
mov edi, dword [rsp + 0xd0]
mov rbp, qword [rsp + 0x78]
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x68], rcx
cmp r14d, 0x2a
ja case.default.0x180059ec1
movzx eax, byte [r10 + r14 + 0x5a384]
mov ecx, dword [r10 + rax*4 + 0x5a34c]
add rcx, r10
jmp rcx
mov edi, ebx
jmp case.0x180059ec1.13
movzx eax, byte [r12]
mov byte [r13], al
mov qword [r13 + 8], r9
jmp case.0x180059ec1.13
mov eax, 0xa8
cmp eax, 0xa8
je 0x180059ef5
cmp eax, 0x1ce0
je case.0x18005a10a.18
jmp 0x180059ef9
mov dword [rsp + 0x60], edi
add eax, 0x1c38
cmp eax, 0x3870
jbe 0x180059ee1
mov rax, qword [r9]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x68], rcx
mov ecx, dword [rax + 0x94]
and ecx, 0x6000
cmp ecx, 0x6000
je case.0x180059ec1.13
mov dword [rsp + 0x60], ebx
jmp case.0x18005a10a.18
mov rax, qword [r9]
cmp dword [rax], 0x7f2bb70f
je case.0x180059ec1.13
mov dword [rsp + 0x60], 0x7f2bb70f
jmp case.0x18005a10a.18
mov dword [rsp + 0x60], ebx
jmp case.0x180059ec1.13
lea rbp, [r9 + 0x10]
jmp case.0x180059ec1.13
mov edx, 0xc0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r13, rax
test rax, rax
jne 0x18005a0a5
mov edx, 0x6d
mov ecx, edx
sub ecx, 0x6d
je 0x180059f93
cmp ecx, 1
je case.0x18005a10a.18
jmp 0x180059f98
mov qword [rsp + 0x60], rbx
inc edx
cmp edx, 0x6f
jb 0x180059f81
jmp 0x18005a0a5
test r9, r9
jne case.0x180059ec1.13
mov esi, 0x7d
cmp esi, 0x7d
je 0x180059fcc
cmp esi, 0x5fb4
jne 0x180059fd7
mov dword [rsp + 0x60], 0xffffffff
jmp case.0x18005a10a.18
mov ecx, 9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_errno]
add esi, 0x5f37
cmp esi, 0xbe6e
jbe 0x180059fb2
jmp 0x18005a0a5
movzx eax, byte [r9]
test al, al
je 0x18005a011
mov edx, eax
mov ecx, edi
mov eax, edi
shl eax, 5
shr ecx, 0x1b
mov edi, ecx
xor edi, eax
movsx eax, byte [rbp]
xor edi, eax
inc rbp
sub rdx, 1
jne 0x180059ff4
cmp dword [r9 + 4], ebx
jne case.0x180059ec1.13
mov r8d, dword [r9 + 8]
test r8d, r8d
je case.0x180059ec1.13
mov rdx, qword [rsp + 0xe0]
add r8d, 3
shr r8d, 2
test r8d, r8d
je case.0x180059ec1.13
nop dword [rax]
mov ecx, edi
lea rdx, [rdx + 4]
mov eax, edi
shr ecx, 0x10
shl eax, 0x10
mov edi, ecx
xor edi, eax
xor edi, dword [rdx - 4]
sub r8d, 1
jne 0x18005a040
jmp case.0x180059ec1.13
movzx eax, byte [r12]
cmp al, 9
je case.0x180059ec1.13
cmp al, 0x2c
je case.0x180059ec1.13
mov rax, rbx
jmp 0x18005a331
cmp qword [r9 + 0x260], 0xffffffffffffffff
je 0x18005a09c
mov rcx, qword [r9 + 0x260]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9, qword [rsp + 0xd8]
mov qword [r9 + 0x260], 0xffffffffffffffff
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r9, qword [rsp + 0xd8]
lea r10, [0x180000000]
mov eax, dword [rsp + 0x50]
dec r15d
dec r14d
cmp r15d, eax
ja 0x180059ea3
mov ebp, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x50]
mov r8, qword [rsp + 0xc8]
cmp ebp, r14d
jbe case.0x18005a10a.18
mov edi, dword [rsp + 0xd0]
lea esi, [rbp - 0xe2]
cmp esi, 0x15
ja case.0x18005a10a.9
mov ecx, dword [r10 + rsi*4 + 0x5a3b0]
add rcx, r10
jmp rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rdx
jmp 0x18005a0e0
mov byte [r13 + 0x98], bl
jmp case.0x18005a10a.9
mov rax, qword [r9]
mov dword [rsp + 0x60], edi
and dword [rax + 0x94], 0xffffbfff
jmp case.0x18005a10a.9
xor edx, edx
mov qword [r13 + 0xa0], rbx
mov r9, r13
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea ecx, [rdx + 0x4e]
call fcn.1800b8910
jmp 0x18005a303
mov rax, qword [r9]
cmp qword [rax + 0xa8], rbx
jne case.0x18005a10a.9
mov ecx, dword [rdx + 0x28]
mov r9, rax
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x70], rax
mov eax, ebx
cmp dword [r9 + 0x10], ebx
setne al
xor r8d, r8d
mov dword [rsp + 0x58], eax
add rcx, qword [r9 + 0xb0]
mov eax, dword [r9 + 0x10]
mov dword [rsp + 0x50], eax
lea rax, [r9 + 0x14]
mov qword [rsp + 0x40], rax
add r9, 0xa8
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x28], rax
mov edx, 0x80
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.1800c9e00
mov edi, eax
test eax, eax
je 0x18005a303
mov ecx, 0x54
cmp ecx, 0x54
je 0x18005a205
cmp ecx, 0x2418
je case.0x18005a10a.18
jmp 0x18005a209
mov dword [rsp + 0x60], eax
add ecx, 0x23c4
cmp ecx, 0x4788
jbe 0x18005a1f2
jmp 0x18005a303
mov dword [r13 + 0x80], 5
jmp case.0x18005a10a.9
mov eax, 0xb1
cmp eax, 0xb1
je 0x18005a245
cmp eax, 0x163
je case.0x18005a10a.18
jmp 0x18005a24a
mov qword [rsp + 0x60], r13
add eax, 0xb2
cmp eax, 0x215
jb 0x18005a231
mov qword [r13 + 0x90], rbx
jmp case.0x18005a10a.9
mov dword [r13 + 0xb0], ebx
jmp case.0x18005a10a.9
mov qword [r13 + 0xb8], rbx
jmp case.0x18005a10a.9
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [r13 + 0x10], rax
mov rax, qword [r8]
mov qword [r13 + 0x18], rax
jmp case.0x18005a10a.9
lea r9, [rsp + 0xd0]
mov byte [rsp + 0xd0], 0x22
mov r8, r13
mov qword [rsp + 0x20], rbx
mov edx, 0xf9
xor ecx, ecx
call fcn.1800cc180
jmp 0x18005a303
mov rcx, qword [rdx + 8]
mov r8d, 1
mov rax, qword [r9]
mov r10, qword [rcx + 8]
mov r9, qword [rax + 0xb0]
mov edx, dword [rax + 0xa8]
call qword [r10 + 0x30]
mov edi, eax
test eax, eax
je 0x18005a303
mov eax, 0x7b
cmp eax, 0x7b
je 0x18005a2f3
cmp eax, 0xb0d
je case.0x18005a10a.18
jmp 0x18005a2f7
mov dword [rsp + 0x60], edi
add eax, 0xa92
cmp eax, 0x1524
jbe 0x18005a2e5
mov rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0xd8]
lea r10, [0x180000000]
mov r8, qword [rsp + 0xc8]
dec ebp
dec esi
cmp ebp, r14d
ja 0x18005a0f6
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret