Function at 0x4a7b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x538010]
xor eax, ebp
mov dword [esp + 0x1c8], eax
test ebx, ebx
je 0x4a7e1a
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x170]
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
call fcn.00507e70
test eax, eax
je 0x4a7b9d
pxor xmm0, xmm0
movdqa xmmword [esp + 0x180], xmm0
movdqa xmmword [esp + 0x170], xmm0
jmp 0x4a7ba8
push 0x20
push esi
call fcn.004c2f30
add esp, 8
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dl, byte [eax + ecx]
xor byte [esp + ecx + 0x170], dl
inc ecx
cmp ecx, 0x20
jne 0x4a7bb0
lea esi, [esp + 0x48]
push 0x128
push 0xff
push esi
call fcn.004d4450
add esp, 0xc
push 1
call fcn.004d0490
add esp, 4
test eax, eax
je 0x4a7c05
mov ecx, eax
add eax, 0x120
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x120], 0xfff
jbe 0x4a7d1b
jmp 0x4a7d29
push 0x128
call fcn.004d03e0
add esp, 4
test eax, eax
je 0x4a7c32
push 0x4a80a0
push eax
push 1
mov dword [esp + 0x14], eax
call fcn.004c2e40
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4a7c34
mov ecx, esi
mov dword [esp + 8], ecx
mov dword [ecx + 0x124], 0
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
push 0x30
push esi
call fcn.004c2f30
add esp, 8
movaps xmm0, xmmword [esi + 0x20]
movaps xmmword [esp + 0x1b0], xmm0
movaps xmm0, xmmword [esi]
movaps xmm1, xmmword [esi + 0x10]
movaps xmmword [esp + 0x1a0], xmm1
movaps xmmword [esp + 0x190], xmm0
xor eax, eax
mov cl, byte [eax + 0x52a100]
xor byte [esp + eax + 0x190], cl
inc eax
cmp eax, 0x30
jne 0x4a7c88
mov eax, dword [0x54cea0]
bt eax, 0x19
jae 0x4a7e35
lea eax, [esp + 0x190]
mov esi, dword [esp + 8]
push esi
push 0x100
push eax
call fcn.00403380
add esp, 0xc
mov eax, 0x401b90
mov ecx, section..text
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], eax
movdqa xmm0, xmmword [esp + 0x1b0]
movdqu xmmword [esi + 0xfc], xmm0
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
lea ecx, [esi + 0x120]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], eax
mov ecx, esi
mov eax, dword [ecx + 0x118]
or eax, dword [ecx + 0x11c]
je 0x4a7d98
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x190]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edx, 0x30
push edx
push eax
mov esi, ecx
call fcn.004c2f30
add esp, 8
mov ecx, esi
lea edx, [esp + 0x190]
mov eax, 0x30
push eax
call fcn.004cdca0
add esp, 4
test eax, eax
je 0x4a7e30
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], eax
mov ecx, esi
mov esi, 0x10000
cmp ebx, esi
cmovb esi, ebx
push 0x20
lea eax, [esp + 0x174]
push eax
push esi
push edi
mov dword [esp + 0x18], ecx
push ecx
call fcn.004a7e90
add esp, 0x14
test eax, eax
je 0x4a7e30
mov eax, dword [esp + 0xc]
inc dword [eax]
sub ebx, esi
je 0x4a7e02
add edi, esi
mov eax, 0x10000
cmp ebx, eax
mov esi, 0x10000
cmovb esi, ebx
push 0
lea eax, [esp + 0x174]
push eax
push esi
push edi
push dword [esp + 0x18]
call fcn.004a7e90
add esp, 0x14
test eax, eax
je 0x4a7e30
add edi, esi
mov eax, dword [esp + 0xc]
inc dword [eax]
sub ebx, esi
jne 0x4a7dcb
lea eax, [esp + 0x48]
cmp dword [esp + 8], eax
jne 0x4a7e1a
push 0x118
push eax
call fcn.004bc500
add esp, 8
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.004d1573
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004e5af7
bt eax, 9
jae 0x4a7e61
lea eax, [esp + 0x190]
mov esi, dword [esp + 8]
push esi
push 0x100
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x4a7cce
lea eax, [esp + 0x190]
mov esi, dword [esp + 8]
push esi
push 0x100
push eax
call fcn.005057d0
add esp, 0xc
mov eax, 0x505f60
mov ecx, 0x5056d0
jmp 0x4a7cce