Function at 0x1400050a0
Capabilities:
Access pe header
Encode data using xor
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140048018]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rcx, rdx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000510f
mov r14d, ebx
mov qword [rbp - 0x31], rbx
jmp 0x14000517e
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov edi, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov qword [rbp - 0x31], rax
mov r8d, edi
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000515b
cmp dword [r14], 0x905a4d
je 0x14000516c
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
jne 0x140005262
xor edx, edx
mov cl, 0x69
call fcn.140002160
mov edx, 1
mov byte [rbp - 0x29], al
mov cl, 0x6e
call fcn.140002160
mov edx, 2
mov byte [rbp - 0x28], al
mov cl, 0x76
call fcn.140002160
mov edx, 3
mov byte [rbp - 0x27], al
mov cl, 0x61
call fcn.140002160
mov edx, 4
mov byte [rbp - 0x26], al
mov cl, 0x6c
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x25], al
mov cl, 0x69
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x64
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
mov cl, 0x20
call fcn.140002160
mov edx, 8
mov byte [rbp - 0x22], al
mov cl, 0x64
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x21], al
mov cl, 0x6c
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x1f], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x1e], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x1d], al
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xc
jb 0x140005240
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x1d], bl
call fcn.140001360
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x1400053f2
xor edx, edx
mov cl, 0x70
call fcn.140002160
mov edx, 1
mov byte [rbp - 9], al
mov cl, 0x65
call fcn.140002160
mov edx, 2
mov byte [rbp - 8], al
mov cl, 0x3a
call fcn.140002160
mov edx, 3
mov byte [rbp - 7], al
mov cl, 0x20
call fcn.140002160
mov edx, 4
mov byte [rbp - 6], al
mov cl, 0x69
call fcn.140002160
mov edx, 5
mov byte [rbp - 5], al
mov cl, 0x6e
call fcn.140002160
mov edx, 6
mov byte [rbp - 4], al
mov cl, 0x76
call fcn.140002160
mov edx, 7
mov byte [rbp - 3], al
mov cl, 0x61
call fcn.140002160
mov edx, 8
mov byte [rbp - 2], al
mov cl, 0x6c
call fcn.140002160
mov edx, 9
mov byte [rbp - 1], al
mov cl, 0x69
call fcn.140002160
mov edx, 0xa
mov byte [rbp], al
mov cl, 0x64
call fcn.140002160
mov edx, 0xb
mov byte [rbp + 1], al
mov cl, 0x20
call fcn.140002160
mov edx, 0xc
mov byte [rbp + 2], al
mov cl, 0x70
call fcn.140002160
mov edx, 0xd
mov byte [rbp + 3], al
mov cl, 0x65
call fcn.140002160
mov edx, 0xe
mov byte [rbp + 4], al
mov cl, 0x20
call fcn.140002160
mov edx, 0xf
mov byte [rbp + 5], al
mov cl, 0x68
call fcn.140002160
mov edx, 0x10
mov byte [rbp + 6], al
mov cl, 0x65
call fcn.140002160
mov edx, 0x11
mov byte [rbp + 7], al
mov cl, 0x61
call fcn.140002160
mov edx, 0x12
mov byte [rbp + 8], al
mov cl, 0x64
call fcn.140002160
mov edx, 0x13
mov byte [rbp + 9], al
mov cl, 0x65
call fcn.140002160
mov byte [rbp + 0xa], al
mov edx, 0x14
mov cl, 0x72
call fcn.140002160
mov edx, 0x15
mov byte [rbp + 0xb], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp + 0xc], al
mov edx, ebx
xor eax, eax
mov byte [rbp + 0xd], al
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 9]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0x16
jb 0x1400053d0
lea rcx, [rbp - 9]
mov byte [rbp + 0xd], bl
call fcn.140001360
xor edx, edx
mov dword [rbp - 0x3d], ebx
mov cl, 0x55
call fcn.140002160
mov edx, 1
mov cl, 0x6e
movzx esi, al
call fcn.140002160
mov edx, 2
mov byte [rbp - 0x47], al
mov cl, 0x72
call fcn.140002160
mov edx, 3
mov byte [rbp - 0x57], al
mov cl, 0x65
movzx r8d, al
call fcn.140002160
mov edx, 4
mov byte [rbp - 0x51], al
mov cl, 0x61
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x58], al
mov cl, 0x6c
movzx r9d, al
call fcn.140002160
mov edx, 6
mov cl, 0x57
movzx r14d, al
call fcn.140002160
mov edx, 7
mov cl, 0x69
movzx r15d, al
call fcn.140002160
mov edx, 8
mov byte [rbp - 0x59], al
mov cl, 0x6e
movzx r10d, al
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x55], al
mov cl, 0x64
movzx r11d, al
call fcn.140002160
mov edx, 0xa
mov cl, 0x6f
movzx edi, al
call fcn.140002160
mov edx, 0xb
mov cl, 0x77
movzx r12d, al
call fcn.140002160
movzx r13d, al
nop word [rax + rax]
movzx eax, byte [rbp - 0x47]
mov edx, ebx
mov byte [rbp - 8], al
movzx eax, byte [rbp - 0x51]
mov byte [rbp - 6], al
xor eax, eax
mov byte [rbp + 3], al
mov byte [rbp - 9], sil
mov byte [rbp - 7], r8b
mov byte [rbp - 5], r9b
mov byte [rbp - 4], r14b
mov byte [rbp - 3], r15b
mov byte [rbp - 2], r10b
mov byte [rbp - 1], r11b
mov byte [rbp], dil
mov byte [rbp + 1], r12b
mov byte [rbp + 2], r13b
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 9]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xc
jb 0x140005500
lea rdx, [rbp - 9]
mov byte [rbp + 3], bl
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp - 0x3d]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x14
mov dword [rbp - 0x39], eax
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx r8d, byte [rbp - 0x57]
movzx r9d, byte [rbp - 0x58]
movzx r10d, byte [rbp - 0x59]
movzx r11d, byte [rbp - 0x55]
cmp dword [rbp - 0x3d], ebx
je 0x1400054c0
xor edx, edx
mov cl, 0x70
call fcn.140002160
mov edx, 1
mov byte [rbp - 9], al
mov cl, 0x72
movzx esi, al
call fcn.140002160
mov edx, 2
mov byte [rbp - 0x46], al
mov cl, 0x6f
mov byte [rbp - 8], al
call fcn.140002160
mov edx, 3
mov byte [rbp - 7], al
mov cl, 0x63
movzx r14d, al
call fcn.140002160
mov edx, 4
mov byte [rbp - 6], al
mov cl, 0x65
movzx r15d, al
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x45], al
mov cl, 0x73
mov byte [rbp - 5], al
call fcn.140002160
mov edx, 6
mov byte [rbp - 4], al
movzx r12d, al
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x44], al
mov cl, 0x5f
mov byte [rbp - 3], al
call fcn.140002160
mov edx, 8
mov byte [rbp - 2], al
mov cl, 0x69
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x53], al
mov cl, 0x3a
mov byte [rbp - 1], al
mov byte [rbp], dil
call fcn.140002160
mov edx, 0xb
mov byte [rbp + 1], al
mov cl, 0x20
call fcn.140002160
mov edx, 0xc
mov byte [rbp + 2], al
mov cl, 0x30
movzx edi, al
call fcn.140002160
mov edx, 0xd
mov byte [rbp + 3], al
mov cl, 0x78
call fcn.140002160
mov byte [rbp + 4], al
mov edx, ebx
xor eax, eax
mov byte [rbp + 5], al
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 9]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xe
jb 0x140005650
lea rdx, [rbp - 9]
mov byte [rbp + 5], bl
call fcn.140009c20
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov rcx, rax
mov edx, dword [rbp - 0x3d]
call fcn.140007240
mov rcx, rax
call fcn.140009f00
xor edx, edx
mov cl, 0x74
call fcn.140002160
mov edx, 1
mov byte [rbp - 9], al
mov cl, 0x68
call fcn.140002160
mov byte [rbp - 8], al
mov edx, 5
movzx eax, byte [rbp - 0x57]
mov cl, 0x64
mov byte [rbp - 7], al
movzx eax, byte [rbp - 0x51]
mov byte [rbp - 6], al
movzx eax, byte [rbp - 0x58]
mov byte [rbp - 5], al
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x43], al
mov cl, 0x5f
mov byte [rbp - 4], al
call fcn.140002160
mov byte [rbp - 3], al
mov edx, 8
movzx eax, byte [rbp - 0x59]
mov cl, 0x64
mov byte [rbp - 2], al
call fcn.140002160
mov edx, 9
mov byte [rbp - 1], al
mov cl, 0x3a
call fcn.140002160
mov edx, 0xa
mov byte [rbp], al
mov cl, 0x20
call fcn.140002160
mov edx, 0xb
mov byte [rbp + 1], al
mov cl, 0x30
call fcn.140002160
mov edx, 0xc
mov byte [rbp + 2], al
mov cl, 0x78
call fcn.140002160
mov byte [rbp + 3], al
mov edx, ebx
xor eax, eax
mov byte [rbp + 4], al
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 9]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xd
jb 0x140005750
lea rdx, [rbp - 9]
mov byte [rbp + 4], bl
call fcn.140009c20
mov r13d, dword [rbp - 0x39]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov edx, r13d
mov rcx, rax
call fcn.140007240
mov rcx, rax
call fcn.140009f00
cmp dword [rbp - 0x3d], ebx
je 0x140006684
test r13d, r13d
je 0x140006684
mov rax, qword gs:[0x58]
mov ecx, dword [0x14008e0e8]
mov r13d, 4
add r13, qword [rax]
cmp ecx, dword [r13]
jle 0x140005818
lea rcx, [0x14008e0e8]
call fcn.14000db88
mov ecx, dword [0x14008e0e8]
cmp ecx, 0xffffffff
jne 0x140005818
lea rcx, [0x140033b70]
mov dword [0x14008e0f0], ebx
mov qword [0x14008e0f8], 0xffffffffffffffff
call fcn.14000ded0
lea rcx, [0x14008e0e8]
call fcn.14000db28
mov ecx, dword [0x14008e0e8]
mov eax, dword [rbp - 0x3d]
mov dword [0x14008e0f0], eax
cmp ecx, dword [r13]
jle 0x140005865
lea rcx, [0x14008e0e8]
call fcn.14000db88
cmp dword [0x14008e0e8], 0xffffffff
jne 0x140005865
lea rcx, [0x140033b70]
mov dword [0x14008e0f0], ebx
mov qword [0x14008e0f8], 0xffffffffffffffff
call fcn.14000ded0
lea rcx, [0x14008e0e8]
call fcn.14000db28
mov eax, dword [0x14008e0f0]
mov r15, rbx
mov r12, qword [rbp - 0x29]
mov rcx, qword [0x14008e0f8]
mov dword [rbp + 0xf], eax
lea rax, [rbp - 9]
mov qword [rbp + 0x17], rax
mov eax, dword [r12 + 0x50]
mov qword [rbp + 0x1f], rax
mov qword [rbp - 9], rbx
mov dword [rbp + 0x13], ebx
mov qword [rbp + 0x27], 0x40
cmp rcx, 0xffffffffffffffff
je 0x1400058ce
mov qword [rsp + 0x38], rbx
lea r8, [rbp + 0xf]
mov qword [rsp + 0x30], rbx
mov r9d, 0x20
mov dword [rsp + 0x28], ebx
mov edx, 0x3009d220
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r15, qword [rbp - 9]
xor edx, edx
mov cl, 0x61
call fcn.140002160
mov edx, 1
mov byte [rbp - 0x29], al
mov cl, 0x6c
call fcn.140002160
mov edx, 2
mov byte [rbp - 0x41], al
mov byte [rbp - 0x28], al
call fcn.140002160
mov edx, 3
mov byte [rbp - 0x59], al
mov cl, 0x6f
mov byte [rbp - 0x27], al
call fcn.140002160
mov edx, 4
mov byte [rbp - 0x56], al
mov cl, 0x63
mov byte [rbp - 0x26], al
movzx r14d, al
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x57], al
mov cl, 0x61
mov byte [rbp - 0x25], al
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x74
movzx edi, al
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
mov cl, 0x65
movzx esi, al
call fcn.140002160
mov edx, 8
mov byte [rbp - 0x4e], al
mov cl, 0x5f
mov byte [rbp - 0x22], al
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x21], al
mov cl, 0x62
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
mov cl, 0x61
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x4f], al
mov cl, 0x73
mov byte [rbp - 0x1f], al
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1e], al
mov cl, 0x65
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x40], al
mov cl, 0x3a
mov byte [rbp - 0x1d], al
call fcn.140002160
mov edx, 0xe
mov byte [rbp - 0x1c], al
mov cl, 0x20
call fcn.140002160
mov edx, 0xf
mov byte [rbp - 0x52], al
mov cl, 0x30
mov byte [rbp - 0x1b], al
call fcn.140002160
mov edx, 0x10
mov byte [rbp - 0x1a], al
mov cl, 0x78
call fcn.140002160
mov byte [rbp - 0x19], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x18], al
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0x11
jb 0x1400059f1
lea rdx, [rbp - 0x29]
mov byte [rbp - 0x18], bl
call fcn.140009c20
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov rdx, r15
mov rcx, rax
call fcn.140007030
mov rcx, rax
call fcn.140009f00
mov rdx, qword [rbp - 0x31]
mov r8, r12
mov rcx, r15
call fcn.140004cc0
test eax, eax
jne 0x140005bb2
mov eax, dword [r13]
cmp dword [0x14008e0e8], eax
jle 0x140005aa0
lea rcx, [0x14008e0e8]
call fcn.14000db88
cmp dword [0x14008e0e8], 0xffffffff
jne 0x140005aa0
lea rcx, [0x140033b70]
mov dword [0x14008e0f0], ebx
mov qword [0x14008e0f8], 0xffffffffffffffff
call fcn.14000ded0
lea rcx, [0x14008e0e8]
call fcn.14000db28
mov rcx, qword [0x14008e0f8]
mov eax, dword [0x14008e0f0]
mov dword [rbp - 0x25], ebx
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], r15
cmp rcx, 0xffffffffffffffff
je 0x140005ae5
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x29]
mov qword [rsp + 0x30], rbx
mov r9d, 0x10
mov dword [rsp + 0x28], ebx
mov edx, 0x3009d4e0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
mov cl, 0x72
call fcn.140002160
mov edx, 1
mov byte [rbp - 0x29], al
mov cl, 0x65
call fcn.140002160
mov byte [rbp - 0x28], al
mov edx, 5
movzx eax, byte [rbp - 0x59]
mov cl, 0x20
mov byte [rbp - 0x27], al
movzx eax, byte [rbp - 0x57]
mov byte [rbp - 0x25], al
mov byte [rbp - 0x26], r14b
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x66
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
mov cl, 0x61
call fcn.140002160
mov byte [rbp - 0x22], al
mov edx, 9
movzx eax, byte [rbp - 0x53]
mov cl, 0x6c
mov byte [rbp - 0x21], al
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
mov cl, 0x65
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x1f], al
mov cl, 0x64
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1e], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x1d], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x1c], al
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xd
jb 0x140005b90
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x1c], bl
call fcn.140001360
xor edx, edx
mov cl, 0x72
call fcn.140002160
mov edx, 1
mov byte [rbp - 0x29], al
mov cl, 0x65
movzx r14d, al
call fcn.140002160
mov byte [rbp - 0x54], al
mov edx, 8
mov byte [rbp - 0x28], al
mov cl, 0x20
movzx eax, byte [rbp - 0x59]
mov byte [rbp - 0x27], al
movzx eax, byte [rbp - 0x56]
mov byte [rbp - 0x26], al
movzx eax, byte [rbp - 0x57]
mov byte [rbp - 0x25], al
movzx eax, byte [rbp - 0x4e]
mov byte [rbp - 0x22], al
mov byte [rbp - 0x24], dil
mov byte [rbp - 0x23], sil
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x42], al
mov cl, 0x69
mov byte [rbp - 0x21], al
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
mov cl, 0x6d
movzx edi, al
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x1f], al
mov cl, 0x61
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1e], al
mov cl, 0x67
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x1d], al
mov cl, 0x65
call fcn.140002160
mov byte [rbp - 0x1c], al
mov edx, 0xf
movzx eax, byte [rbp - 0x52]
mov cl, 0x73
mov byte [rbp - 0x1b], al
call fcn.140002160
mov edx, 0x10
mov byte [rbp - 0x50], al
mov cl, 0x75
mov byte [rbp - 0x1a], al
movzx esi, al
call fcn.140002160
mov edx, 0x11
mov byte [rbp - 0x4d], al
mov cl, 0x63
mov byte [rbp - 0x19], al
call fcn.140002160
mov edx, 0x12
mov byte [rbp - 0x4c], al
mov byte [rbp - 0x18], al
call fcn.140002160
mov edx, 0x13
mov byte [rbp - 0x4b], al
mov cl, 0x65
mov byte [rbp - 0x17], al
call fcn.140002160
mov edx, 0x14
mov byte [rbp - 0x4a], al
mov cl, 0x73
mov byte [rbp - 0x16], al
call fcn.140002160
mov edx, 0x15
mov byte [rbp - 0x58], al
mov byte [rbp - 0x15], al
call fcn.140002160
mov byte [rbp - 0x49], al
mov edx, 0x16
mov byte [rbp - 0x14], al
mov cl, 0x21
call fcn.140002160
mov edx, 0x17
mov byte [rbp - 0x48], al
mov cl, 0xa
mov byte [rbp - 0x13], al
call fcn.140002160
mov byte [rbp - 0x55], al
mov r8d, ebx
mov byte [rbp - 0x12], al
xor eax, eax
mov byte [rbp - 0x11], al
nop dword [rax + rax]
movsxd rcx, r8d
lea rdx, [rbp - 0x29]
add rdx, rcx
lea ecx, [r8 + 0x13]
inc r8d
xor byte [rdx], cl
cmp r8d, 0x18
jb 0x140005d10
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x11], al
call fcn.140001360
mov rdx, qword [rbp - 0x31]
mov r8, r12
mov ecx, dword [rbp - 0x39]
call fcn.140004e50
test eax, eax
jne 0x140005ec2
mov eax, dword [r13]
cmp dword [0x14008e0e8], eax
jle 0x140005d96
lea rcx, [0x14008e0e8]
call fcn.14000db88
cmp dword [0x14008e0e8], 0xffffffff
jne 0x140005d96
lea rcx, [0x140033b70]
mov dword [0x14008e0f0], ebx
mov qword [0x14008e0f8], 0xffffffffffffffff
call fcn.14000ded0
lea rcx, [0x14008e0e8]
call fcn.14000db28
mov rcx, qword [0x14008e0f8]
mov eax, dword [0x14008e0f0]
mov dword [rbp - 0x25], ebx
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], r15
cmp rcx, 0xffffffffffffffff
je 0x140005ddb
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x29]
mov qword [rsp + 0x30], rbx
mov r9d, 0x10
mov dword [rsp + 0x28], ebx
mov edx, 0x3009d4e0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
mov cl, 0x69
call fcn.140002160
mov edx, 1
mov byte [rbp - 0x29], al
mov cl, 0x6d
call fcn.140002160
mov edx, 2
mov byte [rbp - 0x28], al
mov cl, 0x70
call fcn.140002160
mov byte [rbp - 0x27], al
mov edx, 4
movzx eax, byte [rbp - 0x56]
mov cl, 0x72
mov byte [rbp - 0x26], al
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x25], al
mov cl, 0x74
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x20
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
mov cl, 0x66
call fcn.140002160
mov edx, 8
mov byte [rbp - 0x22], al
mov cl, 0x61
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x21], al
mov cl, 0x6c
mov byte [rbp - 0x20], dil
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x1f], al
mov cl, 0x65
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1e], al
mov cl, 0x64
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x1d], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x1c], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x1b], al
nop
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0xe
jb 0x140005ea0
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x1b], bl
call fcn.140001360
movzx eax, byte [rbp - 0x54]
mov edx, 2
mov cl, 0x73
mov byte [rbp - 0x28], al
mov byte [rbp - 0x29], r14b
call fcn.140002160
mov byte [rbp - 0x27], al
mov edx, 4
movzx eax, byte [rbp - 0x56]
mov cl, 0x6c
mov byte [rbp - 0x26], al
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x25], al
mov cl, 0x76
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x65
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
mov cl, 0x20
call fcn.140002160
mov byte [rbp - 0x56], al
mov edx, 9
mov byte [rbp - 0x22], al
mov cl, 0x6d
movzx eax, byte [rbp - 0x53]
mov byte [rbp - 0x21], al
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x53], al
mov cl, 0x70
mov byte [rbp - 0x20], al
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x1f], al
mov cl, 0x6f
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x54], al
mov cl, 0x72
mov byte [rbp - 0x1e], al
movzx r14d, al
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x1d], al
mov cl, 0x74
call fcn.140002160
mov byte [rbp - 0x1c], al
mov edx, ebx
movzx eax, byte [rbp - 0x52]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x4d]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x4c]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp - 0x4b]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x4a]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x58]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x49]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x48]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x55]
mov byte [rbp - 0x12], al
xor eax, eax
mov byte [rbp - 0x11], al
mov byte [rbp - 0x1a], sil
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0x18
jb 0x140005fd0
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x11], bl
call fcn.140001360
movzx edi, word [r12 + 0x14]
movzx esi, bx
add rdi, 0x2c
cmp bx, word [r12 + 6]
jae 0x1400060d7
mov r14, qword [rbp - 0x31]
add rdi, r12
mov eax, dword [r13]
cmp dword [0x14008e0e8], eax
jle 0x14000605c
lea rcx, [0x14008e0e8]
call fcn.14000db88
cmp dword [0x14008e0e8], 0xffffffff
jne 0x14000605c
lea rcx, [0x140033b70]
mov dword [0x14008e0f0], ebx
mov qword [0x14008e0f8], 0xffffffffffffffff
call fcn.14000ded0
lea rcx, [0x14008e0e8]
call fcn.14000db28
mov eax, dword [0x14008e0f0]
mov rcx, qword [0x14008e0f8]
mov dword [rbp - 0x11], eax
mov eax, dword [rdi - 8]
add rax, r15
mov word [rbp - 0xc], bx
mov qword [rbp - 0x21], rax
mov eax, dword [rdi]
add rax, r14
mov byte [rbp - 0xa], bl
mov qword [rbp - 0x29], rax
mov eax, dword [rdi - 4]
mov qword [rbp - 0x19], rax
mov byte [rbp - 0xd], 1
cmp rcx, 0xffffffffffffffff
je 0x1400060bf
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x29]
mov qword [rsp + 0x30], rbx
mov r9d, 0x20
mov dword [rsp + 0x28], ebx
mov edx, 0x3009ce20
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc si
add rdi, 0x28
cmp si, word [r12 + 6]
jb 0x140006012
movzx r14d, byte [rbp - 0x54]
xor edx, edx
mov cl, 0x77
call fcn.140002160
mov byte [rbp - 0x29], al
mov edx, 2
movzx eax, byte [rbp - 0x46]
mov cl, 0x69
mov byte [rbp - 0x28], al
call fcn.140002160
mov edx, 3
mov byte [rbp - 0x27], al
mov cl, 0x74
call fcn.140002160
mov byte [rbp - 0x26], al
mov edx, 5
movzx eax, byte [rbp - 0x45]
mov cl, 0x20
mov byte [rbp - 0x25], al
call fcn.140002160
mov byte [rbp - 0x24], al
mov edx, 8
movzx eax, byte [rbp - 0x44]
mov cl, 0x63
mov byte [rbp - 0x23], al
movzx eax, byte [rbp - 0x4e]
mov byte [rbp - 0x22], al
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x21], al
mov cl, 0x74
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
mov cl, 0x69
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1f], al
mov cl, 0x6e
mov byte [rbp - 0x1e], r14b
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x1d], al
mov cl, 0x73
movzx edi, al
call fcn.140002160
movzx esi, byte [rbp - 0x4c]
movzx r14d, al
mov byte [rbp - 0x54], al
mov edx, ebx
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x52]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x50]
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x4d]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x4b]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x4a]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x58]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x49]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x48]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x55]
mov byte [rbp - 0x12], al
xor eax, eax
mov byte [rbp - 0x11], al
mov byte [rbp - 0x18], sil
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0x18
jb 0x1400061e0
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x11], bl
call fcn.140001360
mov ecx, dword [rbp - 0x39]
mov r8, r12
mov rdx, r15
call fcn.140004730
xor edx, edx
mov cl, 0x63
call fcn.140002160
mov edx, 1
mov byte [rbp - 0x50], al
mov cl, 0x61
mov byte [rbp - 0x29], al
call fcn.140002160
mov byte [rbp - 0x28], al
mov edx, 3
movzx eax, byte [rbp - 0x59]
mov cl, 0x6c
mov byte [rbp - 0x27], al
call fcn.140002160
mov edx, 4
mov byte [rbp - 0x26], al
mov cl, 0x20
call fcn.140002160
mov byte [rbp - 0x25], al
mov edx, 6
movzx eax, byte [rbp - 0x43]
mov cl, 0x6c
mov byte [rbp - 0x24], al
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
call fcn.140002160
mov byte [rbp - 0x22], al
mov edx, 0xb
movzx eax, byte [rbp - 0x42]
mov cl, 0x69
mov byte [rbp - 0x21], al
movzx eax, byte [rbp - 0x53]
mov byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x4f]
mov byte [rbp - 0x1f], al
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x1e], al
mov cl, 0x20
mov byte [rbp - 0x1d], dil
call fcn.140002160
mov edx, 0xe
mov byte [rbp - 0x1c], al
mov cl, 0x73
call fcn.140002160
mov edx, 0xf
mov byte [rbp - 0x4f], al
mov cl, 0x75
mov byte [rbp - 0x1b], al
call fcn.140002160
mov edx, 0x10
mov byte [rbp - 0x1a], al
mov cl, 0x63
call fcn.140002160
mov edx, 0x12
mov byte [rbp - 0x19], al
mov cl, 0x65
mov byte [rbp - 0x18], sil
call fcn.140002160
mov edx, 0x13
mov byte [rbp - 0x17], al
mov cl, 0x73
call fcn.140002160
mov byte [rbp - 0x16], al
mov edx, 0x15
movzx eax, byte [rbp - 0x58]
mov cl, 0x21
mov byte [rbp - 0x15], al
call fcn.140002160
mov edx, 0x16
mov byte [rbp - 0x14], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x13], al
mov edx, ebx
xor eax, eax
mov byte [rbp - 0x12], al
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rdx + 0x13]
inc edx
xor byte [rcx], al
cmp edx, 0x17
jb 0x140006330
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x12], bl
call fcn.140001360
movzx edi, word [r12 + 0x14]
movzx esi, bx
add rdi, 0x28
cmp bx, word [r12 + 6]
jae 0x14000646e
add rdi, r12
nop
mov eax, dword [rdi]
test eax, eax
je 0x140006456
test dword [rdi + 0x14], 0x2000000
je 0x140006456
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [r13]
mov r14, rax
cmp dword [0x14008e0e8], ecx
jle 0x1400063e8
lea rcx, [0x14008e0e8]
call fcn.14000db88
cmp dword [0x14008e0e8], 0xffffffff
jne 0x1400063e8
lea rcx, [0x140033b70]
mov dword [0x14008e0f0], ebx
mov qword [0x14008e0f8], 0xffffffffffffffff
call fcn.14000ded0
lea rcx, [0x14008e0e8]
call fcn.14000db28
mov eax, dword [0x14008e0f0]
mov rcx, qword [0x14008e0f8]
mov dword [rbp - 0x11], eax
mov eax, dword [rdi - 4]
add rax, r15
mov word [rbp - 0xc], bx
mov qword [rbp - 0x21], rax
mov eax, dword [rdi]
mov qword [rbp - 0x19], rax
mov byte [rbp - 0xa], bl
mov qword [rbp - 0x29], r14
mov byte [rbp - 0xd], 1
cmp rcx, 0xffffffffffffffff
je 0x140006445
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x29]
mov qword [rsp + 0x30], rbx
mov r9d, 0x20
mov dword [rsp + 0x28], ebx
mov edx, 0x3009ce20
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc si
add rdi, 0x28
cmp si, word [r12 + 6]
jb 0x140006370
movzx r14d, byte [rbp - 0x54]
mov rcx, qword [rbp - 0x31]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movzx eax, byte [rbp - 0x50]
mov edx, 2
mov byte [rbp - 0x29], al
mov cl, 0x65
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x28], al
call fcn.140002160
mov edx, 3
mov byte [rbp - 0x27], al
mov cl, 0x61
call fcn.140002160
mov edx, 4
mov byte [rbp - 0x26], al
mov cl, 0x6e
call fcn.140002160
mov edx, 5
mov byte [rbp - 0x25], al
mov cl, 0x75
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x70
call fcn.140002160
mov byte [rbp - 0x23], al
mov edx, 8
movzx eax, byte [rbp - 0x56]
mov cl, 0x73
mov byte [rbp - 0x22], al
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x21], al
mov cl, 0x75
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
mov cl, 0x63
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x1f], al
movzx edi, al
call fcn.140002160
mov byte [rbp - 0x1e], al
mov edx, 0xf
movzx eax, byte [rbp - 0x40]
mov cl, 0x21
mov byte [rbp - 0x1d], al
movzx eax, byte [rbp - 0x4f]
mov byte [rbp - 0x1b], al
mov byte [rbp - 0x1c], r14b
call fcn.140002160
mov edx, 0x10
mov byte [rbp - 0x1a], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x19], al
mov r8d, ebx
xor eax, eax
mov byte [rbp - 0x18], al
nop word [rax + rax]
movsxd rax, r8d
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [r8 + 0x13]
inc r8d
xor byte [rcx], al
cmp r8d, 0x11
jb 0x140006560
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x18], bl
call fcn.140001360
xor edx, edx
mov cl, 0x69
call fcn.140002160
mov byte [rbp - 0x29], al
mov edx, 2
movzx eax, byte [rbp - 0x47]
mov cl, 0x6a
mov byte [rbp - 0x28], al
call fcn.140002160
mov byte [rbp - 0x27], al
mov edx, 5
movzx eax, byte [rbp - 0x51]
mov cl, 0x74
mov byte [rbp - 0x26], al
movzx eax, byte [rbp - 0x57]
mov byte [rbp - 0x25], al
call fcn.140002160
mov edx, 6
mov byte [rbp - 0x24], al
mov cl, 0x20
call fcn.140002160
mov edx, 7
mov byte [rbp - 0x23], al
mov cl, 0x73
call fcn.140002160
mov edx, 8
mov byte [rbp - 0x22], al
mov cl, 0x75
call fcn.140002160
mov edx, 9
mov byte [rbp - 0x21], al
mov cl, 0x63
call fcn.140002160
mov edx, 0xb
mov byte [rbp - 0x20], al
mov cl, 0x65
mov byte [rbp - 0x1f], dil
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1e], al
mov cl, 0x73
call fcn.140002160
mov edx, 0xe
mov byte [rbp - 0x1d], al
mov cl, 0x21
mov byte [rbp - 0x1c], r14b
call fcn.140002160
mov edx, 0xf
mov byte [rbp - 0x1b], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x1a], al
xor eax, eax
mov byte [rbp - 0x19], al
nop dword [rax]
movsxd rax, ebx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rbx + 0x13]
inc ebx
xor byte [rcx], al
cmp ebx, 0x10
jb 0x140006650
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x19], 0
call fcn.140001360
lea rcx, [0x14008ca40]
call fcn.140009f00
jmp 0x140006773
movzx eax, byte [rbp - 0x46]
mov edx, 7
mov byte [rbp - 0x28], al
mov cl, 0x20
movzx eax, byte [rbp - 0x45]
mov byte [rbp - 0x25], al
movzx eax, byte [rbp - 0x44]
mov byte [rbp - 0x23], al
mov byte [rbp - 0x29], sil
mov byte [rbp - 0x27], r14b
mov byte [rbp - 0x26], r15b
mov byte [rbp - 0x24], r12b
call fcn.140002160
mov byte [rbp - 0x22], al
mov edx, 9
movzx eax, byte [rbp - 0x55]
mov cl, 0x6f
mov byte [rbp - 0x21], al
call fcn.140002160
mov edx, 0xa
mov byte [rbp - 0x20], al
mov cl, 0x74
call fcn.140002160
mov edx, 0xc
mov byte [rbp - 0x1f], al
mov cl, 0x66
mov byte [rbp - 0x1e], dil
call fcn.140002160
mov edx, 0xd
mov byte [rbp - 0x1d], al
mov cl, 0x6f
call fcn.140002160
mov edx, 0xe
mov byte [rbp - 0x1c], al
mov cl, 0x75
call fcn.140002160
mov edx, 0xf
mov byte [rbp - 0x1b], al
mov cl, 0x6e
call fcn.140002160
mov edx, 0x10
mov byte [rbp - 0x1a], al
mov cl, 0x64
call fcn.140002160
mov edx, 0x11
mov byte [rbp - 0x19], al
mov cl, 0x21
call fcn.140002160
mov edx, 0x12
mov byte [rbp - 0x18], al
mov cl, 0xa
call fcn.140002160
mov byte [rbp - 0x17], al
xor eax, eax
mov byte [rbp - 0x16], al
nop
movsxd rax, ebx
lea rcx, [rbp - 0x29]
add rcx, rax
lea eax, [rbx + 0x13]
inc ebx
xor byte [rcx], al
cmp ebx, 0x13
jb 0x140006750
lea rcx, [rbp - 0x29]
mov byte [rbp - 0x16], 0
call fcn.140001360
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14000da10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret