Function at 0x47e240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
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 0x47e89e
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], ecx
cmp dword [ebp + 0x174], 0
je 0x47e35a
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 0x47e2fe
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 0x47e2b0
mov edi, dword [esp + 0x48]
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 [ebp + 0x170]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
test eax, eax
je 0x47e488
test edi, edi
je 0x47e893
nop dword [eax + eax]
movzx ecx, byte [ebp + eax + 0x10]
xor cl, byte [edx]
inc edx
mov byte [ebx], cl
xor byte [ebp + eax + 0x40], cl
inc eax
inc ebx
and eax, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x47e39f
test eax, eax
jne 0x47e380
test eax, eax
jne 0x47e893
mov dword [esp + 8], ebx
movzx ebx, byte [ebp + 0x4f]
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
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 0x47e42e
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 0x47e3e0
bswap ecx
bswap esi
bswap edx
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
bswap eax
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x4c], edx
mov edx, dword [esp + 4]
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0xc]
cmp edi, 0xc00
bswap esi
jb 0x47e607
nop dword [eax]
mov dword [esp + 0xc], edi
push ebp
push dword [esp + 0x40]
push 0xc0
push ebx
mov dword [esp + 0x14], edx
push edx
call dword [esp + 0x60]
add esp, 0x14
add esi, 0xc0
mov dword [esp + 8], ebx
mov eax, esi
mov dword [esp + 0x14], esi
bswap eax
mov dword [ebp + 0xc], eax
mov eax, 0xc00
mov dl, byte [ebp + 0x4f]
nop dword [eax + eax]
xor dl, byte [ebx + 0xf]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 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 0x47e56c
mov eax, dword [esp + 0x18]
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, 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 + 0x38]
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 0x47e510
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
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 0x47e4e0
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x14]
add edi, 0xfffff400
add ebx, 0xc00
add edx, 0xc00
cmp edi, 0xbff
ja 0x47e4a0
mov eax, edi
and eax, 0xfffffff0
je 0x47e781
mov dword [esp + 0x14], esi
mov esi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
shr esi, 4
push ebp
push dword [esp + 0x40]
push esi
push ebx
push edx
mov edi, eax
call dword [esp + 0x60]
add esp, 0x14
mov eax, dword [esp + 0x14]
add dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x20], edi
add eax, esi
mov dword [esp + 0x14], eax
bswap eax
mov dword [ebp + 0xc], eax
mov dl, byte [ebp + 0x4f]
nop word cs:[eax + eax]
nop dword [eax]
xor dl, byte [ebx + 0xf]
mov dword [esp + 0x18], ebx
mov ecx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp], 0
movzx ebx, dl
mov eax, ebx
and eax, 0xf
shl eax, 4
mov edi, dword [ebp + eax + 0x60]
mov ebp, dword [ebp + eax + 0x64]
mov edx, dword [ecx + eax + 0x6c]
mov eax, dword [ecx + eax + 0x68]
jmp 0x47e6fc
mov eax, dword [esp + 0x18]
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, ebp
shr ebp, 4
shld ecx, esi, 0x1c
shld esi, edi, 0x1c
shld edi, edx, 0x1c
and edx, 0xf
movzx eax, al
mov dword [esp + 0x10], eax
and eax, 0xf
shl eax, 4
xor ebp, dword [ebx + eax + 0x64]
xor ecx, dword [ebx + eax + 0x60]
xor esi, dword [ebx + eax + 0x6c]
xor edi, dword [ebx + eax + 0x68]
mov ebx, dword [esp + 0x10]
xor ebp, dword [edx*4 + 0x522730]
mov eax, edi
mov edx, esi
mov edi, ecx
mov ecx, dword [esp + 0x38]
mov esi, ebp
and ebx, 0xfffffff0
shr ebp, 4
shld esi, edi, 0x1c
shld edi, edx, 0x1c
shld edx, eax, 0x1c
and eax, 0xf
xor ebp, dword [ecx + ebx + 0x64]
xor esi, dword [ecx + ebx + 0x60]
xor edi, dword [ecx + ebx + 0x6c]
xor edx, dword [ecx + ebx + 0x68]
xor ebp, dword [eax*4 + 0x522730]
cmp dword [esp], 0xfffffff1
jne 0x47e6a0
mov eax, dword [esp + 0x38]
bswap ebp
bswap esi
bswap edi
mov ebx, dword [esp + 0x18]
bswap edx
mov dword [eax + 0x40], ebp
mov dword [eax + 0x44], esi
mov dword [eax + 0x48], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + 0x4c], edx
add ebx, 0x10
shr edx, 0x18
mov ebp, eax
add edi, 0xfffffff0
jne 0x47e660
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x14]
sub edi, eax
add ebx, eax
test edi, edi
je 0x47e7b7
lea eax, [ebp + 0x10]
mov dword [esp + 4], edx
push dword [esp + 0x3c]
mov dword [esp + 4], eax
push eax
push ebp
call dword [ebp + 0x168]
add esp, 0xc
inc esi
xor eax, eax
cmp edi, 0x10
bswap esi
mov dword [ebp + 0xc], esi
jae 0x47e7be
mov esi, dword [esp + 4]
mov ecx, edi
jmp 0x47e880
xor eax, eax
jmp 0x47e893
lea ecx, [ebx + edi]
lea edx, [ebp + edi + 0x40]
mov esi, dword [esp + 4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ecx
mov ecx, edi
cmp ebx, edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp]
mov edx, dword [esp + 0x14]
setb byte [esp + 0x10]
lea edi, [esi + edi]
cmp edx, ecx
seta byte [esp + 0x1c]
cmp ebx, edi
setb bh
cmp esi, edx
setb dh
cmp edi, ecx
mov cl, byte [esp + 0x1c]
seta dl
cmp esi, dword [esp + 0x18]
setb bl
test byte [esp + 0x10], cl
jne 0x47e86c
and bh, dh
jne 0x47e86c
mov esi, dword [esp + 0xc]
and dl, bl
jne 0x47e876
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
mov eax, esi
mov ecx, esi
xor edx, edx
and eax, 0xfffffff0
sub ecx, eax
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [edi + edx]
movups xmm1, xmmword [ebp + edx + 0x10]
xorps xmm1, xmm0
movups xmmword [ebx + edx], xmm1
movups xmm0, xmmword [ebp + edx + 0x40]
xorps xmm0, xmm1
movups xmmword [ebp + edx + 0x40], xmm0
add edx, 0x10
cmp eax, edx
jne 0x47e840
cmp esi, eax
mov esi, edi
jne 0x47e880
jmp 0x47e893
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
jmp 0x47e880
mov ecx, esi
mov ebx, dword [esp + 8]
mov esi, dword [esp + 4]
movzx edx, byte [ebp + eax + 0x10]
xor dl, byte [esi + eax]
mov byte [ebx + eax], dl
xor byte [ebp + eax + 0x40], dl
inc eax
dec ecx
jne 0x47e880
mov dword [ebp + 0x170], eax
mov eax, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret