Function at 0x47e530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6614d6
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edi
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x3c], 1
mov ebx, dword [eax + 4]
mov esi, dword [eax]
sub ebx, esi
cmp ebx, 2
jbe 0x47e5c4
cmp byte [esi], 0x4d
jne 0x47e5c4
cmp byte [esi + 1], 0x5a
jne 0x47e5c4
mov dword [ecx + 8], 2
jmp 0x47e7df
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
lea eax, [edx + 4]
cmp ebx, eax
jbe 0x47e7df
xor ebx, ebx
movq qword [ebp - 0x20], xmm0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], eax
test edx, edx
je 0x47e62a
cmp edx, 0x7fffffff
ja 0x47e82e
push edx
lea ecx, [ebp - 0x20]
call fcn.00464bc0
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
push esi
push ebx
call fcn.004b94a0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
mov esi, dword [ecx + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 0x28], esi
mov edx, dword [esi]
add eax, edx
mov dword [ebp - 0x2c], edx
cmp edx, eax
je 0x47e662
mov esi, dword [esi + 4]
sub esi, eax
push esi
push eax
push edx
call fcn.004b94a0
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ebp - 0x2c]
add eax, esi
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], esi
sub eax, esi
je 0x47e697
xor edi, edi
xor edx, edx
mov eax, edi
div dword [ecx]
mov al, byte [edx + ebx]
xor byte [esi + edi], al
inc edi
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [edx + 4]
mov esi, dword [edx]
sub eax, esi
cmp edi, eax
jb 0x47e676
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
mov esi, dword [esi]
mov dword [ebp - 0x2c], esi
lea edi, [eax + 4]
cmp eax, edi
mov edi, dword [ebp - 0x38]
je 0x47e6cd
mov esi, dword [edx + 4]
lea ecx, [eax + 4]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004b94a0
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, esi
mov esi, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x30]
test esi, esi
je 0x47e7ff
cmp esi, 0x1e00000
ja 0x47e7ff
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
call fcn.0045d9c0
test eax, eax
jne 0x47e7a2
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
cmp esi, ecx
jae 0x47e70c
lea eax, [edx + esi]
jmp 0x47e737
jbe 0x47e73a
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x47e722
push ecx
push esi
mov ecx, edi
call fcn.00455470
jmp 0x47e73a
sub esi, ecx
push esi
push 0
push dword [ebp - 0x28]
call fcn.004b9340
mov eax, dword [ebp - 0x28]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x24]
push ecx
push eax
push dword [edi]
sub edx, ecx
call fcn.0045db50
add esp, 0xc
test eax, eax
jne 0x47e7a2
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x2c]
jne 0x47e7a2
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0x2c], eax
cmp esi, ecx
jae 0x47e774
lea eax, [edx + esi]
jmp 0x47e79f
jbe 0x47e7a2
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x47e78a
push ecx
push esi
mov ecx, edi
call fcn.00455470
jmp 0x47e7a2
sub esi, ecx
push esi
push 0
push dword [ebp - 0x2c]
call fcn.004b9340
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [edi + 4]
mov eax, dword [ebp - 0x30]
setne cl
mov dword [eax + 8], ecx
test ebx, ebx
je 0x47e7df
mov ecx, dword [ebp - 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x47e7d5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e829
push ecx
push ebx
call fcn.004b75c0
add esp, 8
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 - 0x14]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
mov dword [ecx + 8], 0
test ebx, ebx
je 0x47e7df
mov ecx, dword [ebp - 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x47e7d5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47e7d5
call fcn.004bccbf
call fcn.0044d640
int3