Function at 0x40bf51
Capabilities:
Inspect section memory permissions
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42dedb
push eax
mov eax, 0x28ec
mov dword fs:[0], esp
call sub.ntdll.dll__chkstk
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xfffffffffffffff0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
and eax, 0x40000000
mov dword [esp + 0x10], eax
je 0x40bf7a
mov ecx, dword [esi + 4]
push ecx
call ebp
jmp 0x40bf86
mov edx, dword [esi + 4]
push 4
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [esi + 4]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x40c001
cmp edi, ebx
je 0x40bfbe
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x40bfbc
test eax, 0x20000000
je 0x40bfbe
xor edi, edi
lea edx, [esp + 0x6c]
push ebx
push edx
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp edi, ebx
jne 0x40bff3
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jmp 0x40c030
lea ecx, [esp + 0x5c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40c030
mov edx, dword [esi + 4]
push edx
call ebp
mov ebp, eax
lea eax, [esp + 0x6c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x5c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x5c]
push 2
push edx
push ebp
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
sub eax, edx
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
add eax, ecx
sub ebp, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x68]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x60]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jl 0x40c093
mov eax, dword [esp + 0x74]
lea edx, [ecx + ebp]
cmp edx, eax
jle 0x40c095
sub eax, ebp
mov ecx, eax
mov eax, dword [esp + 0x70]
cmp edi, eax
jl 0x40c0ae
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
lea ebp, [edi + edx]
cmp ebp, eax
jle 0x40c0b0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, dword [0x45ec50]
push ebx
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x80
push ebp
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call ebp
mov edx, dword [0x45ec50]
push ebx
push 0x32
mov dword [esp + 0x18], edx
call edi
push eax
push 0x31
call edi
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, dword [esi + 4]
push eax
push ebx
push 0x80
push ecx
call ebp
mov edx, dword [esi + 4]
push 0x436
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
add esi, 0x1c
mov ecx, 7
lea edi, [esp + 0x18]
mov dword [esi], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ebx
push 0x101b
push ecx
mov dword [esp + 0x30], 0x4377cc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 7
mov dword [esp + 0x2c], 0x64
call ebp
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x24], 0x4377c0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 7
mov dword [esp + 0x20], 0x12c
push 1
mov eax, dword [esi]
push 0x101b
push eax
call ebp
mov ecx, dword [esi]
push 0x20
push ebx
push 0x1036
push ecx
call ebp
mov ecx, 0x54
xor eax, eax
lea edi, [esp + 0x12c]
mov dword [esp + 0x128], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xcc]
mov edi, 1
call fcn.004129d0
mov edx, dword [esi]
push ebx
push ebx
push 0x1009
push edx
mov dword [esp + 0x2914], ebx
call ebp
call fcn.0042b0e0
mov edx, dword [eax]
lea ecx, [esp + 0x128]
push 0x154
push ecx
push ebx
push ebx
push 0x80002018
mov ecx, eax
call dword [edx + 0x1c]
cmp eax, ebx
jle 0x40c691
mov edi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push str.Return_info__n
call edi
lea edx, [esp + 0x14c]
push edx
call edi
lea eax, [esp + 0x14c]
push eax
call fcn.0042b7f0
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], bl
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x280]
push 0x80
push edx
stosb byte es:[edi], al
call fcn.004057f0
cmp eax, ebx
jl 0x40c2a1
mov eax, dword [esp + 0x10]
mov ecx, 0x80
sub ecx, eax
push 0x4377a4
lea edx, [esp + eax + 0x280]
push ecx
push edx
call fcn.004057a0
lea eax, [esp + 0x285]
lea ecx, [esp + 0x250]
push eax
push ecx
call fcn.004176e0
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1905]
mov byte [esp + 0x1904], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push ebx
push 0x1004
jne 0x40c463
mov edx, dword [esi]
push edx
call ebp
mov edx, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa8], edx
mov edx, dword [esi]
push ecx
push ebx
lea eax, [esp + 0x134]
push 0x1007
push edx
mov dword [esp + 0xb4], 1
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
call ebp
push ebx
push ebx
push ebx
lea ecx, [esp + 0x288]
push ebx
push ecx
push 1
push 1
push eax
mov ecx, esi
call fcn.00401e50
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xcfd]
mov byte [esp + 0xcfc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x4fd]
mov byte [esp + 0x4fc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xcfc]
repne scasb al, byte es:[edi]
not ecx
push 0x400
dec ecx
push edx
lea eax, [esp + 0x134]
push ecx
push eax
call fcn.004182d0
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xe9]
mov byte [esp + 0xe8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x260]
push ecx
push edx
stosb byte es:[edi], al
call fcn.004176e0
lea eax, [esp + 0x514]
push 0x400
push eax
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xfc]
push ecx
call fcn.004182d0
add esp, 0x28
lea edx, [esp + 0x4fc]
lea eax, [esp + 0x4fc]
lea ecx, [esp + 0xcfc]
push edx
push eax
push ecx
push str.TorFWProcessName_sPath_sMD5_s
lea edx, [esp + 0x190c]
push 0x1000
push edx
jmp 0x40c675
mov eax, dword [esi]
push eax
call ebp
mov edx, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x12c]
push edx
push ebx
push 0x1007
push eax
mov dword [esp + 0x8c], 1
mov dword [esp + 0x94], ebx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call ebp
mov edx, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], edx
mov eax, 1
lea edx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
push edx
push ebx
lea ecx, [esp + 0x154]
push 0x1006
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call ebp
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x8fd]
mov byte [esp + 0x8fc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x10fd]
mov byte [esp + 0x10fc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2fd]
mov byte [esp + 0x2fc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x8fc]
push 0x400
stosb byte es:[edi], al
push ecx
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x134]
push ecx
push edx
call fcn.004182d0
push 0x800
lea eax, [esp + 0x1110]
lea edi, [esp + 0x160]
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x168]
push ecx
call fcn.004182d0
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
xor edx, edx
push ebx
mov dword [esp + 0x39], edx
lea ecx, [esp + 0x170]
stosw word es:[edi], ax
mov dword [esp + 0x3d], edx
mov byte [esp + 0x38], bl
mov dword [esp + 0x41], edx
stosb byte es:[edi], al
mov dword [esp + 0x45], edx
lea eax, [esp + 0x38]
mov word [esp + 0x49], dx
push eax
push ecx
mov byte [esp + 0x53], dl
call fcn.00411660
lea edx, [esp + 0x12c]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004176e0
lea ecx, [esp + 0x330]
push 0x200
push ecx
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x13c]
push ecx
push edx
call fcn.004182d0
add esp, 0x44
lea eax, [esp + 0x2fc]
lea ecx, [esp + 0x10fc]
lea edx, [esp + 0x8fc]
push eax
push ecx
push edx
push str.TorFWProcessName_sPath_sMD5_s
lea eax, [esp + 0x190c]
push 0x1000
push eax
call fcn.004073a0
add esp, 0x18
lea ecx, [esp + 0x18fc]
push ecx
call fcn.00418430
xor edi, edi
jmp 0x40c1ff
cmp edi, ebx
je 0x40c739
mov edx, dword [esi]
push ebx
push ebx
push 0x1004
push edx
call ebp
mov edx, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edx
mov edx, dword [esi]
push ecx
push ebx
lea eax, [esp + 0x134]
push 0x1007
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call ebp
mov edx, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x38], edx
push eax
push ebx
push 0x1006
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x43776c
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call ebp
jmp 0x40c744
push str.m_VirusListOut_end______n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea ecx, [esp + 0xcc]
mov dword [esp + 0x2904], 0xffffffff
call fcn.00412a10
mov ecx, dword [esp + 0x28fc]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28f8
ret 0x10