Function at 0x415ec0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x58
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
push esi
push edi
mov dword [esp + 0x20], eax
mov edi, edx
mov eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415ef0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x58]
push ecx
call sub.MSVCR90.dll_memcpy
push 0x100
call sub.MSVCR90.dll_malloc
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x415f2e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00606c9e
add esp, 0x58
ret
push ebp
push 0x140
call sub.MSVCR90.dll_malloc
mov ebp, eax
lea edx, [esp + 0x58]
mov eax, 0x80
lea ecx, [ebp + 0x50]
push edx
mov dword [esp + 0x20], ebp
mov byte [ebp], 1
mov dword [ebp + 4], eax
call fcn.00415670
add esp, 8
mov dword [ebp + 0x4c], eax
mov esi, 0x100
cmp esi, 0x10
lea eax, [esi - 0x100]
mov dword [esp + 0x20], eax
jg 0x4160ce
push 0x100
lea eax, [edi + esi - 0x100]
push eax
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp esi, 0x10
jne 0x415f99
mov dword [esp + 0x28], 1
mov ecx, dword [ebp + 0x4c]
xor eax, eax
add esi, 0x100
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
xor edi, edi
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x30], ecx
jmp 0x415fd4
mov ebx, dword [esp + 0x14]
movsx edx, di
shl edx, 4
mov eax, dword [edx + ebx + 8]
mov ecx, dword [edx + ebx + 0xc]
mov ebp, dword [edx + ebx + 4]
lea esi, [edx + ebx]
mov ebx, dword [esi]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
add eax, 0x50
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
call fcn.004158b0
add esp, 8
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [esp + eax + 0x44]
movzx edx, byte [esp + eax + 0x45]
xor byte [esp + eax + 0x34], cl
xor byte [esp + eax + 0x35], dl
movzx ecx, byte [esp + eax + 0x46]
movzx edx, byte [esp + eax + 0x47]
xor byte [esp + eax + 0x36], cl
xor byte [esp + eax + 0x37], dl
add eax, 4
cmp eax, 0x10
jl 0x416020
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esi], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
dec eax
inc edi
mov dword [esi + 8], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esi + 0xc], edx
mov dword [esp + 0x10], eax
test eax, eax
jg 0x415fd0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0x100
push eax
add ecx, edx
push ecx
call sub.MSVCR90.dll_memcpy
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x28], 1
je 0x416202
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
jmp 0x415f63
mov esi, 0x10
sub esi, eax
push esi
add edi, eax
push edi
push ebx
mov dword [esp + 0x28], esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp esi, 0x100
jge 0x416104
mov ecx, 0x100
sub ecx, esi
push ecx
lea eax, [esi + ebx]
push 0x20
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, esi
sar eax, 4
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4161ed
lea esp, [esp]
movsx edx, di
shl edx, 4
mov eax, dword [edx + ebx]
mov ecx, dword [edx + ebx + 4]
lea esi, [edx + ebx]
mov edx, dword [esi + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x4c]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x5c]
lea eax, [ebp + 0x50]
mov dword [esp + 0x64], edx
call fcn.004158b0
add esp, 8
xor eax, eax
movzx edx, byte [esp + eax + 0x44]
movzx ecx, byte [esp + eax + 0x45]
xor byte [esp + eax + 0x34], dl
xor byte [esp + eax + 0x35], cl
movzx edx, byte [esp + eax + 0x46]
movzx ecx, byte [esp + eax + 0x47]
xor byte [esp + eax + 0x36], dl
xor byte [esp + eax + 0x37], cl
add eax, 4
cmp eax, 0x10
jl 0x416170
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x60]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
dec eax
inc edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x416130
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push esi
add ecx, edx
push ebx
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push ebx
call sub.MSVCR90.dll_free
push ebp
call sub.MSVCR90.dll_free
mov ecx, dword [esp + 0x6c]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00606c9e
add esp, 0x58
ret