Function at 0x4514d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507980
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5500a4]
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 eax, ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x45173a
nop
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea ecx, [esi + 0x10]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040a740
lea ecx, [esi + 0x10]
mov edi, eax
call fcn.0040a750
mov edx, edi
mov ecx, eax
call fcn.004b1010
add esp, 4
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x28]
push eax
call fcn.0040a740
lea ecx, [esi + 0x28]
mov edi, eax
call fcn.0040a750
mov edx, edi
mov ecx, eax
call fcn.004b1010
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x14], 0x10
cmovae edi, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, edi
push eax
push edx
call fcn.0049f870
mov edx, dword [ebp - 0x70]
mov edi, eax
and edx, 0xffffff04
mov dword [ebp - 0x6c], 0
mov ecx, edx
mov dword [ebp - 0x68], 0
or ecx, 4
mov dword [ebp - 0x64], 0
or edx, 0x104
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x70], edx
cmovae ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
call fcn.0049dc70
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
call fcn.0049e890
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0049f360
push eax
mov ecx, edi
call fcn.0049f420
mov edi, eax
mov byte [ebp - 4], 4
mov cl, byte [ebp - 0x50]
movsx edx, byte [edi + 8]
mov byte [edi + 8], cl
mov ecx, dword [ebp - 0x50]
mov eax, ecx
xor eax, edx
movzx eax, al
xor ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x58]
mov dword [edi], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov edx, dword [edi + 8]
xor eax, edx
and eax, 0x100
xor eax, edx
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x50]
mov eax, ecx
xor eax, edx
and eax, 0x100
xor ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0049ea30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.0049ea30
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x451714
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x451710
nop
cmp esi, dword [eax + 8]
jne 0x451710
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x451700
mov esi, eax
jmp 0x45172c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x45172c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x451720
mov eax, dword [ebp - 0x5c]
cmp esi, dword [eax + 0x20]
jne 0x451560
jmp 0x45173d
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x4518eb
nop word [eax + eax]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea ecx, [esi + 8]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040a740
lea ecx, [esi + 8]
mov edi, eax
call fcn.0040a750
mov edx, edi
mov ecx, eax
call fcn.004b1010
add esp, 4
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x20]
push eax
call fcn.0040a740
lea ecx, [esi + 0x20]
mov edi, eax
call fcn.0040a750
mov edx, edi
mov ecx, eax
call fcn.004b1010
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x14], 0x10
cmovae edi, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, edi
push eax
push edx
call fcn.0049f870
mov edx, dword [ebp - 0x70]
mov edi, eax
and edx, 0xffffff04
mov dword [ebp - 0x6c], 0
mov ecx, edx
mov dword [ebp - 0x68], 0
or ecx, 4
mov dword [ebp - 0x64], 0
or edx, 0x104
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x70], edx
cmovae ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
call fcn.0049dc70
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
call fcn.0049e890
mov byte [ebp - 4], 6
mov ecx, edi
call fcn.0049f360
push eax
mov ecx, edi
call fcn.0049f420
mov edi, eax
mov byte [ebp - 4], 7
mov cl, byte [ebp - 0x50]
movsx edx, byte [edi + 8]
mov byte [edi + 8], cl
mov ecx, dword [ebp - 0x50]
mov eax, ecx
xor eax, edx
movzx eax, al
xor ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x58]
mov dword [edi], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov edx, dword [edi + 8]
xor eax, edx
and eax, 0x100
xor eax, edx
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x50]
mov eax, ecx
xor eax, edx
and eax, 0x100
xor ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.0049ea30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.0049ea30
mov eax, dword [ebp - 0x5c]
mov esi, dword [esi]
cmp esi, dword [eax + 0x28]
jne 0x451750
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x451923
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x451919
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45199c
push edx
push ecx
call fcn.004d6f80
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x45196c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x451962
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4519a1
push edx
push ecx
call fcn.004d6f80
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
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.004d6ca5
mov esp, ebp
pop ebp
ret 4
call fcn.004dc8f9
call fcn.004dc8f9
int3