Function at 0x1004c610
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x64], eax
mov eax, dword [0x10063bf0]
mov dword [esp + 0x68], eax
mov eax, dword [0x10063bec]
mov dword [esp + 0x58], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
add eax, ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x68]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x52], dl
xor al, cl
mov byte [esp + 0x53], al
mov cl, byte [esp + 0x53]
mov al, byte [esp + 0x52]
or al, cl
mov byte [esp + 0x51], al
mov al, byte [esp + 0x51]
test al, 1
jne 0x1004c69d
jmp 0x1004c8e1
mov eax, dword [0x10063bf0]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [0x10063bec]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x49], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x4a], cl
xor al, 0xff
mov byte [esp + 0x4b], al
mov al, byte [esp + 0x4a]
xor al, 0xff
mov byte [esp + 0x48], al
mov al, byte [esp + 0x48]
mov cl, byte [esp + 0x49]
mov ah, byte [esp + 0x4b]
mov dl, 1
xor dl, 0
mov byte [esp + 0x44], dl
and ah, 0
mov byte [esp + 0x45], ah
and cl, dl
mov byte [esp + 0x46], cl
and al, 0
mov byte [esp + 0x47], al
mov cl, byte [esp + 0x47]
mov ah, byte [esp + 0x46]
mov al, byte [esp + 0x45]
mov ch, byte [esp + 0x44]
mov dl, byte [esp + 0x4a]
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x43], al
mov al, byte [esp + 0x43]
mov dl, byte [esp + 0x44]
mov ah, byte [esp + 0x48]
mov cl, byte [esp + 0x4b]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1004c754
jmp 0x1004c8e1
mov eax, dword [0x10063bf0]
mov dword [esp + 0x3c], eax
mov eax, dword [0x10063bec]
mov dword [esp + 0x34], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x2f], al
mov al, byte [esp + 0x2f]
test al, 1
jne 0x1004c7b6
jmp 0x1004c8c2
mov eax, dword [esp + 0x60]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x100623a0]
cmp dword [eax + 0x2dd9aaec], 1
sete al
mov byte [esp + 0x23], al
mov eax, dword [0x10063bf0]
mov dword [esp + 0x24], eax
mov eax, dword [0x10063bec]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
sub eax, 0x891ccd9c
sub eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, 0x891ccd9c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1004c836
jmp 0x1004c8c2
mov cl, byte [esp + 0x23]
xor eax, eax
test cl, 1
mov dword [esp + 0x10], eax
jne 0x1004c8bb
jmp 0x1004c84e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x28]
mov dh, byte [edx + eax]
mov edi, eax
and edi, 0xf
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0x45b11a73
add eax, 1
sub eax, 0x45b11a73
cmp eax, 0x15
mov dword [esp + 0x10], eax
jne 0x1004c84e
mov eax, dword [0x100623a0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x2dd9aaec
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1004c8bb
add esp, 0x6c
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x100623a0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x2dd9aaec
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x1004c7b6
jmp 0x1004c69d