Function at 0x10038b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x178
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
push edi
mov edi, edx
mov dword [esp + 0x48], edi
cmp eax, 1
jne 0x10038b9a
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
jmp 0x10038ba0
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
imul eax, eax, 0x544
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 0x80000000
mov dword [esi + 0x38], 0
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + edi + 0x34]
mov eax, dword [eax + edi + 0x2c]
mov dword [esp + 0x44], eax
cmp dword [esp + 0x44], 1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jl 0x10039072
movsx eax, word [edx + 0xc]
mov dword [esp + 0x34], eax
cmp edi, 1
jle 0x10039072
add edx, 0x34
mov esi, eax
dec edi
nop dword [eax + eax]
movsx ecx, word [edx]
lea edx, [edx + 0x28]
cmp ecx, dword [esp + 0x34]
mov eax, ecx
cmovge eax, dword [esp + 0x34]
cmp ecx, esi
mov dword [esp + 0x34], eax
cmovle ecx, esi
mov esi, ecx
sub edi, 1
jne 0x10038c10
mov dword [esp + 0x38], esi
cmp eax, esi
mov esi, dword [esp + 0x24]
jge 0x10039072
mov edx, dword [esp + 0x30]
mov ecx, eax
call fcn.10039080
mov edi, dword [esp + 0x1c]
add eax, edi
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
call fcn.10039080
lea edx, [edi + eax]
mov eax, dword [esi]
and eax, 0xffffffc0
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov edi, edx
lea eax, [edx + 0x3f]
and edi, 0xffffffe0
and eax, 0xffffffc0
mov dword [esp + 0x2c], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
mov ecx, eax
and ecx, 0xffffffe0
mov dword [esi + 0x18], edi
mov dword [esp + 0x14], ecx
mov dword [esi + 0x10], ecx
add ecx, 0x20
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x14], ecx
lea ecx, [edi + 0x20]
mov dword [esi + 0x1c], ecx
cmp dword [esp + 0x1c], edx
jle 0x10038caf
mov dword [esi + 0x14], edx
mov dword [esp + 0x1c], edx
cmp edi, eax
jge 0x10038cba
mov dword [esi + 0x18], eax
mov dword [esp + 0x2c], eax
mov edi, edx
sub edi, eax
mov dword [esi + 0x20], edi
cmp edi, 0x40
jg 0x10038ce4
mov dword [esi + 0x18], edx
sub edx, eax
sub ecx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x28]
mov dword [esp + 0x28], edx
mov dword [esi + 0x24], edx
mov dword [esp + 0x1c], eax
mov dword [eax], ecx
jmp 0x10038d1d
mov edx, dword [esp + 0x2c]
lea eax, [esi + 0x28]
sub edx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esi + 0x24], edx
mov dword [esp + 0x1c], eax
mov dword [eax], ecx
mov dword [esp + 0x14], 0x10
cmp edi, 0x80
jg 0x10038d25
mov dword [esp + 0x14], 8
cmp edi, 0x60
jg 0x10038d25
mov dword [esp + 0x14], 4
mov eax, edi
sub eax, dword [esp + 0x14]
cmp edx, eax
jge 0x10038d36
mov dword [esi + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
add eax, edi
cmp ecx, eax
jle 0x10038d45
mov dword [esi + 0x28], eax
mov ecx, eax
lea eax, [edi + edi*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp dword [esp + 0x28], eax
jge 0x10038d5e
mov dword [esi + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [edi + edi*4]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp ecx, eax
jle 0x10038d73
mov dword [esi + 0x28], eax
mov ecx, eax
mov eax, dword [esp + 0x28]
cmp eax, ecx
jg 0x10039021
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
nop dword [eax + eax]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 4]
sub ecx, eax
add ecx, dword [esi]
mov dword [esp + 0x18], edx
cmp eax, dword [esi + 0x20]
jl 0x10038dbd
mov edi, dword [esi + 0x10]
cmp ecx, edi
jge 0x10038db4
mov eax, edi
sub eax, ecx
add dword [esp + 0x18], eax
cmp ecx, edi
cmovge edi, ecx
mov dword [esp + 0x14], edi
jmp 0x10038dd8
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], edi
cmp edi, ecx
jle 0x10038dd8
mov eax, ecx
mov dword [esp + 0x14], ecx
sub eax, edi
mov edi, ecx
add dword [esp + 0x18], eax
mov ecx, dword [esi]
mov eax, edi
sub eax, ecx
sub ecx, edi
cmp edi, dword [esi]
cmovge ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jge 0x10038df3
sub edx, eax
add edx, ecx
jmp 0x10038df8
sub ecx, edx
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x28]
lea eax, [edx + edx*4]
sub ecx, dword [esi + 0x20]
add eax, eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
vzeroupper
call fcn.100395a0
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, eax
mov dword [esp + 0x40], eax
call fcn.10039080
mov ecx, edi
mov edx, dword [esi + 0x1c]
sub ecx, eax
mov dword [esp + 0x160], 0
mov eax, edi
mov dword [esp + 0x2c], ecx
sub eax, dword [esi + 8]
mov edi, dword [esi + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], edi
mov edi, dword [esi + 0x18]
mov dword [esp + 0x18], eax
add eax, dword [esi + 0x10]
sub edi, dword [esp + 0x18]
cmp eax, dword [esi + 0x18]
mov eax, edi
mov dword [esp + 0x14], edi
cmovge eax, dword [esi + 0x10]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
vpxor xmm0, xmm0, xmm0
vmovdqu ymmword [esp + 0x60], ymm0
vmovdqu ymmword [esp + 0x80], ymm0
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
sub dword [esp + 0x14], ecx
cmp eax, dword [esi + 0x1c]
mov esi, dword [esp + 0x14]
cmovle edx, dword [esp + 0x20]
mov edi, edx
mov dword [esp + 0x20], edx
sub edi, ecx
vmovdqu ymmword [esp + 0xa0], ymm0
vmovdqu ymmword [esp + 0xc0], ymm0
vmovdqu ymmword [esp + 0xe0], ymm0
vmovdqu ymmword [esp + 0x100], ymm0
vmovdqu ymmword [esp + 0x120], ymm0
vmovdqu ymmword [esp + 0x140], ymm0
test esi, esi
js 0x10039008
cmp esi, edi
jg 0x10039008
cmp edi, 0x40
jg 0x10039008
mov edx, dword [esp + 0x50]
mov eax, esi
sub eax, dword [esp + 0x3c]
add edx, 6
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
nop
movsx ecx, word [edx + 2]
movsx eax, word [edx]
sub ecx, eax
mov dword [esp + 0x58], ecx
movsx ecx, word [edx - 4]
mov edx, dword [esp + 0x40]
vzeroupper
call fcn.10039080
mov edx, eax
add edx, dword [esp + 0x54]
add edx, dword [esp + 0x2c]
mov ecx, edx
inc edx
and ecx, 0x3f
mov eax, dword [ecx*4 + 0x101b80c0]
imul eax, dword [esp + 0x58]
add dword [esp + esi*4 + 0x60], eax
inc esi
cmp esi, edi
jle 0x10038f47
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add edx, 0x2c
sub dword [esp + 0x20], 1
mov dword [esp + 0x18], edx
jne 0x10038f20
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub edi, dword [esp + 0x14]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x30]
mov esi, dword [esp + 0x5c]
sub dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
mov eax, ecx
sub eax, dword [esp + 0x3c]
lea ecx, [esp + ecx*4 + 0x60]
add eax, esi
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x24]
nop word [eax + eax]
mov ecx, dword [ecx]
cmp ecx, edx
jg 0x10038fcd
jne 0x10038fe4
cmp eax, dword [esi + 0x38]
jge 0x10038fe4
mov edx, ecx
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3c]
inc eax
add ecx, 4
mov dword [esp + 0x3c], ecx
sub edi, 1
jne 0x10038fc0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], eax
jmp 0x1003900c
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx]
jle 0x10038d90
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x2c]
mov esi, edi
sub esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, esi
mov dword [esp + 0x40], eax
vzeroupper
call fcn.10039080
mov ecx, dword [esp + 0x48]
mov edx, esi
add eax, dword [esp + 0x40]
mov dword [ecx + 0xac0], eax
mov ecx, dword [esp + 0x38]
call fcn.10039080
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
add eax, ecx
mov dword [edx + 0xac4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc