Function at 0x470100
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
mov esi, 0xffffffe0
mov ebp, 0xf
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, ebx
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebp, ecx
jb 0x4706aa
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 0x470248
movzx ebp, byte [esi + 0x4f]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x4c]
mov dword [esp], 0
mov esi, ebp
and esi, 0xf
shl esi, 4
mov ebx, dword [edi + esi + 0x68]
mov eax, dword [eax + esi + 0x60]
mov ecx, dword [ecx + esi + 0x64]
mov edx, dword [edx + esi + 0x6c]
mov esi, dword [esp + 0x4c]
mov edi, ebp
jmp 0x4701ee
mov edi, dword [esp]
mov ebx, dword [esp + 0x4c]
dec dword [esp]
movzx esi, byte [esi + edi + 0x4e]
mov edi, ecx
shr ecx, 4
shld edi, ebp, 0x1c
shld ebp, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
mov dword [esp + 0xc], esi
and esi, 0xf
shl esi, 4
xor ecx, dword [ebx + esi + 0x64]
xor ecx, dword [edx*4 + 0x58128c]
mov edx, dword [esp + 0x4c]
xor edi, dword [edx + esi + 0x60]
mov edx, dword [esp + 0x4c]
xor ebp, dword [edx + esi + 0x6c]
mov edx, dword [esp + 0x4c]
xor eax, dword [edx + esi + 0x68]
mov esi, dword [esp + 0x4c]
mov edx, ebp
mov ebx, eax
mov eax, edi
mov edi, dword [esp + 0xc]
mov ebp, ecx
and edi, 0xfffffff0
shr ecx, 4
xor ecx, dword [esi + edi + 0x64]
shld ebp, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebx, 0x1c
and ebx, 0xf
xor ebp, dword [esi + edi + 0x60]
xor eax, dword [esi + edi + 0x6c]
xor edx, dword [esi + edi + 0x68]
xor ecx, dword [ebx*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
jne 0x470190
mov ebx, dword [esp + 0x5c]
bswap ecx
bswap ebp
bswap eax
bswap edx
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x16c], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov edx, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x168]
test eax, eax
je 0x47039c
test ebx, ebx
je 0x47069f
nop dword [eax]
movzx ecx, byte [esi + eax + 0x10]
mov ebp, dword [esp + 8]
xor cl, byte [ebp]
inc ebp
mov dword [esp + 8], ebp
mov byte [edi], cl
xor byte [esi + eax + 0x40], cl
inc eax
inc edi
and eax, 0xf
cmp ebx, 1
lea ebx, [ebx - 1]
je 0x470298
test eax, eax
jne 0x470270
test eax, eax
jne 0x47069f
movzx ecx, byte [esi + 0x4f]
mov dword [esp + 4], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
mov dword [esp], 0
mov dword [esp + 0xc], ecx
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 ecx, dword [esi + ecx + 0x68]
mov dword [esp + 0x14], ecx
jmp 0x47033c
mov edi, dword [esp]
mov ebx, dword [esp + 0x4c]
dec dword [esp]
movzx esi, byte [esi + edi + 0x4e]
mov edi, ebp
shr ebp, 4
shld edi, ecx, 0x1c
shld ecx, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
mov dword [esp + 0xc], esi
and esi, 0xf
shl esi, 4
xor ebp, dword [ebx + esi + 0x64]
xor ebp, dword [edx*4 + 0x58128c]
mov edx, dword [esp + 0x4c]
xor edi, 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 dword [esp + 0x14], eax
mov eax, edi
mov ebx, dword [esp + 0xc]
mov ecx, ebp
mov edi, dword [esp + 0x14]
shr ebp, 4
shld ecx, eax, 0x1c
shld eax, edx, 0x1c
and ebx, 0xfffffff0
shld edx, edi, 0x1c
and edi, 0xf
xor ebp, dword [esi + ebx + 0x64]
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 0x4702e0
bswap ebp
bswap ecx
bswap edx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
bswap eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4c], edx
mov edx, dword [esp + 4]
mov dword [esi + 0x48], eax
bswap edx
cmp ebx, 0x10
jb 0x47068d
lea eax, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 4], edx
mov dword [esp + 0x34], eax
lea eax, [ebx - 0x10]
mov ecx, eax
mov ebp, eax
mov dword [esp + 0x2c], eax
and ecx, 0xfffffff0
shr ebp, 4
lea eax, [ecx + 0x10]
mov dword [esp + 0x28], ecx
add ebp, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x30], ebp
lea ecx, [eax + ecx + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov edi, eax
nop dword [eax + eax]
mov dword [esp + 0x18], ebx
push dword [esp + 0x50]
push dword [esp + 0x38]
push esi
mov ebx, ecx
call dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, esi
inc eax
mov dword [esp + 4], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
xor dword [esi + 0x40], eax
mov eax, dword [esi + 0x14]
xor eax, dword [edi + 4]
mov dword [ebx + 4], eax
xor dword [esi + 0x44], eax
mov eax, dword [esi + 0x18]
xor eax, dword [edi + 8]
mov dword [ebx + 8], eax
xor dword [esi + 0x48], eax
mov dword [esp + 8], edi
mov dword [esp + 0x14], ebx
mov dword [esp], 0
mov ebp, dword [esi + 0x1c]
xor ebp, dword [edi + 0xc]
mov dword [ebx + 0xc], ebp
xor ebp, dword [esi + 0x4c]
mov dword [esi + 0x4c], ebp
shr ebp, 0x18
mov edx, ebp
and edx, 0xf
shl edx, 4
mov eax, dword [esi + edx + 0x60]
mov ebx, dword [esi + edx + 0x64]
mov edi, dword [esi + edx + 0x6c]
mov esi, dword [esi + edx + 0x68]
jmp 0x4704ce
mov ecx, dword [esp]
dec dword [esp]
movzx ebp, byte [esi + ecx + 0x4e]
mov ecx, esi
mov esi, ebp
mov dword [esp + 0xc], ebp
mov ebp, ebx
shr ebx, 4
and esi, 0xf
shld ebp, edx, 0x1c
shld edx, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
shl esi, 4
xor ebx, dword [ecx + esi + 0x64]
xor ebp, dword [ecx + esi + 0x60]
xor eax, dword [ecx + esi + 0x68]
xor edx, dword [ecx + esi + 0x6c]
xor ebx, dword [edi*4 + 0x58128c]
mov esi, eax
mov eax, ebp
mov ebp, dword [esp + 0xc]
mov edi, edx
mov edx, ebx
and ebp, 0xfffffff0
shr ebx, 4
xor ebx, dword [ecx + ebp + 0x64]
shld edx, eax, 0x1c
shld eax, edi, 0x1c
shld edi, esi, 0x1c
and esi, 0xf
xor edx, dword [ecx + ebp + 0x60]
xor eax, dword [ecx + ebp + 0x6c]
xor edi, dword [ecx + ebp + 0x68]
xor ebx, dword [esi*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
mov esi, ecx
jne 0x470480
bswap ebx
bswap edx
bswap edi
mov ecx, dword [esp + 0x14]
bswap eax
mov dword [esi + 0x40], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x44], edx
mov dword [esi + 0x4c], edi
mov edi, dword [esp + 8]
mov dword [esi + 0x48], eax
add ecx, 0x10
add ebx, 0xfffffff0
add edi, 0x10
cmp ebx, 0xf
ja 0x4703f0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add edi, dword [esp + 0x24]
sub ebx, dword [esp + 0x28]
inc eax
mov edx, eax
test ebx, ebx
je 0x47069d
mov dword [esp + 0x10], edi
mov edi, esi
lea esi, [esi + 0x10]
push dword [esp + 0x50]
push esi
push edi
mov ebp, edx
call dword [esp + 0x2c]
add esp, 0xc
inc ebp
xor eax, eax
cmp ebx, 0x10
mov ecx, ebx
mov dword [esp + 0x18], ebx
bswap ebp
mov dword [edi + 0xc], ebp
mov ebp, 0
jb 0x470650
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
lea ecx, [ebp + ebx]
lea edx, [edx + ebx + 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
cmp ebp, edx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 4]
setb byte [esp]
lea edi, [ecx + ebx]
cmp edx, esi
seta byte [esp + 8]
cmp ebp, edi
mov ebp, 0
setb byte [esp + 0x14]
cmp ecx, edx
setb byte [esp + 4]
cmp edi, esi
seta byte [esp + 0x20]
cmp ecx, dword [esp + 0xc]
mov cl, byte [esp + 8]
setb dl
test byte [esp], cl
mov ecx, ebx
jne 0x470650
mov cl, byte [esp + 4]
mov ebp, 0
and byte [esp + 0x14], cl
mov ecx, ebx
jne 0x470650
and byte [esp + 0x20], dl
mov ebp, 0
mov ecx, ebx
jne 0x470650
mov ebp, ebx
mov ecx, ebx
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
xor esi, esi
and ebp, 0xfffffff0
sub ecx, ebp
nop
movups xmm0, xmmword [edx + esi]
movups xmm1, xmmword [edi + esi + 0x10]
xorps xmm1, xmm0
movups xmmword [ebx + esi], xmm1
movups xmm0, xmmword [edi + esi + 0x40]
xorps xmm0, xmm1
movups xmmword [edi + esi + 0x40], xmm0
add esi, 0x10
cmp ebp, esi
jne 0x470620
mov ebx, dword [esp + 0x18]
cmp ebx, ebp
jne 0x470650
mov eax, ebx
jmp 0x470687
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
add ebx, ebp
lea esi, [esi + ebp + 0x40]
add edi, ebp
nop word cs:[eax + eax]
nop
movzx edx, byte [esi + eax - 0x30]
xor dl, byte [ebx + eax]
mov byte [edi + eax], dl
xor byte [esi + eax], dl
inc eax
cmp ecx, eax
jne 0x470670
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
jmp 0x47069f
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x470559
xor eax, eax
mov dword [esi + 0x168], eax
mov eax, 1
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret