Function at 0x6b6e98c0
Capabilities:
Encode data using xor
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x58
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
test esi, esi
je 0x6b6e98f2
mov eax, dword [ebp + 0x114]
mov dword [esi], eax
cmp dword [ebp + 0x5c], 0
js 0x6b6e991d
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x6b6e9924
test edi, edi
je 0x6b6e990a
cmp dword [edi], 0
jne 0x6b6e9926
mov ecx, ebp
mov edx, 0xffffffec
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.6b6ea970
xor eax, eax
jmp 0x6b6ea94b
xor edi, edi
mov dword [esp + 0x1c], esi
cmp dword [ebp + 0x30], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edi
je 0x6b6e9949
lea eax, [ebp + 0x28]
mov dword [ebp + 0x10], eax
mov eax, 2
jmp 0x6b6e9958
mov eax, dword [edx]
mov dword [ebp + 0x14], eax
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, 1
lea ecx, [ebp + 8]
mov dword [esp + 8], ecx
lea ecx, [ebp + 0x23c]
mov dword [esp + 0x44], ecx
lea ecx, [ebp + 0x240]
mov dword [esp + 0x38], ecx
lea ecx, [ebp + 0x250]
mov dword [esp + 0x3c], ecx
lea ecx, [ebp + 0xf8]
mov dword [esp + 0x4c], ecx
lea ecx, [ebp + 0xfc]
mov dword [esp + 0x48], ecx
lea ecx, [ebp + 0x78]
mov dword [esp + 0x30], ecx
lea ecx, [ebp + 0x88]
mov dword [esp + 0x34], ecx
lea ecx, [ebp + 0x98]
mov dword [esp + 0x2c], ecx
lea ecx, [ebp + 0x338]
mov dword [esp + 0x40], ecx
mov dword [esp], ebp
jmp case.default.0x6b6e9a71
mov dword [ebp + 0x30], 0
mov eax, dword [edi]
mov dword [ebp + 0x14], eax
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 1
je 0x6b6e9a60
cmp eax, 2
jne 0x6b6ea8b3
cmp dword [ebp + 0x60], 0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
je 0x6b6e9a1c
mov ecx, ebp
mov edx, dword [esp + 0x10]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.6b6ea980
add esp, 0xc
test eax, eax
js 0x6b6ea942
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x6b6ea8c5
cmp dword [ebp + 0x14], 0
je 0x6b6e99bb
cmp dword [edi], 0
je 0x6b6ea93d
mov ecx, dword [esi]
mov cl, byte [ecx]
mov byte [ebp + eax + 0x28], cl
mov eax, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x14], eax
inc dword [esi]
dec dword [edi]
mov eax, 1
jmp case.default.0x6b6e9a71
mov ecx, dword [ebp]
cmp ecx, 0x1a
mov eax, 1
ja case.default.0x6b6e9a71
jmp dword [ecx*4 + 0x6b7d75c8]
mov ecx, ebp
call fcn.6b6ec470
cmp eax, 2
jne case.default.0x6b6e9a71
mov ecx, ebp
call fcn.6b6ed160
jmp case.default.0x6b6e9a71
mov ecx, ebp
mov edx, dword [esp + 0x10]
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.6b6ea980
add esp, 0xc
cmp eax, 1
jne case.default.0x6b6e9a71
mov ecx, ebp
call fcn.6b6edd40
mov cl, byte [ebp + 0x234]
mov eax, 1
shl eax, cl
cmp dword [ebp + 0x40], eax
jne 0x6b6e9ad4
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp]
cmp eax, 0x10
je 0x6b6e9d62
cmp eax, 0xf
jne 0x6b6e9d73
cmp dword [ebp + 0xb8], 0
je 0x6b6ea4fc
mov dword [ebp], 7
mov eax, 1
jmp case.default.0x6b6e9a71
push dword [esp + 8]
call fcn.6b6f0090
add esp, 4
mov ecx, eax
mov eax, 2
test ecx, ecx
je case.default.0x6b6e9a71
mov edx, dword [ebp + 0x230]
mov eax, edx
and eax, 0xffffffdf
mov dword [ebp + 0x230], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + 1]
mov dword [ebp + 0xc], ecx
bt edi, ebx
jae 0x6b6ea4b2
mov esi, edi
shr esi, cl
lea ecx, [ebx + 4]
and esi, 7
mov dword [ebp + 0xc], ecx
je 0x6b6ea84b
add esi, 0x11
mov dword [ebp + 0x234], esi
jmp 0x6b6ea4bc
mov ecx, dword [ebp + 0xc]
mov eax, 0x20
sub eax, ecx
cmp eax, 6
jae 0x6b6e9d8e
mov edi, dword [ebp + 0x14]
dec edi
cmp edi, 0xffffffff
je 0x6b6ea3f3
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edx, esi
shr edx, 8
mov dword [ebp + 8], edx
movzx edx, byte [ebx]
shld edx, esi, 0x18
mov dword [ebp + 8], edx
add ecx, 0xfffffff8
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edi
inc ebx
mov dword [ebp + 0x10], ebx
add eax, 8
dec edi
cmp eax, 6
jb 0x6b6e9b80
jmp 0x6b6e9d94
mov edx, dword [ebp + 0x234]
jmp 0x6b6e9dbd
mov ecx, dword [ebp + 0xc]
mov edx, 0x20
sub edx, ecx
cmp edx, 6
jae 0x6b6e9f40
mov edi, dword [ebp + 0x14]
dec edi
nop
nop
cmp edi, 0xffffffff
je 0x6b6ea3fd
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
shr eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [ebx]
shld eax, esi, 0x18
mov dword [ebp + 8], eax
add ecx, 0xfffffff8
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edi
inc ebx
mov dword [ebp + 0x10], ebx
add edx, 8
dec edi
cmp edx, 6
jb 0x6b6e9be0
jmp 0x6b6e9f46
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xcc]
cmp eax, ecx
jl 0x6b6e9fa9
jmp 0x6b6ea039
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ebp
push dword [esp + 0x20]
call fcn.6b6ebde0
add esp, 8
cmp eax, 1
jne case.default.0x6b6e9a71
jmp 0x6b6ea4fc
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
jle 0x6b6ea4fc
mov eax, dword [ebp + 0xc]
jmp 0x6b6e9c84
add eax, 8
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 4]
cmp ecx, 1
lea ecx, [ecx - 1]
mov dword [ebp + 0xb8], ecx
jle 0x6b6ea4fc
mov dword [esp + 4], ecx
mov edx, 0x20
sub edx, eax
cmp edx, 7
ja 0x6b6e9c68
mov edi, dword [ebp + 0x14]
dec edi
nop
nop
nop
nop
cmp edi, 0xffffffff
je 0x6b6e9d58
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ebp, esi
shr ebp, 8
mov ecx, dword [esp]
mov dword [ecx + 8], ebp
movzx ebp, byte [ebx]
shld ebp, esi, 0x18
mov ecx, dword [esp]
mov dword [ecx + 8], ebp
mov ebp, dword [esp]
add eax, 0xfffffff8
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], edi
inc ebx
mov dword [ebp + 0x10], ebx
dec edi
add edx, 8
jb 0x6b6e9ca0
jmp 0x6b6e9c68
mov eax, 0xfffffff6
cmp dword [ebp + 0xb8], 0
js case.default.0x6b6e9a71
push ebp
call fcn.6b6efea0
add esp, 4
test byte [ebp + 0x230], 1
jne 0x6b6ea407
mov dword [ebp], 3
mov eax, 1
jmp case.default.0x6b6e9a71
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + eax*4 + 0xcc]
jmp 0x6b6ea1c7
mov ecx, dword [ebp + 0xcc]
jmp 0x6b6ea040
mov eax, dword [ebp + 4]
test eax, eax
je 0x6b6ea1ae
cmp eax, 2
je 0x6b6ea1b7
cmp eax, 1
mov edi, dword [esp + 0x34]
je 0x6b6ea5e9
jmp 0x6b6ea95c
mov eax, 2
jmp case.default.0x6b6e9a71
mov dword [ebp], 0xa
mov eax, 1
jmp case.default.0x6b6e9a71
cmp dword [ebp + 4], 0
je 0x6b6ea4e2
mov dword [ebp], 8
mov eax, 1
jmp case.default.0x6b6e9a71
mov eax, dword [esp + 8]
mov edx, dword [eax]
shr edx, cl
and edx, 0x3f
mov dword [ebp + 0x234], edx
add ecx, 6
mov dword [ebp + 0xc], ecx
lea ecx, [edx - 0xa]
mov eax, 0xfffffff3
cmp ecx, 0x14
ja case.default.0x6b6e9a71
mov dword [ebp], 2
mov eax, 1
mov ecx, edx
shl eax, cl
add eax, 0xfffffff0
mov dword [ebp + 0x38], eax
push 0x3030
push dword [ebp + 0x20]
call dword [ebp + 0x18]
add esp, 8
mov ecx, eax
mov dword [ebp + 0xa8], eax
mov eax, 0xffffffe2
test ecx, ecx
je case.default.0x6b6e9a71
add ecx, 0x1da0
mov dword [ebp + 0xac], ecx
mov dword [ebp], 3
push ebp
call fcn.6b6efd90
add esp, 4
mov dword [ebp], 4
mov ecx, ebp
mov edx, dword [esp + 8]
call fcn.6b6eaa80
cmp eax, 1
jne case.default.0x6b6e9a71
mov edx, dword [ebp + 0x230]
test dl, 6
je 0x6b6e9e5b
mov ecx, dword [ebp + 0xc]
mov esi, ecx
neg esi
and esi, 7
je 0x6b6e9e5b
mov edi, dword [ebp + 8]
shr edi, cl
add ecx, esi
mov dword [ebp + 0xc], ecx
mov eax, 0xfffffff2
mov ecx, dword [0x6b83adb4]
test dword [ecx + esi*4], edi
jne case.default.0x6b6e9a71
test dl, 4
jne 0x6b6e9f2f
cmp dword [ebp + 0xb8], 0
je 0x6b6ea4fc
mov ecx, ebp
call fcn.6b6eb000
test byte [ebp + 0x230], 2
jne 0x6b6ea83a
mov dword [ebp], 0x11
mov dword [ebp + 4], 0
mov dword [ebp + 0x27c], 0
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x314], eax
mov dword [ebp + 0x278], 0
mov dword [ebp + 0x270], 0
mov dword [ebp + 0x274], 0
mov dword [ebp], 0x12
mov eax, dword [ebp + 4]
cmp eax, 3
jl 0x6b6e9ee5
mov dword [ebp], 5
mov eax, 1
jmp case.default.0x6b6e9a71
lea eax, [ebp + eax*4 + 0xcc]
mov ecx, ebp
mov edx, dword [esp + 8]
push eax
call fcn.6b6eb070
add esp, 4
cmp eax, 1
jne case.default.0x6b6e9a71
mov eax, dword [ebp + 4]
inc dword [ebp + eax*4 + 0xcc]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + eax*4 + 0xcc]
cmp ecx, 1
ja 0x6b6ea1c0
inc eax
mov dword [ebp + 4], eax
mov eax, 1
jmp case.default.0x6b6e9a71
mov dword [ebp], 0xc
mov eax, 1
jmp case.default.0x6b6e9a71
mov eax, dword [esp + 8]
mov eax, dword [eax]
shr eax, cl
add ecx, 6
mov dword [ebp + 0xc], ecx
mov ecx, eax
and ecx, 3
mov dword [ebp + 0xf0], ecx
shr eax, 2
and eax, 0xf
shl eax, cl
mov dword [ebp + 0xf4], eax
push dword [ebp + 0xcc]
push dword [ebp + 0x20]
call dword [ebp + 0x18]
add esp, 8
mov ecx, eax
mov dword [ebp + 0x244], eax
mov eax, 0xffffffeb
test ecx, ecx
je case.default.0x6b6e9a71
mov dword [ebp + 4], 0
mov dword [ebp], 6
xor eax, eax
mov ecx, dword [ebp + 0xcc]
cmp eax, ecx
jge 0x6b6ea039
mov dword [esp + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, 0x20
sub edx, ecx
cmp edx, 2
jae 0x6b6ea00f
mov edi, dword [ebp + 0x14]
dec edi
cmp edi, 0xffffffff
je 0x6b6ea19d
mov esi, dword [ebp + 8]
mov ebx, dword [esp]
mov ebp, dword [ebx + 0x10]
mov ebx, esi
shr ebx, 8
mov eax, dword [esp]
mov dword [eax + 8], ebx
movzx ebx, byte [ebp]
shld ebx, esi, 0x18
mov eax, dword [esp]
mov dword [eax + 8], ebx
add ecx, 0xfffffff8
mov eax, dword [esp]
mov dword [eax + 0xc], ecx
mov eax, dword [esp]
mov dword [eax + 0x14], edi
inc ebp
mov eax, dword [esp]
mov dword [eax + 0x10], ebp
mov ebp, dword [esp]
add edx, 8
dec edi
cmp edx, 2
jb 0x6b6e9fc0
jmp 0x6b6ea012
mov ebx, dword [ebp + 8]
shr ebx, cl
add ecx, 2
mov dword [ebp + 0xc], ecx
and bl, 3
mov ecx, dword [ebp + 0x244]
mov eax, dword [esp + 4]
mov byte [ecx + eax], bl
inc eax
mov ecx, dword [ebp + 0xcc]
cmp eax, ecx
jl 0x6b6e9fa9
mov dword [ebp], 0x16
shl ecx, 6
mov edx, dword [esp + 0x44]
push ebp
push dword [esp + 0x3c]
call fcn.6b6ebf50
add esp, 8
cmp eax, 1
jne case.default.0x6b6e9a71
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [ebp + 0xcc]
mov dword [esp + 4], eax
test eax, eax
je 0x6b6ea131
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea edi, [eax + 3]
xor ecx, ecx
jmp 0x6b6ea0ca
inc ecx
add edi, 0x40
cmp ecx, dword [esp + 4]
je 0x6b6ea131
mov eax, ecx
shl eax, 6
mov edx, dword [esp + 0xc]
mov bl, byte [edx + eax]
mov ebp, 0xfffffffc
xor eax, eax
nop
nop
nop
mov bh, byte [edi + ebp + 1]
xor bh, bl
movzx esi, bh
mov bh, byte [edi + ebp + 2]
xor bh, bl
movzx edx, bh
or edx, esi
mov bh, byte [edi + ebp + 3]
xor bh, bl
movzx esi, bh
or esi, edx
movzx edx, byte [edi + ebp + 4]
xor dl, bl
movzx edx, dl
or edx, esi
or eax, edx
add ebp, 4
cmp ebp, 0x3c
jb 0x6b6ea0e0
test eax, eax
mov ebp, dword [esp]
jne 0x6b6ea0c0
mov eax, 1
shl eax, cl
mov edx, ecx
shr edx, 5
or dword [ebp + edx*4 + 0x250], eax
jmp 0x6b6ea0c0
mov dword [ebp], 0x17
mov edx, dword [ebp + 0xf0]
mov ebx, dword [ebp + 0xf4]
lea ecx, [edx + 1]
mov eax, 0x18
mov dword [esp + 4], ecx
shl eax, cl
test byte [ebp + 0x230], 0x20
jne 0x6b6ea166
lea esi, [ebx + eax + 0x10]
mov edi, esi
jmp 0x6b6ea54a
lea esi, [ebx + 0x10]
mov edi, 0x8000000c
cmp ebx, 0x7ffffffb
ja 0x6b6ea53a
mov ebp, 0x7ffffffc
sub ebp, ebx
mov ecx, edx
shr ebp, cl
add ebp, 4
mov eax, ebp
shr eax, 1
je 0x6b6ea50d
bsr eax, eax
xor eax, 0x1f
jmp 0x6b6ea512
mov eax, dword [esp + 4]
mov dword [ebp + 4], eax
mov eax, 2
jmp case.default.0x6b6e9a71
mov edi, dword [esp + 0x30]
jmp 0x6b6ea5e9
mov edi, dword [esp + 0x2c]
jmp 0x6b6ea5e9
mov dword [ebp], 0x13
add ecx, 2
imul eax, eax, 0x9e0
add eax, dword [ebp + 0xa8]
mov edx, ecx
push ebp
push 0
push eax
call fcn.6b6eb270
add esp, 0xc
cmp eax, 1
jne case.default.0x6b6e9a71
mov dword [ebp], 0x14
imul eax, dword [ebp + 4], 0x630
add eax, dword [ebp + 0xac]
mov ecx, 0x1a
mov edx, 0x1a
push ebp
push 0
push eax
call fcn.6b6eb270
add esp, 0xc
cmp eax, 1
jne case.default.0x6b6e9a71
mov dword [ebp], 0x15
mov eax, dword [ebp + 4]
cmp dword [ebp + 0x22c], 0
mov dword [esp + 0x14], eax
je 0x6b6ea242
mov ecx, dword [ebp + 0xbc]
jmp 0x6b6ea309
imul ecx, eax, 0x630
add ecx, dword [ebp + 0xac]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 0xc]
mov edi, 0x20
sub edi, ecx
cmp edi, 0xf
jae 0x6b6ea2bf
mov ebx, dword [ebp + 0x14]
dec ebx
nop
nop
nop
nop
nop
nop
nop
cmp ebx, 0xffffffff
je 0x6b6ea818
mov esi, dword [ebp + 8]
mov edx, dword [esp]
mov ebp, dword [edx + 0x10]
mov edx, esi
shr edx, 8
mov eax, dword [esp]
mov dword [eax + 8], edx
movzx edx, byte [ebp]
shld edx, esi, 0x18
mov eax, dword [esp]
mov dword [eax + 8], edx
add ecx, 0xfffffff8
mov eax, dword [esp]
mov dword [eax + 0xc], ecx
mov eax, dword [esp]
mov dword [eax + 0x14], ebx
inc ebp
mov eax, dword [esp]
mov dword [eax + 0x10], ebp
mov ebp, dword [esp]
add edi, 8
dec ebx
cmp edi, 0xf
jb 0x6b6ea270
jmp 0x6b6ea2c5
mov eax, dword [esp + 8]
mov edx, dword [eax]
shr edx, cl
movzx esi, dl
mov eax, dword [esp + 4]
lea edi, [eax + esi*4]
movzx ebx, byte [eax + esi*4]
cmp ebx, 9
jb 0x6b6ea2fd
add ecx, 8
mov dword [ebp + 0xc], ecx
movzx eax, word [eax + esi*4 + 2]
shr edx, 8
mov esi, dword [0x6b83adb4]
and edx, dword [esi + ebx*4 - 0x20]
and edx, 0x7f
add edx, eax
mov bl, byte [edi + edx*4]
lea edi, [edi + edx*4]
movzx eax, bl
add eax, ecx
mov dword [ebp + 0xc], eax
movzx ecx, word [edi + 2]
mov dword [esp + 0x28], ecx
mov eax, dword [0x6b83ad40]
mov dword [esp + 0xc], ecx
movzx eax, byte [eax + ecx*4 + 2]
mov ecx, dword [ebp + 0xc]
mov edi, 0x20
sub edi, ecx
mov dword [esp + 4], eax
cmp edi, eax
jae 0x6b6ea37d
mov ebp, dword [ebp + 0x14]
dec ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp ebp, 0xffffffff
je 0x6b6ea3d2
mov edx, dword [esp]
mov esi, dword [edx + 8]
mov eax, dword [edx + 0x10]
mov ebx, esi
shr ebx, 8
mov dword [edx + 8], ebx
movzx ebx, byte [eax]
shld ebx, esi, 0x18
mov dword [edx + 8], ebx
add ecx, 0xfffffff8
mov dword [edx + 0xc], ecx
mov dword [edx + 0x14], ebp
inc eax
mov dword [edx + 0x10], eax
add edi, 8
dec ebp
cmp edi, dword [esp + 4]
jb 0x6b6ea340
jmp 0x6b6ea383
mov eax, dword [esp + 8]
mov ebx, dword [eax]
mov eax, dword [0x6b83ad40]
mov edx, dword [esp + 0xc]
movzx eax, word [eax + edx*4]
shr ebx, cl
mov edx, dword [0x6b83adb4]
mov esi, dword [esp + 4]
and ebx, dword [edx + esi*4]
add ebx, eax
add ecx, esi
mov ebp, dword [esp]
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x14]
mov dword [ebp + eax*4 + 0xc0], ebx
mov dword [ebp + 0x22c], 0
inc dword [ebp + 4]
mov dword [ebp], 0x12
mov eax, 1
jmp case.default.0x6b6e9a71
mov ebp, dword [esp]
mov eax, dword [esp + 0xc]
mov dword [ebp + 0xbc], eax
mov dword [ebp + 0x22c], 1
mov eax, 2
jmp case.default.0x6b6e9a71
mov eax, 2
jmp case.default.0x6b6e9a71
mov eax, 2
jmp case.default.0x6b6e9a71
mov edx, dword [ebp + 0xc]
mov esi, edx
neg esi
and esi, 7
je 0x6b6ea433
mov edi, dword [ebp + 8]
mov ecx, edx
shr edi, cl
add edx, esi
mov dword [ebp + 0xc], edx
mov eax, 0xfffffff1
mov ecx, dword [0x6b83adb4]
test dword [ecx + esi*4], edi
jne case.default.0x6b6e9a71
cmp dword [ebp + 0x30], 0
jne 0x6b6ea47b
mov ecx, 0x20
sub ecx, edx
mov esi, ecx
shr esi, 3
and ecx, 0xfffffff8
mov eax, dword [ebp + 0x14]
add eax, esi
mov dword [ebp + 0x14], eax
mov edi, dword [ebp + 0x10]
sub edi, esi
mov dword [ebp + 0x10], edi
xor esi, esi
cmp ecx, 0x20
je 0x6b6ea467
mov esi, dword [esp + 8]
mov esi, dword [esi]
shl esi, cl
mov dword [ebp + 8], esi
add ecx, edx
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov dword [eax], edi
mov dword [ebp], 0x1a
cmp dword [ebp + 0x60], 0
je 0x6b6ea953
mov ecx, ebp
mov edx, dword [esp + 0x10]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.6b6ea980
add esp, 0xc
cmp eax, 1
jne case.default.0x6b6e9a71
jmp 0x6b6ea953
mov dword [ebp + 0x234], 0x10
test al, 0x20
jne 0x6b6ea4d1
mov dword [ebp], 2
mov eax, 1
jmp case.default.0x6b6e9a71
mov dword [ebp], 1
mov eax, 1
jmp case.default.0x6b6e9a71
cmp dword [ebp + 0xb8], 0
je 0x6b6ea4fc
mov dword [ebp], 9
mov eax, 1
jmp case.default.0x6b6e9a71
mov dword [ebp], 0xe
mov eax, 1
jmp case.default.0x6b6e9a71
mov eax, 0x20
mov cl, 0x1f
sub cl, al
shr ebp, cl
and ebp, 1
add eax, eax
sub ebp, eax
add ebp, 0x3c
mov edi, esi
je 0x6b6ea53a
mov eax, 0xffffffff
mov ecx, edx
shl eax, cl
not eax
dec ebp
shl ebp, cl
or ebp, eax
lea edi, [ebx + ebp + 0x11]
mov eax, 0x3e
mov ecx, dword [esp + 4]
shl eax, cl
add esi, eax
mov ebp, dword [esp]
mov ecx, dword [ebp + 0xd4]
shl ecx, 2
mov edx, dword [esp + 0x4c]
push ebp
push dword [esp + 0x4c]
call fcn.6b6ebf50
add esp, 8
cmp eax, 1
jne case.default.0x6b6e9a71
push dword [ebp + 0x23c]
push 0x100
push 0x100
mov ebx, esi
mov esi, dword [esp + 0x3c]
push esi
push ebp
call fcn.6b6f0010
add esp, 0x14
mov dword [esp + 4], eax
push dword [ebp + 0xd0]
push 0x2c0
push 0x2c0
push dword [esp + 0x40]
push ebp
call fcn.6b6f0010
add esp, 0x14
mov dword [esp + 0xc], eax
push dword [ebp + 0xf8]
push edi
push ebx
push dword [esp + 0x38]
push ebp
call fcn.6b6f0010
add esp, 0x14
and eax, dword [esp + 0xc]
and eax, dword [esp + 4]
test al, 1
je 0x6b6ea965
mov dword [ebp + 4], 0
mov dword [ebp], 0x18
xor eax, eax
mov edi, esi
cmp dword [ebp + 0x270], 1
jne 0x6b6ea605
mov ecx, dword [ebp + 0x96c]
movzx edx, word [edi + 0xc]
cmp ecx, edx
jl 0x6b6ea62c
jmp 0x6b6ea692
mov ecx, dword [edi + 4]
mov dword [ebp + 0x970], ecx
mov dword [ebp + 0x96c], 0
mov dword [ebp + 0x270], 1
xor ecx, ecx
movzx edx, word [edi + 0xc]
cmp ecx, edx
jge 0x6b6ea692
mov eax, dword [ebp + 0x970]
lea esi, [esp + 0x54]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edi + 8]
movzx edx, word [edi + 0xa]
push ebp
push esi
push eax
call fcn.6b6eb270
add esp, 0xc
cmp eax, 1
jne case.default.0x6b6e9a71
mov ecx, dword [ebp + 0x96c]
mov eax, dword [ebp + 0x970]
mov edx, dword [edi]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x54]
shl eax, 2
add eax, dword [ebp + 0x970]
mov dword [ebp + 0x970], eax
inc ecx
mov dword [ebp + 0x96c], ecx
movzx edx, word [edi + 0xc]
cmp ecx, edx
jl 0x6b6ea640
mov eax, dword [ebp + 4]
mov dword [ebp + 0x270], 0
lea ecx, [eax + 1]
mov dword [ebp + 4], ecx
cmp eax, 2
mov eax, 1
jl case.default.0x6b6e9a71
mov dword [ebp], 0x19
mov ecx, dword [ebp + 0xdc]
mov eax, ecx
shl eax, 6
mov edx, dword [ebp + 0x240]
lea esi, [edx + eax]
mov dword [ebp + 0x70], esi
mov esi, ecx
shr esi, 5
mov esi, dword [ebp + esi*4 + 0x250]
shr esi, cl
and esi, 1
mov dword [ebp + 0xb0], esi
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 0x78]
mov esi, dword [ebp + 0x88]
mov eax, dword [edx + eax*4]
mov dword [ebp + 0x100], eax
mov eax, dword [ebp + 0x244]
movzx eax, byte [eax + ecx]
and eax, 3
shl eax, 9
add eax, dword [0x6b83ad3c]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0xfc]
mov dword [ebp + 0x74], eax
mov eax, dword [esi]
mov dword [ebp + 0x68], eax
mov ecx, ebp
call fcn.6b6ec3e0
mov ecx, eax
mov eax, 0xffffffe5
test ecx, ecx
je case.default.0x6b6e9a71
mov eax, dword [ebp + 0xf0]
mov edx, dword [ebp + 0xf4]
movzx ecx, word [ebp + 0xa2]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x6b6ea77b
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
mov ecx, edi
mov byte [ebp + edi + 0x280], 0
inc edi
mov dword [ebp + ecx*4 + 0x4d0], edi
cmp edx, edi
jne 0x6b6ea760
add edi, 0x10
jmp 0x6b6ea780
mov edi, 0x10
cmp edi, dword [esp + 0x14]
jae 0x6b6ea7f9
mov dword [esp + 4], 1
xor ecx, ecx
mov dword [esp + 0x50], edx
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0xc], ecx
lea ebp, [ecx + 2]
mov ecx, dword [esp + 4]
shl ebp, cl
add ebp, 0xfffffffc
mov ecx, eax
shl ebp, cl
add ebp, edx
mov esi, 1
mov edx, eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov byte [eax + edi + 0x270], cl
lea ecx, [ebp + esi]
mov dword [eax + edi*4 + 0x490], ecx
inc edi
mov ebx, esi
mov ecx, edx
shr ebx, cl
inc esi
test ebx, ebx
je 0x6b6ea7c0
mov ecx, dword [esp + 0xc]
add dword [esp + 4], ecx
xor ecx, 1
cmp edi, dword [esp + 0x14]
mov eax, edx
mov edx, dword [esp + 0x50]
jb 0x6b6ea7a0
mov ebp, dword [esp]
mov dword [ebp], 7
mov ecx, ebp
call fcn.6b6ec470
cmp eax, 2
jne case.default.0x6b6e9a71
jmp 0x6b6e9a88
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.6b6eded0
add esp, 4
test eax, eax
je 0x6b6ea88c
mov ecx, dword [esp + 0x28]
jmp 0x6b6ea30d
mov dword [ebp], 0xb
mov eax, 1
jmp case.default.0x6b6e9a71
mov esi, edi
shr esi, cl
lea ecx, [ebx + 7]
and esi, 7
mov dword [ebp + 0xc], ecx
je 0x6b6ea896
cmp esi, 1
jne 0x6b6ea8a5
mov eax, 0xfffffff3
test dl, 0x20
je case.default.0x6b6e9a71
add ebx, 8
mov dword [ebp + 0xc], ebx
bt edi, ecx
jb case.default.0x6b6e9a71
or edx, 0x20
mov dword [ebp + 0x230], edx
mov eax, edx
jmp 0x6b6ea4bc
mov eax, 2
jmp case.default.0x6b6e9a71
mov dword [ebp + 0x234], 0x11
jmp 0x6b6ea4bc
or esi, 8
mov dword [ebp + 0x234], esi
jmp 0x6b6ea4bc
cmp dword [ebp + 0x30], 0
je 0x6b6ea8f8
mov dword [ebp + 0x30], 0
jmp 0x6b6ea942
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov edx, dword [ebp + 0x14]
mov dword [edi], edx
mov eax, 2
test edx, edx
je 0x6b6ea942
nop
nop
nop
nop
movzx ecx, byte [ecx]
mov edx, dword [ebp + 0x30]
mov byte [ebp + edx + 0x28], cl
inc dword [ebp + 0x30]
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
dec dword [edi]
jne 0x6b6ea8e0
jmp 0x6b6ea942
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, 0x20
sub ecx, edi
mov ebx, ecx
shr ebx, 3
and ecx, 0xfffffff8
sub edx, ebx
add ebx, dword [ebp + 0x14]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], edx
xor esi, esi
cmp ecx, 0x20
je 0x6b6ea927
mov esi, dword [esp + 8]
mov esi, dword [esi]
shl esi, cl
mov dword [ebp + 8], esi
add ecx, edi
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x24]
mov dword [ecx], edx
jmp 0x6b6ea942
mov eax, 2
mov ecx, ebp
mov edx, eax
call fcn.6b6ea970
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebp
mov edx, 1
jmp 0x6b6ea946
mov ecx, ebp
mov edx, 0xffffffe1
jmp 0x6b6ea946
mov ecx, ebp
mov edx, 0xffffffea
jmp 0x6b6ea946