Function at 0x40379c
Capabilities:
Parse pe header

Disassembly:
jmp 0x40a240
sub esp, 0x8f8
mov eax, dword [0x47b014]
xor eax, esp
mov dword [esp + 0x8f4], eax
mov eax, dword [esp + 0x900]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor ebx, ebx
push esi
mov dword [esp + 0x1c], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x90c]
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
nop
push 0x1c
lea eax, [esp + 0x6fc]
mov dword [esp + 0x714], 0
push eax
add esi, 0x10000
xorps xmm0, xmm0
push esi
push edi
movups xmmword [esp + 0x708], xmm0
movq qword [esp + 0x718], xmm0
call ebp
test eax, eax
je 0x40a33d
nop dword [eax + eax]
mov ecx, dword [esp + 0x704]
mov eax, ecx
and eax, 0xfff
cmp eax, 0xfff
je 0x40a33d
mov edx, dword [esp + 0x6f8]
lea eax, [ecx + edx]
cmp eax, esi
jb 0x40a33d
cmp dword [esp + 0x708], 0x1000
jne 0x40a328
cmp byte [esp + 0x70c], 1
je 0x40a328
test dword [esp + 0x70c], 0x100
jne 0x40a328
lea eax, [esp + 0x714]
push eax
push esi
push edi
call fcn.00407de0
test eax, eax
jne 0x40a359
mov ecx, dword [esp + 0x704]
mov edx, dword [esp + 0x6f8]
push 0x1c
lea eax, [esp + 0x6fc]
push eax
lea esi, [ecx + edx]
push esi
push edi
call ebp
test eax, eax
jne 0x40a2c0
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x40a3ca
push 0x10dd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a6dd
test esi, esi
je 0x40a33d
test dword [esp + 0x72a], 0x2000
jne 0x40a39b
mov eax, 0x10b
mov ebx, esi
cmp word [esp + 0x72c], ax
jne 0x40a280
cmp word [esp + 0x718], 0
je 0x40a280
mov dword [esp + 0x1c], 1
jmp 0x40a280
mov eax, 0x20b
cmp word [esp + 0x72c], ax
jne 0x40a280
cmp word [esp + 0x718], 0
je 0x40a280
mov dword [esp + 0x14], 1
jmp 0x40a280
cmp dword [esp + 0x1c], 0
jne 0x40a3d9
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x40a403
cmp dword [esp + 0x14], 0
jne 0x40a3eb
mov ebx, 1
mov dword [esp + 0x18], ebx
jmp 0x40a403
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40a6dd
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 0x1c
push eax
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push ecx
push edi
movups xmmword [esp + 0x34], xmm0
movq qword [esp + 0x44], xmm0
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
je 0x40a6d6
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x40]
push 0
push 0x40
push eax
push dword [esp + 0x1c]
push edi
call ebp
test eax, eax
je 0x40a6d6
mov eax, 0x5a4d
cmp word [esp + 0x40], ax
jne 0x40a6cf
mov eax, dword [esp + 0x7c]
cmp eax, dword [esp + 0x30]
ja 0x40a6cf
cmp eax, 0x40
jb 0x40a6cf
add eax, dword [esp + 0x10]
lea ecx, [esp + 0x80c]
push 0
push 0xf8
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x40a6d6
cmp dword [esp + 0x80c], 0x4550
jne 0x40a6cf
push 0x678
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00402324
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xa8]
add esp, 0xc
mov dword [esp + 0x80], 0x678
mov dword [esp + 0x90], esi
mov dword [esp + 0x84], 0x40
push 0
push 0x40
push eax
push esi
push edi
call ebp
test eax, eax
je 0x40a6dd
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0xdc]
add eax, dword [esp + 0x90]
push 0
push 0x18
push ecx
push eax
push edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0x9c], 0x18
call ebp
test eax, eax
je 0x40a6dd
movzx eax, word [esp + 0xe2]
lea ecx, [eax + eax*4]
movzx eax, word [esp + 0xf0]
lea eax, [eax + ecx*8]
add eax, 0x18
mov dword [esp + 0x88], eax
cmp eax, 0x608
ja 0x40a6dd
push 0
push eax
lea eax, [esp + 0xe4]
push eax
push dword [esp + 0xa0]
push edi
call ebp
test eax, eax
je 0x40a6dd
mov ax, word [esp + 0xf4]
mov ecx, 0x10b
cmp ax, cx
jne 0x40a5ad
mov eax, dword [esp + 0x1c4]
test eax, eax
je 0x40a5d7
cmp dword [esp + 0x1c8], 0
je 0x40a5d7
add eax, esi
mov dword [esp + 0x98], eax
jmp 0x40a5de
mov ecx, 0x20b
cmp ax, cx
jne 0x40a5d7
mov eax, dword [esp + 0x1d4]
test eax, eax
je 0x40a5d7
cmp dword [esp + 0x1d8], 0
je 0x40a5d7
add eax, esi
mov dword [esp + 0x98], eax
jmp 0x40a5de
mov eax, dword [esp + 0x98]
test eax, eax
je 0x40a605
push 0
push 0x14
lea ecx, [esp + 0x6ec]
mov dword [esp + 0x94], 0x14
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x40a6dd
test ebx, ebx
je 0x40a6c5
push dword [esp + 0x914]
push dword [esp + 0x24]
push esi
push edi
call fcn.00408910
add esp, 0x10
test eax, eax
je 0x40a6dd
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x40a6a5
mov eax, dword [esp + 0x6f4]
movups xmm0, xmmword [esp + 0x6e4]
and eax, 0xfffffffe
mov dword [esp + 0x708], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0x14
push ecx
push edi
movups xmmword [esp + 0x70c], xmm0
call fcn.00403b75
test eax, eax
je 0x40a6dd
push 0
push 0x14
lea eax, [esp + 0x700]
push eax
push dword [esp + 0xa4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a6dd
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 0x14
push dword [esp + 0xa4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40a6dd
push 0x678
lea eax, [esp + 0x84]
push eax
push 0x46f0f8
push edi
call fcn.00401915
neg eax
sbb eax, eax
neg eax
jmp 0x40a6df
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a6dd
push 0xc1
call esi
push 0x10dd
call esi
xor eax, eax
mov ecx, dword [esp + 0x904]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004022c0
add esp, 0x8f8
ret 0xc