Function at 0x417b6d
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x428], 0
xor eax, eax
push ebx
push edi
lea edi, [ebp - 0x14]
mov ebx, ecx
stosd dword es:[edi], eax
push 0x400
mov dword [ebp - 0x420], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
xor edi, edi
push edi
push eax
call fcn.0049ef70
add esp, 0xc
cmp dword [0x51e8a8], edi
je 0x41800c
lea ecx, [ebp - 0x414]
call fcn.0048cba0
cmp byte [ebp - 0x414], 0
je 0x41800c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x414]
push 0x50bb8c
push eax
call esi
push str.K7NfXRlS.DSM
lea eax, [ebp - 0x414]
push eax
call esi
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41800b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x424], eax
cmp eax, 0x60
jb 0x41800b
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41800b
push 0
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x424]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41800b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x424]
add edx, edi
cmp dword [edi], 0x4b374e57
mov dword [ebp - 0x41c], edx
jne 0x41800b
cmp dword [edi + 4], 3
jne 0x41800b
mov eax, dword [edi + 0x50]
add eax, edi
cmp eax, edx
jae 0x417cd3
mov esi, dword [ebp - 0x428]
cmp esi, dword [edi + 0x54]
jae 0x417ccd
cmp byte [eax], 0
je 0x417ccd
xor ecx, ecx
add byte [ecx + eax], 0xf9
inc ecx
lea ebx, [ecx + eax]
cmp byte [ebx], 0
mov dword [ebp - 0x418], ebx
jne 0x417cb2
mov eax, ebx
inc eax
inc esi
cmp eax, edx
jb 0x417ca6
mov ebx, dword [ebp - 0x420]
mov esi, dword [edi + 0x50]
add ebx, 0x24
push ebx
add esi, edi
call dword [sym.imp.USER32.dll_CharUpperA]
xor eax, eax
jmp 0x417d0e
cmp eax, dword [edi + 0x54]
jae 0x417d27
cmp byte [esi], 0
je 0x417d24
mov edx, ebx
mov ecx, esi
call fcn.00417486
test eax, eax
jne 0x417d1e
push esi
call fcn.004c8d20
inc eax
add esi, eax
mov eax, dword [ebp - 0x418]
pop ecx
inc eax
mov dword [ebp - 0x418], eax
cmp esi, dword [ebp - 0x41c]
jb 0x417ce6
jmp 0x417d24
mov eax, dword [ebp - 0x418]
cmp eax, dword [edi + 0x54]
jne 0x41800b
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00499d60
test eax, eax
je 0x41800b
mov esi, dword [edi + 0x58]
add esi, edi
xor eax, eax
jmp 0x417d6a
cmp eax, dword [edi + 0x5c]
jae 0x417d7b
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0049fe79
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x418]
je 0x417d78
add esi, 0x10
inc eax
mov dword [ebp - 0x418], eax
cmp esi, dword [ebp - 0x41c]
jb 0x417d48
cmp eax, dword [edi + 0x5c]
jne 0x41800b
call fcn.0041e213
mov esi, eax
test esi, esi
je 0x41800b
push 0x2138
push 0
push esi
call fcn.0049ef70
add esp, 0xc
push 0x2000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x418], ecx
test ecx, ecx
je 0x41800b
push 0x400
push ecx
push 0xffffffffffffffff
push ebx
push 0
lea eax, [ecx + 0x800]
push 0
mov dword [ebp - 0x41c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x417dfc
push ebx
push 0x5079bc
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x14]
push eax
mov edx, ebx
mov ecx, dword [ecx + 4]
add ecx, 0xaae60
call fcn.004174f7
pop ecx
test eax, eax
je 0x417e5c
cmp byte [0x51e6c9], 0
je 0x417ff6
mov eax, dword [ebp - 0x420]
push ebx
push dword [eax + 0xc]
push dword [eax + 8]
push str.K7RTScan:_PID:_lu_TID:_lu_Path:_s_cloud_trusted_memory_space_compromised__n
mov esi, dword [ebp - 0x41c]
add esi, 0x104
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x417ff6
mov edx, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x418]
call fcn.0040d832
test eax, eax
je 0x417e92
cmp byte [0x51e6c9], 0
je 0x417ff6
mov eax, dword [ebp - 0x420]
push ebx
push dword [eax + 0xc]
push dword [eax + 8]
push str.K7RTScan:_PID:_lu_TID:_lu_Path:_s_digisigned_memory_space_compromised__n
jmp 0x417e3a
mov ecx, dword [ebp - 0x418]
call fcn.004179fe
test eax, eax
jne 0x417ec4
cmp byte [0x51e6c9], al
je 0x417ff6
mov eax, dword [ebp - 0x420]
push ebx
push dword [eax + 0xc]
push dword [eax + 8]
push str.K7RTScan:_PID:_lu_TID:_lu_Path:_s_file_is_not_suspicious_n
jmp 0x417e3a
push 0x5c
push ebx
call fcn.004cdb0e
pop ecx
pop ecx
test eax, eax
je 0x417ff6
mov edx, dword [ebp - 0x420]
inc eax
mov dword [ebp - 0x41c], eax
mov dword [esi + 8], 0xd
mov eax, dword [edx + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x14], 0x90101
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x124], eax
mov word [esi + 0x10], 0x5000
mov byte [esi + 0x12], al
cmp dword [edx + 4], 1
jne 0x417f60
mov ecx, dword [edx + 0x824]
inc eax
dec ecx
shl eax, cl
test dword [edi + 0x10], eax
je 0x417ff6
mov ecx, dword [edi + 0x14]
and ecx, eax
setne al
test ecx, ecx
lea eax, [eax*2 + 0x4e]
mov byte [esi + 0x11], al
setne al
lea eax, [eax*8 + 1]
mov byte [esi + 0x16], al
xor eax, eax
mov ecx, dword [edx + 0x824]
inc eax
dec ecx
shl eax, cl
test dword [edi + 0x18], eax
je 0x417f60
or dword [esi + 0xba4], 1
lea eax, [esi + 0x12c]
push str.Trojan.Win32.Generic__HIPS_
push eax
call fcn.004c99d0
mov edi, dword [ebp - 0x420]
push dword [ebp - 0x41c]
mov eax, dword [edi + 4]
add eax, 0xaae60
mov dword [esi + 0x128], eax
mov eax, dword [edi + 8]
and dword [esi + 0x170], 0
mov dword [esi + 0x16c], eax
lea eax, [esi + 0x174]
push eax
mov dword [esi + 0x39c], 0x454c4946
call fcn.004c99d0
push 0x104
lea eax, [esi + 0x194]
push ebx
push eax
call fcn.004c9d56
push 0x400
lea eax, [esi + 0x3a0]
push ebx
push eax
call fcn.004c9d56
lea eax, [edi + 0x424]
xor edx, edx
add esp, 0x28
mov ecx, esi
cmp byte [eax], dl
cmovne edx, eax
call fcn.0042286a
mov dword [ebp - 0x428], 1
push dword [ebp - 0x418]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x428]
xor ecx, ebp
pop edi
pop ebx
call fcn.0049d307
leave
ret