Function at 0x47af70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1f0
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x1e8], eax
cmp dword [ebp + 0xc], 0
je 0x47b3d5
call fcn.0047e620
mov edi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1a0], xmm0
movdqa xmmword [esp + 0x190], xmm0
lea eax, [esp + 0x60]
push 0x130
push 0xff
push eax
call fcn.004acae0
add esp, 0xc
push 1
call fcn.00482990
add esp, 4
test eax, eax
je 0x47b50a
mov esi, eax
add eax, 0x120
mov dword [esp + 0x18], eax
cmp dword [esi + 0x120], 0xfff
ja 0x47b669
mov eax, 0xc0ffee
xor eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
jne 0x47b669
cmp dword [esi + 0x128], edi
jne 0x47b669
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], edx
lea edx, [esi + 0xf4]
mov dword [esp + 0x10], edx
lea edx, [esi + 0xfc]
mov dword [esp + 4], edx
mov ebx, 0x20
mov dword [esp + 0x28], 0
mov edi, dword [ebp + 0xc]
cmp edi, 0x10000
mov edx, 0x10000
cmovb edx, edi
mov dword [esp + 0x24], edx
neg ecx
mov ecx, 0x10000
sbb ecx, eax
jb 0x47b6dd
test byte [esp + 0x28], 1
mov dword [esp + 0x2c], edi
jne 0x47b197
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
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 + 0x1b4]
push eax
mov edi, dword [esp + 0xc]
push edi
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 + 0x1c4]
push eax
push edi
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 + 0x1d4]
push eax
push edi
call ecx
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp ebx, eax
jne 0x47b130
mov eax, dword [0x56b78c]
test eax, 0x2000000
je 0x47b72f
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
mov edx, dword [esp + 0x10]
test edx, edx
je 0x47b17e
mov dword [edx], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 4]
movdqu xmmword [eax], xmm0
mov eax, dword [esp + 0x24]
mov ecx, eax
mov edx, dword [esp + 0x20]
cmp eax, 0x10
jb 0x47b24e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x2000
mov edi, 0x2000
cmovb edi, ecx
mov eax, edi
and eax, 0x3ff0
cmp dword [esi + 0xf8], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
je 0x47b6e2
cmp eax, 0x10
jne 0x47b472
pxor xmm0, xmm0
movdqu xmmword [edx], xmm0
shr edi, 4
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push dword [esp + 4]
push esi
push edi
mov eax, dword [esp + 0x14]
push eax
push eax
call ecx
add esp, 0x14
mov eax, dword [esi + 0x108]
bswap eax
add eax, edi
dec eax
bswap eax
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
add edx, eax
mov ecx, dword [esp + 0x1c]
sub ecx, eax
cmp ecx, 0xf
ja 0x47b1b2
mov eax, dword [esi + 0xf4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x108]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47b3f0
mov edi, dword [esp + 0xc]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov ecx, edi
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0xc]
call edi
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 + 0x1c4]
push eax
mov edi, dword [esp + 0xc]
push edi
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 + 0x1d4]
push eax
push edi
call ecx
add esp, 0xc
test byte [esp + 0x28], 1
jne 0x47b334
xor eax, eax
nop word [eax + eax]
movzx ecx, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp ebx, eax
jne 0x47b320
mov eax, dword [0x56b78c]
test eax, 0x2000000
je 0x47b4b7
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
mov edx, dword [esp + 0x10]
test edx, edx
je 0x47b36e
mov dword [edx], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 4]
movdqu xmmword [eax], xmm0
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
add ecx, 1
adc eax, 0
mov dword [esi + 0x110], ecx
mov dword [esi + 0x114], eax
mov edx, dword [esp + 0x18]
inc dword [edx]
mov edi, dword [esp + 0x24]
add dword [esp + 0x20], edi
xor ebx, ebx
mov dl, 1
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
sub edx, edi
mov edi, edx
jne 0x47b052
lea eax, [esp + 0x60]
cmp esi, eax
je 0x47b4a4
mov ecx, dword [esp + 0x1e8]
xor ecx, ebp
call fcn.004a927c
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 8], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov ecx, dword [esp + 0xc]
call dword [section..00cfg]
mov dword [esp + 0x14], esi
push esi
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0xc]
call ecx
add esp, 0xc
mov esi, dword [esp + 0x1c]
cmp esi, 8
jne 0x47b45b
movq xmm0, qword [esp + 0x1b0]
mov eax, dword [esp + 8]
movq qword [eax], xmm0
mov esi, dword [esp + 0x14]
mov edi, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
jmp 0x47b26e
push esi
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0x10]
call fcn.004ac560
add esp, 0xc
jmp 0x47b446
cmp eax, 0x20
jne 0x47b485
pxor xmm0, xmm0
movdqu xmmword [edx + 0x10], xmm0
jmp 0x47b1ed
test eax, eax
je 0x47b1f1
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call fcn.004acae0
add esp, 0xc
jmp 0x47b1f1
push 0x118
push eax
call fcn.0047d300
add esp, 8
jmp 0x47b3d5
bt eax, 9
jae 0x47b4df
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x47b364
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.004f98d0
add esp, 0xc
mov ecx, 0x4f97d0
mov eax, 0x4fa070
jmp 0x47b364
lea esi, [esp + 0x60]
jmp 0x47b531
push 0x130
call fcn.0047d270
add esp, 4
test eax, eax
je 0x47b504
mov esi, eax
push 0x440bd0
push eax
push 1
call fcn.004497c0
add esp, 0xc
test eax, eax
je 0x47b504
mov dword [esi + 0x124], 0
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x30]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
push 0x30
push ebx
call fcn.004498e0
add esp, 8
movaps xmm0, xmmword [ebx + 0x20]
movaps xmmword [esp + 0x1d0], xmm0
movaps xmm0, xmmword [ebx]
movaps xmm1, xmmword [ebx + 0x10]
movaps xmmword [esp + 0x1c0], xmm1
movaps xmmword [esp + 0x1b0], xmm0
xor eax, eax
mov cl, byte [eax + 0x548973]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp eax, 0x30
jne 0x47b581
lea ebx, [esi + 0xf4]
mov eax, dword [0x56b78c]
bt eax, 0x19
jae 0x47b61f
lea eax, [esp + 0x1b0]
push esi
push 0x100
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
test ebx, ebx
je 0x47b5cb
mov dword [ebx], ecx
mov dword [esi + 0xf8], eax
movdqa xmm0, xmmword [esp + 0x1d0]
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 + 0x18], ecx
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], edi
jmp 0x47b00f
bt eax, 9
jae 0x47b644
lea eax, [esp + 0x1b0]
push esi
push 0x100
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x47b5c5
lea eax, [esp + 0x1b0]
push esi
push 0x100
push eax
call fcn.004f98d0
add esp, 0xc
mov ecx, 0x4f97d0
mov eax, 0x4fa070
jmp 0x47b5c5
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x1b0]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov ebx, 0x30
push ebx
push eax
call fcn.004498e0
add esp, 8
mov ecx, esi
lea edx, [esp + 0x1b0]
push ebx
call fcn.0047bcf0
add esp, 4
test eax, eax
je 0x47b6dd
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], edi
xor ecx, ecx
inc ecx
jmp 0x47b027
call fcn.004babff
test eax, eax
je 0x47b235
xor edi, edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 0x14], eax
call dword [section..00cfg]
push esi
push dword [esp + 0x18]
push dword [esp + 0xc]
call ecx
add esp, 0xc
add edi, 0x10
cmp edi, dword [esp + 0xc]
jb 0x47b6ec
jmp 0x47b235
bt eax, 9
jae 0x47b757
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x47b174
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.004f98d0
add esp, 0xc
mov ecx, 0x4f97d0
mov eax, 0x4fa070
jmp 0x47b174