Function at 0x45de70
Capabilities:
Create process on windows
Get file size
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4808
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x6c], eax
mov dword [esi + 0x44], 1
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x45df33
push 1
sub esp, 0x18
mov dword [ebp - 0x78], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], esp
push edx
call fcn.00408100
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00424610
add esp, 0x18
mov dword [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00424ec0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x40]
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x50]
mov eax, 1
jmp 0x45df4f
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.00432510
add esp, 8
mov edi, eax
mov dword [ebp - 4], 5
mov eax, 2
lea ecx, [esi + 4]
mov dword [ebp - 0x44], eax
cmp ecx, edi
je 0x45df82
call fcn.0040bf40
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi + 4], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x14], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x44]
test al, 2
je 0x45dfa8
and eax, 0xfffffffd
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040bf40
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0
test al, 1
je 0x45dfc8
and eax, 0xfffffffe
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040bf40
cmp dword [ebp - 0x4c], 0
lea edi, [esi + 4]
jne 0x45dffa
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x20]
push edi
cmp eax, dword [esi + 0x28]
je 0x45dff4
mov ecx, eax
mov dword [ebp - 0x68], eax
call fcn.00408100
mov dword [ebp - 4], 0
add dword [esi + 0x24], 0x18
jmp 0x45dffa
push eax
call fcn.004564a0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004242c0
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
jbe 0x45e014
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4c]
push 0
neg ecx
push 0x80
sbb ecx, ecx
add ecx, 3
push ecx
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x60], 0x4d81f4
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.0040bf40
mov dword [ebp - 0xc0], 0x44
xorps xmm0, xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
cmp edi, 0xffffffff
je 0x45e0e8
mov dword [ebp - 0x94], 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 1
push 2
lea ecx, [ebp - 0x84]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x45e141
push dword [esi + 0x44]
lea ecx, [ebp - 0x58]
call fcn.00463970
lea eax, [ebp - 0x28]
push eax
call fcn.004639f0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x45e135
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x4c]
push 0
push edx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], 0
cmova eax, dword [ebp - 0x28]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.0040ff00
test edi, edi
je 0x45e151
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], 0x4d81f4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x10
xorps xmm0, xmm0
mov edx, dword [ebp - 0x6c]
movups xmmword [ebp - 0xd0], xmm0
cmp dword [edx + 0x10], 0
jne 0x45e17f
xor edx, edx
jmp 0x45e187
cmp dword [edx + 0x14], 7
jbe 0x45e187
mov edx, dword [edx]
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x10], 0
jne 0x45e194
xor eax, eax
jmp 0x45e19c
cmp dword [eax + 0x14], 7
jbe 0x45e19c
mov eax, dword [eax]
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + 0x10], 0
jne 0x45e1a9
xor ecx, ecx
jmp 0x45e1b1
cmp dword [ecx + 0x14], 7
jbe 0x45e1b1
mov ecx, dword [ecx]
lea esi, [ebp - 0xd0]
push esi
lea esi, [ebp - 0xc0]
push esi
push edx
push 0
push 0x8000020
push 1
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp - 0x50]
test eax, eax
jne 0x45e2ba
lea eax, [ebp - 0x1c]
push 0x7c
mov dword [ebp - 0x68], eax
call fcn.00486463
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0x11
mov ecx, eax
call fcn.0045eb50
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 0x12
mov byte [ebp - 0x14], 0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x45], 0
test ecx, ecx
je 0x45e369
push ecx
lea eax, [ebp - 0x45]
push eax
call fcn.0045ed80
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45e369
cmp byte [ebp - 0x18], 0
je 0x45e24a
cmp byte [eax + 0x6c], 0
jne 0x45e369
cmp byte [ebp - 0x14], 0
jne 0x45e35f
mov esi, dword [ebp - 0x64]
mov byte [ebp - 0x14], 1
mov dword [esi], eax
mov byte [esi + 4], 1
test eax, eax
je 0x45e269
lock inc dword [eax + 4]
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x44]
or eax, 8
mov dword [ebp - 0x44], eax
and eax, 0xfffffff7
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0x14
or eax, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1c]
call fcn.0045e5f0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0x4d81f4
test eax, eax
je 0x45e323
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x54], 0
jmp 0x45e323
mov eax, dword [ebp - 0xd0]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x4d81f4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x1c]
mov esi, dword [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0045ee50
mov eax, dword [ebp - 0x44]
add esp, 4
or eax, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x4d81f4
test eax, eax
je 0x45e318
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x58], 0x4d81f4
mov byte [ebp - 4], 0
mov dword [ebp - 0x60], 0x4d81f4
test edi, edi
je 0x45e340
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 2
call fcn.0045fce0
mov ecx, 4
call fcn.0045fce0
int3