Function at 0x4318a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov al, byte [ebx + 8]
mov edi, dword [ebx]
mov dword [ebp - 0x14], edi
test al, al
jne 0x431b4e
mov eax, dword [ebp + 8]
test eax, eax
je 0x4318ce
movzx ecx, word [eax + 8]
jmp 0x4318d0
xor ecx, ecx
mov al, byte [ebx + 9]
mov dword [ebp - 0xc], ecx
cmp al, 8
jae 0x431a49
movzx eax, al
sub eax, 1
je 0x4319e2
sub eax, 1
je 0x43197a
sub eax, 2
jne 0x431a38
and ecx, 0xf
mov eax, ecx
shl ecx, 4
add ecx, eax
lea eax, [edi - 1]
mov dword [ebp - 0xc], ecx
mov esi, eax
lea ecx, [edx - 1]
shr esi, 1
add ecx, edi
and eax, 1
mov dword [ebp - 0x20], ecx
add esi, edx
shl eax, 2
mov ecx, 4
sub ecx, eax
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x431a38
mov dword [ebp - 0x18], edi
mov ebx, ecx
mov edi, dword [ebp - 0x20]
nop word [eax + eax]
mov dl, byte [esi]
lea edi, [edi - 1]
mov cl, bl
shr dl, cl
mov ecx, 4
mov al, dl
shl dl, 4
and al, 0xf
xor al, dl
cmp ebx, 4
mov byte [edi + 1], al
lea eax, [esi - 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp ebx, 4
cmovne eax, ecx
sub dword [ebp - 0x18], 1
mov ebx, eax
jne 0x431940
jmp 0x431a2f
and ecx, 3
lea eax, [edi - 1]
imul ecx, ecx, 0x55
mov esi, eax
and eax, 3
shr esi, 2
mov ebx, 3
add esi, edx
sub ebx, eax
add ebx, ebx
mov dword [ebp - 0xc], ecx
lea ecx, [edx - 1]
add ecx, edi
test edi, edi
je 0x431a35
mov dword [ebp - 0x18], edi
mov edi, ecx
nop dword [eax + eax]
mov dl, byte [esi]
mov cl, bl
shr dl, cl
and dl, 3
mov al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
mov byte [edi], al
cmp ebx, 6
jne 0x4319d6
xor ebx, ebx
dec esi
jmp 0x4319d9
add ebx, 2
dec edi
sub dword [ebp - 0x18], 1
jne 0x4319b0
jmp 0x431a2f
lea eax, [edi - 1]
and ecx, 1
mov esi, eax
imul ecx, ecx, 0xff
shr esi, 3
lea ebx, [edx - 1]
add esi, edx
and eax, 7
mov edx, 7
add ebx, edi
sub edx, eax
mov dword [ebp - 0xc], ecx
test edi, edi
je 0x431a32
nop dword [eax + eax]
mov al, byte [esi]
mov cl, dl
shr al, cl
and al, 1
neg al
sbb al, al
mov byte [ebx], al
cmp edx, 7
jne 0x431a28
xor edx, edx
dec esi
jmp 0x431a29
inc edx
dec ebx
sub edi, 1
jne 0x431a10
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
lea esi, [ebx + 0xb]
mov byte [ebx + 9], 8
mov byte [esi], 8
mov al, 8
mov dword [ebx + 4], edi
jmp 0x431a4c
lea esi, [ebx + 0xb]
cmp dword [ebp + 8], 0
je 0x431d03
cmp al, 8
jne 0x431aab
mov esi, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp - 0xc]
dec esi
movzx eax, al
add edx, edi
mov dword [ebp - 0x20], eax
lea esi, [esi + edi*2]
test edi, edi
je 0x431a94
mov ebx, edi
movzx eax, byte [edx]
lea esi, [esi - 2]
sub eax, dword [ebp - 0x20]
lea edx, [edx - 1]
neg eax
sbb al, al
mov byte [esi + 2], al
mov al, byte [edx + 1]
mov byte [esi + 1], al
sub ebx, 1
jne 0x431a73
mov ebx, dword [ebp - 8]
mov al, byte [ebx + 9]
lea ecx, [ebx + 0xb]
add al, al
mov byte [ebx + 8], 4
mov byte [ebx + 0xa], 2
mov byte [ecx], al
jmp 0x431ce0
cmp al, 0x10
jne 0x431a94
mov eax, dword [ebp - 0xc]
dec edx
mov ecx, eax
mov dword [ebp - 0x18], esi
shr ecx, 8
movzx eax, al
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
add edx, eax
lea ecx, [ecx + eax*2]
dec ecx
test edi, edi
je 0x431b37
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
nop word [eax + eax]
lea eax, [edx - 1]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], eax
movzx eax, byte [eax]
cmp eax, ebx
jne 0x431afd
movzx eax, byte [edx]
cmp eax, dword [ebp - 0x1c]
jne 0x431afd
dec ecx
xor al, al
jmp 0x431b00
dec ecx
or al, 0xff
mov edi, dword [ebp - 0x20]
mov esi, ecx
mov dword [ebp - 0x18], 0xffffffff
mov byte [edi], al
mov byte [ecx], al
mov al, byte [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov byte [ecx + esi], al
add ecx, esi
mov al, byte [edx]
dec edx
mov byte [ecx - 1], al
sub ecx, 2
sub dword [ebp - 0x10], 1
jne 0x431ae0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
jmp 0x431a94
mov ecx, dword [ebp - 0x18]
mov al, byte [ebx + 9]
add al, al
mov byte [ebx + 8], 4
mov byte [ebx + 0xa], 2
mov byte [ecx], al
jmp 0x431ce0
cmp al, 2
jne 0x431d03
mov eax, dword [ebp + 8]
test eax, eax
je 0x431d03
mov cl, byte [ebx + 9]
cmp cl, 8
jne 0x431bf1
mov cl, byte [eax + 2]
mov byte [ebp - 1], cl
mov cl, byte [eax + 4]
mov al, byte [eax + 6]
mov byte [ebp - 3], cl
lea ecx, [edx - 1]
mov byte [ebp - 2], al
lea edx, [edx + edi*4]
mov eax, dword [ebx + 4]
dec edx
add ecx, eax
test edi, edi
je 0x431ccf
mov ah, byte [ebp - 1]
mov bl, byte [ebp - 2]
mov bh, byte [ebp - 3]
mov dword [ebp - 0x10], edi
nop
cmp byte [ecx - 2], ah
jne 0x431bb5
cmp byte [ecx - 1], bh
lea esi, [ecx - 1]
jne 0x431bb5
cmp byte [ecx], bl
jne 0x431bb5
xor al, al
jmp 0x431bba
or al, 0xff
lea esi, [ecx - 1]
mov byte [edx], al
mov al, byte [ecx]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0xffffffff
mov edx, dword [ebp - 0x14]
mov byte [edx + ecx], al
add edx, ecx
mov ecx, esi
mov al, byte [ecx]
mov byte [edx - 1], al
mov al, byte [ecx - 1]
sub ecx, 2
mov byte [edx - 2], al
sub edx, 3
sub dword [ebp - 0x10], 1
jne 0x431ba0
jmp 0x431ccc
cmp cl, 0x10
jne 0x431ccf
movzx ecx, word [eax + 2]
mov dword [ebp - 0x1c], ecx
shr ecx, 8
mov dword [ebp - 0x20], ecx
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebp - 0x28], ecx
shr ecx, 8
mov dword [ebp - 0x30], eax
shr eax, 8
mov dword [ebp - 0x24], ecx
lea ecx, [edx - 1]
mov dword [ebp - 0x2c], eax
lea edx, [edx + edi*8]
mov eax, dword [ebx + 4]
dec edx
add ecx, eax
test edi, edi
je 0x431ccf
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
nop dword [eax + eax]
mov dword [ebp - 0x20], edx
cmp byte [ecx - 5], bl
jne 0x431c76
mov eax, dword [ebp - 0x1c]
cmp byte [ecx - 4], al
jne 0x431c76
mov eax, dword [ebp - 0x24]
cmp byte [ecx - 3], al
jne 0x431c76
mov eax, dword [ebp - 0x28]
cmp byte [ecx - 2], al
jne 0x431c76
mov eax, dword [ebp - 0x2c]
lea esi, [ecx - 1]
cmp byte [esi], al
jne 0x431c76
mov eax, dword [ebp - 0x30]
cmp byte [ecx], al
jne 0x431c76
dec edx
xor al, al
jmp 0x431c7c
dec edx
lea esi, [ecx - 1]
or al, 0xff
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0xffffffff
mov byte [edi], al
mov byte [edx], al
mov al, byte [ecx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov byte [edx + ecx], al
add edx, ecx
mov ecx, esi
mov al, byte [ecx]
mov byte [edx - 1], al
mov al, byte [ecx - 1]
mov byte [edx - 2], al
mov al, byte [ecx - 2]
mov byte [edx - 3], al
mov al, byte [ecx - 3]
mov byte [edx - 4], al
mov al, byte [ecx - 4]
sub ecx, 5
mov byte [edx - 5], al
sub edx, 6
sub dword [ebp - 0xc], 1
jne 0x431c40
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov al, byte [ebx + 9]
shl al, 2
mov byte [ebx + 8], 6
mov byte [ebx + 0xa], 4
mov byte [ebx + 0xb], al
movzx ecx, al
cmp al, 8
jb 0x431cf7
shr ecx, 3
imul ecx, edi
pop edi
pop esi
mov dword [ebx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret
imul ecx, edi
add ecx, 7
shr ecx, 3
mov dword [ebx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret