Function at 0x4a7540
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536856
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x78
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
cmp dword [ebx + 0x18], 0
jne 0x4a758a
mov byte [ebp - 0x11], 0
jmp 0x4a7b67
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x6a], 0xc2c5c4c7
mov word [ebp - 0x66], 0x9b89
mov byte [ebp - 0x64], 0x9a
movups xmmword [ebp - 0x63], xmm0
mov dword [ebp - 0x53], 0
mov word [ebp - 0x4f], 0
mov byte [ebp - 0x4d], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x6a], al
inc ecx
cmp ecx, 7
jb 0x4a75e5
mov dword [0x565560], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x6a]
mov byte [ebp - 0x63], 0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x70], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7620
sub ecx, edx
lea eax, [ebp - 0x6a]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00402c40
cmp dword [ebp - 0x70], 0x10
lea esi, [ebp - 0x84]
mov edi, dword [ebp - 0x84]
cmovae esi, edi
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a7651
sub edx, ecx
cmp dword [ebx + 0x1c], 0x10
push edx
push esi
mov esi, dword [ebx + 0x18]
lea ecx, [ebx + 8]
cmovae ecx, dword [ebx + 8]
mov edx, esi
push 0
call fcn.00492370
mov dword [ebp - 0x1c], eax
add esp, 0xc
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x4a76af
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4a76a2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edi
call fcn.00504f31
mov esi, dword [ebx + 0x18]
add esp, 8
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4a76e0
mov edx, 7
lea ecx, [ebx + 8]
cmp esi, edx
cmovb edx, esi
cmp dword [ebx + 0x1c], 0x10
cmovae ecx, dword [ebx + 8]
sub esi, edx
lea eax, [esi + 1]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00506990
add esp, 0xc
mov dword [ebx + 0x18], esi
xorps xmm0, xmm0
mov dword [ebp - 0x6b], 0xc2c5c4c7
mov dword [ebp - 0x67], 0x999a8ec0
xor ecx, ecx
movups xmmword [ebp - 0x63], xmm0
mov dword [ebp - 0x53], 0
mov word [ebp - 0x4f], 0
mov byte [ebp - 0x4d], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 8
jb 0x4a7708
mov dword [0x565624], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x6b]
mov byte [ebp - 0x63], 0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x70], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7740
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00402c40
cmp dword [ebp - 0x70], 0x10
lea esi, [ebp - 0x84]
mov edi, dword [ebp - 0x84]
cmovae esi, edi
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a7771
sub edx, ecx
cmp dword [ebx + 0x1c], 0x10
push edx
push esi
mov esi, dword [ebx + 0x18]
lea ecx, [ebx + 8]
cmovae ecx, dword [ebx + 8]
mov edx, esi
push 0
call fcn.00492370
mov dword [ebp - 0x1c], eax
add esp, 0xc
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x4a77cf
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4a77c2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edi
call fcn.00504f31
mov esi, dword [ebx + 0x18]
add esp, 8
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4a7800
mov edx, 8
lea ecx, [ebx + 8]
cmp esi, edx
cmovb edx, esi
cmp dword [ebx + 0x1c], 0x10
cmovae ecx, dword [ebx + 8]
sub esi, edx
lea eax, [esi + 1]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00506990
add esp, 0xc
mov dword [ebx + 0x18], esi
xorps xmm0, xmm0
mov byte [ebp - 0x64], 0x80
movups xmmword [ebp - 0x63], xmm0
mov dword [ebp - 0x53], 0
xor ecx, ecx
mov word [ebp - 0x4f], 0
mov byte [ebp - 0x4d], 0
nop
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x64], al
inc ecx
cmp ecx, 1
jb 0x4a7820
mov dword [0x565620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x63], 0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x70], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7855
sub ecx, edx
lea eax, [ebp - 0x64]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00402c40
cmp dword [ebp - 0x70], 0x10
lea edi, [ebp - 0x84]
mov esi, dword [ebp - 0x84]
cmovae edi, esi
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a7886
sub edx, ecx
cmp dword [ebx + 0x1c], 0x10
push edx
mov edx, dword [ebx + 0x18]
lea ecx, [ebx + 8]
cmovae ecx, dword [ebx + 8]
push edi
push 0
call fcn.00492370
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x4a78de
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4a78d4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push esi
call fcn.00504f31
add esp, 8
mov eax, dword [ebx + 0x18]
cmp edi, 0xffffffff
cmove edi, eax
cmp eax, edi
mov ecx, edi
cmovb ecx, eax
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048c8a0
mov esi, dword [ebx + 0x18]
mov eax, esi
sub eax, edi
je 0x4a7932
mov ecx, dword [ebp - 0x3c]
mov edx, esi
sub edx, ecx
cmp esi, ecx
jb 0x4a7bf1
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
add eax, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.0048c8a0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x30]
cmp dword [edx + 0x2c], 0xa
jne 0x4a7a6c
test ecx, ecx
je 0x4a7a6c
xorps xmm0, xmm0
mov byte [ebp - 0x64], 0x90
movups xmmword [ebp - 0x63], xmm0
mov dword [ebp - 0x53], 0
xor ecx, ecx
mov word [ebp - 0x4f], 0
mov byte [ebp - 0x4d], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x64], al
inc ecx
cmp ecx, 1
jb 0x4a7968
mov dword [0x565620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x63], 0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x70], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a79a0
sub ecx, edx
lea eax, [ebp - 0x64]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00402c40
mov byte [ebp - 4], 4
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], 0x10
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x84]
push eax
call fcn.0048c9d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
cmp ecx, 0x10
jb 0x4a7a12
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a7a08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edx
call fcn.00504f31
add esp, 8
cmp dword [ebx + 0x34], 0x10
lea ecx, [ebx + 0x20]
mov edx, dword [ebp - 0x24]
cmovae ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebx + 0x30]
sub eax, edx
mov dword [ebp - 0x1c], edx
push edi
push ecx
cmp edi, eax
ja 0x4a7a5a
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
lea eax, [esi + edx]
push eax
call fcn.00506990
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x4a7a87
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x1c]
push edi
call fcn.00492b30
jmp 0x4a7a87
add edx, 0x60
lea eax, [ebx + 0x20]
cmp edx, eax
je 0x4a7a87
cmp dword [ebx + 0x34], 0x10
push ecx
cmovae eax, dword [ebx + 0x20]
mov ecx, edx
push eax
call fcn.0048c8a0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
add ecx, 0x30
cmp dword [ebp - 0x38], 0x10
cmovae edx, dword [ebp - 0x4c]
add eax, edx
cmp dword [ebp - 0x38], 0x10
lea edx, [ebp - 0x4c]
cmovae edx, dword [ebp - 0x4c]
push eax
push edx
call fcn.004a7c00
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x24]
cmovae edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
add eax, edx
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x34]
push eax
cmovae edx, dword [ebp - 0x34]
lea ecx, [ecx + 0x48]
push edx
call fcn.004a7c00
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 0x11], 1
cmp ecx, 0x10
jb 0x4a7b0f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a7b05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0x10
jb 0x4a7b55
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a7b4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edx
call fcn.00504f31
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x4a7b97
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a7b8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x4a7bd9
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a7bcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a7bf6
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.00490250
call fcn.0050a1d0
int3