Function at 0x1003cd80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10077604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
cmp dword [0x10077f2c], 0
je 0x1003d3e7
push dword [ebp - 0x6c]
lea edi, [esi + 0x15c]
push edi
push dword [edi + 4]
mov dword [ebp - 0x68], edi
push dword [edi]
call fcn.100384f0
mov eax, dword [edi]
add esp, 0x10
mov dword [edi + 4], eax
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 0x154]
sub ecx, dword [esi + 0x150]
imul ecx
mov dword [ebp - 0x54], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1003ceb9
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x34], eax
cmp byte [edi + eax + 0x63], 0
je 0x1003ce3c
mov esi, dword [0x10077f2c]
mov ecx, esi
call fcn.1001a6f0
mov ecx, dword [ebp - 0x34]
mov al, byte [esi + 0x3a]
cmp byte [edi + ecx + 0x63], al
jne 0x1003ce81
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x34], eax
mov al, byte [edi + eax + 0x63]
cmp al, 1
je 0x1003ce51
cmp al, 2
jne 0x1003ce6d
mov esi, dword [0x10077f2c]
mov ecx, esi
call fcn.1001a560
mov ecx, dword [ebp - 0x34]
mov al, byte [esi + 0x34]
cmp byte [edi + ecx + 0x63], al
jne 0x1003ce81
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x150]
lea ecx, [esi + 0x15c]
add eax, edi
push eax
call fcn.1003f2a0
mov eax, dword [ebp - 0x30]
add edi, 0x68
mov esi, dword [ebp - 0x54]
inc esi
mov dword [ebp - 0x54], esi
mov ecx, dword [eax + 0x154]
sub ecx, dword [eax + 0x150]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
mov esi, dword [ebp - 0x30]
jl 0x1003ce10
mov edi, dword [ebp - 0x68]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x1003cf0a
add esi, 0xc
mov edi, 4
nop dword [eax + eax]
push 0
push dword [esi]
call fcn.10012be0
add esp, 8
lea esi, [esi + 4]
sub edi, 1
jne 0x1003ced0
mov esi, dword [ebp - 0x30]
push dword [esi + 0x148]
push dword [esi + 0x134]
call fcn.10013770
add esp, 8
mov dword [esi + 0x14c], 1
jmp 0x1003d3e7
mov ecx, dword [edi + 4]
sub esp, 8
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100669d0]
mulsd xmm0, qword [0x10069cc0]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
add esp, 8
andps xmm0, xmmword [0x10069f00]
cvttsd2si eax, xmm0
mov dword [esi + 0x14c], eax
cmp dword [esi + 0x148], eax
jbe 0x1003cf7d
mov dword [esi + 0x148], 1
movzx eax, byte [ebp + 8]
or edx, 0xffffffff
shl eax, 2
mov dword [ebp - 0x78], eax
add eax, 0xfffffffc
imul ecx, eax, 0x68
mov dword [ebp - 0x34], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x2c], ecx
lea ecx, [esi + 8]
mov esi, dword [ebp - 0x2c]
nop
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp edx, 4
jg 0x1003d3c9
mov ecx, dword [edi + 4]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x34], eax
jle 0x1003cfe9
mov eax, dword [ebp - 0x54]
push 0
push dword [eax]
call fcn.10012be0
add esp, 8
jmp 0x1003d3aa
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov edi, 0xffc4fc03
mov dword [ebp - 0x14], 0xf
mov eax, dword [esi]
add eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100026e0
mov eax, dword [esi]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
cmp byte [esi + eax + 0x64], 2
jne 0x1003d081
movaps xmm0, xmmword [0x10069e30]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x4f524755
mov dword [ebp - 0x38], 0x7b4849
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x16
jb 0x1003d043
cmp byte [ebp - 0x4b], 0
mov byte [ebp - 0x35], 0
jne 0x1003d05e
xor ecx, ecx
jmp 0x1003d06d
lea ecx, [ebp - 0x4b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d064
sub ecx, edx
push ecx
lea eax, [ebp - 0x4b]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000a6e0
mov edi, 0xff5cb9fe
jmp 0x1003d0d9
mov cl, 0x6f
mov dword [ebp - 0x64], 0x3a344f6f
mov dword [ebp - 0x60], 0x1d0a0b01
xor eax, eax
mov dword [ebp - 0x5c], 0x160e184f
mov word [ebp - 0x58], 0x32
xor byte [ebp + eax - 0x63], cl
inc eax
cmp eax, 0xc
jae 0x1003d0af
mov cl, byte [ebp - 0x64]
jmp 0x1003d0a0
cmp byte [ebp - 0x63], 0
mov byte [ebp - 0x57], 0
jne 0x1003d0bd
xor ecx, ecx
jmp 0x1003d0cc
lea ecx, [ebp - 0x63]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d0c3
sub ecx, edx
push ecx
lea eax, [ebp - 0x63]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000a6e0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x38], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
cmp byte [edx], 0
jne 0x1003d0ff
xor ecx, ecx
jmp 0x1003d110
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d104
sub ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.10002800
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
push dword [ecx]
call fcn.100136d0
mov eax, dword [ebp - 0x38]
add esp, 8
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1003d14a
inc eax
push 1
push eax
push dword [ebp - 0x4c]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x50]
push edi
push dword [eax]
call fcn.100136a0
mov edi, dword [ebp - 0x68]
add esp, 8
movaps xmm0, xmmword [str.jCPCJ]
mov ecx, dword [edi]
movzx eax, byte [esi + ecx + 0x62]
push eax
movzx eax, byte [esi + ecx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x88], xmm0
nop dword [eax]
mov al, byte [ebp - 0x88]
xor byte [ebp + ecx - 0x87], al
inc ecx
cmp ecx, 0xe
jb 0x1003d180
sub esp, 0x18
mov byte [ebp - 0x79], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1003d1b4
mov eax, dword [edx]
jmp 0x1003d1b6
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x87], 0
jne 0x1003d1c6
xor ecx, ecx
jmp 0x1003d1d9
lea ecx, [ebp - 0x87]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d1d0
sub ecx, esi
push ecx
lea eax, [ebp - 0x87]
mov ecx, edx
push eax
call fcn.10002800
lea eax, [ebp - 0xa0]
push eax
call fcn.100322e0
add esp, 0x24
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x1003d205
mov edx, dword [edx]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
cmp byte [edx], 0
jne 0x1003d220
xor ecx, ecx
jmp 0x1003d22e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d225
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.10002800
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x50]
push dword [eax - 4]
call fcn.100136d0
mov eax, dword [ebp - 0x38]
add esp, 8
cmp eax, 0x10
jb 0x1003d265
inc eax
push 1
push eax
push dword [ebp - 0x4c]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1003d298
inc eax
push 1
push eax
push dword [ebp - 0xa0]
call fcn.10002610
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [ebp - 0x2c]
movzx eax, byte [eax + esi + 0x63]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10039440
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x1003d2c0
mov edx, dword [edx]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
cmp byte [edx], 0
jne 0x1003d2db
xor ecx, ecx
jmp 0x1003d2ec
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d2e0
sub ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.10002800
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
mov eax, dword [ebp - 0x50]
push dword [eax + 8]
call fcn.100136d0
mov eax, dword [ebp - 0x38]
add esp, 8
cmp eax, 0x10
jb 0x1003d323
inc eax
push 1
push eax
push dword [ebp - 0x4c]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1003d356
inc eax
push 1
push eax
push dword [ebp - 0xa0]
call fcn.10002610
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [ebp - 0x50]
push 1
mov dword [ebp - 0x8c], 0xf
mov eax, dword [esi + eax + 0x18]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
push dword [eax]
call fcn.10012be0
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x1003d3aa
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
mov edx, dword [ebp - 0x34]
add esi, 0x68
mov eax, dword [ebp - 0x50]
inc edx
cmp edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x2c], esi
jl 0x1003cfa0
mov esi, dword [ebp - 0x30]
push dword [esi + 0x148]
push dword [esi + 0x134]
call fcn.10013770
add esp, 8
mov ecx, esi
call fcn.1003dda0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005f6be
mov esp, ebp
pop ebp
ret 4