Function at 0x10047420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x78
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x70], eax
mov eax, dword [0x10066c50]
mov dword [esp + 0x74], eax
mov eax, dword [0x10066c4c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
sub eax, 0x6b59f36c
sub eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
add edx, 0x6b59f36c
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x62], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x63], al
mov dl, byte [esp + 0x63]
mov cl, byte [esp + 0x62]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x61], al
mov al, byte [esp + 0x61]
test al, 1
jne 0x100474ae
jmp 0x10047707
mov eax, dword [esp + 0x6c]
add eax, 0x11
mov dword [esp + 0x4c], eax
mov eax, dword [0x1006536c]
cmp dword [eax - 0x47f5f8df], 1
sete al
mov byte [esp + 0x53], al
mov eax, dword [0x10066c50]
mov dword [esp + 0x54], eax
mov ecx, dword [0x10066c4c]
mov dword [esp + 0x58], ecx
add eax, 0xafced8b8
sub eax, 1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
sub eax, 0xafced8b8
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
imul eax, ecx
and eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
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 + 0x43], al
mov al, byte [esp + 0x43]
test al, 1
jne 0x1004753b
jmp 0x10047707
mov cl, byte [esp + 0x53]
xor eax, eax
test cl, 1
mov dword [esp + 0x3c], eax
jne 0x100475dd
jmp 0x10047553
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov bh, byte [edx + eax]
mov esi, 0x11
xor edx, edx
div esi
mov eax, dword [esp + 0x38]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x33
mov cl, 0xff
xor cl, 0x33
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x33
and bl, cl
mov ecx, dword [esp + 0x70]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 2
mov dword [esp + 0x3c], eax
jne 0x10047553
mov eax, dword [0x1006536c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
add eax, 0xb80a0721
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [eax], 1
jmp 0x100475dd
mov eax, dword [0x10066c50]
mov dword [esp + 0x24], eax
mov ecx, dword [0x10066c4c]
mov dword [esp + 0x28], ecx
sub eax, 0xf0282623
sub eax, 1
add eax, 0xf0282623
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
imul eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
and ecx, 1
cmp ecx, 0
sete dh
cmp eax, 0xa
setl ch
mov al, dh
xor al, 0xff
mov cl, ch
xor cl, 0xff
mov bl, 1
xor bl, 0
mov byte [esp + 0x1d], 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 + 0x1e], dl
or al, cl
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1f]
xor al, 0xff
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x1e]
mov cl, byte [esp + 0x1c]
mov dl, byte [esp + 0x1d]
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x1b]
test al, 1
jne 0x10047689
jmp 0x10047702
mov eax, dword [0x10066c50]
mov dword [esp + 0x14], eax
mov eax, dword [0x10066c4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
add eax, 0x17a67c8f
sub eax, 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub edx, 0x17a67c8f
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 + 0xa], dl
xor al, cl
mov byte [esp + 0xb], al
mov cl, byte [esp + 0xb]
mov al, byte [esp + 0xa]
or al, cl
mov byte [esp + 9], al
mov al, byte [esp + 9]
test al, 1
jne 0x100476fc
jmp 0x10047702
add esp, 0x78
pop esi
pop ebx
ret
jmp 0x10047689
mov eax, dword [0x1006536c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xb80a0721
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x100474ae