Function at 0x100512f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
add eax, 0x15
mov dword [esp + 0x4c], eax
mov eax, dword [0x100673a8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0x2dc355f8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 1
sete al
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x37]
xor eax, eax
test cl, 1
mov dword [esp + 0x30], eax
jne 0x100513d0
jmp 0x10051353
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x2f], dl
mov edi, 0x15
xor edx, edx
div edi
mov eax, dword [esp + 0x28]
mov edi, edx
mov dh, byte [esp + 0x2f]
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
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0xa
mov dword [esp + 0x30], eax
jne 0x10051353
mov eax, dword [0x100673a8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, 0x2dc355f8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 1
jmp 0x100513d0
mov ecx, dword [0x10068be0]
mov eax, dword [0x10068bdc]
mov edx, ecx
add edx, 0x2c71e9e1
sub edx, 1
sub edx, 0x2c71e9e1
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x1e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x1f], al
mov ch, byte [esp + 0x1f]
mov dh, byte [esp + 0x1e]
mov al, dh
xor al, 0xff
mov cl, ch
xor cl, 0xff
mov bl, 1
xor bl, 0
mov byte [esp + 0x1b], bl
mov dl, al
and dl, 0
and dh, bl
mov ah, cl
and ah, 0
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x1c], dl
or al, cl
mov byte [esp + 0x1d], al
mov al, byte [esp + 0x1d]
xor al, 0xff
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x1b]
or al, 0
mov byte [esp + 0x19], al
mov cl, byte [esp + 0x19]
mov al, byte [esp + 0x1a]
and al, cl
mov byte [esp + 0x18], al
mov cl, byte [esp + 0x18]
mov al, byte [esp + 0x1c]
or al, cl
test al, 1
jne 0x10051477
jmp 0x10051540
mov eax, dword [0x10068be0]
mov dword [esp + 0xc], eax
mov eax, dword [0x10068bdc]
mov dword [esp + 0x10], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x10]
cmp eax, 0xa
setl al
mov byte [esp + 0xa], al
mov cl, byte [esp + 0xa]
mov ah, byte [esp + 0xb]
mov dl, ah
xor dl, 0xff
mov byte [esp + 5], dl
mov al, cl
xor al, 0xff
mov byte [esp + 6], al
mov ch, 1
xor ch, 0
mov byte [esp + 7], ch
and dl, 0
and ah, ch
and al, 0
and cl, ch
or dl, ah
mov byte [esp + 8], dl
or al, cl
mov byte [esp + 9], al
mov al, byte [esp + 7]
mov dl, byte [esp + 6]
mov cl, byte [esp + 5]
mov ch, byte [esp + 9]
mov ah, byte [esp + 8]
xor ah, ch
mov byte [esp + 2], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 3], cl
or al, 0
mov byte [esp + 4], al
mov al, byte [esp + 2]
mov dl, byte [esp + 4]
mov cl, byte [esp + 3]
and cl, dl
or al, cl
test al, 1
jne 0x10051539
jmp 0x10051540
add esp, 0x50
pop esi
pop edi
pop ebx
ret
jmp 0x10051477