Function at 0x479770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [esp + 0x78], eax
xor ebx, ebx
cmp dword [ebp + 8], 0x30
ja 0x4799e1
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov ecx, dword [ecx + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea ebx, [esi + 0xfc]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push esi
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x44]
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x14], ebx
push ebx
call ecx
mov edx, dword [ebp + 8]
add esp, 0xc
test edx, edx
je 0x47984d
xor eax, eax
nop
movzx ecx, byte [edi + eax]
xor byte [esp + eax + 0x30], cl
inc eax
cmp edx, eax
jne 0x479840
lea edi, [esi + 0xf4]
mov eax, dword [0x4e510c]
test eax, 0x2000000
jne 0x479979
test eax, 0x200
jne 0x479998
mov dword [esp + 8], edi
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movups xmmword [esi], xmm0
movdqa xmm0, xmmword [esp + 0x40]
movdqu xmmword [esi + 0x10], xmm0
mov ebx, 0x30
mov edi, 0x4c80b0
nop
pcmpeqd xmm1, xmm1
movdqa xmmword [esp + 0x60], xmm1
lea ecx, [esp + 0x60]
movdqa xmmword [esp + 0x20], xmm0
call fcn.00479ea0
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x10]
movdqa xmm3, xmmword [esp + 0x60]
movdqa xmm2, xmm3
psrld xmm2, 8
pslld xmm3, 0x18
por xmm3, xmm2
psrldq xmm3, 0xc
pxor xmm3, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm2, xmm3
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm0, xmm3
pslldq xmm0, 0xc
pxor xmm0, xmm2
pxor xmm0, xmm3
movdqu xmmword [esi + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x4799b4
lea ecx, [esp + 0x60]
movdqa xmmword [esp + 0x10], xmm0
call fcn.00479ea0
movdqa xmm1, xmmword [esp + 0x60]
psrldq xmm1, 0xc
movdqa xmm0, xmmword [esp + 0x20]
pxor xmm0, xmm1
movdqa xmm2, xmm0
pslldq xmm2, 4
movdqa xmm1, xmm0
pslldq xmm1, 8
pxor xmm1, xmm2
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm1
pxor xmm0, xmm2
movdqu xmmword [esi + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x4798a0
push esi
push 0x100
lea eax, [esp + 0x38]
push eax
call fcn.00403500
add esp, 0xc
mov ecx, 0x401180
mov eax, 0x401d10
jmp 0x4799c2
push esi
push 0x100
lea eax, [esp + 0x38]
push eax
call fcn.00404020
add esp, 0xc
mov ecx, 0x4040d0
xor eax, eax
jmp 0x4799c2
mov ecx, 0x477320
mov eax, 0x478670
mov edi, dword [esp + 8]
test edi, edi
lea ebx, [esp + 0x50]
je 0x4799cc
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movups xmm0, xmmword [ebx]
mov eax, dword [esp + 0xc]
movups xmmword [eax], xmm0
mov ebx, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret