Function at 0x485300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b913c
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x874], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x828]
lea eax, [ebp + 8]
mov dword [ebp - 0x814], 7
push eax
mov dword [ebp - 0x818], 0
call fcn.004030ea
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x818]
mov dword [ebp - 0x870], edi
test edi, edi
jne 0x4853ab
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], edi
mov ecx, ebx
push 0x4c431c
mov word [ebx], ax
call fcn.00402ddd
jmp 0x485838
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
add esp, 4
mov dword [ebp - 0x85c], eax
xor ecx, ecx
mov byte [ebp - 4], 3
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
mov ecx, eax
add esp, 4
mov dword [ebp - 0x860], ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x85c], 0
je 0x485530
test ecx, ecx
je 0x485530
lea esi, [edi + edi]
lea eax, [esi + 2]
push eax
push 0
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push esi
push eax
push dword [ebp - 0x85c]
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebp - 0x85c]
lea eax, [ebp + 0x20]
add esp, 0xc
mov edx, esi
cmp dword [ebp + 0x34], 8
cmovae eax, dword [ebp + 0x20]
push eax
push esi
push dword [ebp - 0x860]
call fcn.00485040
lea eax, [edi*4]
xor ecx, ecx
mov dword [ebp - 0x868], eax
add esp, 0xc
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
mov edx, eax
add esp, 4
mov dword [ebp - 0x864], edx
test edx, edx
je 0x485530
xor esi, esi
test edi, edi
jle 0x4854ef
xor edi, edi
mov ebx, edx
jmp 0x4854b0
mov eax, dword [ebp - 0x860]
movzx eax, word [eax + esi*2]
push eax
mov eax, dword [ebp - 0x868]
sub eax, edi
push str._04lx
inc eax
push eax
push ebx
call dword [sym.imp.MSVCR120.dll_swprintf_s]
inc esi
add esp, 0x10
add edi, 4
add ebx, 8
cmp esi, dword [ebp - 0x870]
jl 0x4854b0
mov ebx, dword [ebp - 0x86c]
mov edx, dword [ebp - 0x864]
mov eax, dword [ebp - 0x868]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp word [edx], cx
je 0x485514
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485505
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.00402ddd
push dword [ebp - 0x864]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edx, dword [ebp - 0x818]
xor ecx, ecx
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test edx, edx
je 0x485572
mov esi, dword [ebp - 0x814]
mov edi, dword [ebp - 0x828]
mov edi, edi
cmp esi, 8
lea eax, [ebp - 0x828]
cmovae eax, edi
cmp word [eax + ecx*2], 0x30
jne 0x485794
inc ecx
cmp ecx, edx
jb 0x485550
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
xor eax, eax
mov dword [ebp - 0x82c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp + 8]
mov dword [ebp - 0x830], 0
push eax
call fcn.004030ea
xor ecx, ecx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x830], ecx
jbe 0x4855e1
mov edx, 0x6745
jmp 0x4855c0
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
xor word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [ebp - 0x830]
jb 0x4855c0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], 0
cmovae eax, dword [ebp - 0x828]
xor ecx, ecx
push 0x7fe
mov word [eax], cx
xor eax, eax
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR120.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x830], esi
jbe 0x4856ab
lea esp, [esp]
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
movzx eax, word [eax + esi*2]
push eax
push str._04lx
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.004044e3
add esp, 0x10
cmp word [ebp - 0x810], 0
jne 0x485670
xor eax, eax
jmp 0x48568f
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x485680
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00404056
inc esi
cmp esi, dword [ebp - 0x830]
jb 0x485630
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x858]
call fcn.00430d70
mov esi, eax
add esp, 4
lea eax, [ebp - 0x840]
cmp eax, esi
je 0x485756
cmp dword [ebp - 0x82c], 8
jb 0x4856e4
push dword [ebp - 0x840]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x82c], 7
mov dword [ebp - 0x830], 0
mov word [ebp - 0x840], ax
cmp dword [esi + 0x14], 8
jae 0x485723
mov eax, dword [esi + 0x10]
inc eax
je 0x485731
add eax, eax
push eax
lea eax, [ebp - 0x840]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x485731
mov eax, dword [esi]
mov dword [ebp - 0x840], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x830], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x82c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x844], 8
jb 0x48576a
push dword [ebp - 0x858]
call edi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x828]
call fcn.004030ea
cmp dword [ebp - 0x82c], 8
jb 0x485794
push dword [ebp - 0x840]
call edi
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jae 0x4857d7
mov eax, dword [ebp - 0x818]
inc eax
je 0x4857e9
add eax, eax
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.MSVCR120.dll_memmove]
mov ecx, dword [ebp - 0x814]
add esp, 0xc
jmp 0x4857e9
mov eax, dword [ebp - 0x828]
mov dword [ebx], eax
mov dword [ebp - 0x828], 0
mov eax, dword [ebp - 0x818]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov dword [ebx + 0x10], eax
xor eax, eax
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x860]
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
test eax, eax
je 0x485828
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x85c]
test eax, eax
je 0x485838
push eax
call esi
add esp, 4
cmp dword [ebp - 0x814], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x485852
push dword [ebp - 0x828]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x814], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x828], ax
mov dword [ebp - 0x818], eax
jb 0x485879
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov word [ebp + 8], ax
mov dword [ebp + 0x18], eax
jb 0x485897
push dword [ebp + 0x20]
call esi
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret