Function at 0x41e540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x24], ebx
movzx eax, byte [edi]
cmp eax, 8
ja case.default.0x41e561
jmp dword [eax*4 + 0x41ec88]
mov eax, dword [edi + 8]
mov ecx, dword [ebx]
cmp dword [eax + 4], 0
mov edx, dword [ecx]
jne 0x41e588
push 2
push 0x4afc98
call dword [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x41e76b
push 2
push 0x4afc9c
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov esi, dword [ebx + 0x60]
mov dword [esp + 0x14], eax
cmp esi, eax
jae 0x41e61a
mov eax, dword [ebx + 0x60]
lea ecx, [ebx + 0x50]
add esi, esi
mov dword [esp + 0x18], eax
cmp esi, eax
ja 0x41e5ce
mov dword [ecx + 0x10], esi
cmp dword [ecx + 0x14], 0x10
jb 0x41e5c8
mov ecx, dword [ecx]
mov byte [ecx + esi], 0
jmp 0x41e61a
mov edx, esi
sub edx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
cmp edx, eax
ja 0x41e608
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], esi
jb 0x41e5ec
mov ecx, dword [ecx]
mov esi, dword [esp + 0x18]
push edx
add esi, ecx
push 0x20
push esi
call fcn.0046c540
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x41e61a
push 0x20
push edx
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push edx
call fcn.0040fa50
mov eax, dword [edi + 8]
mov dword [esp + 0x18], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
sub eax, 1
je 0x41e6ee
lea eax, [ebx + 0x50]
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [ebx]
jb 0x41e644
mov edx, dword [eax]
push dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebx]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.0041ff00
mov ecx, dword [ebx]
push 3
push 0x4afca0
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x14]
lea eax, [esi + 0x28]
mov ecx, ebx
push dword [ebp + 0x14]
push 0
push 1
push eax
call fcn.0041e540
mov ecx, dword [ebx]
push 2
push 0x4afca4
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
cmp byte [eax + 0xd], 0
je 0x41e6c4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41e6c0
nop
cmp esi, dword [eax + 8]
jne 0x41e6c0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41e6b0
mov esi, eax
jmp 0x41e6dc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41e6dc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41e6d0
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
dec eax
cmp edx, eax
lea eax, [ebx + 0x50]
jb 0x41e638
cmp dword [ebx + 0x64], 0x10
lea edi, [ebx + 0x50]
mov ecx, dword [ebx]
mov edx, edi
jb 0x41e6fd
mov edx, dword [edi]
push dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebx]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.0041ff00
mov ecx, dword [ebx]
push 3
push 0x4afca0
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x14]
add esi, 0x28
mov ecx, ebx
push dword [ebp + 0x14]
push 0
push 1
push esi
call fcn.0041e540
mov ecx, dword [ebx]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [edi + 0x14], 0x10
mov ecx, dword [ebx]
jb 0x41e751
mov edi, dword [edi]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [ebx]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x7b
call dword [edx]
mov eax, dword [edi + 8]
mov dword [esp + 0x18], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
sub eax, 1
je 0x41e82b
nop word [eax + eax]
mov ecx, dword [ebx]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.0041ff00
mov ecx, dword [ebx]
push 2
push 0x4afca8
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
lea eax, [esi + 0x28]
mov ecx, ebx
push dword [ebp + 0x14]
push 0
push 0
push eax
call fcn.0041e540
mov ecx, dword [ebx]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
cmp byte [eax + 0xd], 0
je 0x41e804
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41e800
nop word [eax + eax]
cmp esi, dword [eax + 8]
jne 0x41e800
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41e7f0
mov esi, eax
jmp 0x41e81c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41e81c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41e810
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
dec eax
cmp edx, eax
jb 0x41e790
mov ecx, dword [ebx]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.0041ff00
mov ecx, dword [ebx]
push 2
push 0x4afca8
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, ebx
push dword [ebp + 0x14]
push 0
push 0
push esi
call fcn.0041e540
mov ecx, dword [ebx]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [edi + 8]
mov ecx, dword [ebx]
mov eax, dword [edx]
mov esi, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x41e894
push 2
push 0x4afcac
call dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x41e9e3
push 2
push 0x4afcb0
call dword [esi + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov esi, dword [ebx + 0x60]
mov dword [esp + 0x14], eax
cmp esi, eax
jae 0x41e926
mov eax, dword [ebx + 0x60]
lea ecx, [ebx + 0x50]
add esi, esi
mov dword [esp + 0x18], eax
cmp esi, eax
ja 0x41e8da
mov dword [ecx + 0x10], esi
cmp dword [ecx + 0x14], 0x10
jb 0x41e8d4
mov ecx, dword [ecx]
mov byte [ecx + esi], 0
jmp 0x41e926
mov edx, esi
sub edx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
cmp edx, eax
ja 0x41e914
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], esi
jb 0x41e8f8
mov ecx, dword [ecx]
mov esi, dword [esp + 0x18]
push edx
add esi, ecx
push 0x20
push esi
call fcn.0046c540
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x41e926
push 0x20
push edx
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push edx
call fcn.0040fa50
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x41e982
lea eax, [ebx + 0x50]
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [ebx]
jb 0x41e944
mov edx, dword [eax]
push dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push dword [esp + 0x14]
mov ecx, ebx
push dword [ebp + 0x14]
push 0
push 1
push esi
call fcn.0041e540
mov ecx, dword [ebx]
push 2
push 0x4afca4
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 8]
add esi, 0x10
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
lea eax, [ebx + 0x50]
jne 0x41e938
cmp dword [ebx + 0x64], 0x10
lea edx, [ebx + 0x50]
mov ecx, dword [ebx]
jb 0x41e990
mov edx, dword [ebx + 0x50]
mov eax, dword [ecx]
mov esi, dword [esp + 0x14]
push esi
push edx
call dword [eax + 4]
mov eax, dword [edi + 8]
mov ecx, ebx
push esi
push dword [ebp + 0x14]
mov eax, dword [eax + 4]
push 0
push 1
sub eax, 0x10
push eax
call fcn.0041e540
mov ecx, dword [ebx]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [ebx + 0x64], 0x10
lea edx, [ebx + 0x50]
mov ecx, dword [ebx]
jb 0x41e9c9
mov edx, dword [edx]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebx]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x5b
call dword [esi]
mov ecx, dword [edi + 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 0x41ea2c
nop dword [eax]
push eax
push edx
push 0
push 0
push esi
mov ecx, ebx
call fcn.0041e540
mov ecx, dword [ebx]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 8]
add esi, 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
jne 0x41ea00
push eax
mov eax, dword [ecx + 4]
mov ecx, ebx
push edx
push 0
push 0
sub eax, 0x10
push eax
call fcn.0041e540
mov ecx, dword [ebx]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
push dword [edi + 8]
mov ecx, ebx
call fcn.0041ff00
mov ecx, dword [ebx]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [edi + 8], 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
je 0x41ea92
push 4
push str.true
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 5
push str.false
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edi, eax
or eax, ecx
jne 0x41eac2
mov ecx, dword [ebx]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test ecx, ecx
jg 0x41ead3
jl 0x41eacc
test edi, edi
jne 0x41ead3
mov byte [esp + 0x13], 1
jmp 0x41ead8
mov byte [esp + 0x13], 0
lea eax, [ebx + 8]
xor esi, esi
mov dword [esp + 0x18], eax
xor ebx, ebx
push 0
push 0xa
push ecx
push edi
call fcn.0048f7c0
mov esi, eax
mov dword [esp + 0x20], edx
inc ebx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0x18]
mov eax, edi
mov edi, esi
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [ecx], al
inc ecx
mov dword [esp + 0x18], ecx
mov eax, edi
mov ecx, dword [esp + 0x20]
or eax, ecx
jne 0x41eae3
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp byte [esp + 0x13], al
je 0x41eb34
mov byte [esi + ebx + 8], 0x2d
inc esi
lea edi, [ebx + 8]
lea eax, [esi + edi]
push eax
push edi
call fcn.00455c3a
mov ecx, dword [ebx]
add esp, 8
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov edi, edx
mov eax, edi
mov dword [esp + 0x14], edx
or eax, ecx
mov dword [esp + 0x18], ecx
je 0x41eab1
lea eax, [ebx + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, edi
mov ebx, 0xcccccccd
mul ebx
mov dword [esp + 0x28], eax
mov esi, edx
mov eax, edi
mov edx, 0xcccccccc
mul edx
mov edi, eax
mov dword [esp + 0x28], edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x18]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov dword [esp + 0x18], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x28]
adc ecx, 0
mov dword [esp + 0x38], edi
xor eax, eax
add ebx, ecx
mov ecx, dword [esp + 0x18]
adc eax, eax
add ecx, ebx
mov ebx, dword [esp + 0x1c]
adc edx, eax
inc ebx
shrd ecx, edx, 3
mov dword [esp + 0x1c], ebx
shr edx, 3
mov edi, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
lea eax, [ecx + ecx*4]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x18]
add eax, eax
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
add al, 0x30
mov byte [edx], al
inc edx
mov eax, edi
mov dword [esp + 0x20], edx
or eax, ecx
jne 0x41eb83
mov esi, dword [esp + 0x34]
lea eax, [ebx + esi]
push eax
push esi
call fcn.00455c3a
mov ecx, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [ecx]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
movsd xmm1, qword [edi + 8]
call fcn.0041fdc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push 0xb
push str._discarded_
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
push 4
push str.null
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14