Function at 0x140028950
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 r13d, r13d
mov dword [rbp - 0x5c], 0xff
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], r13d
mov edi, r13d
mov rbx, rcx
call fcn.140028340
test rax, rax
je 0x1400289c8
mov eax, dword [rbx + 4]
mov dword [rsp + 0x74], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x1400289d7
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 0x1400289ac
mov eax, dword [rbp - 0x6c]
mov r8d, dword [rbp - 0x60]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x64]
mov qword [rsp + 0x510], rsi
mov esi, dword [rbp - 0x78]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x4e0], r12
mov r12d, dword [rbp - 0x74]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x70]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbp - 0x58]
mov dword [rsp + 0x3c], eax
mov dword [rbp + 0x438], r8d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x24], r15d
mov dword [rbp + 0x430], esi
cmp r15d, 0xc
jne 0x140028a63
cmp esi, 0x18
jge 0x140028a7f
mov ecx, r12d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x140028a73
cmp esi, 0x10
jge 0x140028a7f
mov edi, r12d
sub edi, eax
sub edi, r15d
sar edi, 2
mov dword [rsp + 0x20], edi
test edi, edi
jne 0x140028b12
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 0x140029df6
cmp r12d, edx
jl 0x140029dd3
mov ecx, r12d
sub ecx, edx
cmp ecx, 0x400
jg 0x140029dd3
test ecx, ecx
je 0x140028b0b
jns 0x140028ad3
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140028b0b
cmp qword [rbx + 0x10], r13
je 0x140028b01
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x140028b01
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 0x140028b0b
movsxd rax, ecx
add qword [rbx + 0xc0], rax
mov r8d, dword [rbp + 0x438]
cmp esi, 0x18
jne 0x140028b25
cmp r8d, 0xff000000
jne 0x140028b25
lea eax, [rsi - 0x15]
jmp 0x140028b31
test r8d, r8d
mov eax, r13d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r9d, dword [rbx + 4]
test ecx, ecx
js 0x140029db0
jne 0x140028b51
lea r8d, [rcx*4]
mov r10d, r8d
jmp 0x140028b76
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x140029db0
lea r8d, [rcx*4]
mov r10d, r8d
test r8d, r8d
js 0x140029db0
test r9d, r9d
js 0x140029db0
je 0x140028b93
mov eax, 0x7fffffff
cdq
idiv r9d
cmp r10d, eax
jg 0x140029db0
mov qword [rsp + 0x4d8], r14
test ecx, ecx
je 0x140028bba
xor edx, edx
mov eax, 0x7fffffff
div ecx
cmp eax, 4
jl 0x140029d93
test r8d, r8d
js 0x140029d93
test r9d, r9d
je 0x140028bd2
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp r8d, eax
jg 0x140029d93
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 r14, rax
test rax, rax
je 0x140029d93
cmp esi, 0x10
mov esi, r13d
jge 0x1400294c6
test edi, edi
je 0x1400294a3
cmp edi, 0x100
jg 0x1400294a3
movsxd rax, edi
mov qword [rbp + 0x438], rax
test edi, edi
jle 0x140028ec8
mov rax, qword [rbx + 0xc0]
mov r14d, dword [rsp + 0x24]
mov r12, qword [rbp + 0x438]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jb 0x140028cbf
cmp dword [rbx + 0x30], esi
je 0x140028ce6
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140028ca8
lea rax, [rbx + 0x39]
mov dword [rbx + 0x30], esi
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], sil
mov rcx, qword [rbx + 0xc8]
jmp 0x140028cb8
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
lea r15, [r13*4]
inc rax
mov byte [rbp + r15 - 0x2e], dl
mov qword [rbx + 0xc0], rax
mov r8, r15
cmp rax, rcx
jae 0x140028cf6
jmp 0x140028d69
lea r15, [r13*4]
mov byte [rbp + r15 - 0x2e], sil
mov r8, r15
cmp dword [rbx + 0x30], esi
je 0x140028d8f
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140028d52
lea rax, [rbx + 0x39]
mov dword [rbx + 0x30], esi
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], sil
mov rcx, qword [rbx + 0xc8]
jmp 0x140028d62
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rbp + r15 - 0x2f], dl
cmp rax, rcx
jae 0x140028d94
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140028e0d
mov byte [rbp + r8 - 0x2f], sil
cmp dword [rbx + 0x30], esi
je 0x140028e0b
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140028de5
lea rax, [rbx + 0x39]
mov dword [rbx + 0x30], esi
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], sil
jmp 0x140028df5
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140028e0d
xor cl, cl
mov byte [rbp + r15 - 0x30], cl
cmp r14d, 0xc
je 0x140028ea0
cmp rax, qword [rbx + 0xc8]
jae 0x140028e31
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140028ea0
cmp dword [rbx + 0x30], esi
je 0x140028ea0
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140028e82
lea rax, [rbx + 0x39]
mov dword [rbx + 0x30], esi
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], sil
jmp 0x140028e92
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
inc r13
mov byte [rbp + r15 - 0x2d], 0xff
cmp r13, r12
jl 0x140028c40
mov r14, qword [rsp + 0x78]
xor r13d, r13d
mov r12d, dword [rsp + 0x30]
mov edi, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
cmp r15d, 0xc
mov eax, r13d
setne al
add eax, 3
imul eax, edi
sub r12d, eax
sub r12d, dword [rsp + 0x3c]
sub r12d, r15d
je 0x140028f38
test r12d, r12d
jns 0x140028efa
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140028f38
cmp qword [rbx + 0x10], rsi
je 0x140028f2e
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140028f2e
mov rax, qword [rbx + 0xc8]
sub r12d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r12d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
jmp 0x140028f38
movsxd rax, r12d
add qword [rbx + 0xc0], rax
mov r11d, dword [rbp + 0x430]
cmp r11d, 1
jne 0x140028f52
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x140028f70
cmp r11d, 4
jne 0x140028f63
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x140028f70
cmp r11d, 8
jne 0x14002944f
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov ecx, eax
cmp r11d, 1
jne 0x1400291ce
mov dword [rbp + 0x430], r13d
test eax, eax
jle 0x140029c9d
mov rsi, r13
jmp 0x140028fa3
xor r13d, r13d
mov rax, qword [rbx + 0xc0]
mov r15d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140028fc8
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140029043
cmp dword [rbx + 0x30], 0
je 0x140029041
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x14002901b
lea rax, [rbx + 0x39]
mov dword [rbx + 0x30], r13d
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
jmp 0x14002902b
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140029043
xor cl, cl
mov edx, dword [rbx]
movzx r9d, cl
test edx, edx
jle 0x14002916b
mov r8d, edx
mov eax, r9d
mov ecx, r15d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rsi + r14], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rsi + r14 + 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov byte [rsi + r14 + 2], al
mov byte [rsi + r14 + 3], 0xff
add rsi, 4
inc r13d
cmp r13d, edx
je 0x14002916b
sub r15d, 1
jns 0x14002915c
mov rax, qword [rbx + 0xc0]
mov r15d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1400290d3
movzx ecx, byte [rax]
mov edx, r8d
inc rax
movzx r9d, cl
mov qword [rbx + 0xc0], rax
jmp 0x14002915f
cmp dword [rbx + 0x30], 0
je 0x140029151
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140029125
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
jmp 0x140029135
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov edx, dword [rbx]
movzx r9d, cl
jmp 0x14002915f
xor cl, cl
mov edx, r8d
movzx r9d, cl
jmp 0x14002915f
mov edx, r8d
mov r8d, edx
cmp r13d, edx
jl 0x140029054
test r12d, r12d
je 0x1400291ae
cmp qword [rbx + 0x10], 0
je 0x1400291a4
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x1400291a4
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 0x1400291ae
mov eax, r12d
add qword [rbx + 0xc0], rax
mov edx, dword [rbp + 0x430]
mov eax, dword [rbx + 4]
inc edx
mov dword [rbp + 0x430], edx
mov ecx, eax
cmp edx, eax
jl 0x140028fa0
jmp 0x140029c9d
test eax, eax
jle 0x140029c9d
nop word [rax + rax]
xor r15d, r15d
cmp dword [rbx], r15d
jle 0x1400293ef
nop dword [rax]
mov r8, qword [rbx + 0xc0]
cmp r8, qword [rbx + 0xc8]
jae 0x140029213
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x140029295
cmp dword [rbx + 0x30], 0
je 0x140029293
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140029265
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
jmp 0x140029275
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
mov r11d, dword [rbp + 0x430]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x140029295
xor cl, cl
xor r10d, r10d
movzx eax, cl
cmp r11d, 4
jne 0x1400292ab
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, esi
inc esi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, esi
inc esi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, esi
inc esi
mov byte [rcx + r14], al
movsxd rax, esi
inc esi
mov byte [rax + r14], 0xff
lea eax, [r15 + 1]
cmp eax, r9d
je 0x1400293ef
cmp r11d, 8
jne 0x1400293a6
cmp r8, qword [rbx + 0xc8]
jae 0x14002931e
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x1400293a2
cmp dword [rbx + 0x30], 0
je 0x1400293a0
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140029370
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
jmp 0x140029380
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
mov r11d, dword [rbp + 0x430]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r9d, dword [rbx]
jmp 0x1400293a2
xor cl, cl
movzx r10d, cl
movsxd rcx, esi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x30]
inc esi
add r15d, 2
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, esi
inc esi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, esi
inc esi
mov byte [rcx + r14], al
movsxd rax, esi
inc esi
mov byte [rax + r14], 0xff
cmp r15d, r9d
jl 0x1400291f0
test r12d, r12d
je 0x140029432
cmp qword [rbx + 0x10], 0
je 0x140029428
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140029428
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 0x140029432
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov r11d, dword [rbp + 0x430]
mov ecx, eax
cmp r13d, eax
jl 0x1400291e0
jmp 0x140029c9d
mov rcx, r14
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 r14, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x4e0]
mov rsi, qword [rsp + 0x510]
mov r15, qword [rsp + 0x4d0]
add rsp, 0x4e8
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rcx, r14
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 0x140029470
sub r12d, dword [rsp + 0x3c]
mov r11d, r13d
mov dword [rsp + 0x40], r13d
mov r10d, r13d
mov dword [rsp + 0x44], r13d
mov r9d, r13d
mov dword [rsp + 0x30], r13d
mov edi, r13d
mov dword [rsp + 0x24], r13d
sub r12d, r15d
je 0x14002954c
test r12d, r12d
jns 0x140029505
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14002954c
cmp qword [rbx + 0x10], rsi
je 0x140029542
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140029542
mov rax, qword [rbx + 0xc8]
sub r12d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r12d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
mov r9d, esi
mov r10d, esi
mov r11d, esi
jmp 0x14002954c
movsxd rax, r12d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x14002955f
mov eax, dword [rbx]
lea r12d, [rax + rax*2]
jmp 0x14002956f
cmp ecx, 0x10
jne 0x14002956c
mov r12d, dword [rbx]
add r12d, r12d
jmp 0x14002956f
xor r12d, r12d
neg r12d
and r12d, 3
mov dword [rsp + 0x70], r12d
cmp ecx, 0x18
jne 0x14002958f
mov edx, 1
mov qword [rsp + 0x50], rdx
jmp 0x140029797
mov eax, dword [rsp + 0x28]
cmp ecx, 0x20
jne 0x1400295d2
cmp dword [rsp + 0x38], 0xff
jne 0x1400295d2
cmp eax, 0xff00
jne 0x1400295d2
cmp dword [rsp + 0x34], 0xff0000
jne 0x1400295d2
mov r15d, dword [rbp + 0x438]
cmp r15d, 0xff000000
jne 0x1400295ff
mov edx, 2
mov qword [rsp + 0x50], rdx
jmp 0x140029797
mov r9d, dword [rsp + 0x34]
test r9d, r9d
je 0x140029d6d
test eax, eax
je 0x140029d6d
mov r11d, dword [rsp + 0x38]
test r11d, r11d
je 0x140029d6d
mov r15d, dword [rbp + 0x438]
jmp 0x140029609
mov r9d, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x38]
mov ecx, r9d
call fcn.1400282d0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rsp + 0x28]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x40], 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 r10d, al
call fcn.1400282d0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x44], 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.1400282d0
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
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, r15d
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.1400282d0
lea r11d, [rax - 7]
mov edx, r15d
shr edx, 1
mov ecx, r15d
and edx, 0x55555555
mov dword [rsp + 0x24], r11d
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 esi, al
cmp r10d, 8
ja 0x140029d6d
cmp r9d, 8
ja 0x140029d6d
cmp edi, 8
ja 0x140029d6d
xor edx, edx
mov qword [rsp + 0x50], rdx
cmp esi, 8
ja 0x140029d6d
mov eax, dword [rbx + 4]
xor r8d, r8d
mov dword [rsp + 0x20], r8d
mov ecx, eax
test eax, eax
jle 0x140029c9d
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x48], eax
mov eax, 8
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x3c], ecx
mov ecx, dword [rsp + 0x44]
neg ecx
mov dword [rsp + 0x58], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rsp + 0x30]
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, esi
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
mov eax, r10d
mov qword [rbp - 0x50], rax
mov eax, edi
mov edi, esi
mov ecx, r9d
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rax
mov eax, dword [rbx]
xor r15d, r15d
movsxd rcx, r13d
test rdx, rdx
je 0x140029aaf
test eax, eax
jle 0x140029c36
lea rsi, [rcx + r14]
nop
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rbx + 0xc0]
cmp rax, rcx
jb 0x1400298b7
cmp dword [rbx + 0x30], 0
je 0x1400298ce
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x1400298a0
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
mov rcx, qword [rbx + 0xc8]
jmp 0x1400298b0
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rsi + 2], dl
cmp rax, rcx
jae 0x1400298d2
jmp 0x140029946
mov byte [rsi + 2], 0
cmp dword [rbx + 0x30], 0
je 0x14002996a
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x14002992f
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
mov rcx, qword [rbx + 0xc8]
jmp 0x14002993f
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov byte [rsi + 1], dl
cmp rax, rcx
jae 0x14002996e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400299e8
mov byte [rsi + 1], 0
cmp dword [rbx + 0x30], 0
je 0x1400299e6
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x1400299c0
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
jmp 0x1400299d0
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400299e8
xor cl, cl
cmp qword [rsp + 0x50], 2
mov byte [rsi], cl
jne 0x140029a8a
cmp rax, qword [rbx + 0xc8]
jae 0x140029a0e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140029a8c
cmp dword [rbx + 0x30], 0
je 0x140029a86
mov rax, qword [rbx + 0x10]
lea rdi, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rbx + 0xc0], rdi
test eax, eax
jne 0x140029a60
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbx + 0xc0]
mov byte [rax], 0
jmp 0x140029a70
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140029a8c
xor cl, cl
jmp 0x140029a8c
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rsp + 0x2c], eax
inc r15d
mov byte [rsi + 3], cl
add rsi, 4
cmp r15d, dword [rbx]
jl 0x140029830
jmp 0x140029c31
test eax, eax
jle 0x140029c36
mov r12d, dword [rbp + 0x438]
lea rsi, [rcx + r14]
mov r14d, dword [rbp + 0x430]
nop dword [rax]
mov rcx, rbx
call fcn.14001db10
cmp r14d, 0x10
jne 0x140029ae3
mov r8d, eax
jmp 0x140029afb
mov rcx, rbx
mov edi, eax
call fcn.14001db10
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 + 0x3c]
test r9d, r9d
mov r9d, dword [rsp + 0x44]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0x1afa70]
mov ecx, dword [r11 + r10*4 + 0x1afb38]
mov r10, qword [rbp - 0x48]
sar edx, cl
mov ecx, r9d
mov byte [rsi], dl
mov edx, r8d
and edx, dword [rsp + 0x28]
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 + 0x30]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0x1afa70]
mov ecx, dword [r11 + r10*4 + 0x1afb38]
sar edx, cl
mov ecx, r9d
mov byte [rsi + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x38]
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 + 0x1afa70]
mov ecx, dword [r11 + r9*4 + 0x1afb38]
sar edx, cl
mov byte [rsi + 2], dl
test r12d, r12d
je 0x140029c04
mov r11d, dword [rsp + 0x24]
and r8d, r12d
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 + 0x1afa70]
mov ecx, dword [rax + rdi*4 + 0x1afb38]
sar r8d, cl
jmp 0x140029c0a
mov r8d, 0xff
or dword [rsp + 0x2c], r8d
add r13d, 4
mov byte [rsi + 3], r8b
inc r15d
add rsi, 4
cmp r15d, dword [rbx]
jl 0x140029ad0
mov r14, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x20]
test r12d, r12d
je 0x140029c7e
cmp qword [rbx + 0x10], 0
je 0x140029c74
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140029c74
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]
mov r8d, dword [rsp + 0x20]
jmp 0x140029c7e
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r8d
mov rdx, qword [rsp + 0x50]
mov ecx, eax
mov rdi, qword [rbp - 0x80]
mov dword [rsp + 0x20], r8d
cmp r8d, eax
jl 0x140029812
cmp dword [rsp + 0x2c], 0
jne 0x140029cc3
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x140029cc3
mov byte [rdx + r14], 0xff
sub rdx, 4
jns 0x140029cb5
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x74], 0
jle 0x140029d40
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x140029d40
nop word [rax + rax]
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, r14
shl r9d, 2
test eax, eax
jle 0x140029d2f
sub r9, r11
nop
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 0x140029d10
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x140029ce0
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 0x140029d65
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r14
jmp 0x140029476
mov rcx, r14
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 0x140029470
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140029470
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 0x14002947e
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 0x14002947e
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 0x14002947e