Function at 0x140053710
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 r14
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
xor r14d, r14d
mov dword [rbp - 0x5c], 0xff
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], r14d
mov rbx, rcx
call fcn.140053020
test rax, rax
je 0x14005378c
mov eax, dword [rbx + 4]
mov dword [rsp + 0x78], eax
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x14005379a
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4f0
pop r14
pop rbx
pop rbp
ret
mov r9d, dword [rbx]
cmp r9d, 0x1000000
ja 0x140053770
mov eax, dword [rbp - 0x6c]
mov edx, dword [rbp - 0x60]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x438], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rbp - 0x70]
mov dword [rsp + 0x4c], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x4d8], r13
movsxd r13, dword [rbp - 0x74]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x58]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x78]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x2c], r13d
mov dword [rsp + 0x24], edi
mov dword [rbp + 0x430], r15d
cmp edi, 0xc
jne 0x14005382f
cmp r15d, 0x18
jge 0x14005384c
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
mov edx, dword [rsp + 0x38]
jmp 0x140053842
cmp r15d, 0x10
jge 0x14005384c
mov r14d, r13d
sub r14d, eax
sub r14d, edi
sar r14d, 2
mov dword [rsp + 0x20], r14d
test r14d, r14d
jne 0x140053889
movsxd rcx, dword [rbx + 0xb8]
sub rcx, qword [rbx + 0xd0]
add rcx, qword [rbx + 0xc0]
cmp r13, rcx
je 0x140053889
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140053f4e
mov qword [rsp + 0x4e0], r12
cmp r15d, 0x18
jne 0x1400538a5
cmp edx, 0xff000000
jne 0x1400538a5
lea r12d, [r15 - 0x15]
jmp 0x1400538b2
xor r12d, r12d
test edx, edx
setne r12b
add r12d, 3
mov dword [rbx + 8], r12d
test r9d, r9d
js 0x14005481c
je 0x1400538d3
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x14005481c
mov ecx, r12d
imul ecx, r9d
test ecx, ecx
js 0x14005481c
test r8d, r8d
js 0x14005481c
je 0x1400538fe
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x14005481c
mov qword [rsp + 0x510], rsi
test r9d, r9d
jne 0x140053914
mov ecx, r9d
imul ecx, r12d
jmp 0x14005392d
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r12d, eax
jg 0x1400547ff
mov ecx, r12d
imul ecx, r9d
test r8d, r8d
je 0x140053943
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1400547ff
mov eax, r12d
imul eax, r9d
imul eax, r8d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x80], rax
mov rsi, rax
test rax, rax
je 0x1400547ff
cmp r15d, 0x10
jge 0x140053f95
xor edi, edi
test r14d, r14d
je 0x140053f72
cmp r14d, 0x100
jg 0x140053f72
movsxd rax, r14d
test r14d, r14d
jle 0x140053afa
mov esi, dword [rsp + 0x24]
lea r14, [rbx + 0x30]
xor r8d, r8d
mov r13, rax
mov qword [rbp + 0x438], r8
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400539cf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400539f8
cmp dword [rbx + 0x30], edi
lea r14, [rbx + 0x30]
je 0x1400539f6
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400539f8
xor cl, cl
mov r15, r14
mov r14, qword [rbp + 0x438]
mov byte [rbp + r14*4 - 0x2e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x140053a1f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053a44
cmp dword [r15], edi
je 0x140053a42
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053a44
xor cl, cl
mov byte [rbp + r14*4 - 0x2f], cl
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jae 0x140053a68
movzx edx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053a97
mov r14, r15
cmp dword [r15], edi
je 0x140053a95
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053a97
xor dl, dl
mov r8, qword [rbp + 0x438]
mov byte [rbp + r8*4 - 0x30], dl
cmp esi, 0xc
je 0x140053acd
cmp rax, rcx
jae 0x140053ab9
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053acd
cmp dword [r15], edi
je 0x140053acd
mov rcx, rbx
call fcn.140049d30
inc qword [rbx + 0xc0]
mov rcx, qword [rbp + 0x438]
mov byte [rbp + rcx*4 - 0x2d], 0xff
inc rcx
mov qword [rbp + 0x438], rcx
cmp rcx, r13
jl 0x1400539b0
mov rsi, qword [rbp - 0x80]
mov r13d, dword [rsp + 0x2c]
mov r14d, dword [rsp + 0x20]
xor eax, eax
cmp dword [rsp + 0x24], 0xc
setne al
add eax, 3
imul eax, r14d
sub r13d, eax
sub r13d, dword [rsp + 0x30]
sub r13d, dword [rsp + 0x24]
je 0x140053b6d
test r13d, r13d
jns 0x140053b2f
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140053b6d
cmp qword [rbx + 0x10], rdi
je 0x140053b63
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x140053b63
mov rax, qword [rbx + 0xc8]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x140053b6d
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov r9d, dword [rbp + 0x430]
cmp r9d, 1
jne 0x140053b86
mov ecx, dword [rbx]
lea r13d, [rcx + 7]
shr r13d, 3
jmp 0x140053ba7
cmp r9d, 4
jne 0x140053b97
mov ecx, dword [rbx]
lea r13d, [rcx + 1]
shr r13d, 1
jmp 0x140053ba7
cmp r9d, 8
jne 0x140053f17
mov r13d, dword [rbx]
mov ecx, r13d
mov eax, dword [rbx + 4]
neg r13d
and r13d, 3
mov r8d, eax
cmp r9d, 1
jne 0x140053d3d
mov dword [rbp + 0x430], edi
test eax, eax
jle 0x140054730
nop dword [rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140053bf5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053c1b
cmp dword [rbx + 0x30], 0
je 0x140053c19
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053c1b
xor cl, cl
xor r15d, r15d
movzx edx, cl
cmp dword [rbx], r15d
jle 0x140053cd9
nop word [rax + rax]
mov eax, edx
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
add rdi, 3
cmp r12d, 4
jne 0x140053c6d
mov byte [rdi + rsi], 0xff
inc rdi
mov ecx, dword [rbx]
lea eax, [r15 + 1]
mov r15d, eax
cmp eax, ecx
je 0x140053cd9
sub r14d, 1
jns 0x140053cd0
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140053ca5
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053ccd
cmp dword [rbx + 0x30], 0
je 0x140053ccb
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x140053ccd
xor dl, dl
movzx edx, dl
cmp r15d, ecx
jl 0x140053c30
test r13d, r13d
je 0x140053d1c
cmp qword [rbx + 0x10], 0
je 0x140053d12
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x140053d12
mov rax, qword [rbx + 0xc8]
mov edx, r13d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x140053d1c
mov eax, r13d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
mov eax, dword [rbx + 4]
inc ecx
mov dword [rbp + 0x430], ecx
mov r8d, eax
cmp ecx, eax
jl 0x140053bd0
jmp 0x140054730
xor r15d, r15d
test eax, eax
jle 0x140054730
nop dword [rax + rax]
xor r14d, r14d
test ecx, ecx
jle 0x140053eb1
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140053d7f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053dac
cmp dword [rbx + 0x30], 0
je 0x140053daa
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
mov r9d, dword [rbp + 0x430]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053dac
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r9d, 4
jne 0x140053dc2
mov r8d, eax
and r8d, 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
cmp r12d, 4
jne 0x140053e00
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov ecx, dword [rbx]
lea eax, [r14 + 1]
cmp eax, ecx
je 0x140053eb1
cmp r9d, 8
jne 0x140053e64
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140053e33
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053e60
cmp dword [rbx + 0x30], 0
je 0x140053e5e
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
mov r9d, dword [rbp + 0x430]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140053e60
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*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
cmp r12d, 4
jne 0x140053ea2
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov ecx, dword [rbx]
add r14d, 2
cmp r14d, ecx
jl 0x140053d60
test r13d, r13d
je 0x140053ef9
cmp qword [rbx + 0x10], 0
je 0x140053eef
mov r8d, dword [rbx + 0xc8]
sub r8d, dword [rbx + 0xc0]
cmp r8d, r13d
jge 0x140053eef
mov rax, qword [rbx + 0xc8]
mov edx, r13d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov ecx, dword [rbx]
jmp 0x140053ef9
mov eax, r13d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r15d
mov r9d, dword [rbp + 0x430]
mov r8d, eax
cmp r15d, eax
jl 0x140053d50
jmp 0x140054730
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x28
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 rdi, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4d8]
mov r15, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r14
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, 0x28
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x140053f38
sub r13d, dword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x48], r8d
mov r11d, r8d
mov dword [rsp + 0x2c], r8d
mov r10d, r8d
mov dword [rsp + 0x24], r8d
mov r9d, r8d
mov dword [rsp + 0x3c], r8d
mov r15d, r8d
mov r14d, r8d
sub r13d, edi
je 0x140054024
test r13d, r13d
jns 0x140053fda
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140054024
cmp qword [rbx + 0x10], r8
je 0x14005401a
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r13d
jge 0x14005401a
mov rax, qword [rbx + 0xc8]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov r9d, r15d
mov r10d, r15d
mov r11d, r15d
xor r8d, r8d
jmp 0x140054024
movsxd rax, r13d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x140054036
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x140054044
cmp ecx, 0x10
jne 0x140054041
mov edx, dword [rbx]
add edx, edx
jmp 0x140054044
mov edx, r8d
neg edx
and edx, 3
mov dword [rsp + 0x20], edx
cmp ecx, 0x18
jne 0x140054064
mov edi, 1
mov r13d, r15d
mov qword [rsp + 0x40], rdi
jmp 0x14005429a
mov r13d, dword [rsp + 0x4c]
mov rdi, r8
mov eax, dword [rbp + 0x438]
mov qword [rsp + 0x40], r8
cmp ecx, 0x20
jne 0x1400540c6
mov qword [rsp + 0x40], r8
cmp r13d, 0xff
jne 0x1400540c6
mov qword [rsp + 0x40], r8
cmp eax, 0xff00
jne 0x1400540c6
cmp dword [rsp + 0x34], 0xff0000
mov qword [rsp + 0x40], r8
jne 0x1400540c6
cmp dword [rsp + 0x38], 0xff000000
mov qword [rsp + 0x40], r8
jne 0x1400540ff
mov edi, 2
mov r13d, r15d
mov qword [rsp + 0x40], rdi
jmp 0x14005429a
mov r9d, dword [rsp + 0x34]
test r9d, r9d
je 0x1400540d9
test eax, eax
je 0x1400540d9
test r13d, r13d
jne 0x140054104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x140053f38
mov r9d, dword [rsp + 0x34]
mov ecx, r9d
call fcn.140052fb0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rbp + 0x438]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x48], eax
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, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r11d, al
call fcn.140052fb0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x2c], 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, r13d
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.140052fb0
mov r14d, dword [rsp + 0x38]
sub eax, 7
mov dword [rsp + 0x24], eax
mov edx, r13d
shr edx, 1
mov ecx, r13d
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
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 r9d, al
call fcn.140052fb0
mov edx, r14d
mov ecx, r14d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r13d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x3c], r13d
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 r14d, al
cmp r11d, 8
ja 0x1400540d9
cmp r10d, 8
ja 0x1400540d9
cmp r9d, 8
ja 0x1400540d9
cmp r14d, 8
ja 0x1400540d9
mov edx, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
mov r8d, eax
mov dword [rsp + 0x30], r15d
test eax, eax
jle 0x140054730
mov eax, dword [rsp + 0x48]
neg eax
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x54], eax
mov eax, 8
mov ecx, eax
sub ecx, r11d
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x2c]
neg ecx
mov dword [rsp + 0x60], ecx
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x64], ecx
mov ecx, dword [rsp + 0x24]
neg ecx
mov dword [rsp + 0x68], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x6c], ecx
mov ecx, r13d
neg ecx
sub eax, r14d
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x74], eax
mov eax, r11d
mov qword [rbp - 0x50], rax
mov eax, r9d
mov ecx, r10d
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rcx
mov eax, dword [rbx]
xor r13d, r13d
movsxd rcx, r15d
test rdi, rdi
je 0x14005449d
test eax, eax
jle 0x1400546d2
lea r14, [rcx + rsi]
mov rsi, qword [rsp + 0x40]
lea rdi, [rbx + 0x30]
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14005435f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140054389
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140054387
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140054389
xor cl, cl
mov byte [r14 + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400543ac
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400543d1
cmp dword [rdi], 0
je 0x1400543cf
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400543d1
xor cl, cl
mov byte [r14 + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400543f4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140054419
cmp dword [rdi], 0
je 0x140054417
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140054419
xor cl, cl
mov byte [r14], cl
add r15d, 3
add r14, 3
cmp rsi, 2
jne 0x140054470
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140054449
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140054472
cmp dword [rdi], 0
je 0x14005446c
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140054476
xor cl, cl
jmp 0x140054476
mov cl, 0xff
lea rdi, [rbx + 0x30]
movzx eax, cl
or dword [rsp + 0x28], eax
cmp r12d, 4
jne 0x14005448c
inc r15d
mov byte [r14], cl
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x140054340
jmp 0x1400546c5
test eax, eax
jle 0x1400546d2
lea rdi, [rcx + rsi]
mov esi, dword [rbp + 0x430]
nop
cmp esi, 0x10
jne 0x14005457c
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400544d8
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400544fe
cmp dword [rbx + 0x30], 0
je 0x1400544fc
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400544fe
xor cl, cl
mov rdx, rbx
mov r8d, 0x30
movzx r14d, cl
cmp rax, qword [rbx + 0xc8]
jae 0x140054533
movzx ecx, byte [rax]
inc rax
movzx r9d, cl
shl r9d, 8
add r9d, r14d
mov qword [rbx + 0xc0], rax
mov r14, qword [rsp + 0x58]
jmp 0x140054587
cmp dword [r8 + rdx], 0
je 0x140054568
mov rcx, rbx
call fcn.140049d30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
movzx r9d, cl
shl r9d, 8
add r9d, r14d
mov qword [rbx + 0xc0], rax
mov r14, qword [rsp + 0x58]
jmp 0x140054587
xor cl, cl
movzx r9d, cl
shl r9d, 8
add r9d, r14d
mov r14, qword [rsp + 0x58]
jmp 0x140054587
mov rcx, rbx
call fcn.140049f40
mov r9d, eax
mov eax, dword [rsp + 0x48]
mov r8d, r9d
and r8d, dword [rsp + 0x34]
mov ecx, eax
mov r11, qword [rbp - 0x50]
mov edx, r8d
mov r10, qword [rbp - 0x48]
shr edx, cl
mov ecx, dword [rsp + 0x54]
shl r8d, cl
mov ecx, dword [rsp + 0x50]
test eax, eax
lea rax, [0x140000000]
cmovns r8d, edx
mov edx, r9d
and edx, dword [rbp + 0x438]
shr r8d, cl
imul r8d, dword [rax + r11*4 + 0xa6bb8]
mov ecx, dword [rax + r11*4 + 0xa6c10]
mov eax, edx
lea r11, [0x140000000]
sar r8d, cl
mov byte [rdi], r8b
mov r8d, dword [rsp + 0x2c]
mov ecx, r8d
shr eax, cl
mov ecx, dword [rsp + 0x60]
shl edx, cl
mov ecx, dword [rsp + 0x64]
test r8d, r8d
mov r8d, dword [rsp + 0x24]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0xa6bb8]
mov ecx, dword [r11 + r10*4 + 0xa6c10]
sar edx, cl
mov ecx, r8d
mov byte [rdi + 1], dl
mov edx, r9d
and edx, dword [rsp + 0x4c]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x68]
shl edx, cl
mov ecx, dword [rsp + 0x6c]
test r8d, r8d
mov r8, qword [rbp - 0x40]
cmovns edx, eax
mov eax, dword [rsp + 0x38]
shr edx, cl
add r15d, 3
imul edx, dword [r11 + r8*4 + 0xa6bb8]
mov ecx, dword [r11 + r8*4 + 0xa6c10]
sar edx, cl
mov byte [rdi + 2], dl
add rdi, 3
test eax, eax
je 0x14005469f
mov edx, dword [rsp + 0x3c]
and r9d, eax
mov eax, r9d
mov ecx, edx
shr eax, cl
mov ecx, dword [rsp + 0x70]
shl r9d, cl
mov ecx, dword [rsp + 0x74]
test edx, edx
cmovns r9d, eax
shr r9d, cl
imul r9d, dword [r11 + r14*4 + 0xa6bb8]
mov ecx, dword [r11 + r14*4 + 0xa6c10]
sar r9d, cl
jmp 0x1400546a5
mov r9d, 0xff
or dword [rsp + 0x28], r9d
cmp r12d, 4
jne 0x1400546b9
inc r15d
mov byte [rdi], r9b
inc rdi
inc r13d
cmp r13d, dword [rbx]
jl 0x1400544b0
mov edx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rbp - 0x80]
test edx, edx
je 0x140054713
cmp qword [rbx + 0x10], 0
je 0x14005470a
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x14005470a
mov rax, qword [rbx + 0xc8]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov edx, dword [rsp + 0x20]
jmp 0x140054713
mov eax, edx
add qword [rbx + 0xc0], rax
mov ecx, dword [rsp + 0x30]
mov eax, dword [rbx + 4]
inc ecx
mov r14, qword [rsp + 0x58]
mov r8d, eax
mov dword [rsp + 0x30], ecx
cmp ecx, eax
jl 0x140054315
mov edx, r8d
cmp r12d, 4
jne 0x14005475e
cmp dword [rsp + 0x28], 0
jne 0x14005475e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14005475e
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x140054751
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x78], 0
jle 0x1400547cf
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400547cf
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, r12d
imul edx, r12d
mov eax, r12d
imul r9d, ecx
xor r8d, r8d
imul eax, ecx
imul edx, ecx
imul r9d, r10d
mov r11d, edx
add rdx, rsi
test eax, eax
jle 0x1400547c0
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov eax, r12d
mov byte [rdx], cl
lea rdx, [rdx + 1]
imul eax, dword [rbx]
cmp r8d, eax
jl 0x1400547a0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x140054770
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x418]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x420]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x428]
test rcx, rcx
je 0x1400547f7
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x140053f3e
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140053f38
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140053f46