Function at 0x4706c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [esp + 0x4c]
mov esi, 0xffffffe0
mov ebx, 0xf
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, dword [esp + 0x5c]
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebx, ecx
jb 0x470c45
mov eax, dword [edi + 0x170]
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
mov esi, edi
cmp dword [edi + 0x16c], 0
mov dword [esp + 0x20], eax
je 0x4707f4
movzx ebx, byte [esi + 0x4f]
mov dword [esp], 0
mov edx, ebx
and edx, 0xf
shl edx, 4
mov eax, dword [esi + edx + 0x60]
mov ecx, dword [esi + edx + 0x64]
mov edi, dword [esi + edx + 0x6c]
mov ebp, dword [esi + edx + 0x68]
jmp 0x47079e
mov ebx, dword [esp]
mov ebp, dword [esp + 0x4c]
dec dword [esp]
movzx esi, byte [esi + ebx + 0x4e]
mov ebx, ecx
shr ecx, 4
shld ebx, edx, 0x1c
shld edx, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
mov dword [esp + 0xc], esi
and esi, 0xf
shl esi, 4
xor ecx, dword [ebp + esi + 0x64]
xor ecx, dword [edi*4 + 0x58128c]
mov edi, dword [esp + 0x4c]
xor ebx, dword [edi + esi + 0x60]
mov edi, dword [esp + 0x4c]
xor edx, dword [edi + esi + 0x6c]
mov edi, dword [esp + 0x4c]
xor eax, dword [edi + esi + 0x68]
mov esi, dword [esp + 0x4c]
mov edi, edx
mov ebp, eax
mov eax, ebx
mov ebx, dword [esp + 0xc]
mov edx, ecx
and ebx, 0xfffffff0
shr ecx, 4
xor ecx, dword [esi + ebx + 0x64]
shld edx, eax, 0x1c
shld eax, edi, 0x1c
shld edi, ebp, 0x1c
and ebp, 0xf
xor edx, dword [esi + ebx + 0x60]
xor eax, dword [esi + ebx + 0x6c]
xor edi, dword [esi + ebx + 0x68]
xor ecx, dword [ebp*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
jne 0x470740
bswap ecx
bswap edx
bswap eax
bswap edi
mov dword [esi + 0x44], edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x16c], 0
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov edi, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x168]
test eax, eax
je 0x470948
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x470c3a
nop dword [eax]
mov ebx, edx
mov edx, dword [esp + 8]
mov ch, byte [esi + eax + 0x10]
mov cl, byte [edx]
inc edx
mov dword [esp + 8], edx
xor ch, cl
mov byte [ebp], ch
xor byte [esi + eax + 0x40], cl
inc eax
inc ebp
lea ecx, [ebx - 1]
and eax, 0xf
je 0x47084b
cmp ebx, 1
mov edx, ecx
jne 0x470820
test eax, eax
jne 0x470c3a
movzx ebx, byte [esi + 0x4f]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp], 0
mov ecx, ebx
and ecx, 0xf
shl ecx, 4
mov eax, dword [esi + ecx + 0x60]
mov ebp, dword [esi + ecx + 0x64]
mov edx, dword [esi + ecx + 0x6c]
mov edi, dword [esi + ecx + 0x68]
jmp 0x4708ee
mov edi, dword [esp]
mov ebx, ebp
shr ebp, 4
dec dword [esp]
shld ebx, ecx, 0x1c
shld ecx, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
movzx esi, byte [esi + edi + 0x4e]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
and esi, 0xf
shl esi, 4
xor ebp, dword [edi + esi + 0x64]
xor ebp, dword [edx*4 + 0x58128c]
mov edx, dword [esp + 0x4c]
xor ebx, dword [edx + esi + 0x60]
mov edx, dword [esp + 0x4c]
xor ecx, dword [edx + esi + 0x6c]
mov edx, dword [esp + 0x4c]
xor eax, dword [edx + esi + 0x68]
mov esi, dword [esp + 0x4c]
mov edx, ecx
mov edi, eax
mov eax, ebx
mov ebx, dword [esp + 0xc]
mov ecx, ebp
and ebx, 0xfffffff0
shr ebp, 4
xor ebp, dword [esi + ebx + 0x64]
shld ecx, eax, 0x1c
shld eax, edx, 0x1c
shld edx, edi, 0x1c
and edi, 0xf
xor ecx, dword [esi + ebx + 0x60]
xor eax, dword [esi + ebx + 0x6c]
xor edx, dword [esi + ebx + 0x68]
xor ebp, dword [edi*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
jne 0x470890
bswap ebp
bswap ecx
bswap eax
mov edi, dword [esp + 0x14]
bswap edx
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 4]
mov dword [esi + 0x4c], edx
jmp 0x47094c
mov eax, dword [esp + 0x5c]
bswap edi
cmp eax, 0x10
jb 0x470c2c
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ecx
lea ecx, [eax - 0x10]
mov edx, ecx
mov ebx, ecx
mov dword [esp + 0x30], ecx
and edx, 0xfffffff0
shr ebx, 4
lea ecx, [edx + 0x10]
add ebx, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ebx
lea edx, [ecx + edx + 0x10]
mov ebx, ecx
mov dword [esp + 0x10], edx
nop word cs:[eax + eax]
nop dword [eax]
mov dword [esp + 4], eax
push dword [esp + 0x50]
push dword [esp + 0x38]
push esi
call dword [esp + 0x2c]
add esp, 0xc
inc edi
mov eax, edi
mov dword [esp + 0x14], edi
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
mov ecx, dword [esi + 0x10]
xor ecx, eax
mov dword [ebp], ecx
xor dword [esi + 0x40], eax
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [esi + 0x44], eax
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [ebp + 8], ecx
xor dword [esi + 0x48], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ebp
mov ecx, esi
mov dword [esp], 0
mov ebx, dword [ebx + 0xc]
mov eax, dword [esi + 0x1c]
xor eax, ebx
mov dword [ebp + 0xc], eax
xor ebx, dword [esi + 0x4c]
mov dword [esi + 0x4c], ebx
shr ebx, 0x18
mov edx, ebx
and edx, 0xf
shl edx, 4
mov eax, dword [esi + edx + 0x60]
mov edi, dword [esi + edx + 0x64]
mov ebp, dword [esi + edx + 0x6c]
mov esi, dword [esi + edx + 0x68]
jmp 0x470a7e
mov ecx, dword [esp]
dec dword [esp]
movzx ebx, byte [esi + ecx + 0x4e]
mov ecx, esi
mov esi, ebx
mov dword [esp + 0xc], ebx
mov ebx, edi
shr edi, 4
and esi, 0xf
shld ebx, edx, 0x1c
shld edx, eax, 0x1c
shld eax, ebp, 0x1c
and ebp, 0xf
shl esi, 4
xor edi, dword [ecx + esi + 0x64]
xor ebx, dword [ecx + esi + 0x60]
xor eax, dword [ecx + esi + 0x68]
xor edx, dword [ecx + esi + 0x6c]
xor edi, dword [ebp*4 + 0x58128c]
mov esi, eax
mov eax, ebx
mov ebx, dword [esp + 0xc]
mov ebp, edx
mov edx, edi
and ebx, 0xfffffff0
shr edi, 4
xor edi, dword [ecx + ebx + 0x64]
shld edx, eax, 0x1c
shld eax, ebp, 0x1c
shld ebp, esi, 0x1c
and esi, 0xf
xor edx, dword [ecx + ebx + 0x60]
xor eax, dword [ecx + ebx + 0x6c]
xor ebp, dword [ecx + ebx + 0x68]
xor edi, dword [esi*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
mov esi, ecx
jne 0x470a30
bswap edx
bswap edi
bswap eax
bswap ebp
mov ebx, dword [esp + 8]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov eax, dword [esp + 4]
mov dword [esi + 0x4c], ebp
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
add ebx, 0x10
add eax, 0xfffffff0
add ebp, 0x10
cmp eax, 0xf
ja 0x4709a0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
inc ecx
add ebp, dword [esp + 0x24]
sub eax, dword [esp + 0x28]
mov edi, ecx
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x470c38
mov ebx, edi
mov edi, esi
lea esi, [esi + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
push dword [esp + 0x50]
push esi
push edi
call dword [esp + 0x2c]
add esp, 0xc
inc ebx
xor eax, eax
mov edx, 0
bswap ebx
mov dword [edi + 0xc], ebx
mov edi, dword [esp + 4]
cmp edi, 0x10
mov ecx, edi
jb 0x470bfd
mov ecx, dword [esp + 0x4c]
lea edx, [ebp + edi]
mov ebx, dword [esp + 0x10]
cmp edx, esi
seta byte [esp]
lea ecx, [ecx + edi + 0x40]
mov edi, dword [esp + 4]
cmp ebp, ecx
setb byte [esp + 0xc]
lea edi, [ebx + edi]
cmp edi, esi
seta byte [esp + 8]
cmp ebx, ecx
mov cl, byte [esp + 0xc]
setb byte [esp + 0x14]
cmp ebp, edi
mov edi, dword [esp + 4]
setb byte [esp + 0x1c]
cmp ebx, edx
mov edx, 0
setb bl
test byte [esp], cl
mov ecx, edi
jne 0x470bfd
mov cl, byte [esp + 0x14]
mov edx, 0
and byte [esp + 8], cl
mov ecx, edi
jne 0x470bfd
and byte [esp + 0x1c], bl
mov ecx, edi
mov edx, 0
jne 0x470bfd
mov edx, edi
mov ecx, edi
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10]
xor esi, esi
and edx, 0xfffffff0
sub ecx, edx
nop dword [eax]
movups xmm0, xmmword [ebx + esi]
movups xmm1, xmmword [edi + esi + 0x10]
movups xmm2, xmmword [edi + esi + 0x40]
xorps xmm2, xmm0
xorps xmm1, xmm0
movups xmmword [edi + esi + 0x40], xmm2
movups xmmword [ebp + esi], xmm1
add esi, 0x10
cmp edx, esi
jne 0x470bd0
mov edi, dword [esp + 4]
cmp edi, edx
je 0x470c24
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x4c]
add ebp, edx
add ebx, edx
lea esi, [esi + edx + 0x40]
nop dword [eax]
movzx edx, byte [ebx + eax]
xor byte [esi + eax], dl
xor dl, byte [esi + eax - 0x30]
mov byte [ebp + eax], dl
inc eax
cmp ecx, eax
jne 0x470c10
mov esi, dword [esp + 0x4c]
mov eax, edi
jmp 0x470c3a
mov ecx, dword [esp + 8]
test eax, eax
jne 0x470b11
xor eax, eax
mov dword [esi + 0x168], eax
mov eax, 1
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret