Function at 0x1003a4c3
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x88
mov eax, 0x10078b01
call fcn.100752ba
mov dword [ebp - 0x54], ecx
and dword [ebp - 4], 0
call fcn.1003a287
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
xor ecx, ecx
xor edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov edi, dword [ebp - 0x54]
and dword [ebp - 0x58], edx
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 6
test eax, eax
je 0x1003a6fc
xor esi, esi
mov dword [ebp - 0x48], esi
mov al, byte [ebx + 0xc]
test al, al
je 0x1003a562
lea eax, [ebp - 0x43]
mov word [ebp - 0x44], 0x35
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x43], 0
call fcn.10002310
test eax, eax
jne 0x1003a557
mov ecx, dword [edi + 0xf4]
movzx eax, byte [ebx + 0xc]
add ecx, esi
cmp dword [ecx + 0x30], eax
jne 0x1003a6d2
push ecx
jmp 0x1003a6ca
mov al, byte [ebx + 0xc]
test al, al
jne 0x1003a60c
lea eax, [ebp - 0x4b]
mov word [ebp - 0x4c], 0x1d
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x4b], 0
call fcn.10002310
test eax, eax
je 0x1003a6c1
mov ecx, dword [edi + 0xf4]
mov ecx, dword [ecx + esi + 0x1c]
call fcn.100087f9
mov edx, dword [edi + 0xf4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + edx + 0x1c]
test ecx, ecx
je 0x1003a5de
cmp ecx, 0x5f5e100
jae 0x1003a5de
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10004ca6
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xf4]
sub esp, 0x18
add eax, esi
mov ecx, esp
push eax
call fcn.10004ca6
mov byte [ebp - 4], 1
call fcn.1000d65a
jmp 0x1003a6ba
test eax, eax
je 0x1003a6d2
mov edx, ecx
mov cl, byte [eax + 4]
call fcn.10008825
sub esp, 0x18
mov esi, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x5c], esp
mov ecx, esp
push eax
call fcn.10004ca6
mov byte [ebp - 4], 3
jmp 0x1003a69f
lea eax, [ebp - 0x3f]
mov word [ebp - 0x40], 0x3c
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x3f], 0
call fcn.10002310
test eax, eax
je 0x1003a6c1
mov ecx, dword [edi + 0xf4]
movzx eax, byte [ebx + 0xc]
cmp dword [esi + ecx + 0x30], eax
jne 0x1003a6d2
mov ecx, dword [esi + ecx + 0x1c]
call fcn.100087f9
mov edx, dword [edi + 0xf4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + edx + 0x1c]
test ecx, ecx
je 0x1003a67a
cmp ecx, 0x5f5e100
jae 0x1003a67a
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10004ca6
mov byte [ebp - 4], 4
jmp 0x1003a5bd
test eax, eax
je 0x1003a6d2
mov edx, ecx
mov cl, byte [eax + 4]
call fcn.10008825
sub esp, 0x18
mov esi, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x5c], esp
mov ecx, esp
push eax
call fcn.10004ca6
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x3c]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.10008c17
pop ecx
mov byte [ebp - 4], 1
call fcn.1000d65a
mov esi, dword [ebp - 0x48]
add esp, 0x30
test al, al
je 0x1003a6d2
mov eax, dword [edi + 0xf4]
add eax, esi
push eax
lea ecx, [ebp - 0x38]
call fcn.1003c270
mov eax, dword [edi + 0xf8]
add esi, 0x40
mov ecx, dword [ebp - 0x58]
sub eax, dword [edi + 0xf4]
inc ecx
sar eax, 6
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], esi
cmp ecx, eax
jb 0x1003a51b
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov esi, edx
sub esi, ecx
cmp esi, 0x40
jae 0x1003a742
push 0xf
lea esi, [edi + 0xac]
pop edi
mov ecx, dword [esi]
xor dl, dl
call fcn.10010276
lea esi, [esi + 4]
sub edi, 1
jne 0x1003a70e
mov edi, dword [ebp - 0x54]
mov edx, dword [edi + 0x1a8]
mov ecx, dword [edi + 0x1a0]
call fcn.10010cd6
mov dword [edi + 0x1ac], 1
jmp 0x1003ad38
lea eax, [ebp - 0x3c]
sar esi, 6
push eax
push esi
mov dword [ebp - 0x3c], 0x100373bb
mov dword [ebp - 0x7c], esi
call fcn.1003c5bc
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008ee70]
divsd xmm0, qword [0x1008e180]
movsd qword [ebp - 0x60], xmm0
fld qword [ebp - 0x60]
fstp qword [esp]
call fcn.10073970
fstp qword [ebp - 0x60]
movsd xmm0, qword [ebp - 0x60]
andps xmm0, xmmword [0x1008f460]
pop ecx
pop ecx
call fcn.10075511
mov dword [edi + 0x1ac], eax
imul eax, dword [ebx + 8], 0xf
lea edx, [eax - 0xf]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
cmp edx, eax
jge 0x1003ad27
mov eax, edx
lea ecx, [edi + 0xa8]
mov edx, dword [ebp - 0x38]
push 0xffffffffffffffc8
pop esi
mov dword [ebp - 0x4c], ecx
shl eax, 6
lea ecx, [edx + 0x1c]
add ecx, eax
push 0xffffffffffffffe4
pop eax
sub eax, edx
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
add dword [ebp - 0x4c], 4
add esi, 0x38
mov dword [ebp - 0x48], esi
cmp esi, 0x310
jg 0x1003ad27
mov eax, dword [ebp - 0x7c]
dec eax
cmp edx, eax
jle 0x1003a804
xor dl, dl
jmp 0x1003acff
mov ecx, dword [ecx]
call fcn.100087f9
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x1003a9d6
cmp ecx, 0x5f5e100
jae 0x1003a9d6
mov ecx, dword [edi + 0xe8]
mov eax, dword [edx - 4]
add edx, dword [ebp - 0x3c]
mov dword [ecx + esi + 0x1c], eax
mov ecx, dword [edi + 0xe8]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + edx + 0x1c]
mov dword [ecx + esi + 0x20], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [edi + 0xe8]
add eax, 0x34
add eax, edx
add ecx, 0x24
push eax
add ecx, esi
call fcn.1003cede
mov ecx, dword [edi + 0xe8]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ecx + esi]
lea edx, [edx - 0x1c]
call fcn.10010c45
mov esi, dword [edi + 0xe8]
mov eax, dword [ebp - 0x48]
mov edx, dword [esi + eax + 0x28]
sub edx, dword [esi + eax + 0x24]
sar edx, 2
call fcn.1000d355
mov ecx, dword [ebp - 0x48]
mov ecx, dword [esi + ecx + 0x24]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1003aab4
mov ecx, eax
call fcn.100087f9
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x1003aab4
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x44]
mov cl, byte [esi + 4]
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10008825
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1003a8eb
cmp dword [eax + 0x48], 0
je 0x1003a8eb
push dword [ebp - 0x44]
xor edx, edx
push eax
jmp 0x1003a8f2
push dword [ebp - 0x44]
mov edx, esi
push 0
lea ecx, [ebp - 0x78]
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003ac6
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10001e1f
mov eax, dword [edi + 0xe8]
mov esi, dword [ebp - 0x48]
mov ecx, dword [eax + esi + 0x18]
test ecx, ecx
je 0x1003a9c1
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.1000cd00
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + esi + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + esi + 0x18]
mov dword [eax + 0x54], edx
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + esi + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x1003a972
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1003a976
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + esi + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + esi + 0x18]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + esi + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003a9c1
lea edx, [ebp - 0x2c]
call fcn.10010878
mov eax, dword [edi + 0xe8]
mov dl, 1
mov ecx, dword [eax + esi + 0x18]
mov ecx, dword [ecx]
call fcn.10010276
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10001e1f
jmp 0x1003aab7
test eax, eax
je 0x1003a7fd
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 4], 7
mov edx, ecx
mov cl, byte [eax + 4]
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10008825
mov ecx, eax
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x1003aa14
cmp dword [ecx + 0x48], 0
je 0x1003aa14
mov eax, dword [ebp - 0x40]
xor edx, edx
push dword [eax]
push ecx
jmp 0x1003aa1e
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
push dword [eax]
push 0
lea ecx, [ebp - 0x78]
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003ac6
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10001e1f
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x78]
call fcn.10008c17
pop ecx
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [edi + 0xe8]
mov ecx, dword [ecx + esi]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.10001e1f
mov ecx, dword [edi + 0xe8]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx - 4]
mov dword [ecx + esi + 0x1c], eax
mov ecx, dword [edi + 0xe8]
mov eax, dword [edx]
mov dword [ecx + esi + 0x20], eax
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + esi + 0x18]
test ecx, ecx
je 0x1003a9c1
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.1000cd00
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
jmp 0x1003a937
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 8], 1
jne 0x1003ab4a
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x94]
push 0x2e
call fcn.1000d6e8
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x1003aae1
mov eax, dword [eax]
movaps xmm0, xmmword [str.pP_P_3P]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x18], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0xf
jb 0x1003aaf3
sub esp, 0x18
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x78]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [edi + 0xe8]
mov ecx, dword [ecx + esi + 4]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10001e1f
lea ecx, [ebp - 0x94]
jmp 0x1003abd5
cmp dword [eax + 8], 2
jne 0x1003abe5
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x1003ab6e
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008f210]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x18], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0xf
jb 0x1003ab80
sub esp, 0x18
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x94]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 0xc
mov edx, eax
mov ecx, dword [edi + 0xe8]
mov ecx, dword [ecx + esi + 4]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10001e1f
lea ecx, [ebp - 0x78]
push 0
push 1
mov byte [ebp - 4], 1
call fcn.10001e1f
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x1003abff
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008e630]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x5b
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x1003ac13
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x94]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 0xe
mov edx, eax
mov ecx, dword [edi + 0xe8]
mov ecx, dword [ecx + esi + 8]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10001e1f
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10001e1f
mov edx, dword [0x1009e6f0]
test edx, edx
je 0x1003acc7
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 1
jne 0x1003ac90
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 4]
jb 0x1003ac9e
cmp dword [ecx + 8], 2
jne 0x1003acc7
mov eax, dword [edx + 0x48]
cmp eax, dword [ecx + 4]
jae 0x1003acc7
mov ecx, dword [edi + 0xe8]
mov edx, 0xffff0000
mov ecx, dword [ecx + esi + 4]
call fcn.10010cf9
mov ecx, dword [edi + 0xe8]
mov dl, 7
mov ecx, dword [ecx + esi + 0xc]
call fcn.1001034a
mov dl, 7
jmp 0x1003acee
mov ecx, dword [edi + 0xe8]
mov edx, 0xff000000
mov ecx, dword [ecx + esi + 4]
call fcn.10010cf9
mov ecx, dword [edi + 0xe8]
mov dl, 2
mov ecx, dword [ecx + esi + 0xc]
call fcn.1001034a
mov dl, 2
mov ecx, dword [edi + 0xe8]
mov ecx, dword [ecx + esi + 0x10]
call fcn.1001034a
mov dl, 1
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx]
call fcn.10010276
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, dword [ebp - 0x5c]
add ecx, 0x40
add eax, 0xf
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x40], ecx
cmp edx, eax
jl 0x1003a7df
mov edx, dword [edi + 0x1a8]
mov ecx, dword [edi + 0x1a0]
call fcn.10010cd6
lea ecx, [ebp - 0x38]
call fcn.1003d051
push 0
push 1
lea ecx, [ebx + 0x10]
call fcn.10001e1f
mov ecx, dword [ebp - 0x14]
call fcn.10075295
ret 0x20