Function at 0x140034180
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 r13
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
lea rdx, [rbp - 0x78]
mov dword [rbp - 0x5c], 0xff
mov rbx, rcx
xor r13d, r13d
call fcn.140033cc0
test rax, rax
jne 0x1400341c9
add rsp, 0x4f0
pop r13
pop rbx
pop rbp
ret
mov eax, dword [rbx + 4]
mov ecx, dword [rbp - 0x60]
mov dword [rsp + 0x70], eax
cdq
mov r8d, eax
mov qword [rsp + 0x4e8], rdi
mov eax, dword [rbp - 0x6c]
xor r8d, edx
mov edi, dword [rbp - 0x78]
sub r8d, edx
mov dword [rsp + 0x2c], eax
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x430], eax
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x4d8], r14
mov r14d, dword [rbp - 0x70]
mov dword [rbp + 0x428], eax
mov eax, dword [rbp - 0x58]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x74]
mov dword [rsp + 0x28], eax
mov dword [rbx + 4], r8d
mov dword [rbp + 0x438], ecx
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x38], edi
cmp r14d, 0xc
jne 0x14003426b
cmp edi, 0x18
jge 0x140034280
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov ecx, dword [rbp + 0x438]
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x14003427d
cmp edi, 0x10
jge 0x14003427d
mov r13d, r15d
sub r13d, eax
sub r13d, r14d
sar r13d, 2
cmp edi, 0x18
jne 0x140034291
cmp ecx, 0xff000000
jne 0x140034291
mov eax, 3
jmp 0x14003429b
xor eax, eax
test ecx, ecx
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x140035105
jne 0x1400342b4
lea r9d, [rcx*4]
jmp 0x1400342d6
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x140035105
lea r9d, [rcx*4]
test r9d, r9d
js 0x140035105
test r8d, r8d
js 0x140035105
je 0x1400342f3
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x140035105
mov qword [rsp + 0x510], rsi
test ecx, ecx
jne 0x140034309
lea r9d, [rcx*4]
jmp 0x14003432c
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400350e2
lea edx, [rcx*4]
test edx, edx
js 0x1400350e2
mov r9d, edx
test r8d, r8d
je 0x140034343
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400350e2
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
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 0x1400350e2
mov qword [rsp + 0x4e0], r12
cmp edi, 0x10
jge 0x14003495b
xor edi, edi
test r13d, r13d
je 0x140034938
cmp r13d, 0x100
jg 0x140034938
test r13d, r13d
jle 0x1400344e0
mov esi, dword [rsp + 0x20]
lea r14, [rbx + 0x30]
xor r12d, r12d
movsxd r15, r13d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400343cf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400343f8
cmp dword [rbx + 0x30], edi
lea r14, [rbx + 0x30]
je 0x1400343f6
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400343f8
xor cl, cl
mov qword [rbp + 0x438], r14
mov byte [rbp + r12*4 - 0x2e], cl
cmp rax, qword [rbx + 0xc0]
jae 0x14003441c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034441
cmp dword [r14], edi
je 0x14003443f
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034441
xor cl, cl
mov byte [rbp + r12*4 - 0x2f], cl
cmp rax, qword [rbx + 0xc0]
jae 0x140034462
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034487
cmp dword [r14], edi
je 0x140034485
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034487
xor cl, cl
mov byte [rbp + r12*4 - 0x30], cl
cmp esi, 0xc
je 0x1400344c0
cmp rax, qword [rbx + 0xc0]
jae 0x1400344a6
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400344c0
mov rax, qword [rbp + 0x438]
cmp dword [rax], edi
je 0x1400344c0
mov rcx, rbx
call fcn.14002a540
inc qword [rbx + 0xb8]
mov byte [rbp + r12*4 - 0x2d], 0xff
inc r12
cmp r12, r15
jl 0x1400343b0
mov rsi, qword [rbp - 0x80]
mov r15d, dword [rsp + 0x24]
mov r14d, dword [rsp + 0x20]
xor eax, eax
cmp r14d, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, dword [rsp + 0x28]
sub r15d, r14d
jns 0x14003450d
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x14003454b
cmp qword [rbx + 0x10], rdi
je 0x140034541
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x140034541
mov rax, qword [rbx + 0xc0]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x14003454b
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov r15d, dword [rsp + 0x38]
mov rcx, rbx
mov eax, reloc.WS2_32.dll_recv
add rcx, rax
mov qword [rbp + 0x438], rcx
cmp r15d, 1
jne 0x140034575
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400345a5
cmp r15d, 4
jne 0x140034591
mov r12d, dword [rbx]
lea rax, [rbx + 0x10]
inc r12d
mov qword [rbp + 0x438], rax
shr r12d, 1
jmp 0x1400345a5
cmp r15d, 8
jne 0x1400348dd
mov r12d, dword [rbx]
mov qword [rbp + 0x438], rcx
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
xor r13d, r13d
mov ecx, eax
cmp r15d, 1
jne 0x140034725
test eax, eax
jle 0x140035006
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
mov r14d, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400345f5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14003461b
cmp dword [rbx + 0x30], 0
je 0x140034619
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14003461b
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r8d, cl
test edx, edx
jle 0x1400346d1
nop dword [rax]
mov eax, r8d
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
lea eax, [r15 + 1]
mov byte [rdi + rsi + 3], 0xff
mov r15d, eax
add rdi, 4
cmp eax, edx
je 0x1400346d1
sub r14d, 1
jns 0x1400346c6
mov rax, qword [rbx + 0xb8]
mov r14d, 7
cmp rax, qword [rbx + 0xc0]
jae 0x14003469c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400346c2
cmp dword [rbx + 0x30], 0
je 0x1400346c0
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400346c2
xor cl, cl
movzx r8d, cl
mov edx, dword [rbx]
cmp r15d, edx
jl 0x140034630
cmp qword [rbx + 0x10], 0
je 0x140034705
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x140034705
mov rax, qword [rbx + 0xc0]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14003470f
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov ecx, eax
cmp r13d, eax
jl 0x1400345d0
jmp 0x140035006
test eax, eax
jle 0x140035006
nop dword [rax]
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x140034883
nop dword [rax]
mov r8, qword [rbx + 0xb8]
cmp r8, qword [rbx + 0xc0]
jae 0x140034760
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x140034787
cmp dword [rbx + 0x30], 0
je 0x140034785
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x140034787
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r15d, 4
jne 0x1400347a9
mov r10d, eax
and r10d, 0xf
shr eax, 4
mov r9d, dword [rbx]
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
movsxd rcx, edi
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, r9d
je 0x140034883
cmp r15d, 8
jne 0x14003483e
cmp r8, qword [rbx + 0xc0]
jae 0x140034811
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x14003483a
cmp dword [r11], 0
je 0x140034838
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x14003483a
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 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, r9d
jl 0x140034740
mov rax, qword [rbp + 0x438]
cmp qword [rax], 0
je 0x1400348bd
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400348bd
mov rax, qword [rbx + 0xc0]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400348c7
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov ecx, eax
cmp r13d, eax
jl 0x140034730
jmp 0x140035006
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov r12, qword [rsp + 0x4e0]
mov rsi, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x4e8]
mov r14, qword [rsp + 0x4d8]
mov r15, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r13
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, 0x18
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1400348fe
sub r15d, dword [rsp + 0x28]
xor r11d, r11d
sub r15d, r14d
mov dword [rsp + 0x30], r11d
mov edx, r11d
mov dword [rsp + 0x4c], r11d
mov dword [rsp + 0x54], edx
mov r8d, r11d
mov dword [rsp + 0x20], r11d
mov r12d, r11d
mov dword [rsp + 0x48], r11d
mov r9d, r11d
mov r10d, r11d
mov r13d, r11d
jns 0x1400349a2
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400349ef
cmp qword [rbx + 0x10], rdx
je 0x1400349e5
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400349e5
mov rax, qword [rbx + 0xc0]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
mov edx, r12d
mov r9d, r12d
mov r8d, edx
mov r10d, r12d
xor r11d, r11d
jmp 0x1400349ef
movsxd rax, r15d
add qword [rbx + 0xb8], rax
cmp edi, 0x18
jne 0x1400349fc
mov eax, dword [rbx]
lea r14d, [rax + rax*2]
jmp 0x140034a0c
cmp edi, 0x10
jne 0x140034a09
mov r14d, dword [rbx]
add r14d, r14d
jmp 0x140034a0c
mov r14d, r11d
neg r14d
and r14d, 3
mov dword [rsp + 0x28], r14d
cmp edi, 0x18
jne 0x140034a30
mov r11d, 1
mov r15d, r12d
mov qword [rsp + 0x40], r11
jmp 0x140034c32
mov eax, dword [rbp + 0x430]
mov qword [rsp + 0x40], r11
cmp edi, 0x20
jne 0x140034a95
xor r11d, r11d
cmp dword [rsp + 0x34], 0xff
mov qword [rsp + 0x40], r11
jne 0x140034a95
mov qword [rsp + 0x40], r11
cmp eax, 0xff00
jne 0x140034a95
cmp dword [rsp + 0x2c], 0xff0000
mov qword [rsp + 0x40], r11
jne 0x140034a95
mov r14d, dword [rbp + 0x438]
mov qword [rsp + 0x40], r11
cmp r14d, 0xff000000
jne 0x140034ac2
mov r11d, 2
mov r15d, r12d
mov qword [rsp + 0x40], r11
jmp 0x140034c32
mov r9d, dword [rsp + 0x2c]
test r9d, r9d
je 0x1400350bc
test eax, eax
je 0x1400350bc
mov r10d, dword [rsp + 0x34]
test r10d, r10d
je 0x1400350bc
mov r14d, dword [rbp + 0x438]
jmp 0x140034acc
mov r9d, dword [rsp + 0x2c]
mov r10d, dword [rsp + 0x34]
mov ecx, r9d
call fcn.140033c50
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rbp + 0x430]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r15d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x30], r15d
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 r12d, al
call fcn.140033c50
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x4c], 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, r10d
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.140033c50
sub eax, 7
mov edx, r10d
shr edx, 1
mov ecx, r10d
and edx, 0x55555555
mov dword [rsp + 0x20], 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 r10d, al
call fcn.140033c50
lea r8d, [rax - 7]
mov edx, r14d
shr edx, 1
mov ecx, r14d
and edx, 0x55555555
mov dword [rsp + 0x48], r8d
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
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x24], r13d
test eax, eax
jle 0x140035006
mov eax, 8
neg r15d
mov ecx, eax
mov dword [rsp + 0x54], r15d
sub ecx, r12d
lea r15, [rbx + 0xc0]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x4c]
neg ecx
mov dword [rsp + 0x58], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rsp + 0x20]
neg ecx
mov dword [rsp + 0x60], ecx
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x64], ecx
mov ecx, r8d
neg ecx
sub eax, edx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
mov eax, r12d
mov qword [rbp - 0x50], rax
mov eax, r10d
mov qword [rbp - 0x40], rax
mov eax, edx
mov ecx, r9d
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x48], rcx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx]
xor r12d, r12d
mov qword [rsp + 0x78], r15
movsxd rcx, r13d
test r11, r11
je 0x140034e2b
test eax, eax
jle 0x140034f9f
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x140034d0b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034d35
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140034d33
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034d35
xor cl, cl
mov qword [rsp + 0x78], rdi
mov byte [r14 + 2], cl
cmp rax, qword [r15]
jae 0x140034d52
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034d77
cmp dword [rdi], 0
je 0x140034d75
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034d77
xor cl, cl
mov byte [r14 + 1], cl
cmp rax, qword [r15]
jae 0x140034d93
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034db8
cmp dword [rdi], 0
je 0x140034db6
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034db8
xor cl, cl
cmp qword [rsp + 0x40], 2
mov byte [r14], cl
jne 0x140034e03
cmp rax, qword [r15]
jae 0x140034dd7
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034e05
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x140034dff
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140034e05
xor cl, cl
jmp 0x140034e05
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x428], eax
inc r12d
mov byte [r14 + 3], cl
add r14, 4
cmp r12d, dword [rbx]
jl 0x140034cf0
jmp 0x140034f9f
test eax, eax
jle 0x140034f9f
mov r15d, dword [rbp + 0x438]
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x48]
mov rcx, rbx
call fcn.14002a740
cmp edi, 0x10
jne 0x140034e54
mov r8d, eax
jmp 0x140034e6c
mov rcx, rbx
mov edi, eax
call fcn.14002a740
mov r8d, eax
shl r8d, 0x10
add r8d, edi
mov edi, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
lea r10, [0x140000000]
mov ecx, r9d
mov edx, r8d
and edx, dword [rsp + 0x2c]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x54]
shl edx, cl
mov ecx, dword [rsp + 0x50]
test r9d, r9d
mov r9d, dword [rsp + 0x4c]
cmovns edx, eax
mov rax, qword [rbp - 0x50]
shr edx, cl
imul edx, dword [r10 + rax*4 + 0x1eeb00]
mov ecx, dword [r10 + rax*4 + 0x1eeb78]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rbp + 0x430]
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 + 0x20]
cmovns edx, eax
mov rax, qword [rbp - 0x48]
shr edx, cl
imul edx, dword [r10 + rax*4 + 0x1eeb00]
mov ecx, dword [r10 + rax*4 + 0x1eeb78]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x34]
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 [r10 + r9*4 + 0x1eeb00]
mov ecx, dword [r10 + r9*4 + 0x1eeb78]
sar edx, cl
mov byte [r14 + 2], dl
test r15d, r15d
je 0x140034f71
mov rdx, qword [rbp - 0x38]
and r8d, r15d
mov eax, r8d
mov ecx, esi
shr eax, cl
mov ecx, dword [rsp + 0x68]
shl r8d, cl
mov ecx, dword [rsp + 0x6c]
test esi, esi
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [r10 + rdx*4 + 0x1eeb00]
mov ecx, dword [r10 + rdx*4 + 0x1eeb78]
sar r8d, cl
jmp 0x140034f77
mov r8d, 0xff
or dword [rbp + 0x428], r8d
add r13d, 4
mov byte [r14 + 3], r8b
inc r12d
add r14, 4
cmp r12d, dword [rbx]
jl 0x140034e42
mov rsi, qword [rbp - 0x80]
mov r15, qword [rsp + 0x78]
cmp qword [rbx + 0x10], 0
mov r14d, dword [rsp + 0x28]
je 0x140034fd1
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r14d
jge 0x140034fd8
mov rax, qword [r15]
mov edx, r14d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x140034fe2
lea r15, [rbx + 0xc0]
mov eax, r14d
add qword [rbx + 0xb8], rax
mov r14d, dword [rsp + 0x24]
mov eax, dword [rbx + 4]
inc r14d
mov edi, dword [rsp + 0x38]
mov ecx, eax
mov r11, qword [rsp + 0x40]
mov dword [rsp + 0x24], r14d
cmp r14d, eax
jl 0x140034cc0
cmp dword [rbp + 0x428], 0
jne 0x14003502d
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x14003502d
mov byte [rdx + rsi], 0xff
sub rdx, 4
jns 0x140035020
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x70], 0
jle 0x1400350a0
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x1400350a0
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 0x14003508f
sub r9, r11
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x140035070
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x140035041
mov eax, dword [rbx]
mov rdx, qword [rbp + 0x418]
mov dword [rdx], eax
mov rax, qword [rbp + 0x420]
mov dword [rax], ecx
mov rax, rsi
jmp 0x140034904
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1400348fe
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14003490c
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140034914