Function at 0x47db40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
mov esi, 0xffffffe0
mov ebx, 0xf
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x3c]
add edx, edi
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebx, ecx
jb 0x47e230
mov eax, dword [ebp + 0x168]
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], ecx
cmp dword [ebp + 0x174], 0
mov dword [esp + 0x1c], eax
je 0x47dc6a
movzx ebx, byte [ebp + 0x4f]
mov edi, ebp
mov dword [esp], 0
mov esi, ebx
and esi, 0xf
shl esi, 4
mov eax, dword [ebp + esi + 0x60]
mov ecx, dword [ebp + esi + 0x64]
mov edx, dword [ebp + esi + 0x6c]
mov ebp, dword [ebp + esi + 0x68]
jmp 0x47dc0e
mov edi, dword [esp]
dec dword [esp]
movzx ebx, byte [ebp + edi + 0x4e]
mov edi, ebp
mov ebp, ebx
mov dword [esp + 0x10], ebx
mov ebx, ecx
shr ecx, 4
and ebp, 0xf
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 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 + 0x10]
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
mov ebp, edi
jne 0x47dbc0
mov edi, dword [esp + 0x4c]
bswap ecx
bswap esi
bswap eax
bswap edx
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x174], 0
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x170]
test eax, eax
je 0x47dd94
test edi, edi
je 0x47e225
mov esi, dword [esp + 0x48]
movzx ecx, byte [ebx]
movzx edx, byte [ebp + eax + 0x10]
inc ebx
xor dl, cl
mov byte [esi], dl
xor byte [ebp + eax + 0x40], cl
inc eax
inc esi
and eax, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x47dcb2
test eax, eax
jne 0x47dc90
test eax, eax
jne 0x47e225
mov dword [esp + 8], ebx
movzx ebx, byte [ebp + 0x4f]
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov edi, ebp
mov dword [esp], 0
mov esi, ebx
and esi, 0xf
shl esi, 4
mov eax, dword [ebp + esi + 0x60]
mov ecx, dword [ebp + esi + 0x64]
mov edx, dword [ebp + esi + 0x6c]
mov ebp, dword [ebp + esi + 0x68]
jmp 0x47dd3e
mov edi, dword [esp]
dec dword [esp]
movzx ebx, byte [ebp + edi + 0x4e]
mov edi, ebp
mov ebp, ebx
mov dword [esp + 0x10], ebx
mov ebx, ecx
shr ecx, 4
and ebp, 0xf
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 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 + 0x10]
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
mov ebp, edi
jne 0x47dcf0
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
bswap ecx
bswap esi
bswap eax
bswap edx
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x48], eax
mov edx, dword [ebp + 0xc]
cmp edi, 0xc00
bswap edx
jb 0x47df6e
mov ecx, dword [esp + 0xc]
lea eax, [ebp + 0x10]
mov dword [esp + 4], edi
mov dword [esp + 0x24], eax
nop word cs:[eax + eax]
nop
mov dword [esp + 0x18], edx
mov dl, byte [ebp + 0x4f]
mov eax, 0xc00
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
nop word cs:[eax + eax]
nop
xor dl, byte [ebx + 0xf]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp], 0
movzx ebx, dl
mov eax, ebx
and eax, 0xf
shl eax, 4
mov edi, dword [ebp + eax + 0x60]
mov esi, dword [ebp + eax + 0x64]
mov edx, dword [ebp + eax + 0x6c]
mov ecx, dword [ebp + eax + 0x68]
jmp 0x47de6c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x3c]
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, ebp, 0x1c
shld ebp, edi, 0x1c
shld edi, edx, 0x1c
and edx, 0xf
movzx ecx, cl
mov dword [esp + 0x10], ecx
and ecx, 0xf
shl ecx, 4
xor esi, dword [ebx + ecx + 0x64]
xor eax, dword [ebx + ecx + 0x60]
xor ebp, dword [ebx + ecx + 0x6c]
xor edi, dword [ebx + ecx + 0x68]
mov ebx, dword [esp + 0x10]
xor esi, dword [edx*4 + 0x522730]
mov ecx, edi
mov edx, ebp
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ebp, esi
and ebx, 0xfffffff0
shr esi, 4
shld ebp, edi, 0x1c
shld edi, edx, 0x1c
shld edx, ecx, 0x1c
and ecx, 0xf
xor esi, dword [eax + ebx + 0x64]
xor ebp, dword [eax + ebx + 0x60]
xor edi, dword [eax + ebx + 0x6c]
xor edx, dword [eax + ebx + 0x68]
xor esi, dword [ecx*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47de10
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
bswap esi
bswap ebp
bswap edx
bswap edi
mov dword [ecx + 0x44], ebp
mov dword [ecx + 0x40], esi
mov dword [ecx + 0x4c], edx
add ebx, 0x10
shr edx, 0x18
add eax, 0xfffffff0
mov ebp, ecx
mov dword [ecx + 0x48], edi
jne 0x47dde0
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x18]
mov edi, 0x10
add ebx, 0x10
inc esi
jmp 0x47def9
inc edx
add ebx, 0x10
add edi, 0x10
mov esi, edx
mov eax, dword [esp + 0x40]
push eax
push dword [esp + 0x28]
push ebp
call dword [esp + 0x28]
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xc]
mov edx, esi
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [ebx - 0x10]
mov dword [ecx + edi - 0x10], eax
mov eax, dword [ebp + 0x14]
xor eax, dword [ebx - 0xc]
mov dword [ecx + edi - 0xc], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [ebx - 8]
mov dword [ecx + edi - 8], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebx - 4]
cmp edi, 0xc00
mov dword [ecx + edi - 4], eax
jne 0x47def0
mov eax, dword [esp + 4]
mov esi, ecx
lea ecx, [ecx + edi]
add eax, 0xfffff400
cmp eax, 0xbff
mov dword [esp + 4], eax
ja 0x47ddc0
add esi, edi
mov edi, dword [esp + 4]
mov dword [esp + 0xc], esi
mov eax, edi
and eax, 0xfffffff0
je 0x47e10b
mov dword [esp + 0x18], edx
mov dl, byte [ebp + 0x4f]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
nop dword [eax + eax]
xor dl, byte [ebx + 0xf]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp], 0
movzx eax, dl
mov dword [esp + 0x10], eax
and eax, 0xf
shl eax, 4
mov edi, dword [ebp + eax + 0x60]
mov ebx, dword [ebp + eax + 0x64]
mov edx, dword [ebp + eax + 0x6c]
mov ecx, dword [ebp + eax + 0x68]
jmp 0x47e027
mov ebp, dword [esp]
mov eax, dword [esp + 0x14]
dec dword [esp]
movzx ecx, byte [eax + ebp + 0xe]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax + ebp + 0x4e]
mov ebp, eax
mov eax, ebx
shr ebx, 4
shld eax, esi, 0x1c
shld esi, edi, 0x1c
shld edi, edx, 0x1c
and edx, 0xf
movzx ecx, cl
mov dword [esp + 0x10], ecx
and ecx, 0xf
shl ecx, 4
xor ebx, dword [ebp + ecx + 0x64]
xor eax, dword [ebp + ecx + 0x60]
xor esi, dword [ebp + ecx + 0x6c]
xor edi, dword [ebp + ecx + 0x68]
xor ebx, dword [edx*4 + 0x522730]
mov ecx, edi
mov edx, esi
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, ebx
shr ebx, 4
shld esi, edi, 0x1c
shld edi, edx, 0x1c
shld edx, ecx, 0x1c
and ecx, 0xf
and eax, 0xfffffff0
xor ebx, dword [ebp + eax + 0x64]
xor esi, dword [ebp + eax + 0x60]
xor edi, dword [ebp + eax + 0x6c]
xor edx, dword [ebp + eax + 0x68]
xor ebx, dword [ecx*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47dfd0
bswap ebx
mov eax, dword [esp + 0x20]
bswap esi
bswap edx
bswap edi
mov dword [ebp + 0x40], ebx
mov ebx, dword [esp + 0x14]
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x4c], edx
shr edx, 0x18
mov dword [ebp + 0x48], edi
add ebx, 0x10
add eax, 0xfffffff0
jne 0x47df90
mov edi, dword [esp + 4]
cmp edi, 0x10
jb 0x47e13d
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
lea eax, [ebp + 0x10]
mov dword [esp], eax
nop dword [eax]
mov dword [esp + 0x18], edx
push dword [esp + 0x40]
push dword [esp + 4]
push ebp
call dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0xc
inc edx
add edi, 0xfffffff0
mov eax, edx
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
xor eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebx + 0xc]
add ebx, 0x10
mov dword [esi + 0xc], eax
add esi, 0x10
cmp edi, 0xf
ja 0x47e0b0
mov edi, dword [esp + 4]
mov dword [esp + 0xc], esi
and edi, 0xf
test edi, edi
je 0x47e149
lea eax, [ebp + 0x10]
push dword [esp + 0x40]
mov dword [esp + 4], eax
push eax
push ebp
mov esi, edx
call dword [esp + 0x28]
add esp, 0xc
inc esi
xor eax, eax
cmp edi, 0x10
bswap esi
mov dword [ebp + 0xc], esi
jae 0x47e150
mov esi, dword [esp + 0xc]
mov ecx, edi
jmp 0x47e210
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x18]
test edi, edi
jne 0x47e10f
xor eax, eax
jmp 0x47e225
lea ecx, [ebp + edi + 0x40]
mov esi, dword [esp + 0xc]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov ecx, dword [esp]
lea edx, [esi + edi]
lea edi, [ebx + edi]
cmp edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
seta byte [esp + 0x10]
cmp esi, edx
setb byte [esp + 0x20]
cmp edi, ecx
seta cl
cmp ebx, edx
mov ch, byte [esp + 0x20]
setb dh
cmp esi, edi
setb dl
cmp ebx, dword [esp + 0x14]
setb bl
test byte [esp + 0x10], ch
jne 0x47e1fc
and cl, dh
jne 0x47e1fc
mov esi, dword [esp + 4]
and dl, bl
jne 0x47e206
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov eax, esi
mov ecx, esi
xor edx, edx
and eax, 0xfffffff0
sub ecx, eax
nop word cs:[eax + eax]
nop
movups xmm0, xmmword [ebx + edx]
movups xmm1, xmmword [ebp + edx + 0x10]
movups xmm2, xmmword [ebp + edx + 0x40]
xorps xmm2, xmm0
xorps xmm1, xmm0
movups xmmword [ebp + edx + 0x40], xmm2
movups xmmword [edi + edx], xmm1
add edx, 0x10
cmp eax, edx
jne 0x47e1d0
cmp esi, eax
mov esi, edi
jne 0x47e210
jmp 0x47e225
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
jmp 0x47e210
mov ecx, esi
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
movzx edx, byte [ebx + eax]
xor byte [ebp + eax + 0x40], dl
xor dl, byte [ebp + eax + 0x10]
dec ecx
mov byte [esi + eax], dl
lea eax, [eax + 1]
jne 0x47e210
mov dword [ebp + 0x170], eax
mov eax, 1
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret