Function at 0x1000e7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x100db690]
xor eax, esp
mov dword [esp + 0x160], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0x3f
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x12d]
push edi
push ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x134], 0
call fcn.1002e520
push 0x3f
lea edx, [esp + 0xf9]
push edi
push edx
mov byte [esp + 0x100], 0
call fcn.1002e520
mov esi, dword [ebp + 0xc]
push 0x246
push str.algorithm.cpp
push esi
call fcn.1004a140
mov dword [esp + 0x5c], eax
xor eax, eax
mov byte [esp + 0xec], 0
mov dword [esp + 0xed], eax
mov dword [esp + 0xf1], eax
mov dword [esp + 0xf5], eax
mov dword [esp + 0xf9], eax
mov dword [esp + 0xfd], eax
mov dword [esp + 0x101], eax
mov dword [esp + 0x105], eax
mov word [esp + 0x109], ax
mov byte [esp + 0x10b], al
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
call fcn.10047fb0
push 0x398
mov dword [esp + 0x6c], eax
call fcn.1004a650
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x1000ec7c
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1000ec7c
push edi
push eax
push ebx
call fcn.1004a7c0
add esp, 0xc
test eax, eax
je 0x1000ec7c
call fcn.1004bc50
mov edi, eax
mov dword [esp + 0x40], edi
call fcn.10047fb0
mov dword [esp + 0x10], eax
call fcn.10047fb0
mov dword [esp + 0x3c], eax
call fcn.10047fb0
mov dword [esp + 0x30], eax
call fcn.10047fb0
mov dword [esp + 0x20], eax
call fcn.10047fb0
mov dword [esp + 0x18], eax
call fcn.10047fb0
push ebx
mov dword [esp + 0x2c], eax
call fcn.1004abf0
push ebx
mov dword [esp + 0x24], eax
call fcn.1004abf0
push ebx
mov dword [esp + 0x20], eax
call fcn.1004abf0
push ebx
mov dword [esp + 0x34], eax
call fcn.1004abf0
add esp, 0x10
mov dword [esp + 0x2c], eax
test edi, edi
je 0x1000ec78
cmp dword [esp + 0x10], 0
je 0x1000ec78
cmp dword [esp + 0x1c], 0
je 0x1000ec78
cmp dword [esp + 0x14], 0
je 0x1000ec78
cmp dword [esp + 0x24], 0
je 0x1000ec78
test eax, eax
je 0x1000ec78
cmp dword [esp + 0x30], 0
je 0x1000ec78
cmp dword [esp + 0x20], 0
je 0x1000ec78
cmp dword [esp + 0x18], 0
je 0x1000ec78
cmp dword [esp + 0x28], 0
je 0x1000ec78
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
push 0
push eax
push ecx
push edx
push ebx
call fcn.1004aeb0
add esp, 0x14
test eax, eax
je 0x1000ec78
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.1004c140
add esp, 8
test eax, eax
je 0x1000ec78
mov edx, dword [esp + 0x10]
cmp dword [edx + 4], 0
je 0x1000ea07
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
mov eax, edx
push eax
push ecx
push ebx
call fcn.1004b3f0
add esp, 0x18
test eax, eax
je 0x1000ec78
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push ebx
call fcn.1004af90
add esp, 0x14
test eax, eax
je 0x1000ec78
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x128]
push edx
push eax
call fcn.100463f0
add esp, 8
test eax, eax
je 0x1000ec78
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x148]
push ecx
push edx
call fcn.100463f0
add esp, 8
test eax, eax
je 0x1000ec78
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ebx
call fcn.1004a7f0
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
je 0x1000ec78
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push 0
push edx
push eax
push 0
push ecx
push ebx
call fcn.1004b3f0
add esp, 0x18
test eax, eax
je 0x1000ec78
mov edx, dword [esp + 0x24]
push edx
push ebx
call fcn.1004b1d0
add esp, 8
test eax, eax
jne 0x1000ec78
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push 0
push edx
push ebx
call fcn.1004b3f0
add esp, 0x18
test eax, eax
je 0x1000ec78
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push 0
push eax
push ecx
push edx
push ebx
call fcn.1004af90
add esp, 0x14
test eax, eax
je 0x1000ec78
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xe8]
push eax
push ecx
call fcn.100463f0
add esp, 8
test eax, eax
je 0x1000ec78
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x108]
push edx
push eax
call fcn.100463f0
add esp, 8
test eax, eax
je 0x1000ec78
mov edi, dword [esp + 0x38]
push edi
lea ecx, [esi*8]
push ecx
lea edx, [esp + 0xf0]
push 0x40
push edx
call fcn.10046ba0
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x1000ec78
push esi
push edi
call fcn.10046d30
add esp, 8
test eax, eax
jne 0x1000ea07
test esi, esi
jle 0x1000ebdb
mov eax, edi
mov edi, dword [esp + 0x48]
sub edi, eax
mov ecx, esi
lea esp, [esp]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x1000ebd0
lea eax, [esp + 0x58]
push eax
call fcn.1004d300
push 0x20
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.1004d780
mov eax, dword [esp + 0x58]
push esi
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.1004d780
push 0x20
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.1004d780
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xf4]
push edx
call fcn.1004d840
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
lea edi, [eax + 1]
mov ecx, 0x10
lea esi, [esp + 0x158]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x41]
mov ecx, 8
lea esi, [esp + 0xf8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ecx
mov byte [eax], 4
push edx
add eax, 0x61
push eax
call fcn.1002e110
add esp, 0x3c
mov dword [esp + 0x34], 1
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1000ec8d
push eax
call fcn.1004a2f0
add esp, 4
test edi, edi
je 0x1000ec9a
push edi
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1000ecab
push eax
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000ecbc
push eax
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000eccd
push eax
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000ecde
push eax
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000ecef
push eax
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1000ed00
push eax
call fcn.10047ef0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000ed11
push eax
call fcn.1004aca0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000ed22
push eax
call fcn.1004aca0
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000ed33
push eax
call fcn.1004aca0
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000ed44
push eax
call fcn.1004aca0
add esp, 4
test ebx, ebx
je 0x1000ed51
push ebx
call fcn.1004b4a0
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000ed62
push eax
call fcn.1004bcb0
add esp, 4
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002e502
mov esp, ebp
pop ebp
ret