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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x42c], 0
xor eax, eax
push ebx
push edi
lea edi, [ebp - 0x14]
mov ebx, ecx
stosd dword es:[edi], eax
push 0x400
push 0
mov dword [ebp - 0x420], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
push eax
call fcn.0049ef70
add esp, 0xc
cmp dword [0x51e8a8], 0
je 0x4179ea
cmp dword [ebx + 4], 1
je 0x4179ea
cmp dword [ebx + 4], 2
je 0x4179ea
lea ecx, [ebp - 0x414]
call fcn.0048cba0
cmp byte [ebp - 0x414], 0
je 0x4179ea
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
xor esi, esi
lea eax, [ebp - 0x414]
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4179e9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x428], eax
cmp eax, 0x60
jb 0x4179dd
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4179dd
push 0
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4179ca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x428]
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 0x424], edi
cmp dword [esi], 0x4b374e57
mov dword [ebp - 0x41c], edx
jne 0x4179ca
cmp dword [esi + 4], 3
jne 0x4179ca
mov eax, dword [esi + 0x50]
add eax, esi
cmp eax, edx
jae 0x41772c
mov edi, dword [ebp - 0x42c]
cmp edi, dword [esi + 0x54]
jae 0x417726
cmp byte [eax], 0
je 0x417726
xor ecx, ecx
add byte [ecx + eax], 0xf9
inc ecx
lea ebx, [ecx + eax]
cmp byte [ebx], 0
mov dword [ebp - 0x418], ebx
jne 0x41770b
mov eax, ebx
inc eax
inc edi
cmp eax, edx
jb 0x4176ff
mov ebx, dword [ebp - 0x420]
mov edi, dword [esi + 0x50]
add ebx, 0x10
push ebx
add edi, esi
call dword [sym.imp.USER32.dll_CharUpperA]
xor eax, eax
jmp 0x417767
cmp eax, dword [esi + 0x54]
jae 0x417780
cmp byte [edi], 0
je 0x41777d
mov edx, ebx
mov ecx, edi
call fcn.00417486
test eax, eax
jne 0x417777
push edi
call fcn.004c8d20
inc eax
add edi, eax
mov eax, dword [ebp - 0x418]
pop ecx
inc eax
mov dword [ebp - 0x418], eax
cmp edi, dword [ebp - 0x41c]
jb 0x41773f
jmp 0x41777d
mov eax, dword [ebp - 0x418]
cmp eax, dword [esi + 0x54]
jne 0x4179c4
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00499d60
test eax, eax
je 0x4179c4
mov edi, dword [esi + 0x58]
add edi, esi
xor eax, eax
jmp 0x4177c3
cmp eax, dword [esi + 0x5c]
jae 0x4177d4
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0049fe79
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x418]
je 0x4177d1
add edi, 0x10
inc eax
mov dword [ebp - 0x418], eax
cmp edi, dword [ebp - 0x41c]
jb 0x4177a1
cmp eax, dword [esi + 0x5c]
jne 0x4179c4
call fcn.0041e213
mov edi, eax
test edi, edi
je 0x4179c4
push 0x2000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4179c4
push 0x400
push eax
push 0xffffffffffffffff
push ebx
push 0
lea ecx, [eax + 0x800]
push 0
mov dword [ebp - 0x418], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x417843
push ebx
push 0x5079bc
push dword [ebp - 0x41c]
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 0x4178a3
cmp byte [0x51e6c9], 0
je 0x4179af
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 edi, dword [ebp - 0x418]
add edi, 0x104
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4179af
mov edx, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
call fcn.0040d832
test eax, eax
je 0x4178d9
cmp byte [0x51e6c9], 0
je 0x4179af
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_file_memory_space_compromised__n
jmp 0x417881
push 0x5c
push ebx
call fcn.004cdb0e
mov dword [ebp - 0x418], eax
pop ecx
pop ecx
test eax, eax
je 0x4179af
mov eax, dword [ebp - 0x420]
mov dword [edi + 8], 0xd
push str.Trojan.Win32.Generic__HIPS_
mov eax, dword [eax + 8]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x124], eax
mov byte [edi + 0x12], al
lea eax, [edi + 0x12c]
push eax
mov dword [edi + 0x14], 0x90101
mov word [edi + 0x10], 0x5000
call fcn.004c99d0
mov ecx, dword [ebp - 0x420]
mov eax, dword [ecx + 4]
add eax, 0xaae60
mov dword [edi + 0x128], eax
mov eax, dword [ecx + 8]
and dword [edi + 0x170], 0
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 0x418]
inc eax
mov dword [edi + 0x39c], 0x454c4946
push eax
lea eax, [edi + 0x174]
push eax
call fcn.004c99d0
push 0x104
lea eax, [edi + 0x194]
push ebx
push eax
call fcn.004c9d56
push 0x400
lea eax, [edi + 0x3a0]
push ebx
push eax
call fcn.004c9d56
add esp, 0x28
xor edx, edx
mov ecx, edi
call fcn.0042286a
mov dword [ebp - 0x42c], 1
push dword [ebp - 0x41c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x424]
push esi
push 0x10000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0xffffffff
je 0x4179e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x42c]
xor ecx, ebp
pop edi
pop ebx
call fcn.0049d307
leave
ret