Function at 0x452010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f9cc
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [section..data]
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.004022c7
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x818]
mov dword [ebp - 0x870], edi
test edi, edi
jne 0x4520bb
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], edi
mov ecx, ebx
push 0x48b308
mov word [ebx], ax
call fcn.0040235a
jmp 0x452548
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452ca0
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.00452ca0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x860], ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x85c], 0
je 0x452240
test ecx, ecx
je 0x452240
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.00451d50
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.00452ca0
mov edx, eax
add esp, 4
mov dword [ebp - 0x864], edx
test edx, edx
je 0x452240
xor esi, esi
test edi, edi
jle 0x4521ff
xor edi, edi
mov ebx, edx
jmp 0x4521c0
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 0x4521c0
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 0x452224
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452215
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.0040235a
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 0x452282
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 0x4524a4
inc ecx
cmp ecx, edx
jb 0x452260
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.004022c7
xor ecx, ecx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x830], ecx
jbe 0x4522f1
mov edx, 0x6745
jmp 0x4522d0
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 0x4522d0
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 0x4523bb
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.00403500
add esp, 0x10
cmp word [ebp - 0x810], 0
jne 0x452380
xor eax, eax
jmp 0x45239f
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452390
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00402779
inc esi
cmp esi, dword [ebp - 0x830]
jb 0x452340
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x858]
call fcn.0040d2c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x840]
cmp eax, esi
je 0x452466
cmp dword [ebp - 0x82c], 8
jb 0x4523f4
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 0x452433
mov eax, dword [esi + 0x10]
inc eax
je 0x452441
add eax, eax
push eax
lea eax, [ebp - 0x840]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x452441
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 0x45247a
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.004022c7
cmp dword [ebp - 0x82c], 8
jb 0x4524a4
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 0x4524e7
mov eax, dword [ebp - 0x818]
inc eax
je 0x4524f9
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 0x4524f9
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 0x452538
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x85c]
test eax, eax
je 0x452548
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 0x452562
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 0x452589
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 0x4525a7
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.00452da4
mov esp, ebp
pop ebp
ret