Function at 0x406c08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x406f7c
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x15c
push dword [ebp + 0x14]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], edi
push dword [ebp + 0x10]
call fcn.0043d06c
push edx
push eax
call fcn.0043d108
mov dword [ebp - 0x134], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x130], edx
mov eax, dword [ecx + 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x406ca2
mov dword [ebp - 0x170], 0x4c0800
mov esi, 1
mov dword [ebp - 0x16c], esi
call fcn.004540c8
mov edi, dword fs:[0x2c]
mov ecx, dword [edi]
mov ebx, eax
mov eax, dword [ecx + 0x34]
mov edx, ebx
mov dword [ebx], eax
jmp 0x406cb7
mov esi, dword fs:[0x2c]
mov edi, dword [esi]
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x144], esi
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x140], edx
mov edi, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x14c], 0
je 0x406f57
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + ebx*4]
mov dword [ebp - 0x24], edx
cmp dword [ebp + 8], 0
je 0x406d15
mov eax, ebp
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d2fc
xor al, 1
jne 0x406d2c
mov eax, ebp
push dword [ebp - 0x130]
push dword [ebp - 0x134]
call fcn.0043dc68
test al, al
je 0x406d4e
push dword [ebp - 0x24]
mov eax, ebp
call fcn.00406f88
mov edx, dword fs:[0x2c]
mov ebx, dword [edx]
mov ecx, dword [ebx + 0x34]
mov byte [ecx + 0x31], 1
jmp 0x406f45
mov ebx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x130]
xor ecx, ecx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x138], esi
cmp ecx, dword [ebp - 0x13c]
jae 0x406f0f
imul edx, ecx, 0x60
mov edi, dword [ebp - 0x13c]
imul eax, edi, 0x60
add edx, dword [ebp - 0x130]
add eax, dword [ebp - 0x130]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x10c]
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24]
lea ebx, [ebp - 0xb0]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
mov ecx, 0x18
push dword [ebx]
sub ebx, 4
dec ecx
jne 0x406dde
lea eax, [ebp - 0x6c]
call fcn.0043d470
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
call fcn.0043d644
xor al, 1
je 0x406ecb
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x6c]
push edx
call fcn.0043d530
lea eax, [ebp - 0xac]
call fcn.0043d72c
lea ecx, [ebp - 0x15c]
mov ebx, edx
push 1
mov edx, 0x4bca30
push ecx
push edx
call fcn.0044d73c
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], edx
mov edx, dword [ebp - 0x128]
lea ecx, [edx + ecx*4]
mov dword [ecx - 4], ebx
lea eax, [ebp - 0xac]
call fcn.0043d72c
mov esi, edx
lea eax, [ebp - 0xac]
call fcn.0043d72c
lea edx, [ebp - 0x154]
mov ecx, 0x4bca30
push 1
add esi, eax
push edx
push ecx
call fcn.0044d73c
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0x120], edx
mov edx, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x120]
lea edx, [ecx + edx*4]
mov dword [edx - 4], esi
call fcn.0043d770
lea eax, [ebp - 0x6c]
call fcn.0043d57c
add esp, 0x18
lea eax, [ebp - 0x6c]
call fcn.0043d644
xor al, 1
jne 0x406e05
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
push 0x4b4210
call fcn.004540c0
add esp, 0xc
call fcn.00406eef
jmp 0x406eff
add dword [ebp - 0x18], 0x60
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], ecx
jb 0x406dba
push dword [ebp - 0x158]
push dword [ebp - 0x15c]
call fcn.0043dd08
push dword [ebp - 0x150]
push dword [ebp - 0x154]
call fcn.0043dd08
mov eax, ebp
mov dword [ebp - 0x11c], 0
push dword [ebp - 0x24]
call fcn.004070d4
inc dword [ebp - 0x20]
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x14c]
jb 0x406cef
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x168]
mov esi, dword [ebp - 0x164]
mov edi, dword [ebp - 0x160]
mov esp, ebp
pop ebp
ret 0x10