Function at 0x418e20
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
mov eax, dword [0x427008]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x3c]
push esi
push edi
push ecx
push eax
mov dword [esp + 0x4c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x44], esi
jle 0x418f4a
nop dword [eax + eax]
mov edx, dword [eax + esi*4]
mov eax, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418ea0
sub eax, edi
lea ecx, [esp + 0x10]
sar eax, 1
push eax
push edx
call fcn.0040de20
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
je 0x418ef0
movups xmm0, xmmword [esp + 0x10]
mov dword [eax], 0
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esp + 0x3c], 0x18
mov word [esp + 0x10], ax
jmp 0x418f03
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.0040e050
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x418f3b
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418f31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419229
push edx
push ecx
call fcn.0041c8aa
add esp, 8
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [esp + 0x44]
jl 0x418e80
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 0x18
mov ecx, esp
push 5
push 0x424390
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x19c]
call fcn.00418b00
mov ecx, esp
push 4
push str.type
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x60]
call fcn.00418b00
mov ecx, esp
push 4
push str.size
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10c]
call fcn.00418b00
mov ecx, esp
push 5
push str.image
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x78]
call fcn.00418b00
mov ecx, esp
push 3
push 0x4243c0
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0xf4]
call fcn.00418b00
mov ecx, esp
push 6
push str.cipher
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x124]
call fcn.00418b00
mov ecx, esp
push 6
push str.format
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x184]
call fcn.00418b00
mov ecx, esp
push 6
push str.params
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x16c]
call fcn.00418b00
mov ecx, esp
push 7
push str.new_key
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0xdc]
call fcn.00418b00
mov ecx, esp
push 6
push str.backup
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc4]
call fcn.00418b00
mov ecx, esp
push 7
push str.restore
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0xac]
call fcn.00418b00
mov ecx, esp
push 5
push str.proxy
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x154]
call fcn.00418b00
mov ecx, esp
push 5
push str.event
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x13c]
call fcn.00418b00
mov ecx, esp
push 7
push str.section
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040de20
lea edx, [esp + 0x50]
lea ecx, [esp + 0x94]
call fcn.00418b00
add esp, 0x18
cmp dword [esp + 0x104], 0
jne 0x41922f
mov dword [esp + 8], 0x80000000
mov dword [esp + 0xc], 0
jmp 0x419258
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [esp + 0x108], 8
lea eax, [esp + 0xf4]
cmovae eax, dword [esp + 0xf4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp dword [esp + 0x5c], 8
lea ecx, [esp + 0x48]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
cmovae ecx, dword [esp + 0x48]
push str.virtual
push ecx
call esi
add esp, 8
test eax, eax
je 0x41940a
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push 0x424460
cmovae eax, dword [esp + 0x4c]
push eax
call esi
add esp, 8
test eax, eax
je 0x41940a
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push str.physical
cmovae eax, dword [esp + 0x4c]
push eax
call esi
add esp, 8
test eax, eax
je 0x4193b9
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push 0x42447c
cmovae eax, dword [esp + 0x4c]
push eax
call esi
add esp, 8
test eax, eax
je 0x4193b9
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push str.image
cmovae eax, dword [esp + 0x4c]
push eax
call esi
add esp, 8
test eax, eax
je 0x419336
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push 0x424484
cmovae eax, dword [esp + 0x4c]
push eax
call esi
add esp, 8
test eax, eax
je 0x419336
push str.Invalid_disk_type._n
call fcn.0040d690
add esp, 4
mov dword [esp + 8], 0xffffffff
jmp 0x419582
push 8
call fcn.0041c629
mov edi, eax
add esp, 4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 0x28
mov dword [edi], vtable.CImageFileIO.0
call fcn.0041c629
mov ecx, eax
add esp, 4
lea eax, [esp + 0x60]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0xffffffff
mov dword [edi + 4], ecx
cmp ecx, eax
je 0x4193a6
cmp dword [esp + 0x74], 8
push dword [esp + 0x70]
cmovae eax, dword [esp + 0x64]
push eax
call fcn.0040de20
mov ecx, dword [edi + 4]
mov edx, dword [esp + 8]
mov dword [ecx + 0x18], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0x1c], edx
jmp 0x419495
push 8
call fcn.0041c629
mov edi, eax
add esp, 4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 0x30
mov dword [edi], vtable.CPhysicalMemoryIO.0
call fcn.0041c629
add esp, 4
mov dword [eax + 0x18], 0
push 0x30
mov dword [eax + 0x1c], 0
mov dword [eax + 0x28], 0
push 0
mov dword [eax + 0x2c], 0
push eax
mov dword [edi + 4], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x419441
push 8
call fcn.0041c629
mov edi, eax
add esp, 4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 0x20
mov dword [edi], vtable.CVirtualMemoryIO.0
call fcn.0041c629
xorps xmm0, xmm0
add esp, 4
mov dword [eax + 0x1c], 0
mov dword [edi + 4], eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov eax, dword [edi + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov eax, dword [edi + 4]
mov dword [eax + 0x10], 0x14
mov edx, dword [edi + 4]
cmp dword [edx + 0x10], 0xc
jge 0x41946e
mov dword [edx + 0x10], 0xc
mov edx, dword [edi + 4]
cmp dword [edx + 0x10], 0x1e
jle 0x41947e
mov dword [edx + 0x10], 0x1e
mov edx, dword [edi + 4]
mov ecx, dword [edx + 0x10]
mov eax, 1
shl eax, cl
mov dword [edx + 8], eax
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 8]
dec eax
mov dword [ecx + 0xc], eax
cmp dword [esp + 0xbc], 0
je 0x419653
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x419582
push 0x40
push 0x3000
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x41976c
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 0x800
mov eax, dword [eax + 0x1c]
push esi
call eax
test al, al
jne 0x419511
lea ecx, [esp + 0xc]
call fcn.0040f310
mov dword [esp + 8], 2
jmp 0x419582
cmp dword [esp + 0xc0], 8
lea eax, [esp + 0xac]
push 0
cmovae eax, dword [esp + 0xb0]
push 0xa0000000
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x419646
push 0
lea eax, [esp + 0x38]
push eax
push 0x800
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 8]
test eax, eax
mov ecx, 2
cmove esi, ecx
push edi
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
call fcn.0040f310
mov esi, dword [esp + 8]
lea ecx, [esp + 0x7c]
call fcn.0040dc30
lea ecx, [esp + 0x124]
call fcn.0040dc30
lea ecx, [esp + 0x13c]
call fcn.0040dc30
lea ecx, [esp + 0x94]
call fcn.0040dc30
lea ecx, [esp + 0xac]
call fcn.0040dc30
lea ecx, [esp + 0xc4]
call fcn.0040dc30
lea ecx, [esp + 0x154]
call fcn.0040dc30
lea ecx, [esp + 0x16c]
call fcn.0040dc30
lea ecx, [esp + 0x10c]
call fcn.0040dc30
lea ecx, [esp + 0xdc]
call fcn.0040dc30
lea ecx, [esp + 0x60]
call fcn.0040dc30
lea ecx, [esp + 0xf4]
call fcn.0040dc30
lea ecx, [esp + 0x48]
call fcn.0040dc30
lea ecx, [esp + 0x184]
call fcn.0040dc30
lea ecx, [esp + 0x38]
call fcn.00419980
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041c61b
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 8], 2
jmp 0x419579
cmp dword [esp + 0xa4], 0
je 0x41978f
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x419582
push 0x40
push 0x3000
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x41976c
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x94]
push 0
cmovae eax, dword [esp + 0x98]
push 0xa0000000
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
je 0x41973f
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0x800
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 8]
test eax, eax
push dword [esp + 0x34]
mov edx, 2
cmove ecx, edx
mov dword [esp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], 0
jne 0x419756
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 0x800
mov eax, dword [eax + 0x18]
push esi
call eax
mov esi, dword [esp + 8]
test al, al
mov eax, 2
cmove esi, eax
mov dword [esp + 8], esi
jmp 0x419579
lea ecx, [esp + 0xc]
mov esi, 2
call fcn.0040f310
mov dword [esp + 8], esi
jmp 0x419582
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
call fcn.0040f310
mov dword [esp + 8], esi
jmp 0x419582
push str.Malloc_Failed_n
call fcn.0040d690
add esp, 4
lea ecx, [esp + 0xc]
call fcn.0040f310
mov dword [esp + 8], 0xd
jmp 0x419582
xor esi, esi
cmp dword [esp + 0x8c], esi
je 0x4197cb
cmp dword [esp + 0x90], 8
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push eax
push esi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
je 0x4197cb
push 0x1000
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp dword [esp + 0xec], 0
jne 0x41982e
cmp dword [esp + 0x11c], 0
je 0x4198a2
test esi, esi
jne 0x4197f1
mov esi, 5
jmp 0x419586
push 0xc
call fcn.0041c629
add esp, 4
lea ecx, [esp + 0x10c]
xorps xmm0, xmm0
movq qword [eax], xmm0
push ecx
push esi
push edi
mov ecx, eax
mov dword [eax + 8], 0
call fcn.0040e790
push 0x1000
push 0
push esi
mov edi, eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x419870
push 0xc
call fcn.0041c629
add esp, 4
lea edx, [esp + 0x10c]
cmp dword [esp + 0xf0], 8
lea ecx, [esp + 0xdc]
xorps xmm0, xmm0
cmovae ecx, dword [esp + 0xdc]
push edx
push ecx
movq qword [eax], xmm0
mov ecx, eax
push edi
mov dword [eax + 8], 0
call fcn.0040e790
mov edi, eax
cmp dword [esp + 0xd4], 0
je 0x4198a2
cmp dword [esp + 0xd8], 8
lea ecx, [esp + 0xc4]
mov eax, dword [edi]
cmovae ecx, dword [esp + 0xc4]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
jmp 0x419586
test edi, edi
je 0x419968
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov dword [esp + 8], eax
test eax, eax
jne 0x419582
push 0xc
call fcn.0041c629
add esp, 4
lea ecx, [esp + 0x154]
xorps xmm0, xmm0
movq qword [eax], xmm0
push ecx
lea ecx, [esp + 0x170]
mov dword [eax + 8], 0
push ecx
lea ecx, [esp + 0x18c]
push ecx
push edi
mov ecx, eax
call fcn.00419a00
cmp dword [esp + 0x14c], 0
mov edi, eax
je 0x419912
lea eax, [esp + 0x13c]
mov ecx, edi
push eax
call fcn.00419c40
cmp dword [esp + 0x134], 0
je 0x419940
lea ecx, [esp + 0x124]
call fcn.0040dc20
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x419940
mov ecx, dword [edi]
test ecx, ecx
je 0x419940
mov dword [ecx + 0x64], eax
test esi, esi
je 0x41994d
push esi
push ecx
mov ecx, edi
call fcn.00419c70
push 0
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov ecx, edi
call fcn.0041a2d0
mov esi, eax
jmp 0x419586
mov esi, 1
jmp 0x419586