Function at 0x40bb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x44b004]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
movzx eax, byte [esi]
cmp eax, 8
ja case.default.0x40bb2f
jmp dword [eax*4 + 0x40c28c]
mov eax, dword [esi + 8]
mov ecx, dword [edi]
cmp dword [eax + 4], 0
mov edx, dword [ecx]
jne 0x40bb60
push 2
push 0x444f48
call dword [edx + 4]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x40bd23
push 2
push 0x444f4c
call dword [edx + 4]
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x260]
mov dword [esp + 0xc], ecx
cmp eax, ecx
jae 0x40bba6
xor ecx, ecx
mov edx, 2
mul edx
push 0x20
seto cl
neg ecx
or ecx, eax
push ecx
lea ecx, [edi + 0x250]
call fcn.0040aa90
mov eax, dword [esi + 8]
mov dword [esp + 0x20], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
sub eax, 1
je 0x40bc8b
lea eax, [edi + 0x250]
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [edi]
jb 0x40bbd3
mov edx, dword [eax]
push dword [esp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.0040c8b0
mov ecx, dword [edi]
push 3
push 0x444f50
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0xc]
lea eax, [esi + 0x28]
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 1
push eax
call fcn.0040bb00
mov ecx, dword [edi]
push 2
push 0x444f54
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x20]
inc edx
cmp byte [esi + 0xd], 0
mov dword [esp + 0x20], edx
jne 0x40bc72
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40bc53
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40bc72
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40bc45
jmp 0x40bc72
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40bc70
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x40bc70
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40bc60
mov esi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
dec eax
cmp edx, eax
lea eax, [edi + 0x250]
jb 0x40bbc7
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov ecx, dword [edi]
jb 0x40bca2
mov edx, dword [edi + 0x250]
push dword [esp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.0040c8b0
mov ecx, dword [edi]
push 3
push 0x444f50
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0xc]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 1
push esi
call fcn.0040bb00
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov ecx, dword [edi]
jb 0x40bcff
mov edx, dword [edx]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
push 0x7b
call dword [edx]
mov eax, dword [esi + 8]
mov dword [esp + 0x20], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
sub eax, 1
je 0x40bde5
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.0040c8b0
mov ecx, dword [edi]
push 2
push 0x444f58
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
lea eax, [esi + 0x28]
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 0
push eax
call fcn.0040bb00
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esp + 0x20]
inc edx
cmp byte [esi + 0xd], 0
mov dword [esp + 0x20], edx
jne 0x40bdd2
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40bdb1
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40bdd2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40bda3
jmp 0x40bdd2
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40bdd0
nop word [eax + eax]
cmp esi, dword [eax + 8]
jne 0x40bdd0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40bdc0
mov esi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
dec eax
cmp edx, eax
jb 0x40bd42
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.0040c8b0
mov ecx, dword [edi]
push 2
push 0x444f58
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 0
push esi
call fcn.0040bb00
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esi + 8]
mov ecx, dword [edi]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x40be4f
push 2
push 0x444f5c
jmp 0x40c272
cmp byte [ebp + 0xc], 0
mov eax, dword [ecx]
je 0x40bf76
push 2
push 0x444f60
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov edx, dword [edi + 0x260]
mov dword [esp + 0xc], eax
cmp edx, eax
jae 0x40be99
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
push 0x20
seto cl
neg ecx
or ecx, eax
push ecx
lea ecx, [edi + 0x250]
call fcn.0040aa90
mov eax, dword [esi + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x40bf01
lea eax, [edi + 0x250]
nop
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [edi]
jb 0x40bebc
mov edx, dword [eax]
push dword [esp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push dword [esp + 0xc]
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 1
push esi
call fcn.0040bb00
mov ecx, dword [edi]
push 2
push 0x444f54
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x14]
add esi, 0x10
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
lea eax, [edi + 0x250]
jne 0x40beb0
cmp dword [edi + 0x264], 0x10
lea esi, [edi + 0x250]
mov ecx, dword [edi]
mov edx, esi
jb 0x40bf16
mov edx, dword [esi]
push dword [esp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push 0
mov eax, dword [eax + 8]
push 1
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.0040bb00
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [edi]
jb 0x40bf52
mov esi, dword [esi]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
push 0x5b
call dword [eax]
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
je 0x40bfc0
nop
push eax
push edx
push 0
push 0
push esi
mov ecx, edi
call fcn.0040bb00
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esp + 0x14]
add esi, 0x10
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
jne 0x40bf90
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push 0
push 0
sub eax, 0x10
push eax
call fcn.0040bb00
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
push dword [esi + 8]
mov ecx, edi
call fcn.0040c8b0
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 8], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
je 0x40c033
push 4
push str.true
jmp 0x40c274
push 5
push str.false
jmp 0x40c274
mov ecx, dword [esi + 8]
mov eax, ecx
mov esi, dword [esi + 0xc]
or eax, esi
jne 0x40c066
mov ecx, dword [edi]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
test esi, esi
jg 0x40c077
jl 0x40c070
test ecx, ecx
jne 0x40c077
mov byte [esp + 0x13], 1
jmp 0x40c07c
mov byte [esp + 0x13], 0
xor edx, edx
mov dword [esp + 0xc], edx
lea edx, [edi + 8]
mov dword [esp + 0x18], edx
mov edi, ecx
nop dword [eax + eax]
push 0
push 0xa
push esi
push edi
call fcn.00435560
mov esi, eax
mov dword [esp + 0x14], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, edi
mov edi, esi
mov esi, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x18]
add al, 0x30
mov byte [ecx + edx], al
inc ecx
mov eax, edi
mov dword [esp + 0xc], ecx
or eax, esi
jne 0x40c090
cmp byte [esp + 0x13], 0
mov edi, dword [esp + 0x20]
je 0x40c0e2
mov byte [edi + ecx + 8], 0x2d
inc ecx
mov dword [esp + 0xc], ecx
lea eax, [ecx + edx]
push eax
push edx
call fcn.0041693b
mov edx, dword [esp + 0x14]
add esp, 8
push edx
lea edx, [edi + 8]
push edx
jmp 0x40c270
mov ecx, dword [esi + 8]
mov eax, ecx
mov esi, dword [esi + 0xc]
or eax, esi
je 0x40c04b
test esi, esi
ja 0x40c11e
jb 0x40c117
test ecx, ecx
jne 0x40c11e
mov byte [esp + 0x13], 1
jmp 0x40c123
mov byte [esp + 0x13], 0
xor edx, edx
mov dword [esp + 0xc], edx
lea edx, [edi + 8]
mov dword [esp + 0x14], edx
mov edi, ecx
push 0
push 0xa
push esi
push edi
call fcn.00434e90
mov esi, eax
mov dword [esp + 0x18], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, edi
mov edi, esi
mov esi, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
add al, 0x30
mov byte [ecx + edx], al
inc ecx
mov eax, edi
mov dword [esp + 0xc], ecx
or eax, esi
jne 0x40c132
jmp 0x40c0cd
movsd xmm0, qword [esi + 8]
lea eax, [esp + 0x20]
push eax
movsd qword [esp + 0x1c], xmm0
movsd qword [esp + 0x24], xmm0
call fcn.0041d3cd
add esp, 4
test ax, ax
jg case.0x40bb2f.0
movsd xmm0, qword [esp + 0x18]
lea esi, [edi + 8]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0041d431
movsd xmm0, qword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40c1cc
xorps xmm0, xmmword [0x4461a0]
lea esi, [edi + 9]
mov byte [edi + 8], 0x2d
ucomisd xmm0, qword [0x446108]
lahf
test ah, 0x44
jp 0x40c207
mov word [esi], 0x2e30
lea eax, [edi + 8]
mov byte [esi + 2], 0x30
add esi, 3
mov ecx, dword [edi]
sub esi, eax
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
push eax
movaps xmm3, xmm0
mov dword [esp + 0x24], 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.004140c0
mov edx, dword [esp + 0x10]
push ecx
push dword [esp + 0x28]
mov ecx, esi
call fcn.004042e0
mov ecx, dword [edi]
add esp, 0xc
mov esi, eax
lea eax, [edi + 8]
sub esi, eax
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 4]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14
push 0xb
push str._discarded_
jmp 0x40c270
push 4
push str.null
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.0041525a
mov esp, ebp
pop ebp
ret 0x14