Function at 0x102ac640
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1032e860
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [ebx + 8]
push eax
mov dword [ebp - 0x68], eax
call fcn.102ac520
mov word [esi + 0x74], 0
lea edi, [esi + 0x7c]
mov byte [esi + 0x76], 0
cmp byte [0x104be820], 0
jne 0x102ac6fd
mov edx, dword [0x104be82c]
mov eax, dword [0x104be828]
xor edx, 0xd28f2c5
xor eax, 0x1de26cd5
mov byte [0x104be820], 1
mov dword [ebp - 0x60], eax
mov ecx, edx
mov esi, dword [ebp - 0x60]
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
xor esi, eax
shr ecx, 7
xor edx, ecx
mov dword [ebp - 0x60], esi
mov ecx, esi
mov esi, dword [ebp - 0x64]
mov eax, ecx
shld edx, eax, 0x11
shl eax, 0x11
xor al, cl
xor byte [0x104be821], al
push ecx
push 0x104be821
push 0x104be821
lea ecx, [ebp - 0x2c]
call fcn.1001a620
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x60], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x102ac737
sub ecx, dword [ebp - 0x60]
push ecx
push edx
mov ecx, edi
call fcn.1001a920
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x102ac780
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x102ac776
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x102ac776
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
push dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
mov dword [esi + 0x94], 0
push eax
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov byte [esi + 0xa0], 0
call fcn.102aca80
mov dword [ebp - 0x60], eax
cmp edi, eax
je 0x102ac81c
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x102ac7ea
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x102ac7dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x102ac842
mov eax, edx
push ecx
push eax
call fcn.102bb95a
mov eax, dword [ebp - 0x60]
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x102ac852
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x102ac848
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x102ac848
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
mov eax, dword [0x1060b274]
mov ecx, dword [0x104c14e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10611700]
cmp eax, dword [ecx + 4]
jg 0x102ac901
mov eax, dword [0x10611774]
mov edi, dword [ebp - 0x68]
mov ecx, dword [0x1060b274]
push dword [edi + eax]
call dword [ebp - 0x70]
mov edx, eax
test edx, edx
je 0x102ac8bd
mov eax, dword [0x1060b5e0]
mov ecx, dword [eax + 0xaa8]
test ecx, ecx
je 0x102ac8bd
cmp edx, ecx
jne 0x102ac8b2
mov byte [esi + 0x75], 1
jmp 0x102ac8bd
push ecx
mov ecx, edx
call fcn.100c6430
mov byte [esi + 0x76], al
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
mov ecx, edi
mov edx, dword [eax + 0x14]
mov dword [esi + 0xa4], edx
mov edx, dword [edi]
mov edx, dword [edx + 8]
call edx
mov ecx, dword [eax]
mov eax, esi
mov dword [esi + 0x78], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x10611700
call fcn.102bba07
add esp, 4
cmp dword [0x10611700], 0xffffffff
jne 0x102ac87f
cmp byte [0x104aa010], 0
jne 0x102ac98b
xor ecx, ecx
mov byte [0x104aa010], 1
mov dword [ebp - 0x60], ecx
jmp 0x102ac932
mov esi, ecx
xor edi, edi
xor esi, dword [0x104aa020]
xor edi, dword [0x104aa024]
xor esi, 0x1de26cd5
xor edi, 0xd28f2c5
mov eax, esi
mov ecx, edi
shld ecx, eax, 0xd
shl eax, 0xd
xor edi, ecx
xor esi, eax
mov ecx, edi
mov edx, esi
shrd edx, ecx, 7
shr ecx, 7
xor edx, esi
xor ecx, edi
mov eax, edx
shld ecx, eax, 0x11
mov ecx, dword [ebp - 0x60]
shl eax, 0x11
xor al, dl
xor byte [ecx + 0x104aa011], al
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, 0xb
jb 0x102ac932
jmp 0x102ac98b
push ecx
push 0x104aa01b
push 0x104aa011
lea ecx, [ebp - 0x5c]
call fcn.1001a620
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
cmp byte [0x104abb80], 0
mov dword [ebp - 0x6c], eax
jne 0x102aca1c
xor ecx, ecx
mov byte [0x104abb80], 1
mov dword [ebp - 0x60], ecx
jmp 0x102ac9c3
mov esi, ecx
xor edi, edi
xor esi, dword [0x104abb90]
xor edi, dword [0x104abb94]
xor esi, 0x1de26cd5
xor edi, 0xd28f2c5
mov eax, esi
mov ecx, edi
shld ecx, eax, 0xd
shl eax, 0xd
xor edi, ecx
xor esi, eax
mov ecx, edi
mov edx, esi
shrd edx, ecx, 7
shr ecx, 7
xor edx, esi
xor ecx, edi
mov eax, edx
shld ecx, eax, 0x11
mov ecx, dword [ebp - 0x60]
shl eax, 0x11
xor al, dl
xor byte [ecx + 0x104abb81], al
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, 0xf
jb 0x102ac9c3
jmp 0x102aca1c
push ecx
push 0x104abb8f
push 0x104abb81
lea ecx, [ebp - 0x44]
call fcn.1001a620
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push 0
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10171b70
lea ecx, [ebp - 0x44]
mov dword [0x10611774], eax
call fcn.10019dd0
lea ecx, [ebp - 0x5c]
call fcn.10019dd0
push 0x10611700
call fcn.102bb9b6
mov esi, dword [ebp - 0x64]
add esp, 4
jmp 0x102ac87f