Function at 0x47e8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [esp + 0x38]
mov esi, 0xffffffe0
mov ebx, 0xf
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, dword [esp + 0x48]
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebx, ecx
jb 0x47ef01
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
cmp dword [edi + 0x174], 0
je 0x47e9d6
movzx ebx, byte [edi + 0x4f]
mov esi, edi
mov dword [esp], 0
mov ecx, ebx
and ecx, 0xf
shl ecx, 4
mov eax, dword [edi + ecx + 0x60]
mov edx, dword [edi + ecx + 0x64]
mov edi, dword [edi + ecx + 0x6c]
mov ecx, dword [esi + ecx + 0x68]
jmp 0x47e976
mov ebx, dword [esp]
mov ecx, dword [esp + 0x38]
mov ebp, edx
shr edx, 4
dec dword [esp]
shld ebp, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
movzx ecx, byte [ecx + ebx + 0x4e]
mov ebx, dword [esp + 0x38]
mov dword [esp + 8], ecx
and ecx, 0xf
shl ecx, 4
xor edx, dword [ebx + ecx + 0x64]
mov ebx, dword [esp + 8]
xor edx, dword [edi*4 + 0x522730]
mov edi, dword [esp + 0x38]
xor ebp, dword [edi + ecx + 0x60]
xor esi, dword [edi + ecx + 0x6c]
xor eax, dword [edi + ecx + 0x68]
mov ecx, eax
mov edi, esi
mov eax, ebp
mov ebp, dword [esp + 0x38]
mov esi, edx
and ebx, 0xfffffff0
shr edx, 4
shld esi, eax, 0x1c
shld eax, edi, 0x1c
shld edi, ecx, 0x1c
and ecx, 0xf
xor edx, dword [ebp + ebx + 0x64]
xor esi, dword [ebp + ebx + 0x60]
xor eax, dword [ebp + ebx + 0x6c]
xor edi, dword [ebp + ebx + 0x68]
xor edx, dword [ecx*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47e920
mov ecx, dword [esp + 0x38]
bswap edx
bswap esi
bswap edi
bswap eax
mov dword [ecx + 0x44], esi
mov dword [ecx + 0x40], edx
mov dword [ecx + 0x4c], edi
mov edi, ecx
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x174], 0
mov eax, dword [edi + 0x170]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
test eax, eax
je 0x47eb00
test esi, esi
je 0x47eef6
nop dword [eax + eax]
movzx ecx, byte [ebp]
movzx edx, byte [edi + eax + 0x10]
inc ebp
xor dl, cl
mov byte [ebx], dl
xor byte [edi + eax + 0x40], cl
inc eax
inc ebx
lea ecx, [esi - 1]
and eax, 0xf
je 0x47ea23
cmp esi, 1
mov esi, ecx
jne 0x47ea00
test eax, eax
jne 0x47eef6
mov dword [esp + 0x14], ebx
movzx ebx, byte [edi + 0x4f]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ebp
mov dword [esp], 0
mov esi, ebx
and esi, 0xf
shl esi, 4
mov eax, dword [edi + esi + 0x60]
mov ecx, dword [edi + esi + 0x64]
mov edx, dword [edi + esi + 0x6c]
mov ebp, dword [edi + esi + 0x68]
jmp 0x47eaaa
mov ebx, dword [esp]
dec dword [esp]
movzx ebp, byte [edi + ebx + 0x4e]
mov ebx, ecx
shr ecx, 4
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
mov dword [esp + 8], ebp
and ebp, 0xf
shl ebp, 4
xor ecx, dword [edi + ebp + 0x64]
xor ebx, dword [edi + ebp + 0x60]
xor eax, dword [edi + ebp + 0x68]
xor esi, dword [edi + ebp + 0x6c]
xor ecx, dword [edx*4 + 0x522730]
mov ebp, eax
mov eax, ebx
mov ebx, dword [esp + 8]
mov edx, esi
mov esi, ecx
and ebx, 0xfffffff0
shr ecx, 4
xor ecx, dword [edi + ebx + 0x64]
shld esi, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebp, 0x1c
and ebp, 0xf
xor esi, dword [edi + ebx + 0x60]
xor eax, dword [edi + ebx + 0x6c]
xor edx, dword [edi + ebx + 0x68]
xor ecx, dword [ebp*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47ea60
bswap ecx
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
bswap esi
bswap eax
bswap edx
mov dword [edi + 0x40], ecx
mov ecx, dword [esp + 4]
mov dword [edi + 0x44], esi
mov dword [edi + 0x4c], edx
mov dword [edi + 0x48], eax
jmp 0x47eb02
mov ecx, esi
mov edx, dword [edi + 0xc]
cmp ecx, 0xc00
bswap edx
jb 0x47ec87
nop word cs:[eax + eax]
nop dword [eax]
mov dword [esp + 0x18], edx
mov dl, byte [edi + 0x4f]
mov eax, 0xc00
mov dword [esp + 4], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
nop dword [eax + eax]
xor dl, byte [ebp + 0xf]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ebp
mov dword [esp], 0
movzx ebx, dl
mov eax, ebx
and eax, 0xf
shl eax, 4
mov ebp, dword [edi + eax + 0x60]
mov esi, dword [edi + eax + 0x64]
mov edx, dword [edi + eax + 0x6c]
mov ecx, dword [edi + eax + 0x68]
jmp 0x47ebcc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x38]
movzx ecx, byte [eax + ecx + 0xe]
mov eax, dword [esp]
dec dword [esp]
xor cl, byte [ebx + eax + 0x4e]
mov eax, esi
shr esi, 4
shld eax, edi, 0x1c
shld edi, ebp, 0x1c
shld ebp, edx, 0x1c
and edx, 0xf
movzx ecx, cl
mov dword [esp + 8], ecx
and ecx, 0xf
shl ecx, 4
xor esi, dword [ebx + ecx + 0x64]
xor eax, dword [ebx + ecx + 0x60]
xor edi, dword [ebx + ecx + 0x6c]
xor ebp, dword [ebx + ecx + 0x68]
mov ebx, dword [esp + 8]
xor esi, dword [edx*4 + 0x522730]
mov ecx, ebp
mov edx, edi
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, esi
and ebx, 0xfffffff0
shr esi, 4
shld edi, ebp, 0x1c
shld ebp, edx, 0x1c
shld edx, ecx, 0x1c
and ecx, 0xf
xor esi, dword [eax + ebx + 0x64]
xor edi, dword [eax + ebx + 0x60]
xor ebp, dword [eax + ebx + 0x6c]
xor edx, dword [eax + ebx + 0x68]
xor esi, dword [ecx*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47eb70
mov ecx, dword [esp + 0x38]
bswap esi
bswap edi
bswap ebp
mov eax, dword [esp + 0x1c]
bswap edx
mov dword [ecx + 0x44], edi
mov dword [ecx + 0x40], esi
mov dword [ecx + 0x48], ebp
mov ebp, dword [esp + 0xc]
mov dword [ecx + 0x4c], edx
shr edx, 0x18
mov edi, ecx
add ebp, 0x10
add eax, 0xfffffff0
jne 0x47eb40
push edi
push dword [esp + 0x40]
push 0xc0
mov ebx, dword [esp + 0x20]
push ebx
mov ebp, dword [esp + 0x20]
push ebp
call dword [esp + 0x60]
add esp, 0x14
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 4]
add ebx, 0xc00
add ebp, 0xc00
add edx, 0xc0
add ecx, 0xfffff400
mov eax, edx
cmp ecx, 0xbff
bswap eax
mov dword [edi + 0xc], eax
ja 0x47eb20
mov eax, ecx
and eax, 0xfffffff0
je 0x47edf2
mov dword [esp + 0x18], edx
mov dl, byte [edi + 0x4f]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], eax
nop dword [eax]
xor dl, byte [ebp + 0xf]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov dword [esp + 0xc], ebp
mov dword [esp], 0
movzx ebx, dl
mov eax, ebx
and eax, 0xf
shl eax, 4
mov ebp, dword [edi + eax + 0x60]
mov edi, dword [edi + eax + 0x64]
mov edx, dword [ecx + eax + 0x6c]
mov eax, dword [ecx + eax + 0x68]
jmp 0x47ed4c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x38]
movzx eax, byte [eax + ecx + 0xe]
mov ecx, dword [esp]
dec dword [esp]
xor al, byte [ebx + ecx + 0x4e]
mov ecx, edi
shr edi, 4
shld ecx, esi, 0x1c
shld esi, ebp, 0x1c
shld ebp, edx, 0x1c
and edx, 0xf
movzx eax, al
mov dword [esp + 8], eax
and eax, 0xf
shl eax, 4
xor edi, dword [ebx + eax + 0x64]
xor ecx, dword [ebx + eax + 0x60]
xor esi, dword [ebx + eax + 0x6c]
xor ebp, dword [ebx + eax + 0x68]
mov ebx, dword [esp + 8]
xor edi, dword [edx*4 + 0x522730]
mov eax, ebp
mov edx, esi
mov ebp, ecx
mov ecx, dword [esp + 0x38]
mov esi, edi
and ebx, 0xfffffff0
shr edi, 4
shld esi, ebp, 0x1c
shld ebp, edx, 0x1c
shld edx, eax, 0x1c
and eax, 0xf
xor edi, dword [ecx + ebx + 0x64]
xor esi, dword [ecx + ebx + 0x60]
xor ebp, dword [ecx + ebx + 0x6c]
xor edx, dword [ecx + ebx + 0x68]
xor edi, dword [eax*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47ecf0
mov ecx, dword [esp + 0x38]
bswap edi
bswap esi
bswap ebp
mov eax, dword [esp + 0x1c]
bswap edx
mov dword [ecx + 0x40], edi
mov dword [ecx + 0x44], esi
mov dword [ecx + 0x48], ebp
mov ebp, dword [esp + 0xc]
mov dword [ecx + 0x4c], edx
shr edx, 0x18
mov edi, ecx
add ebp, 0x10
add eax, 0xfffffff0
jne 0x47ecb0
mov esi, dword [esp + 4]
shr esi, 4
push edi
push dword [esp + 0x40]
push esi
mov ebx, dword [esp + 0x20]
push ebx
mov ebp, dword [esp + 0x20]
push ebp
call dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
add esp, 0x14
mov edx, dword [esp + 0x18]
add edx, esi
mov esi, dword [esp + 0x20]
mov eax, edx
bswap eax
mov dword [edi + 0xc], eax
add ebx, esi
add ebp, esi
sub ecx, esi
test ecx, ecx
je 0x47eebd
lea eax, [edi + 0x10]
push dword [esp + 0x3c]
mov dword [esp + 4], eax
push eax
push edi
mov dword [esp + 0x10], ecx
mov esi, edx
call dword [edi + 0x168]
mov ecx, dword [esp + 0x10]
add esp, 0xc
inc esi
xor eax, eax
cmp ecx, 0x10
bswap esi
mov dword [edi + 0xc], esi
jb 0x47eee0
mov esi, dword [esp]
lea edx, [edi + ecx + 0x40]
lea edi, [ebx + ecx]
lea ecx, [ebp + ecx]
cmp edi, esi
seta byte [esp + 8]
cmp ebx, edx
setb byte [esp + 0xc]
cmp ecx, esi
mov esi, ebx
seta byte [esp]
cmp ebp, edx
setb dh
cmp ebx, ecx
mov ch, byte [esp + 0xc]
setb dl
cmp ebp, edi
setb bl
test byte [esp + 8], ch
jne 0x47eec9
and byte [esp], dh
mov edi, dword [esp + 0x38]
jne 0x47eec1
and dl, bl
jne 0x47eec1
mov ecx, dword [esp + 4]
xor edx, edx
mov ebx, esi
mov eax, ecx
and eax, 0xfffffff0
sub ecx, eax
nop word cs:[eax + eax]
nop
movups xmm0, xmmword [ebp + edx]
movups xmm1, xmmword [edi + edx + 0x10]
movups xmm2, xmmword [edi + edx + 0x40]
xorps xmm2, xmm0
xorps xmm1, xmm0
movups xmmword [edi + edx + 0x40], xmm2
movups xmmword [ebx + edx], xmm1
add edx, 0x10
cmp eax, edx
jne 0x47ee90
cmp dword [esp + 4], eax
jne 0x47eee0
jmp 0x47eef6
xor eax, eax
jmp 0x47eef6
mov ecx, dword [esp + 4]
mov ebx, esi
jmp 0x47eee0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x38]
mov ebx, esi
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp + eax]
xor byte [edi + eax + 0x40], dl
xor dl, byte [edi + eax + 0x10]
dec ecx
mov byte [ebx + eax], dl
lea eax, [eax + 1]
jne 0x47eee0
mov dword [edi + 0x170], eax
mov eax, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret