Function at 0x1004b360
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x50
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
add eax, 0x14
mov dword [esp + 0x4c], eax
mov eax, dword [0x1006238c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0x559f908e
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 0x1004b580
jmp 0x1004b3c2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov bh, byte [edx + eax]
mov esi, 0x14
xor edx, edx
div esi
mov eax, dword [esp + 0x2c]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x5f
mov cl, 0xff
xor cl, 0x5f
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x5f
and bl, cl
mov ecx, dword [esp + 0x48]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
add eax, 0xdacad83e
add eax, 1
sub eax, 0xdacad83e
cmp eax, 0x1c
mov dword [esp + 0x30], eax
jne 0x1004b3c2
mov ecx, dword [0x10063c10]
mov eax, dword [0x10063c0c]
mov edx, ecx
add edx, 0xc6db08a6
sub edx, 1
sub edx, 0xc6db08a6
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl al
mov byte [esp + 0x25], al
mov ah, cl
xor ah, 0xff
mov byte [esp + 0x26], ah
xor al, 0xff
mov byte [esp + 0x27], al
mov dl, 1
xor dl, 0
mov byte [esp + 0x28], dl
and ah, 0
mov byte [esp + 0x29], ah
and cl, dl
mov byte [esp + 0x2a], cl
and al, 0
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2b]
mov ah, byte [esp + 0x2a]
mov dl, byte [esp + 0x29]
mov ch, byte [esp + 0x28]
mov cl, byte [esp + 0x25]
and cl, ch
or dl, ah
mov byte [esp + 0x23], dl
or al, cl
mov byte [esp + 0x24], al
mov cl, byte [esp + 0x27]
mov al, byte [esp + 0x26]
mov ah, byte [esp + 0x24]
mov dl, byte [esp + 0x23]
xor dl, ah
mov byte [esp + 0x21], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x22], al
mov al, byte [esp + 0x22]
mov cl, byte [esp + 0x28]
or cl, 0
and al, cl
mov byte [esp + 0x20], al
mov cl, byte [esp + 0x20]
mov al, byte [esp + 0x21]
or al, cl
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1f]
test al, 1
jne 0x1004b4f2
jmp 0x1004b586
mov eax, dword [0x1006238c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x559f908e], 1
mov eax, dword [0x10063c10]
mov dword [esp + 0x10], eax
mov eax, dword [0x10063c0c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add eax, 0xb372c9a2
sub eax, 1
sub eax, 0xb372c9a2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xa], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xb], al
mov dl, byte [esp + 0xb]
mov cl, byte [esp + 0xa]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 9], al
mov al, byte [esp + 9]
test al, 1
jne 0x1004b57b
jmp 0x1004b586
jmp 0x1004b580
add esp, 0x50
pop esi
pop ebx
ret
mov eax, dword [0x1006238c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x559f908e
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004b4f2