Function at 0x411c35
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x431d68
call fcn.0042d90d
mov edi, 0x10000
push edi
mov ebx, edi
call fcn.0041a812
mov esi, eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
pop ecx
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
call dword [0x440950]
test eax, eax
je 0x411c76
mov eax, dword [esi]
lea eax, [eax*4 + 4]
cmp ebx, eax
jge 0x411c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x1c], eax
call fcn.0041a735
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, 0x18
jne 0x41202a
add ebx, edi
push ebx
call fcn.0041a812
mov esi, eax
jmp 0x411c56
push dword [esi]
push dword [ebp + 0xc]
call fcn.004156fa
and dword [ebp - 0x18], 0
cmp dword [esi], 0
jbe 0x411d6b
lea ebx, [esi + 4]
push dword [ebp - 0x18]
mov esi, dword [ebp + 0xc]
call fcn.00402eb6
and dword [eax], 0xfffff800
mov ecx, dword [eax + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [eax + 4]
shr ecx, 5
and ecx, 7
xor edx, edx
shld edx, ecx, 0xb
shl ecx, 0xb
or edx, edi
mov dword [eax + 4], edx
mov edi, dword [eax + 4]
and esi, 0xffffc7ff
or ecx, esi
mov dword [eax], ecx
mov ecx, dword [ebx]
mov esi, dword [eax]
shr ecx, 8
and ecx, 1
xor edx, edx
shld edx, ecx, 0xe
shl ecx, 0xe
or edx, edi
mov dword [eax + 4], edx
mov edi, dword [eax + 4]
and esi, 0xffffbfff
or ecx, esi
mov dword [eax], ecx
mov ecx, dword [ebx]
mov esi, dword [eax]
shr ecx, 9
and ecx, 7
xor edx, edx
shld edx, ecx, 0xf
shl ecx, 0xf
and esi, 0xfffc7fff
or ecx, esi
mov esi, dword [ebp - 0x1c]
or edx, edi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov ecx, dword [ebx]
xor edx, edx
xor edx, dword [eax + 0xc]
shr ecx, 0xc
xor ecx, dword [eax + 8]
and edx, 0xfffff
xor dword [eax + 8], ecx
xor dword [eax + 0xc], edx
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add ebx, 4
cmp eax, dword [esi]
jb 0x411cb8
push esi
call fcn.0041a735
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x10]
pop ecx
lea esi, [ebp - 0x2c]
call fcn.00416513
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x20]
call fcn.00416513
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x411d97
cmp eax, dword [ebp - 0x20]
je 0x411d9c
call fcn.0041a15a
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
sar eax, 4
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.00416616
add esp, 0xc
cmp dword [0x440658], 0
je 0x412028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0040b682
pop ecx
test eax, eax
je 0x412028
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
and dword [ebp - 0x14], 0
xor edi, edi
inc edi
sar eax, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
cmp eax, edi
jbe 0x411e6a
mov eax, dword [ebp - 0x18]
dec eax
push eax
mov esi, ebx
call fcn.00402eb6
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
and edi, 0xfffff
call fcn.00402eb6
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
and eax, 0xfffff
cmp ecx, dword [ebp - 0x2c]
jne 0x411e2a
cmp eax, edi
je 0x411e53
push dword [ebp - 0x18]
call fcn.00402eb6
push dword [ebp - 0x1c]
mov esi, eax
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
call fcn.00402eb6
inc dword [ebp - 0x1c]
lea esi, [ebp - 0x3c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x411e56
inc dword [ebp - 0x14]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
inc dword [ebp - 0x18]
sar eax, 4
cmp dword [ebp - 0x18], eax
jb 0x411df3
xor edi, edi
inc edi
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 4
sub eax, dword [ebp - 0x14]
push eax
push ebx
call fcn.004156fa
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
add dword [esi], eax
and dword [ebp - 0x14], 0
push 4
call fcn.0041a35c
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x411e9e
lea edx, [ebp - 0x54]
mov dword [eax], edx
jmp 0x411ea0
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebp - 0x28]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push dword [ebp - 0x2c]
sar eax, 4
push eax
lea eax, [ebp - 0x54]
call fcn.00415dbc
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
xor edi, edi
sar eax, 4
test eax, eax
jbe 0x411f20
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 3
cmp edi, eax
jb 0x411eef
call fcn.0041a15a
mov eax, dword [ebp - 0x48]
lea eax, [eax + edi*8]
push edi
mov esi, ebx
mov dword [ebp - 0x1c], eax
call fcn.00402eb6
mov eax, dword [eax + 8]
imul eax, dword [0x440184]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
inc edi
sar eax, 4
cmp edi, eax
jb 0x411edd
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x44]
sub edi, dword [ebp - 0x48]
sar edi, 3
test edi, edi
ja 0x411f32
call fcn.0041a15a
mov eax, edi
shl eax, 3
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call dword [0x440658]
test eax, eax
je 0x412006
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
sar eax, 3
test eax, eax
jbe 0x411fef
cmp dword [ebp - 0x18], eax
jb 0x411f6f
call fcn.0041a15a
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x18]
lea eax, [eax + ecx*8 + 4]
test byte [eax], 1
mov dword [ebp - 0x28], eax
je 0x411fdb
push ecx
mov esi, ebx
call fcn.00402eb6
push dword [ebp - 0x1c]
mov esi, eax
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
call fcn.00402eb6
push dword [ebp - 0x1c]
mov edi, eax
lea esi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
call fcn.00402eb6
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov esi, dword [eax]
mov edi, dword [eax + 4]
shr ecx, 4
and esi, 0xfffff800
and ecx, 0x7ff
xor edx, edx
or ecx, esi
mov esi, dword [ebp + 0x10]
or edx, edi
inc dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x411fde
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
inc dword [ebp - 0x18]
sar eax, 3
cmp dword [ebp - 0x18], eax
jb 0x411f6f
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
mov edi, dword [ebp - 0x14]
sar eax, 4
sub eax, edi
push eax
push ebx
call fcn.004156fa
add dword [esi], edi
xor esi, esi
cmp dword [ebp - 0x48], esi
je 0x412016
push dword [ebp - 0x48]
call fcn.0041a268
pop ecx
push dword [ebp - 0x54]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.0041a268
pop ecx
xor eax, eax
call fcn.0042d9e5
ret