Function at 0x408a10
Capabilities:
Clear file content
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x170
mov eax, dword [0x4310a0]
xor eax, esp
push ebx
mov ebx, dword [0x434e18]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x178]
push esi
push edi
mov edi, eax
imul edi, edi, 0x38
add edi, ebx
or eax, 0x4f440000
mov dword [esp + 0x180], eax
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
mov esi, 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
je 0x408fed
push eax
call fcn.00409c30
mov ecx, dword [edi + 0x14]
add esp, 4
cmp ecx, ebx
je 0x408fed
mov eax, dword [edi + 8]
test eax, 0x40000000
push ebp
mov ebp, dword [edi + 4]
mov dword [esp + 0x34], ebp
je 0x408bed
cmp ecx, 0xffffffff
push ebx
jne 0x408ac1
push ebx
push ebp
call fcn.00407020
add esp, 0xc
test eax, eax
jne 0x408fac
test byte [edi + 8], 1
je 0x408aab
push esi
jmp 0x408aac
push ebx
push ebp
call fcn.00407f10
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x408fac
mov esi, dword [edi + 0xc]
push esi
push ebp
mov dword [esp + 0x3c], esi
call fcn.00407020
add esp, 0xc
cmp eax, esi
jne 0x408fac
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test byte [edi + 8], 1
je 0x408bae
push 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x605444f
mov eax, dword [edi + 0x10]
push ecx
push ebp
mov dword [esp + 0x2c], eax
call fcn.00407080
mov edx, dword [esp + 0x2c]
push edx
call fcn.004060c0
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x408fac
mov eax, dword [esp + 0x20]
push eax
push eax
mov eax, dword [edi + 0x14]
push eax
push esi
call fcn.0040a170
mov ebx, eax
push ebx
push esi
push ebp
call fcn.00407080
push esi
mov dword [esp + 0x4c], eax
call fcn.004060d0
mov eax, dword [esp + 0x4c]
add esp, 0x20
cmp ebx, eax
jne 0x408fac
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0x605444f
mov dword [esp + 0x18], ebx
mov word [esp + 0x28], 0
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x1c], edx
mov ecx, 4
mov bl, byte [esp + ecx + 0x14]
mov al, cl
mov dl, 3
imul dl
sub al, 0x5b
xor bl, al
mov byte [esp + ecx + 0x14], bl
inc ecx
cmp ecx, 0x16
jb 0x408b78
push 0x16
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00407080
add esp, 0xc
cmp eax, 0x16
jne 0x408fac
jmp 0x408fb4
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x14]
push eax
push ecx
push ebp
call fcn.00407080
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ecx
jne 0x408fac
mov dword [esp + 0x14], 0x6054b50
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebx
mov word [esp + 0x28], bx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x1c], edx
jmp 0x408b90
test eax, eax
jns 0x408fb4
mov esi, dword [edi + 0x18]
push ebx
push esi
push ebp
call fcn.00407020
add esp, 0xc
cmp eax, esi
jne 0x408fac
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x408fac
mov ecx, dword [edi]
push ecx
call fcn.0040a050
mov dword [esp + 0x34], eax
imul eax, eax, 0x132
lea edx, [esp + 0x4c]
push edi
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call fcn.00408620
mov edx, dword [0x434e20]
xor eax, eax
sub esi, edx
add esp, 0xc
mov dword [esp + 0x14], 0x6054b50
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
mov word [esp + 0x28], ax
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
call fcn.00407550
cmp eax, 0xffffffff
je 0x408fac
mov ecx, dword [0x434e14]
imul eax, eax, 0x44
add eax, ecx
mov esi, eax
mov dword [esi + 0x20], 0x40000000
test byte [edi + 8], 1
mov dword [esp + 0x2c], esi
je 0x408e71
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
mov dword [esp + 0x18], 0x605444f
call fcn.004060c0
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x44], esi
je 0x408fac
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x78]
push ecx
lea eax, [esi + edx]
mov edx, dword [esp + 0x188]
push 0x80
push 0
push edx
mov dword [esp + 0x50], eax
mov ebp, esi
call fcn.004082c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x408e63
mov al, byte [esp + 0x78]
test al, al
je 0x408d9d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
jge 0x408e63
mov ecx, dword [0x434e1c]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x54], edx
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x78]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408d35
mov edi, dword [0x434e20]
sub eax, esi
mov word [esp + 0x64], ax
mov edx, dword [ecx + 0x10]
sub edx, edi
mov dword [esp + 0x72], edx
mov cx, word [ecx + 4]
mov word [esp + 0x52], cx
mov edi, ebp
mov ecx, 0xb
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
movsx eax, ax
movsw word es:[edi], word [esi]
mov ecx, eax
mov edx, ecx
add ebp, 0x2e
shr ecx, 2
mov edi, ebp
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
add ebp, eax
lea ebx, [ebx + eax + 0x2e]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x184]
lea eax, [esp + 0x78]
push eax
push ecx
call fcn.00408400
add esp, 8
cmp eax, 0xffffffff
jne 0x408cf3
mov eax, dword [esp + 0x2c]
xor ecx, ecx
push 4
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.00407080
add esp, 0xc
cmp eax, 4
jne 0x408e63
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
push ecx
push ebx
push esi
push edx
call fcn.0040a170
mov ebp, eax
mov eax, dword [esp + 0x50]
push ebp
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x48]
push eax
push ebx
call fcn.00407080
add esp, 0x1c
cmp eax, ebp
jne 0x408e63
push esi
call fcn.004060d0
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], ebp
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov dl, byte [esp + ecx + 0x14]
sub al, 0x5b
xor dl, al
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0x16
jb 0x408e32
push 0x16
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00407080
add esp, 0xc
cmp eax, 0x16
je 0x408fb4
push esi
call fcn.004060d0
add esp, 4
jmp 0x408fac
mov edx, dword [esp + 0x184]
lea ecx, [esp + 0x78]
push ecx
push 0x80
push 0
push edx
call fcn.004082c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x408fac
jmp 0x408ea0
mov al, byte [esp + 0x78]
test al, al
je 0x408f59
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
jge 0x408fac
mov ecx, dword [0x434e1c]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x54], edx
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x78]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408ee2
mov ebp, dword [0x434e20]
mov edi, dword [esp + 0x34]
sub eax, esi
movsx esi, ax
mov word [esp + 0x64], ax
mov edx, dword [ecx + 0x10]
sub edx, esi
sub edx, ebp
sub edx, 0x1e
mov dword [esp + 0x72], edx
mov ax, word [ecx + 4]
push 0x2e
lea ecx, [esp + 0x4c]
push ecx
push edi
mov word [esp + 0x5e], ax
call fcn.00407080
add esp, 0xc
cmp eax, 0x2e
jne 0x408fa8
push esi
lea edx, [esp + 0x7c]
push edx
push edi
call fcn.00407080
add esp, 0xc
cmp eax, esi
jne 0x408fa8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
inc eax
lea ebx, [ebx + esi + 0x2e]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x184]
lea eax, [esp + 0x78]
push eax
push ecx
call fcn.00408400
add esp, 8
cmp eax, 0xffffffff
jne 0x408ea0
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
push 0x16
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
call fcn.00407080
add esp, 0xc
cmp eax, 0x16
je 0x408fb4
jmp 0x408fac
mov edi, dword [esp + 0x38]
mov dword [esp + 0x3c], 0
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
pop ebp
je 0x408fca
test eax, eax
je 0x408fca
push eax
call fcn.004060d0
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [edi + 0x14], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.00412815
add esp, 0x170
ret
mov ecx, dword [esp + 0x178]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00412815
add esp, 0x170
ret