Function at 0x100a8162
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a9c7f
mov eax, dword fs:[0]
push eax
mov eax, 0x13e0
call fcn.10175520
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x13a0], ebx
mov ecx, dword [ebx + 0x44]
push 0x17
pop edx
call fcn.100a7db3
mov esi, eax
mov dword [ebp - 0x13e0], esi
test esi, esi
je 0x100a8580
call fcn.100e4678
and eax, 0x800000ff
jns 0x100a81ca
dec eax
or eax, 0xffffff00
inc eax
push 0x40
push 0x3000
push 0x1000
push 0
mov byte [ebx + 0x155], al
call fcn.100138a4
mov edi, eax
mov dword [ebp - 0x13bc], edi
test edi, edi
je 0x100a853b
xor esi, esi
call fcn.100e4678
and eax, 0x800000ff
jns 0x100a8208
dec eax
or eax, 0xffffff00
inc eax
mov byte [esi + edi], al
inc esi
cmp esi, 0x1000
jb 0x100a81f5
xor eax, eax
mov dword [ebp - 0x13b0], eax
mov dword [ebp - 0x13ac], eax
mov dword [ebp - 0x13a8], eax
mov dword [ebp - 4], eax
mov edi, 0x80
mov esi, edi
mov dword [ebp - 0x139c], esi
lea eax, [ebp - 0x139c]
push eax
lea ecx, [ebp - 0x13b0]
call fcn.1003492a
add esi, edi
mov dword [ebp - 0x139c], esi
cmp esi, 0xf00
jb 0x100a8238
call fcn.1017457b
push eax
lea ecx, [ebp - 0x1398]
call fcn.1004a0cc
or dword [ebp - 0x13e4], 0xffffffff
mov eax, ecx
mov edi, dword [ebp - 0x13b0]
mov dword [ebp - 0x13ec], eax
mov dword [ebp - 0x13e8], 0x20
cmp edi, dword [ebp - 0x13ac]
je 0x100a8302
mov esi, dword [ebp - 0x13ac]
lea eax, [edi + 4]
sub esi, eax
xor ecx, ecx
add esi, 3
shr esi, 2
cmp eax, dword [ebp - 0x13ac]
cmova esi, ecx
test esi, esi
je 0x100a8302
xor eax, eax
lea ebx, [edi + 4]
mov dword [ebp - 0x139c], eax
add eax, 2
lea ecx, [ebp - 0x13ec]
push eax
call fcn.1004a21e
mov ecx, eax
mov eax, dword [ebp - 0x139c]
inc eax
mov dword [ebp - 0x13a4], ecx
mov dword [ebp - 0x139c], eax
cmp ecx, eax
je 0x100a82f5
mov ecx, dword [edi + ecx*4]
mov edx, dword [ebx]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x13a4]
mov dword [edi + ecx*4], edx
add ebx, 4
cmp eax, esi
jne 0x100a82bd
mov ebx, dword [ebp - 0x13a0]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x13bc]
add ecx, edx
mov dword [ebp - 0x13c0], ecx
mov ecx, dword [edi + 8]
add ecx, edx
mov eax, dword [edi]
mov dword [ebp - 0x13c4], ecx
add eax, edx
mov ecx, dword [edi + 0xc]
add ecx, edx
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x13a0], ecx
add esi, edx
mov ecx, dword [edi + 0x14]
add ecx, edx
mov dword [ebp - 0x13a4], esi
mov dword [ebp - 0x139c], ecx
mov ecx, dword [edi + 0x18]
add ecx, edx
mov dword [ebp - 0x13d0], eax
mov dword [ebp - 0x13d4], ecx
mov ecx, dword [edi + 0x1c]
add ecx, edx
mov dword [ebp - 0x13d8], ecx
mov ecx, dword [edi + 0x20]
add ecx, edx
mov dword [ebp - 0x13dc], ecx
mov ecx, dword [edi + 0x24]
add ecx, edx
mov dword [ebp - 0x13c8], ecx
mov ecx, dword [edi + 0x28]
mov edi, eax
mov eax, dword [ebp - 0x13a0]
add ecx, edx
mov dword [ebp - 0x13b4], ecx
mov edx, 0x100a7edb
push 0x20
pop ecx
push 0x20
mov esi, edx
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0x20
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x13c0]
mov edx, 0x100a7ef9
pop ecx
push 0x20
mov esi, edx
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0x20
mov esi, edx
mov edx, dword [ebp - 0x13a4]
mov edi, edx
sub eax, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x13c4]
mov esi, 0x100a7f18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x139c]
mov esi, 0x100a7f18
push 0x20
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x13c8]
mov esi, 0x100a7f37
push 0x20
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x13b4]
mov esi, 0x100a7f37
push 0x20
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x13b8], eax
mov eax, dword [ebp - 0x139c]
mov esi, 0x80
mov edi, dword [ebp - 0x13b4]
sub eax, edx
sub edi, edx
mov dword [ebp - 0x13cc], eax
mov edx, dword [ebp - 0x13b8]
mov al, byte [ebx + 0x155]
xor byte [edx + ecx], al
mov al, byte [ebx + 0x155]
xor byte [ecx], al
mov edx, dword [ebp - 0x13cc]
mov al, byte [ebx + 0x155]
xor byte [edx + ecx], al
mov al, byte [ebx + 0x155]
xor byte [edi + ecx], al
inc ecx
mov edx, dword [ebp - 0x13b8]
sub esi, 1
jne 0x100a8429
mov edx, dword [ebp - 0x13bc]
push 0
push 0x1000
push edx
mov dword [ebx + 0x156], edx
call fcn.10016801
mov esi, dword [ebp - 0x13a0]
mov ecx, dword [ebp - 0x13c0]
mov edx, dword [ebp - 0x13c4]
mov edi, dword [ebp - 0x13c8]
mov dword [ebx + 0x16d], esi
mov esi, dword [ebp - 0x13a4]
mov dword [ebx + 0x176], esi
mov esi, dword [ebp - 0x139c]
mov dword [ebx + 0x17f], esi
mov esi, dword [ebp - 0x13d4]
mov dword [ebx + 0x172], esi
mov esi, dword [ebp - 0x13d8]
mov dword [ebx + 0x17b], esi
mov esi, dword [ebp - 0x13dc]
mov dword [ebx + 0x184], esi
mov esi, dword [ebp - 0x13e0]
mov dword [ebx + 0x15a], eax
mov eax, dword [ebp - 0x13d0]
mov dword [ebx + 0x15e], eax
mov dword [ebx + 0x163], ecx
mov dword [ebx + 0x168], edx
mov dword [ebx + 0x188], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x13b0]
mov eax, dword [ebp - 0x13a8]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.10006a60
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x13b0], eax
mov dword [ebp - 0x13ac], eax
mov dword [ebp - 0x13a8], eax
jmp 0x100a8565
and dword [ebx + 0x156], 0
and dword [ebx + 0x15a], 0
mov dword [esi + 0xc], 0x100a7edb
mov dword [esi + 0x10], 0x100a7ef9
mov dword [esi + 0x14], 0x100a7f18
mov dword [esi + 0x18], 0x100a7f37
lea eax, [ebx + 0x150]
mov dword [ebx + 0x151], ebx
mov dword [ebx + 0x194], esi
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e04a9
leave
ret