Function at 0x457040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaa38
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x52610c]
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 edi, ecx
mov dword [ebp - 0x10c], edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x110], ebx
mov dword [ecx + 0x10], 0
jb 0x4570c5
mov eax, dword [ecx]
jmp 0x4570c7
mov eax, ecx
push 0
push 0x507250
mov byte [eax], 0
call fcn.00409af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0
push 0x507250
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00409af0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
push 0x507250
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409af0
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
mov byte [ebp - 0x106], 0
mov byte [ebp - 0x105], 0
call fcn.004591a0
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x457185
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x45716a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004099a0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00407660
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x45719e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004099a0
cmp dword [ebp - 0x30], 0
jne 0x457200
push ebx
lea eax, [ebp - 0x58]
push eax
call fcn.0045a3e0
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x4571e7
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4571cc
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004099a0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00407660
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x457200
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004099a0
push 0x50a9d0
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004546d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0044acb0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45725d
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x457242
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00407660
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x457272
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004099a0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x457299
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004099a0
lea ebx, [edi + 0x28]
push ebx
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 8]
call fcn.004131f0
mov edi, dword [edi + 8]
mov esi, eax
mov dword [ebp - 0x114], esi
cmp esi, edi
je 0x45732c
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
lea eax, [edx + 0x10]
mov dword [ebp - 0x11c], eax
jb 0x4572dc
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x11c]
cmovae ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax]
cmp ebx, dword [esi]
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.00413f70
add esp, 0xc
test eax, eax
jne 0x457319
mov edx, esi
mov ecx, ebx
mov eax, dword [edx]
cmp eax, ecx
jbe 0x457315
or eax, 0xffffffff
jmp 0x457319
sbb eax, eax
neg eax
mov esi, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x124]
shr eax, 0x1f
test al, al
je 0x45732e
mov esi, edi
mov eax, dword [ebp - 0x10c]
cmp esi, dword [eax + 8]
je 0x457374
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [eax + 8]
call fcn.0045b470
mov eax, dword [ebp - 0x118]
mov edi, dword [ebp - 0x120]
add eax, 0x28
cmp edi, eax
je 0x45736b
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00409690
mov byte [ebp - 0x105], 1
jmp 0x45737a
mov edi, dword [ebp - 0x120]
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x10], 0
ja 0x4575d3
push dword [ebp - 0x110]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00459b80
mov esi, eax
cmp edi, esi
je 0x4573e1
cmp dword [edi + 0x14], 0x10
jb 0x4573bc
mov eax, dword [edi + 0x14]
mov ecx, edi
inc eax
push eax
push dword [edi]
call fcn.004099a0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x4573d4
mov eax, dword [edi]
jmp 0x4573d6
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.00407660
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4573fa
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004099a0
cmp dword [edi + 0x10], 0
jbe 0x45740e
push edi
call fcn.00459f30
test eax, eax
jne 0x4575d3
movaps xmm0, xmmword [0x50cb60]
movups xmmword [ebp - 0x104], xmm0
mov dword [ebp - 0xe4], 0x2c7558
movaps xmm0, xmmword [0x50cb40]
movups xmmword [ebp - 0xf4], xmm0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00477170
mov edx, eax
mov byte [ebp - 4], 0xa
xor ecx, ecx
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x103]
xor al, byte [ebp - 0x104]
mov byte [ebp + ecx - 0xe0], al
movzx eax, byte [ebp + ecx - 0x102]
xor al, byte [ebp - 0x104]
mov byte [ebp + ecx - 0xdf], al
add ecx, 2
cmp ecx, 0x22
jb 0x457450
lea eax, [ebp - 0xe0]
mov byte [ebp - 0xbe], 0
push eax
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00407900
push dword [ebp - 0x110]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0044acb0
add esp, 0x14
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00458320
mov esi, eax
cmp edi, esi
je 0x457501
cmp dword [edi + 0x14], 0x10
jb 0x4574dc
mov eax, dword [edi + 0x14]
mov ecx, edi
inc eax
push eax
push dword [edi]
call fcn.004099a0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x4574f4
mov eax, dword [edi]
jmp 0x4574f6
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.00407660
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x457516
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004099a0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x457543
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004099a0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x45756d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004099a0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x45759d
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004099a0
mov byte [ebp - 4], 2
cmp dword [edi + 0x10], 0
jbe 0x4575d3
push edi
call fcn.00459f30
test eax, eax
je 0x4575d3
mov esi, dword [ebp - 0x110]
lea eax, [ebp - 0x40]
push edi
push esi
push eax
mov byte [ebp - 0x106], 1
call fcn.004598b0
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.0045a830
cmp byte [ebp - 0x105], 0
jne 0x457702
mov edx, edi
lea ecx, [ebp - 0xa0]
call fcn.0040c460
mov esi, eax
cmp edi, esi
je 0x45762c
cmp dword [edi + 0x14], 0x10
jb 0x457607
mov eax, dword [edi + 0x14]
mov ecx, edi
inc eax
push eax
push dword [edi]
call fcn.004099a0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x45761f
mov eax, dword [edi]
jmp 0x457621
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.00407660
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x45764a
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004099a0
push ebx
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xf
push ecx
mov esi, dword [eax + 8]
lea ecx, [eax + 8]
call fcn.00412b40
cmp dword [eax], esi
jne 0x4576c2
push edi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xb8]
call fcn.0045af90
add esp, 4
mov esi, dword [ebp - 0x10c]
push eax
mov byte [ebp - 4], 0x10
lea ecx, [esi + 8]
call fcn.00414e50
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [esi + 8]
call fcn.00413c80
lea ecx, [ebp - 0xb8]
call fcn.00413730
jmp 0x4576fb
cmp byte [ebp - 0x106], 0
je 0x4576fb
mov ecx, dword [ebp - 0x10c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ecx + 8]
call fcn.0045b470
mov ecx, dword [ebp - 0x118]
add ecx, 0x28
cmp ecx, edi
je 0x4576fb
push 0xffffffffffffffff
push 0
push edi
call fcn.00409690
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x457717
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x45773e
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004099a0
mov eax, edi
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.004a0525
mov esp, ebp
pop ebp
ret 8