Function at 0x401660
Capabilities:
Allocate or change rwx memory
Create thread
Get file size
Inject thread
Parse pe header
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41182a
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x2c]
push edx
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401779
mov dword [ebp - 0x24], 1
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0x18], 2
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 0x20], 0x14
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 0x1c], 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp + 0xc]
call fcn.004023b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x401809
lea eax, [ebp + 0xc]
push eax
push str.Error:_Unable_to_open_the_DLL._Path:
lea ecx, [ebp - 0x110]
push ecx
call fcn.00402bf0
add esp, 0xc
mov dword [ebp - 0xf4], eax
push 0x10
push 0x416f2c
mov ecx, dword [ebp - 0xf4]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x110]
call fcn.004023d0
nop
mov dword [ebp - 0xf8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xf8]
jmp 0x4021a6
push 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x6c], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x4018d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.00401390
add esp, 8
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
push eax
push str.Error:_Unable_to_allocate_memory_for_DLL_data._Code:
lea ecx, [ebp - 0x128]
push ecx
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0x78], eax
push 0x10
push 0x416f5c
mov ecx, dword [ebp - 0x78]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x128]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.004023d0
nop
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0x7c]
jmp 0x4021a6
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4019af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x170]
push ecx
call fcn.00401390
add esp, 8
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x84]
push eax
push str.Error:_Unable_to_read_the_DLL._Code:
lea ecx, [ebp - 0x158]
push ecx
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0x88], eax
push 0x10
push 0x416f9c
mov ecx, dword [ebp - 0x88]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x158]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.004023d0
nop
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0x8c]
jmp 0x4021a6
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.004023b0
push eax
call fcn.0040723d
add esp, 4
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x401a28
push 0x10
push 0x416fcc
push str.Error:_Invalid_executable_image.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0x90]
jmp 0x4021a6
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x48]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
cmp dword [edx], 0x4550
je 0x401a89
push 0x10
push 0x416ff8
push str.Error:_Invalid_PE_header.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0x94]
jmp 0x4021a6
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
jne 0x401ae2
push 0x10
push 0x41701c
push str.Error:_The_image_is_not_a_DLL.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0x98]
jmp 0x4021a6
cmp dword [ebp + 8], 0
jne 0x401baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.00401390
add esp, 8
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa0]
push eax
push str.Error:_Unable_to_open_target_process._Code:
lea ecx, [ebp - 0x188]
push ecx
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0xa4], eax
push 0x10
push 0x417044
mov ecx, dword [ebp - 0xa4]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x188]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.004023d0
nop
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xa8]
jmp 0x4021a6
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x50]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x401c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.00401390
add esp, 8
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb0]
push eax
push str.Error:_Unable_to_allocate_memory_for_the_DLL._Code:
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0xb4], eax
push 0x10
push 0x41707c
mov ecx, dword [ebp - 0xb4]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1b8]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d0]
call fcn.004023d0
nop
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xb8]
jmp 0x4021a6
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.00401390
add esp, 8
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xc0]
push edx
push str.Error:_Unable_to_copy_headers_to_target_process._Code:
lea eax, [ebp - 0x1e8]
push eax
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0xc4], eax
push 0x10
push 0x4170bc
mov ecx, dword [ebp - 0xc4]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1e8]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x200]
call fcn.004023d0
nop
push 0x8000
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xc8]
jmp 0x4021a6
mov edx, dword [ebp - 0x50]
add edx, 0xf8
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], 0
jmp 0x401db2
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x5c], edx
jae 0x401df7
push 0
imul eax, dword [ebp - 0x5c], 0x28
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + eax + 0x10]
push edx
imul eax, dword [ebp - 0x5c], 0x28
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x48]
add edx, dword [ecx + eax + 0x14]
push edx
imul eax, dword [ebp - 0x5c], 0x28
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
add edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
jmp 0x401da9
push 0x40
push 0x3000
push 0x1000
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x401ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x230]
push edx
call fcn.00401390
add esp, 8
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xd0]
push ecx
push str.Error:_Unable_to_allocate_memory_for_the_loader_code._Code:
lea edx, [ebp - 0x218]
push edx
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0xd4], eax
push 0x10
push 0x4170fc
mov ecx, dword [ebp - 0xd4]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x218]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004023d0
nop
push 0x8000
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0xd8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xd8]
jmp 0x4021a6
push 0x18
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.00405750
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x4c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x40], ecx
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x3c], edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x38], edx
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x34], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], ecx
push 0
push 0x18
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov edx, 0x401650
sub edx, 0x4013f0
push edx
push 0x4013f0
mov eax, dword [ebp - 0x54]
add eax, 0x18
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x54]
add eax, 0x18
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x4020a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x260]
push edx
call fcn.00401390
add esp, 8
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xe0]
push ecx
push str.Error:_Unable_to_execute_loader_code._Code:
lea edx, [ebp - 0x248]
push edx
call fcn.00402c80
add esp, 0xc
mov dword [ebp - 0xe4], eax
push 0x10
push 0x417144
mov ecx, dword [ebp - 0xe4]
call fcn.004023b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x248]
call fcn.004023d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004023d0
nop
push 0x8000
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0xe8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xe8]
jmp 0x4021a6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
cmp dword [ebp - 0x14], 0
jne 0x40214c
push 0x10
push str.Error
push str.Error:_DLL_injection_failed.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0xec], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xec]
jmp 0x4021a6
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0xf0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023d0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040406b
mov esp, ebp
pop ebp
ret 0x1c