Function at 0x4049d1
Capabilities:
Copy file
Get system information on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb3c
push ebx
mov edx, 0xff
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x73b]
mov byte [ebp - 0x73c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xb3b]
mov byte [ebp - 0xb3c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x23b]
mov byte [ebp - 0x23c], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
mov byte [ebp - 0x33c], bl
cmp dword [ebp + 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
stosb byte es:[edi], al
je 0x404d70
cmp word [ebp + 0x10], bx
je 0x404d70
cmp word [ebp + 0x10], 4
ja 0x404d70
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
push 0x24
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.GetNativeSystemInfo
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404ab8
lea ecx, [ebp - 0x38]
push ecx
call eax
jmp 0x404ac2
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0xb3c]
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, str.C:WindowsMicrosoft.NETFramework64_v4.0.30319clr.dll
mov dword [ebp - 8], edi
call fcn.00404f90
add esp, 0x10
test al, al
je 0x404d2d
lea eax, [ebp - 0x14]
push eax
call fcn.0040168b
mov esi, eax
pop ecx
cmp esi, ebx
je 0x404b39
lea eax, [ebp - 0x33c]
push 0x100
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push esi
call fcn.0040162e
add esp, 0x14
test al, al
je 0x404b2a
lea eax, [ebp - 0x33c]
push eax
call fcn.0040174e
pop ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp word [ebp - 0x38], 9
jne 0x404b4b
push dword [ebp - 0xc]
call fcn.00401e3d
pop ecx
jmp 0x404b4e
push 1
pop eax
movzx ecx, word [ebp + 0x10]
dec ecx
je 0x404be0
dec ecx
je 0x404bc4
dec ecx
je 0x404ba8
dec ecx
jne 0x404c0a
cmp eax, ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
push dword [ebp - 0xc]
je 0x404b84
call fcn.00401c57
jmp 0x404b89
call fcn.004018e4
add esp, 0x10
test al, al
je 0x404b99
lea eax, [ebp - 0x23c]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x10]
dec eax
je 0x404bee
dec eax
je 0x404bd6
dec eax
jne 0x404c0a
jmp 0x404bba
cmp eax, ebx
mov dword [ebp - 8], str.C:WindowsMicrosoft.NETFramework_v4.0.30319mscoreei.dll
jne 0x404bba
mov dword [ebp - 8], str.C:WindowsMicrosoft.NETFramework64_v4.0.30319mscoreei.dll
push dword [ebp + 8]
push str._smscoreei.dll
jmp 0x404bf6
cmp eax, ebx
mov dword [ebp - 8], str.C:WindowsMicrosoft.NETFramework_v2.0.50727mscorsec.dll
jne 0x404bd6
mov dword [ebp - 8], str.C:WindowsMicrosoft.NETFramework64_v2.0.50727mscorsec.dll
push dword [ebp + 8]
push str._smscorsec.dll
jmp 0x404bf6
cmp eax, ebx
mov dword [ebp - 8], str.C:WindowsMicrosoft.NETFramework_v4.0.30319clr.dll
jne 0x404bee
mov dword [ebp - 8], edi
push dword [ebp + 8]
push str._sclr.dll
lea eax, [ebp - 0x73c]
push 0x3fe
push eax
call fcn.0040200e
add esp, 0x10
cmp word [ebp + 0x10], 4
jne 0x404c1b
cmp word [ebp - 0x10], bx
je 0x404d3a
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push edi
push str.Module___s_n
call esi
lea eax, [ebp - 0x138]
push 0x100
push eax
push dword [ebp - 0xc]
call fcn.004052b3
add esp, 0x14
test al, al
je 0x404c64
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xb3c]
push eax
push dword [ebp - 0xc]
push str._ld__s___s___n
call esi
add esp, 0x10
jmp 0x404c78
lea eax, [ebp - 0xb3c]
push eax
push dword [ebp - 0xc]
push str._ld__s_n
call esi
add esp, 0xc
lea eax, [ebp - 0xb3c]
push eax
call fcn.0040136f
pop ecx
lea eax, [ebp - 0x73c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404d41
lea eax, [ebp - 0x73c]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.Copy_Module_Successfully_n
call esi
lea eax, [ebp - 0x138]
push eax
push edi
call fcn.00405a61
add esp, 0xc
test al, al
je 0x404d58
push str.Deny_Original_Module_Access_Successfully_n
call esi
lea eax, [ebp - 0x138]
mov dword [esp], str.Deny
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.00405e48
add esp, 0xc
test al, al
jne 0x404cfe
push str.Delete_Backup_Module_ACL_Failure_n
call fcn.00401518
jmp 0x404d05
push str.Delete_Backup_Module_ACL_Successfully_n
call esi
pop ecx
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.00406007
pop ecx
test al, al
pop ecx
je 0x404d5f
push str.Set_Backup_Module_Access_Successfully_n
call esi
pop ecx
mov byte [ebp - 1], 1
jmp 0x404d6a
push str.Fail_To_Get_Sql_Info_n
call dword [sym.imp.MSVCRT.dll_printf]
jmp 0x404d69
push str.Critical_Module_Not_Loaded_Or_Find_Module_Method_Failure_n
jmp 0x404d64
lea eax, [ebp - 0x73c]
push eax
push edi
push str.Copy_Module_Failure__s_____s__n
call fcn.00401518
add esp, 0xc
jmp 0x404d6a
push str.Deny_Original_Module_Access_Failure_n
jmp 0x404d64
push str.Set_Backup_Module_Access_Failure_n
call fcn.00401518
pop ecx
mov al, byte [ebp - 1]
pop esi
jmp 0x404d72
xor al, al
pop edi
pop ebx
leave
ret