Function at 0x1400347d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x3e8]
sub rsp, 0x4e8
xor edi, edi
mov dword [rbp - 0x5c], 0xff
lea rdx, [rbp - 0x78]
mov r13d, edi
mov rbx, rcx
call fcn.1400342f0
test rax, rax
je 0x140034842
mov eax, dword [rbx + 4]
mov dword [rsp + 0x70], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x140034851
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4e8
pop r13
pop rdi
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x140034826
mov eax, dword [rbp - 0x6c]
mov r8d, dword [rbp - 0x60]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x4e0], r12
mov r12d, dword [rbp - 0x78]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x4d8], r14
mov r14d, dword [rbp - 0x70]
mov dword [rbp + 0x438], eax
mov eax, dword [rbp - 0x58]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x74]
mov dword [rsp + 0x20], eax
mov dword [rbp + 0x430], r8d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x2c], r14d
mov dword [rsp + 0x28], r12d
cmp r14d, 0xc
jne 0x1400348e3
cmp r12d, 0x18
jge 0x1400348ff
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x1400348f6
cmp r12d, 0x10
jge 0x1400348ff
mov r13d, r15d
sub r13d, eax
sub r13d, r14d
sar r13d, 2
test r13d, r13d
jne 0x140034992
mov edx, dword [rbx + 0xb8]
sub edx, dword [rbx + 0xd0]
mov r8d, dword [rbx + 0xc0]
add edx, r8d
lea eax, [rdx - 1]
cmp eax, 0x3ff
ja 0x140035826
cmp r15d, edx
jl 0x140035803
mov ecx, r15d
sub ecx, edx
cmp ecx, 0x400
jg 0x140035803
test ecx, ecx
je 0x14003498b
jns 0x140034953
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14003498b
cmp qword [rbx + 0x10], rdi
je 0x140034981
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x140034981
mov rax, qword [rbx + 0xc8]
sub ecx, edx
mov edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x14003498b
movsxd rax, ecx
add qword [rbx + 0xc0], rax
mov r8d, dword [rbp + 0x430]
cmp r12d, 0x18
jne 0x1400349a8
cmp r8d, 0xff000000
jne 0x1400349a8
lea eax, [r12 - 0x15]
jmp 0x1400349b3
test r8d, r8d
mov eax, edi
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r9d, dword [rbx + 4]
test ecx, ecx
js 0x1400357e0
jne 0x1400349d3
lea r8d, [rcx*4]
mov r10d, r8d
jmp 0x1400349f8
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400357e0
lea r8d, [rcx*4]
mov r10d, r8d
test r8d, r8d
js 0x1400357e0
test r9d, r9d
js 0x1400357e0
je 0x140034a15
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r10d, eax
jg 0x1400357e0
mov qword [rsp + 0x510], rsi
test ecx, ecx
je 0x140034a3c
xor edx, edx
mov eax, 0x7fffffff
div ecx
cmp eax, 4
jl 0x1400357c3
test r8d, r8d
js 0x1400357c3
test r9d, r9d
je 0x140034a54
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp r8d, eax
jg 0x1400357c3
imul ecx, r9d
shl ecx, 2
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x78], rax
mov rsi, rax
test rax, rax
je 0x1400357c3
cmp r12d, 0x10
jge 0x14003503a
test r13d, r13d
je 0x140035017
cmp r13d, 0x100
jg 0x140035017
test r13d, r13d
jle 0x140034bd2
mov rax, qword [rbx + 0xc0]
xor r12d, r12d
mov r15d, dword [rsp + 0x2c]
movsxd rsi, r13d
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jb 0x140034ad7
cmp dword [rbx + 0x30], edi
je 0x140034afb
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
lea r14, [r12*4]
inc rax
mov byte [rbp + r14 - 0x2e], dl
mov qword [rbx + 0xc0], rax
mov r8, r14
cmp rax, rcx
jae 0x140034b0b
jmp 0x140034b26
lea r14, [r12*4]
mov byte [rbp + r14 - 0x2e], dil
mov r8, r14
cmp dword [rbx + 0x30], edi
je 0x140034b4c
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rbp + r14 - 0x2f], dl
cmp rax, rcx
jae 0x140034b51
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140034b76
mov byte [rbp + r8 - 0x2f], dil
cmp dword [rbx + 0x30], edi
je 0x140034b74
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140034b76
xor cl, cl
mov byte [rbp + r14 - 0x30], cl
cmp r15d, 0xc
je 0x140034bb1
cmp rax, qword [rbx + 0xc8]
jae 0x140034b96
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140034bb1
cmp dword [rbx + 0x30], edi
je 0x140034bb1
mov rcx, rbx
call fcn.14002a720
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
inc r12
mov byte [rbp + r14 - 0x2d], 0xff
cmp r12, rsi
jl 0x140034ab0
mov rsi, qword [rsp + 0x78]
mov r15d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x2c]
xor eax, eax
cmp r14d, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, dword [rsp + 0x20]
sub r15d, r14d
je 0x140034c42
test r15d, r15d
jns 0x140034c04
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140034c42
cmp qword [rbx + 0x10], rdi
je 0x140034c38
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x140034c38
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
jmp 0x140034c42
movsxd rax, r15d
add qword [rbx + 0xc0], rax
mov r15d, dword [rsp + 0x28]
cmp r15d, 1
jne 0x140034c5a
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x140034c78
cmp r15d, 4
jne 0x140034c6b
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x140034c78
cmp r15d, 8
jne 0x140034fc3
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
xor r13d, r13d
mov ecx, eax
cmp r15d, 1
jne 0x140034e0d
test eax, eax
jle 0x1400356d4
nop dword [rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140034cc5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140034ceb
cmp dword [rbx + 0x30], 0
je 0x140034ce9
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140034ceb
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x140034db4
mov r8d, edx
nop
mov eax, r9d
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov byte [rdi + rsi + 2], al
mov byte [rdi + rsi + 3], 0xff
add rdi, 4
inc r15d
cmp r15d, edx
je 0x140034db4
sub r14d, 1
jns 0x140034da5
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140034d70
movzx ecx, byte [rax]
mov edx, r8d
inc rax
movzx r9d, cl
mov qword [rbx + 0xc0], rax
jmp 0x140034da8
cmp dword [rbx + 0x30], 0
je 0x140034d9a
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov edx, dword [rbx]
movzx r9d, cl
jmp 0x140034da8
xor cl, cl
mov edx, r8d
movzx r9d, cl
jmp 0x140034da8
mov edx, r8d
mov r8d, edx
cmp r15d, edx
jl 0x140034d00
test r12d, r12d
je 0x140034df7
cmp qword [rbx + 0x10], 0
je 0x140034ded
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140034ded
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x140034df7
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov ecx, eax
cmp r13d, eax
jl 0x140034ca0
jmp 0x1400356d4
test eax, eax
jle 0x1400356d4
nop word [rax + rax]
mov r8d, dword [rbx]
xor r14d, r14d
test r8d, r8d
jle 0x140034f6a
nop
mov r9, qword [rbx + 0xc0]
cmp r9, qword [rbx + 0xc8]
jae 0x140034e50
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x140034e7a
cmp dword [rbx + 0x30], 0
je 0x140034e78
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x140034e7a
xor cl, cl
xor r10d, r10d
movzx eax, cl
cmp r15d, 4
jne 0x140034e90
mov r10d, eax
and r10d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, r8d
je 0x140034f6a
cmp r15d, 8
jne 0x140034f22
cmp r9, qword [rbx + 0xc8]
jae 0x140034ef5
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x140034f1e
cmp dword [rbx + 0x30], 0
je 0x140034f1c
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r8d, dword [rbx]
jmp 0x140034f1e
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
add r14d, 2
mov r9d, r8d
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r14d, r8d
jl 0x140034e30
test r12d, r12d
je 0x140034fad
cmp qword [rbx + 0x10], 0
je 0x140034fa3
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140034fa3
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x140034fad
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov ecx, eax
cmp r13d, eax
jl 0x140034e20
jmp 0x1400356d4
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x510]
mov r12, qword [rsp + 0x4e0]
mov r14, qword [rsp + 0x4d8]
mov r15, qword [rsp + 0x4d0]
add rsp, 0x4e8
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x140034fe4
sub r15d, dword [rsp + 0x20]
xor edx, edx
xor r13d, r13d
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x30], edi
mov r11d, edi
mov dword [rsp + 0x28], edi
mov r10d, edi
mov dword [rsp + 0x2c], edi
mov r9d, edi
mov dword [rsp + 0x24], edx
sub r15d, r14d
je 0x1400350c4
test r15d, r15d
jns 0x14003507b
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1400350c4
cmp qword [rbx + 0x10], rdx
je 0x1400350ba
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x1400350ba
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
mov edx, edi
mov r9d, edx
mov r10d, edx
mov r11d, edx
jmp 0x1400350c4
movsxd rax, r15d
add qword [rbx + 0xc0], rax
cmp r12d, 0x18
jne 0x1400350d2
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1400350e3
cmp r12d, 0x10
jne 0x1400350e0
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1400350e3
xor r8d, r8d
neg r8d
and r8d, 3
mov dword [rsp + 0x24], r8d
cmp r12d, 0x18
jne 0x140035105
mov r15d, 1
mov qword [rsp + 0x50], r15
jmp 0x140035314
mov r15d, dword [rsp + 0x38]
cmp r12d, 0x20
jne 0x14003514d
cmp dword [rsp + 0x3c], 0xff
jne 0x14003514d
cmp r15d, 0xff00
jne 0x14003514d
cmp dword [rsp + 0x34], 0xff0000
jne 0x14003514d
mov r14d, dword [rbp + 0x430]
cmp r14d, 0xff000000
jne 0x14003517b
mov r15d, 2
mov qword [rsp + 0x50], r15
jmp 0x140035314
mov r9d, dword [rsp + 0x34]
test r9d, r9d
je 0x14003579d
test r15d, r15d
je 0x14003579d
mov r11d, dword [rsp + 0x3c]
test r11d, r11d
je 0x14003579d
mov r14d, dword [rbp + 0x430]
jmp 0x140035185
mov r9d, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x3c]
mov ecx, r9d
call fcn.140034210
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x40], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r15d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r10d, al
call fcn.140034210
sub eax, 7
mov edx, r15d
shr edx, 1
mov ecx, r15d
and edx, 0x55555555
mov dword [rsp + 0x30], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r11d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r9d, al
call fcn.140034210
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
mov dword [rsp + 0x28], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r14d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
call fcn.140034210
lea r11d, [rax - 7]
mov edx, r14d
mov dword [rsp + 0x2c], r11d
shr edx, 1
mov ecx, r14d
and edx, 0x55555555
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edx, al
cmp r10d, 8
ja 0x14003579d
cmp r9d, 8
ja 0x14003579d
cmp edi, 8
ja 0x14003579d
xor r15d, r15d
mov qword [rsp + 0x50], r15
cmp edx, 8
ja 0x14003579d
mov r8d, dword [rsp + 0x24]
mov eax, dword [rbx + 4]
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov ecx, eax
test eax, eax
jle 0x1400356d4
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x48], eax
mov eax, 8
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x44], ecx
mov ecx, dword [rsp + 0x30]
neg ecx
mov dword [rsp + 0x58], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rsp + 0x28]
neg ecx
mov dword [rsp + 0x60], ecx
mov ecx, eax
sub ecx, edi
mov dword [rsp + 0x64], ecx
mov ecx, r11d
neg ecx
sub eax, edx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
mov eax, r10d
mov qword [rbp - 0x50], rax
mov eax, edi
mov edi, edx
mov ecx, r9d
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rax
nop
mov eax, dword [rbx]
movsxd rcx, r13d
test r15, r15
je 0x140035525
xor r14d, r14d
test eax, eax
jle 0x1400354d3
lea rdi, [rcx + rsi]
nop dword [rax]
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rbx + 0xc0]
cmp rax, rcx
jb 0x1400353df
cmp dword [rbx + 0x30], 0
je 0x1400353f6
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rdi + 2], dl
cmp rax, rcx
jae 0x1400353fa
jmp 0x140035416
mov byte [rdi + 2], 0
cmp dword [rbx + 0x30], 0
je 0x14003543a
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rdi + 1], dl
cmp rax, rcx
jae 0x14003543e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140035464
mov byte [rdi + 1], 0
cmp dword [rbx + 0x30], 0
je 0x140035462
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140035464
xor cl, cl
mov byte [rdi], cl
cmp r15, 2
jne 0x1400354ac
cmp rax, qword [rbx + 0xc8]
jae 0x140035484
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400354ae
cmp dword [rbx + 0x30], 0
je 0x1400354a8
mov rcx, rbx
call fcn.14002a720
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400354ae
xor cl, cl
jmp 0x1400354ae
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x438], eax
inc r14d
mov byte [rdi + 3], cl
add rdi, 4
cmp r14d, dword [rbx]
jl 0x1400353b0
mov r8d, dword [rsp + 0x24]
mov r14d, dword [rsp + 0x20]
test r8d, r8d
je 0x1400356ba
cmp qword [rbx + 0x10], 0
je 0x1400356b0
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x1400356b0
mov rax, qword [rbx + 0xc8]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
mov r8d, dword [rsp + 0x24]
jmp 0x1400356ba
test eax, eax
jle 0x1400356a6
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x430]
mov rcx, rbx
call fcn.14002a930
cmp r12d, 0x10
jne 0x14003554a
mov r8d, eax
jmp 0x140035562
mov rcx, rbx
mov edi, eax
call fcn.14002a930
mov r8d, eax
shl r8d, 0x10
add r8d, edi
mov rdi, qword [rbp - 0x80]
mov r9d, dword [rsp + 0x40]
lea r11, [0x140000000]
mov r10, qword [rbp - 0x50]
mov ecx, r9d
mov edx, r8d
and edx, dword [rsp + 0x34]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x48]
shl edx, cl
mov ecx, dword [rsp + 0x44]
test r9d, r9d
mov r9d, dword [rsp + 0x30]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0x2031f8]
mov ecx, dword [r11 + r10*4 + 0x2032b8]
mov r10, qword [rbp - 0x48]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rsp + 0x38]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x58]
shl edx, cl
mov ecx, dword [rsp + 0x5c]
test r9d, r9d
mov r9d, dword [rsp + 0x28]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0x2031f8]
mov ecx, dword [r11 + r10*4 + 0x2032b8]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x3c]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x60]
shl edx, cl
mov ecx, dword [rsp + 0x64]
test r9d, r9d
mov r9, qword [rbp - 0x40]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r9*4 + 0x2031f8]
mov ecx, dword [r11 + r9*4 + 0x2032b8]
sar edx, cl
mov byte [r14 + 2], dl
test esi, esi
je 0x14003566d
mov r11d, dword [rsp + 0x2c]
and r8d, esi
mov eax, r8d
mov ecx, r11d
shr eax, cl
mov ecx, dword [rsp + 0x68]
shl r8d, cl
mov ecx, dword [rsp + 0x6c]
test r11d, r11d
cmovns r8d, eax
lea rax, [0x140000000]
shr r8d, cl
imul r8d, dword [rax + rdi*4 + 0x2031f8]
mov ecx, dword [rax + rdi*4 + 0x2032b8]
sar r8d, cl
jmp 0x140035673
mov r8d, 0xff
or dword [rbp + 0x438], r8d
add r13d, 4
mov byte [r14 + 3], r8b
inc r15d
add r14, 4
cmp r15d, dword [rbx]
jl 0x140035537
mov rsi, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x24]
mov r15, qword [rsp + 0x50]
jmp 0x1400354d3
mov r15, qword [rsp + 0x50]
jmp 0x1400354d8
mov eax, r8d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r14d
mov rdi, qword [rbp - 0x80]
mov ecx, eax
mov dword [rsp + 0x20], r14d
cmp r14d, eax
jl 0x140035390
cmp dword [rbp + 0x438], 0
jne 0x1400356fd
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x1400356fd
nop
mov byte [rdx + rsi], 0xff
sub rdx, 4
jns 0x1400356f0
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x140035770
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x140035770
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, rsi
shl r9d, 2
test eax, eax
jle 0x14003575f
sub r9, r11
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x140035740
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x140035711
mov eax, dword [rbx]
mov rdx, qword [rbp + 0x418]
mov dword [rdx], eax
mov rax, qword [rbp + 0x420]
mov dword [rax], ecx
mov rcx, qword [rbp + 0x428]
test rcx, rcx
je 0x140035795
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x140034fea
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x140034fe4
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140034fe4
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140034ff2
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140034ff2
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140034ff2