Function at 0x40f6e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x422acd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
xor edi, edi
mov dword [ebp], 0xf3
mov eax, dword [0x42d044]
mov dword [ebp + 4], eax
mov ecx, dword [0x42d048]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], edi
mov edx, dword [0x42b8dc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401d10
mov ebx, dword [esp + 0x64]
mov ecx, ebx
call fcn.00404720
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call dword [edx + 0x20]
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], edi
call fcn.00401f50
cmp dword [esp + 0x1c], 0x10
je 0x40f790
push 0x42b960
lea ecx, [esp + 0x5c]
call fcn.00401d10
lea edx, [esp + 0x58]
lea ecx, [esp + 0x38]
push edx
call fcn.00404670
lea eax, [esp + 0x38]
push 0x425560
push eax
call fcn.00421a10
mov edx, dword [eax]
lea ecx, [ebp + 0x20]
push 0x42c9e8
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x24]
call fcn.00401d10
mov ecx, dword [0x42b8fc]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401d10
mov ecx, ebx
call fcn.00404720
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call dword [edx + 0x18]
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 1
call fcn.00404040
test eax, eax
jne 0x40f8bd
push 0x42c9e8
lea ecx, [esp + 0x2c]
call fcn.00401d10
mov edx, dword [0x42b8c8]
lea ecx, [esp + 0x2c]
push edx
call fcn.00401d10
mov ecx, ebx
call fcn.00404720
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call dword [edx + 0x18]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 2
call fcn.00405dd0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x64]
call dword [0x425244]
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 4
call dword [0x425270]
push 0x2e
lea ecx, [esp + 0x68]
call fcn.00401f50
push eax
call dword [0x425128]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x40f891
lea ecx, [esp + 0x64]
call fcn.00401f50
sub esi, eax
lea ecx, [esp + 0x64]
push esi
call fcn.00404060
push 0x425358
lea ecx, [esp + 0x68]
call fcn.00405e70
lea edx, [esp + 0x64]
lea ecx, [esp + 0x58]
push edx
call dword [0x425240]
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 1
call dword [0x425270]
lea edi, [ebp + 0x30]
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
stosb byte es:[edi], al
call fcn.00404040
cmp eax, 0x40
jbe 0x40f903
push 0x42b934
lea ecx, [esp + 0x68]
call fcn.00401d10
lea eax, [esp + 0x64]
lea ecx, [esp + 0x38]
push eax
call fcn.00404670
lea ecx, [esp + 0x38]
push 0x425560
push ecx
call fcn.00421a10
lea ecx, [esp + 0x58]
call fcn.00404040
cmp eax, 0x40
jae 0x40f920
lea ecx, [esp + 0x58]
call fcn.00404040
mov dword [esp + 0x64], eax
jmp 0x40f928
mov dword [esp + 0x64], 0x40
lea ecx, [esp + 0x58]
call fcn.00401f50
mov ecx, dword [esp + 0x64]
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [esp + 0x50], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
mov dword [ebp + 0x18], 0
call dword [0x425270]
push 0x42c9e8
lea ecx, [esp + 0x68]
call fcn.00401d10
mov eax, dword [0x42b8c0]
lea ecx, [esp + 0x34]
push eax
call fcn.00401d10
mov ecx, ebx
call fcn.00404720
mov edx, dword [eax]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call dword [edx + 0x18]
lea ebx, [ebp + 0x71]
mov ecx, 0x20
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 5
stosb byte es:[edi], al
call fcn.00404040
cmp eax, 0x80
jbe 0x40f9e7
push 0x42b910
lea ecx, [esp + 0x5c]
call fcn.00401d10
lea edx, [esp + 0x58]
lea ecx, [esp + 0x38]
push edx
call fcn.00404670
lea eax, [esp + 0x38]
push 0x425560
push eax
call fcn.00421a10
lea ecx, [esp + 0x10]
call fcn.00404040
cmp eax, 0x80
jae 0x40fa06
lea ecx, [esp + 0x10]
call fcn.00404040
mov dword [esp + 0x58], eax
jmp 0x40fa0e
mov dword [esp + 0x58], 0x80
lea ecx, [esp + 0x10]
call fcn.00401f50
mov ecx, dword [esp + 0x58]
mov esi, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x40fa53
mov eax, dword [esp + 0x5c]
mov ecx, 0x80
imul eax, eax, 0x19660d
mov edi, dword [ebp]
add eax, 0x3c6ef35f
xor edi, eax
mov dword [ebp], edi
add ebp, 4
dec ecx
jne 0x40fa3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 0
call dword [0x425270]
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xffffffff
call dword [0x425270]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret