Function at 0x10039670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x78
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x70], ecx
add eax, 0x1d
mov dword [esp + 0x74], eax
mov eax, dword [0x1005f330]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
add eax, 0x9045484f
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
cmp eax, 1
sete al
mov byte [esp + 0x5f], al
mov cl, byte [esp + 0x5f]
xor eax, eax
test cl, 1
mov dword [esp + 0x58], eax
jne 0x10039823
jmp 0x100396d8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x54], eax
mov bh, byte [edx + eax]
mov esi, 0x1d
xor edx, edx
div esi
mov eax, dword [esp + 0x54]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x43
mov cl, 0xff
xor cl, 0x43
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x43
and bl, cl
mov ecx, dword [esp + 0x70]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
add eax, 0xa0fd6f5b
add eax, 1
sub eax, 0xa0fd6f5b
cmp eax, 0xd
mov dword [esp + 0x58], eax
jne 0x100396d8
mov eax, dword [0x10060cb8]
mov dword [esp + 0x50], eax
mov eax, dword [0x10060cb4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
sub eax, 0x3b442354
sub eax, 1
add eax, 0x3b442354
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
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 + 0x46], dl
xor al, cl
mov byte [esp + 0x47], al
mov cl, byte [esp + 0x47]
mov al, byte [esp + 0x46]
or al, cl
test al, 1
jne 0x100397a5
jmp 0x10039913
mov eax, dword [0x1005f330]
mov dword [eax - 0x6fbab7b1], 1
mov eax, dword [0x10060cb8]
mov dword [esp + 0x3c], eax
mov eax, dword [0x10060cb4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
sub ecx, 0x835b4467
sub ecx, 1
add ecx, 0x835b4467
imul eax, ecx
and eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 0
sete al
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x37]
mov eax, dword [esp + 0x40]
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x36], al
mov al, byte [esp + 0x36]
test al, 1
jne 0x1003981e
jmp 0x10039913
jmp 0x10039823
mov eax, dword [0x10060cb8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10060cb4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
imul eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
and eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp eax, 0
sete al
mov byte [esp + 0x1d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x1e], cl
and al, cl
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x1e]
mov cl, byte [esp + 0x1d]
xor cl, dl
or al, cl
test al, 1
jne 0x1003989d
jmp 0x1003990e
mov eax, dword [0x10060cb8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x10060cb4]
mov dword [esp + 0x10], ecx
add eax, 0x5c793ced
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
sub eax, 1
sub eax, 0x5c793ced
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
imul eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
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 0x10039908
jmp 0x1003990e
add esp, 0x78
pop esi
pop ebx
ret
jmp 0x1003989d
mov eax, dword [0x1005f330]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x9045484f
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x100397a5