Function at 0x404ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edi
movzx eax, byte [esi]
cmp eax, 8
ja case.default.0x404cc4
jmp dword [eax*4 + 0x405450]
mov eax, dword [esi + 8]
mov ecx, dword [edi]
cmp dword [eax + 4], 0
mov edx, dword [ecx]
jne 0x404cea
push 2
push 0x439d00
call dword [edx + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x404e92
push 2
push 0x439d04
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x260]
mov dword [esp + 8], eax
cmp ecx, eax
jae 0x404d23
lea eax, [ecx + ecx]
push 0x20
push eax
lea ecx, [edi + 0x250]
call fcn.00405c80
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
sub eax, 1
je 0x404e05
lea eax, [edi + 0x250]
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [edi]
jb 0x404d50
mov edx, dword [eax]
push dword [esp + 8]
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.004056d0
mov ecx, dword [edi]
push 3
push 0x439d08
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 8]
lea eax, [esi + 0x28]
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 1
push eax
call fcn.00404ca0
mov ecx, dword [edi]
push 2
push 0x439d0c
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
cmp byte [eax + 0xd], 0
je 0x404dd4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x404dd0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x404dd0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x404dc0
mov esi, eax
jmp 0x404dec
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x404dec
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x404de0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
dec eax
cmp edx, eax
lea eax, [edi + 0x250]
jb 0x404d44
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov ecx, dword [edi]
jb 0x404e1c
mov edx, dword [edi + 0x250]
push dword [esp + 8]
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.004056d0
mov ecx, dword [edi]
push 3
push 0x439d08
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 8]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 1
push esi
call fcn.00404ca0
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 0x404e79
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 esp, ebp
pop ebp
ret 0x14
push 0x7b
call dword [edx]
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
sub eax, 1
je 0x404f4f
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.004056d0
mov ecx, dword [edi]
push 2
push 0x439d10
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.00404ca0
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
cmp byte [eax + 0xd], 0
je 0x404f24
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x404f20
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x404f20
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x404f10
mov esi, eax
jmp 0x404f3c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x404f3c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x404f30
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
dec eax
cmp edx, eax
jb 0x404eb1
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.004056d0
mov ecx, dword [edi]
push 2
push 0x439d10
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.00404ca0
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
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 0x404fb6
mov eax, dword [ecx]
push 2
push 0x439d14
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
mov eax, dword [ecx]
je 0x4050ca
push 2
push 0x439d18
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x260]
mov dword [esp + 8], eax
cmp ecx, eax
jae 0x404ff1
lea eax, [ecx + ecx]
push 0x20
push eax
lea ecx, [edi + 0x250]
call fcn.00405c80
mov eax, dword [esi + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x405057
lea eax, [edi + 0x250]
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [edi]
jb 0x405012
mov edx, dword [eax]
push dword [esp + 8]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push dword [esp + 8]
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 1
push esi
call fcn.00404ca0
mov ecx, dword [edi]
push 2
push 0x439d0c
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
add esi, 0x10
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
lea eax, [edi + 0x250]
jne 0x405006
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov ecx, dword [edi]
jb 0x40506e
mov edx, dword [edi + 0x250]
mov eax, dword [ecx]
mov esi, dword [esp + 8]
push esi
push edx
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov ecx, edi
push esi
push dword [ebp + 0x14]
mov eax, dword [eax + 8]
push 0
push 1
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00404ca0
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 0x4050b1
mov edx, dword [edx]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
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 0x405113
push eax
push edx
push 0
push 0
push esi
mov ecx, edi
call fcn.00404ca0
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esp + 0x10]
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 0x4050e3
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push 0
push 0
sub eax, 0x10
push eax
call fcn.00404ca0
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
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.004056d0
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 8], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
je 0x405176
push 4
push str.true
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 5
push str.false
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 8]
mov eax, ecx
mov esi, dword [esi + 0xc]
or eax, esi
jne 0x4051a4
mov ecx, dword [edi]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
test esi, esi
jg 0x4051b5
jl 0x4051ae
test ecx, ecx
jae 0x4051b5
mov byte [esp + 0xf], 1
jmp 0x4051ba
mov byte [esp + 0xf], 0
lea eax, [edi + 8]
xor edx, edx
mov dword [esp + 8], edx
mov edi, ecx
mov dword [esp + 0x14], eax
nop dword [eax]
push 0
push 0xa
push esi
push edi
call fcn.0042c720
mov esi, eax
mov dword [esp + 0x18], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 8]
mov eax, edi
inc ecx
cdq
mov edi, esi
mov esi, dword [esp + 0x18]
xor eax, edx
sub eax, edx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x14]
add al, 0x30
mov byte [edx], al
inc edx
mov eax, edi
mov dword [esp + 0x14], edx
or eax, esi
jne 0x4051d0
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0xf], al
je 0x405225
mov byte [ecx + edi + 8], 0x2d
inc ecx
mov dword [esp + 8], ecx
lea esi, [edi + 8]
lea eax, [esi + ecx]
push eax
push esi
call fcn.0040d0f8
mov ecx, dword [edi]
add esp, 8
mov edx, dword [esp + 8]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
je 0x405194
lea eax, [edi + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, edx
mov esi, 0xcccccccd
mul esi
lea edi, [esi - 1]
mov dword [esp + 0x28], eax
mov esi, edx
mov eax, dword [esp + 8]
mul edi
mov edi, eax
mov dword [esp + 0x34], edx
mov eax, ecx
mov ecx, 0xcccccccd
mul ecx
mov ecx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x10]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
adc edx, 0
add edi, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x34]
adc ecx, 0
mov dword [esp + 0x38], edi
xor eax, eax
mov edi, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x28]
adc eax, eax
add ecx, edx
mov edx, dword [esp + 8]
adc esi, eax
inc edi
shrd ecx, esi, 3
mov dword [esp + 0x14], edi
shr esi, 3
mov dword [esp + 8], ecx
mov dword [esp + 0x10], esi
lea eax, [ecx + ecx*4]
add eax, eax
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x18]
add al, 0x30
mov byte [edx], al
inc edx
mov dword [esp + 0x18], edx
mov edx, ecx
mov eax, edx
mov ecx, esi
or eax, esi
jne 0x405275
mov esi, dword [esp + 0x20]
lea eax, [esi + edi]
push eax
push esi
call fcn.0040d0f8
mov ecx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [ecx]
push edi
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
movsd xmm0, qword [esi + 8]
sub esp, 8
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
movsd qword [esp + 0x28], xmm0
fstp qword [esp]
call fcn.00412820
add esp, 8
test ax, ax
jg case.0x404cc4.0
movsd xmm0, qword [esp + 0x20]
lea esi, [edi + 8]
sub esp, 8
movsd qword [esp], xmm0
call fcn.00412831
movsd xmm0, qword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4053a5
xorps xmm0, xmmword [0x43a650]
lea esi, [edi + 9]
mov byte [edi + 8], 0x2d
ucomisd xmm0, qword [0x43a630]
lahf
test ah, 0x44
jp 0x4053d5
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 esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
movaps xmm3, xmm0
mov dword [esp + 0x20], 0
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.00406ac0
mov edx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x24]
mov ecx, esi
call fcn.00403170
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 esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0xb
push str._discarded_
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 4
push str.null
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14