Function at 0x407d14
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45e6f4
call fcn.00437048
sub esp, 0x150
mov eax, dword [0x48ed50]
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x10], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [eax + 0x3c]
add esi, eax
cmp word [esi + 6], di
movzx eax, word [esi + 0x14]
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x128], edi
jbe 0x407da9
mov dword [ebp - 0x12c], eax
push str..phs
push dword [ebp - 0x12c]
call fcn.004376b0
test eax, eax
pop ecx
pop ecx
je 0x407d8a
movzx eax, word [esi + 6]
inc dword [ebp - 0x128]
add dword [ebp - 0x12c], 0x28
cmp dword [ebp - 0x128], eax
jl 0x407d59
jmp 0x407da9
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 0xc]
add eax, dword [esi + 0x34]
push 0x4e0
push eax
push 0x4900a8
call fcn.00436500
add esp, 0xc
cmp dword [0x4900a8], edi
je 0x407f65
mov esi, 0x104
push esi
lea eax, [ebp - 0x124]
push edi
push eax
call fcn.004370b0
add esp, 0xc
push esi
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x124]
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.0040145b
push dword [0x490230]
push edi
push ebx
push esi
call fcn.00407c03
add esp, 0x10
test al, al
je 0x407f4d
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x10]
push eax
mov ecx, esi
call fcn.004076ea
cmp dword [0x4900a8], edi
je 0x407f65
mov eax, 0x4e0
xor byte [0x4900ac], 0xe3
dec eax
jne 0x407e2a
push str..pecode
lea ecx, [ebp - 0x15c]
call fcn.00401496
lea eax, [ebp - 0x15c]
push eax
mov ecx, esi
call fcn.0040773c
push edi
push 1
lea ecx, [ebp - 0x15c]
mov esi, eax
call fcn.00401050
cmp esi, edi
je 0x407f65
test byte [esi + 0x27], 0x80
je 0x407f65
cmp dword [esi + 0x10], edi
je 0x407f65
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004370b0
push 0x10
lea eax, [ebp - 0x20]
push 0x4900b4
push eax
call fcn.00436500
add esp, 0x18
lea ecx, [ebp - 0x130]
call fcn.0040eca8
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], edi
call fcn.0040ecc6
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
mov eax, dword [esi + 0x10]
push edi
push eax
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.00407b8c
push dword [ebp - 0x13c]
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x14]
push dword [esi + 0x10]
add eax, ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0040ede3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
cmp eax, ecx
jb 0x407f0a
mov eax, ecx
lea ecx, [ebp - 0x128]
push ecx
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x34]
push dword [ebp - 0x13c]
add eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
lea ecx, [ebp - 0x140]
jne 0x407f51
call fcn.00424436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.0040ecb2
xor al, al
jmp 0x407f67
call fcn.00424436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.0040ecb2
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00437141
leave
ret