Function at 0x41d4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ecx
movzx eax, byte [ecx]
cmp eax, 8
ja case.default.0x41d4df
jmp dword [eax*4 + 0x41de20]
mov eax, dword [edi]
mov dword [esp + 0x30], eax
mov esi, dword [eax]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
jne 0x41d522
mov esi, dword [esi + 4]
mov ecx, esi
push 2
push 0x57dc7c
call dword [0x55d39c]
mov ecx, dword [esp + 0x38]
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x41d76d
mov esi, dword [esi + 4]
mov ecx, esi
push 2
push 0x57dc80
call dword [0x55d39c]
mov ecx, dword [esp + 0x38]
call esi
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x260]
mov dword [esp + 0x14], ecx
cmp eax, ecx
jae 0x41d576
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.0041ae40
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x30], esi
sub eax, 1
je 0x41d682
lea eax, [edi + 0x250]
mov dword [esp + 0x28], eax
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov edx, dword [edi]
mov dword [esp + 0x20], edx
jb 0x41d5b3
mov ecx, dword [eax]
mov eax, dword [edx]
push dword [esp + 0x14]
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x28]
call edi
mov ecx, dword [esp + 0xc]
push 0x22
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x24]
call edi
push dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.004203b0
mov eax, dword [edi]
mov dword [esp + 0x20], eax
push 3
push 0x57dc84
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x28]
call edi
push dword [esp + 0x14]
add esi, 0x28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0041d4b0
mov edi, dword [esi]
push 2
push 0x57dc88
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x30]
inc esi
mov dword [esp + 0x18], esi
call fcn.00421cb0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [esp + 0x30]
jae 0x41d682
mov eax, dword [esp + 0x28]
jmp 0x41d5a3
cmp dword [edi + 0x264], 0x10
lea ecx, [edi + 0x250]
mov edx, dword [edi]
mov dword [esp + 0x28], edx
jb 0x41d69d
mov ecx, dword [edi + 0x250]
mov eax, dword [edx]
push dword [esp + 0x14]
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call edi
mov ecx, dword [esp + 0xc]
push 0x22
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x2c]
call edi
push dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.004203b0
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 3
push 0x57dc84
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call edi
push dword [esp + 0x14]
add esi, 0x28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0041d4b0
mov edi, dword [esi]
push 0xa
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov eax, dword [edi]
mov dword [esp + 0x28], eax
jb 0x41d74f
mov edx, dword [edx]
mov eax, dword [eax]
push dword [ebp + 0x18]
push edx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call esi
mov edi, dword [edi]
jmp 0x41d8b1
mov esi, dword [esi]
mov ecx, esi
push 0x7b
call dword [0x55d39c]
mov ecx, dword [esp + 0x34]
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x30], esi
sub eax, 1
je 0x41d849
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 0x22
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x2c]
call edi
push dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.004203b0
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 2
push 0x57dc8c
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call edi
push dword [ebp + 0x18]
add esi, 0x28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0041d4b0
mov edi, dword [esi]
push 0x2c
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x30]
inc esi
mov dword [esp + 0x18], esi
call fcn.00421cb0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [esp + 0x30]
jb 0x41d7a2
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 0x22
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x2c]
call edi
push dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.004203b0
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 2
push 0x57dc8c
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call edi
push dword [ebp + 0x18]
add esi, 0x28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0041d4b0
mov edi, dword [esi]
push 0x7d
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [edi]
mov edx, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov esi, dword [eax]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x41d913
mov esi, dword [esi + 4]
mov ecx, esi
push 2
push 0x57dc90
call dword [0x55d39c]
mov ecx, dword [esp + 0x38]
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x41daa7
mov esi, dword [esi + 4]
mov ecx, esi
push 2
push 0x57dc94
call dword [0x55d39c]
mov ecx, dword [esp + 0x38]
call esi
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov edx, dword [edi + 0x260]
mov dword [esp + 0x14], eax
cmp edx, eax
jae 0x41d969
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.0041ae40
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x41da04
lea eax, [edi + 0x250]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov edx, dword [edi]
mov dword [esp + 0x28], edx
jb 0x41d996
mov ecx, dword [eax]
mov eax, dword [edx]
push dword [esp + 0x14]
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call edi
push dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push esi
call fcn.0041d4b0
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 2
push 0x57dc88
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call edi
mov eax, dword [esp + 0x1c]
add esi, 0x10
mov edi, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
lea eax, [edi + 0x250]
jne 0x41d986
cmp dword [edi + 0x264], 0x10
lea ecx, [edi + 0x250]
mov edx, dword [edi]
mov dword [esp + 0x28], edx
jb 0x41da1f
mov ecx, dword [edi + 0x250]
mov eax, dword [edx]
push dword [esp + 0x14]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call esi
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push 1
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.0041d4b0
mov edi, dword [edi]
push 0xa
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov eax, dword [edi]
mov dword [esp + 0x28], eax
jb 0x41da87
mov edx, dword [edx]
mov eax, dword [eax]
push dword [ebp + 0x18]
push edx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55d39c]
mov ecx, dword [esp + 0x30]
call esi
mov edi, dword [edi]
push 0x5d
jmp 0x41d8b3
mov esi, dword [esi]
mov ecx, esi
push 0x5b
call dword [0x55d39c]
mov ecx, dword [esp + 0x34]
call esi
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
je 0x41db19
push eax
push edx
push dword [ebp + 0x10]
mov ecx, edi
push 0
push esi
call fcn.0041d4b0
mov eax, dword [edi]
mov dword [esp + 0x28], eax
push 0x2c
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x55d39c]
mov ecx, dword [esp + 0x2c]
call edi
mov eax, dword [esp + 0x1c]
add esi, 0x10
mov edi, dword [esp + 0xc]
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 0x41dad2
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push dword [ebp + 0x10]
sub eax, 0x10
push 0
push eax
call fcn.0041d4b0
mov edi, dword [edi]
push 0x5d
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [edi]
push 0x22
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov eax, dword [esp + 0x1c]
push dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
mov ecx, esi
push dword [eax + 8]
call fcn.004203b0
mov edi, dword [esi]
push 0x22
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [edi]
cmp byte [ecx + 8], 0
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
je 0x41dbc0
push 4
push 0x57da28
jmp 0x41de00
push 5
push 0x57da20
jmp 0x41de00
mov edx, dword [ecx + 8]
mov eax, edx
mov esi, dword [ecx + 0xc]
or eax, esi
jne 0x41dbe1
mov edi, dword [edi]
push 0x30
jmp 0x41d8b3
test esi, esi
jg 0x41dbf2
jl 0x41dbeb
test edx, edx
jne 0x41dbf2
mov byte [esp + 0x13], 1
jmp 0x41dbf7
mov byte [esp + 0x13], 0
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea ecx, [edi + 8]
mov dword [esp + 0x18], ecx
mov edi, edx
push 0
push 0xa
push esi
push edi
call fcn.00515d20
mov esi, eax
mov dword [esp + 0x28], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov eax, edi
mov edi, esi
mov esi, dword [esp + 0x28]
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 + 0x14], ecx
or eax, esi
jne 0x41dc06
mov edi, dword [esp + 0xc]
cmp byte [esp + 0x13], al
je 0x41dc57
mov byte [edi + ecx + 8], 0x2d
inc ecx
mov dword [esp + 0x14], ecx
lea eax, [ecx + edx]
push eax
push edx
call fcn.004fe649
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x41ddf7
mov edx, dword [ecx + 8]
mov eax, edx
mov esi, dword [ecx + 0xc]
or eax, esi
je 0x41dbd8
test esi, esi
ja 0x41dc94
jb 0x41dc8d
test edx, edx
jne 0x41dc94
mov byte [esp + 0x13], 1
jmp 0x41dc99
mov byte [esp + 0x13], 0
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea ecx, [edi + 8]
mov dword [esp + 0x18], ecx
mov edi, edx
push 0
push 0xa
push esi
push edi
call fcn.00515cb0
mov esi, eax
mov dword [esp + 0x28], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov eax, edi
mov edi, esi
mov esi, dword [esp + 0x28]
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 + 0x14], ecx
or eax, esi
jne 0x41dca8
mov edi, dword [esp + 0xc]
cmp byte [esp + 0x13], al
je 0x41dcf9
mov byte [edi + ecx + 8], 0x2d
inc ecx
mov dword [esp + 0x14], ecx
lea eax, [ecx + edx]
push eax
push edx
call fcn.004fe649
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x41ddf7
movsd xmm0, qword [ecx + 8]
lea eax, [esp + 0x28]
push eax
movsd qword [esp + 0x24], xmm0
movsd qword [esp + 0x2c], xmm0
call fcn.00519f87
add esp, 4
test ax, ax
jg case.0x41d4df.0
movsd xmm0, qword [esp + 0x20]
lea eax, [edi + 8]
sub esp, 8
mov dword [esp + 0x30], eax
mov esi, eax
movsd qword [esp], xmm0
call fcn.00519feb
movsd xmm0, qword [esp + 0x28]
add esp, 8
test eax, eax
je 0x41dd73
xorps xmm0, xmmword [0x57ed60]
lea esi, [edi + 9]
mov byte [edi + 8], 0x2d
ucomisd xmm0, qword [0x57eb28]
lahf
test ah, 0x44
jp 0x41dd9e
mov eax, dword [esp + 0x28]
mov word [esi], 0x2e30
mov byte [esi + 2], 0x30
add esi, 3
mov edi, dword [edi]
sub esi, eax
push esi
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
jmp 0x41ddfe
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push eax
movaps xmm3, xmm0
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.0042a120
mov edx, dword [esp + 0x34]
push ecx
push dword [esp + 0x20]
mov ecx, esi
call fcn.0040c900
mov edi, dword [edi]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x28]
sub esi, eax
mov edx, dword [edi]
push esi
push eax
mov esi, dword [edx + 4]
jmp 0x41ddfe
push 0xb
push str._discarded_
jmp 0x41ddf7
push 4
push 0x57dca4
mov edi, dword [edi]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 0x14