Function at 0x1003b870
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x78
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [0x10066ce0]
mov dword [esp + 0x6c], eax
mov ecx, dword [0x10066cdc]
mov dword [esp + 0x70], ecx
sub eax, 0x7cdea38f
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
sub eax, 1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
add eax, 0x7cdea38f
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x5b], al
mov al, byte [esp + 0x5b]
mov ecx, dword [esp + 0x70]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x59], dl
xor al, cl
mov byte [esp + 0x5a], al
mov cl, byte [esp + 0x5a]
mov al, byte [esp + 0x59]
or al, cl
test al, 1
jne 0x1003b90a
jmp 0x1003bb72
mov eax, dword [esp + 0x64]
add eax, 0x1f
mov dword [esp + 0x50], eax
mov eax, dword [0x10065324]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
cmp dword [eax + 0x5e11b757], 1
sete al
mov byte [esp + 0x47], al
mov eax, dword [0x10066ce0]
mov ecx, dword [0x10066cdc]
mov dword [esp + 0x48], ecx
mov ecx, eax
add ecx, 0x4b2800ab
sub ecx, 1
sub ecx, 0x4b2800ab
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x4f], al
mov eax, dword [esp + 0x48]
cmp eax, 0xa
setl al
mov byte [esp + 0x46], al
mov cl, byte [esp + 0x46]
mov al, byte [esp + 0x4f]
and al, cl
mov byte [esp + 0x45], al
mov al, byte [esp + 0x45]
mov dl, byte [esp + 0x46]
mov cl, byte [esp + 0x4f]
xor cl, dl
or al, cl
mov byte [esp + 0x44], al
mov al, byte [esp + 0x44]
test al, 1
jne 0x1003b9a1
jmp 0x1003bb72
mov cl, byte [esp + 0x47]
xor eax, eax
test cl, 1
mov dword [esp + 0x40], eax
jne 0x1003bb47
jmp 0x1003b9b9
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov bh, byte [edx + eax]
mov esi, 0x1f
xor edx, edx
div esi
mov eax, dword [esp + 0x3c]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xa8
mov cl, 0xff
xor cl, 0xa8
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xa8
and bl, cl
mov ecx, dword [esp + 0x68]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0xd
mov dword [esp + 0x40], eax
jne 0x1003b9b9
mov eax, dword [0x10066ce0]
mov dword [esp + 0x38], eax
mov eax, dword [0x10066cdc]
mov dword [esp + 0x30], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, 0
sete al
mov byte [esp + 0x29], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x2a], cl
and al, cl
mov byte [esp + 0x2b], al
mov cl, byte [esp + 0x2a]
mov al, byte [esp + 0x29]
xor al, cl
mov byte [esp + 0x28], al
mov cl, byte [esp + 0x28]
mov al, byte [esp + 0x2b]
or al, cl
test al, 1
jne 0x1003ba8e
jmp 0x1003bb4d
mov eax, dword [0x10065324]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, 0x5e11b757
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 1
mov eax, dword [0x10066ce0]
mov ecx, dword [0x10066cdc]
mov dword [esp + 0x18], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x1f], al
mov ah, byte [esp + 0x1f]
mov ecx, dword [esp + 0x18]
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x14], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x15], cl
mov ch, 1
xor ch, 0
mov byte [esp + 0x16], ch
and al, 0
and ah, ch
and cl, 0
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x17], al
mov al, byte [esp + 0x17]
mov dl, byte [esp + 0x16]
mov ah, byte [esp + 0x15]
mov cl, byte [esp + 0x14]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
test al, 1
jne 0x1003bb42
jmp 0x1003bb4d
jmp 0x1003bb47
add esp, 0x78
pop esi
pop ebx
ret
mov eax, dword [0x10065324]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x5e11b757
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1003ba8e
mov eax, dword [0x10065324]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x5e11b757
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x1003b90a