Function at 0x416427
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_iswspace]
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
movzx eax, word [edi]
push eax
mov dword [ebp - 0x14], ecx
call esi
test eax, eax
pop ecx
je 0x41645b
inc edi
inc edi
movzx eax, word [edi]
push eax
call esi
test eax, eax
pop ecx
jne 0x41644b
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
movzx eax, word [edi]
push eax
call esi
test eax, eax
pop ecx
je 0x416479
inc edi
inc edi
movzx eax, word [edi]
push eax
call esi
test eax, eax
pop ecx
jne 0x416469
mov dword [ebp - 0x10], edi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
call edi
pop ecx
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
pop ecx
jbe 0x4164bb
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2 - 2]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
push eax
call esi
test eax, eax
pop ecx
je 0x4164bb
dec dword [ebp - 0xc]
sub dword [ebp - 8], 2
cmp dword [ebp - 0xc], 0
ja 0x4164a0
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x4164e7
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*2 - 2]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
push eax
call esi
test eax, eax
pop ecx
je 0x4164e7
dec dword [ebp - 4]
sub dword [ebp - 8], 2
cmp dword [ebp - 4], 0
ja 0x4164cc
push dword [ebx + 0x38]
call edi
mov edi, eax
mov eax, dword [ebp - 4]
add eax, edi
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebx + 0x18]
lea eax, [ecx + eax*2 + 9]
and eax, 0xfffffffc
add eax, 0xa8
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x4166bd
push 0x30
push ebx
push esi
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 8]
mov dword [esi], eax
lea eax, [esi + 0xa8]
sub eax, esi
mov word [esi + 0x38], ax
add esp, 0xc
add edi, edi
lea eax, [edi + 2]
push eax
push dword [ebx + 0x38]
lea eax, [esi + 0xa8]
push eax
call sub.MSVCR80.dll_memcpy
lea edi, [esi + edi + 0xaa]
mov eax, edi
sub eax, esi
mov word [esi + 0x3a], ax
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, eax
push eax
push dword [ebp - 0x10]
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
and ecx, 0x3f
mov cx, word [ecx*2 + 0x432138]
add eax, eax
add eax, edi
mov word [eax], cx
xor ecx, ecx
add esp, 0xc
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
jbe 0x4165b0
lea edx, [edi + ecx*2]
and ecx, 0x3f
mov cx, word [ecx*2 + 0x432138]
xor word [edx], cx
mov ecx, dword [ebp - 8]
inc ecx
cmp ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jb 0x416593
lea edi, [eax + 2]
mov eax, edi
sub eax, esi
mov word [esi + 0x3c], ax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [ebp - 0x14]
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add eax, eax
and ecx, 0x3f
mov cx, word [ecx*2 + 0x432138]
xor edx, edx
add eax, edi
add esp, 0xc
cmp dword [ebp - 4], edx
mov word [eax], cx
mov dword [ebp - 8], edx
jbe 0x41660c
lea ecx, [edi + edx*2]
and edx, 0x3f
mov dx, word [edx*2 + 0x432138]
xor word [ecx], dx
mov edx, dword [ebp - 8]
inc edx
cmp edx, dword [ebp - 4]
mov dword [ebp - 8], edx
jb 0x4165ef
add eax, 2
mov ecx, eax
sub ecx, esi
mov word [esi + 0x3e], cx
push dword [ebx + 0x18]
push dword [ebx + 0x30]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [ebx + 4], 4
jge 0x41665d
push 0x1c
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41665d
push dword [ebp - 0x2c]
lea eax, [esi + 0x40]
push str.0x_X
push 0x14
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
and word [esi + 0x66], 0
jmp 0x416662
and word [esi + 0x40], 0
mov edi, dword [sym.imp.MSVCR80.dll_wcsrchr]
push 0x5c
push dword [ebx + 0x34]
call edi
push 0x2f
push dword [ebx + 0x34]
mov dword [ebp - 4], eax
call edi
add esp, 0x10
cmp dword [ebp - 4], eax
ja 0x416684
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416692
mov eax, dword [ebx + 0x34]
mov dword [ebp - 4], eax
jmp 0x416696
add dword [ebp - 4], 2
push 0x20
push dword [ebp - 4]
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
and word [esi + 0xa6], 0
add esp, 0xc
push esi
call fcn.00416780
mov esi, eax
call fcn.00416334
pop edi
pop esi
leave
ret