Function at 0x100058f0
Capabilities:
Allocate or change rwx memory
Execute command
Execute shellcode via indirect call
Write and execute a file
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x1000c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebx + 8]
mov ecx, 0x1000
mov dword [ebp - 0x34], edi
mov eax, 0x1000d230
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10005930
movsx eax, word [edi]
test eax, eax
je 0x10005980
cmp eax, 0x1000
ja 0x1000595a
push eax
push edi
push 0x1000d230
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10005980
push 0x1000
push 0
push 0x1000d230
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
movzx eax, word [edi + 4]
mov edx, 0xd1d
cmp ax, dx
jne 0x100059b6
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x34]
push eax
push 0x40
push 4
push 0x49a477
mov dword [ebp - 0x34], 0x40
call esi
mov dword [0x49a477], 0xff00cd00
jmp 0x100059f8
mov ecx, 0xd1e
cmp ax, cx
jne 0x10005a0d
mov word [edi + 4], dx
mov eax, dword [0x1000d298]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10005f43
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x34]
push eax
push 0x40
push 4
push 0x49a477
mov dword [ebp - 0x34], 0x40
call esi
mov eax, dword [ebp - 0x3c]
mov dword [0x49a477], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
push 4
push 0x49a477
call esi
jmp 0x10005f43
mov ecx, 0x37f
cmp ax, cx
jne 0x10005b23
cmp word [edi + 0x2a], 1
mov esi, 0x20
mov ecx, 0x3ab
mov edx, 0x569b76
jne 0x10005aa7
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [ebp - 0x50], xmm0
xorps xmm0, xmm0
movaps xmmword [ebp - 0x30], xmm0
movaps xmmword [ebp - 0x60], xmm1
movaps xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x30], si
mov word [ebp - 0x2c], cx
mov ecx, dword ds:[0x13c1aac]
add ecx, 0xdfc
xor eax, eax
mov ax, word ds:[ecx]
movq xmm0, qword [ebp - 0x5a]
mov word [ebp - 0x2a], ax
pextrw eax, xmm1, 2
push esi
movq qword [ebp - 0x22], xmm0
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x52]
mov dword [ebp - 0x1a], eax
mov al, byte [ebp - 0x4e]
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x30]
push eax
call edx
add esp, 8
mov ecx, 0x3ab
mov edx, 0x569b76
cmp byte [0x1000c721], 0
je 0x10005f43
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [ebp - 0x50], xmm0
xorps xmm0, xmm0
movaps xmmword [ebp - 0x30], xmm0
movaps xmmword [ebp - 0x60], xmm1
movaps xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x30], si
mov word [ebp - 0x2c], cx
mov ecx, dword ds:[0x13c1aac]
add ecx, 0xdfc
xor eax, eax
mov ax, word ds:[ecx]
movq xmm0, qword [ebp - 0x5a]
mov word [ebp - 0x2a], ax
pextrw eax, xmm1, 2
push 0x20
movq qword [ebp - 0x22], xmm0
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x52]
mov dword [ebp - 0x1a], eax
mov al, byte [ebp - 0x4e]
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x30]
push eax
call edx
jmp 0x10005f40
mov ecx, 0xdde
cmp ax, cx
jne 0x10005b8c
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [edi + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
push 4
push 0x49099a
mov dword [ebp - 0x34], 0x40
call esi
mov dword [0x49099b], 0xffffff00
mov eax, dword [0x684bb0]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
call dword [0x1000c094]
lea eax, [ebp - 0x34]
mov dword [0x49099b], 0xffffaaaa
push eax
push dword [ebp - 0x34]
push 4
push 0x49099a
call esi
jmp 0x10005f43
mov ecx, 0x666
cmp ax, cx
jne 0x10005bc7
movups xmm0, xmmword [edi + 0xc]
movups xmmword [0x1000ccc0], xmm0
movups xmm0, xmmword [edi + 0x1c]
movups xmmword [0x1000ccd0], xmm0
movups xmm0, xmmword [edi + 0x2c]
movups xmmword [0x1000cce0], xmm0
movups xmm0, xmmword [edi + 0x3c]
movups xmmword [0x1000ccf0], xmm0
jmp 0x10005f43
mov ecx, 0xafa
cmp ax, cx
jne 0x10005bfe
cwde
push eax
push str.PACKET_SUCESSO_Type:__d
call fcn.100058b0
add esp, 8
cmp word [edi + 4], 2
jne 0x10005f43
push str.shutdown__s__t_2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
jmp 0x10005f43
mov ecx, 0x10a
cmp ax, cx
jne 0x10005c56
xor eax, eax
push 0x10008f9c
mov word [0x1000ccb8], ax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push str.UI_acc.bin
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x34]
add esp, 0xc
test eax, eax
je 0x10005f43
push eax
push 2
push 1
push 0x1000ccb8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x10005f43
mov ecx, 0x182
cmp ax, cx
je 0x10005c6b
mov word [0x1000ccbc], ax
jmp 0x10005f43
mov eax, dword [0x1000cd04]
mov ecx, dword [0x1000cd08]
mov byte [ebp - 0x35], 0
cmp eax, ecx
je 0x10005c93
movzx edx, word [edi + 0x10]
cmp edx, dword [eax]
je 0x10005c8f
add eax, 4
cmp eax, ecx
jne 0x10005c82
jmp 0x10005c93
mov byte [ebp - 0x35], 1
mov eax, dword ds:[0x13c1aac]
add eax, 0x6ec
mov ecx, 0xbd
lea edi, [ebp - 0x368]
mov esi, eax
mov edx, 0xf43
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2a4]
lea ecx, [edx + 9]
cmp si, dx
je 0x10005d50
cmp si, cx
je 0x10005d50
cmp si, dx
jb 0x10005cdb
cmp si, cx
jbe 0x10005dbc
mov edi, dword [ebp - 0x34]
xor edx, edx
mov byte [0x1000c722], 1
movzx ecx, word [edi + 0x10]
mov eax, ecx
cmp ecx, 0x1015
ja 0x10005d2b
je case.0x10005d35.4118
sub eax, 0x1a3
je case.0x10005d35.4118
sub eax, 1
jne case.default.0x10005d35
mov edx, ecx
mov eax, dword [0x1000cd08]
mov dword [ebp - 0x40], edx
cmp eax, dword [0x1000cd0c]
je 0x10005d3c
mov ecx, 0xf4c
mov dword [eax], edx
add dword [0x1000cd08], 4
lea edx, [ecx - 9]
jmp 0x10005dbf
sub eax, 0x1016
cmp eax, 4
ja case.default.0x10005d35
jmp dword [eax*4 + 0x10005f5c]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.10003970
mov ecx, 0xf4c
lea edx, [ecx - 9]
jmp 0x10005dbf
mov edi, dword [ebp - 0x34]
mov byte [0x1000c722], 1
movzx edx, word [edi + 0x10]
mov eax, edx
cmp eax, 0x309
ja 0x10005d83
je case.0x10005d9d.778
sub eax, 0x19c
cmp eax, 0xa6
ja case.0x10005d9d.778
movzx eax, byte [eax + 0x10005f78]
jmp dword [eax*4 + 0x10005f70]
cmp eax, 0x6cb
ja 0x10005da4
je case.0x10005d9d.778
sub eax, 0x30a
cmp eax, 7
ja case.0x10005d9d.778
movzx eax, byte [eax + 0x10006024]
jmp dword [eax*4 + 0x10006020]
cmp eax, 0xbd3
mov cx, word [edi + 0xe]
call fcn.10003430
mov ecx, 0xf4c
lea edx, [ecx - 9]
jmp 0x10005dbf
mov edi, dword [ebp - 0x34]
cmp byte [ebp - 0x35], 0
je 0x10005e23
mov al, byte [0x1000c722]
test al, al
je 0x10005e23
cmp si, dx
jb 0x10005dea
cmp si, cx
ja 0x10005dea
movzx ecx, word [edi + 0x10]
mov esi, 0x1015
mov edx, ecx
cmp cx, si
jne 0x10005e11
jmp 0x10005e11
movzx ecx, word [edi + 0x10]
mov eax, ecx
mov byte [0x1000c722], 1
mov edx, ecx
cmp eax, 0x1015
ja 0x10005e0c
je 0x10005e0c
sub eax, 0x1a3
je 0x10005e0c
sub eax, 1
mov al, byte [0x1000c722]
test al, al
je 0x10005e23
mov cx, word [edi + 0xe]
call fcn.10003430
jmp 0x10005f43
mov eax, 0x338
cmp word [0x1000ccbc], ax
jne 0x10005f43
movzx eax, word [edi + 0x10]
xor esi, esi
xor edx, edx
nop dword [eax]
cmp eax, 0x956
ja 0x10005ea5
je case.0x10005ee2.4019
cmp eax, 0x1d9
ja 0x10005e7c
je case.0x10005ee2.4019
mov ecx, eax
sub ecx, 0x1a3
je case.0x10005ee2.4019
sub ecx, 1
je case.0x10005ee2.4019
cmp eax, esi
jne 0x10005eed
inc edx
cmp edx, 0x3f
jl 0x10005e40
jmp 0x10005f43
cmp eax, 0x6cb
ja 0x10005e9e
je case.0x10005ee2.4019
lea ecx, [eax - 0x1db]
cmp ecx, 7
ja case.0x10005ee2.4021
movzx ecx, byte [ecx + 0x10006034]
jmp dword [ecx*4 + 0x1000602c]
cmp eax, 0x6ee
jmp 0x10005e6b
cmp eax, 0xc44
ja 0x10005ec7
je case.0x10005ee2.4019
lea ecx, [eax - 0x957]
cmp ecx, 0x39
ja case.0x10005ee2.4021
movzx ecx, byte [ecx + 0x10006044]
jmp dword [ecx*4 + 0x1000603c]
cmp eax, 0x17d5
ja case.0x10005ee2.4021
je case.0x10005ee2.4019
lea ecx, [eax - 0xfb3]
cmp ecx, 0x66
ja case.0x10005ee2.4021
movzx ecx, byte [ecx + 0x10006088]
jmp dword [ecx*4 + 0x10006080]
mov esi, eax
jmp 0x10005e71
mov eax, 0x2e4
mov dword [ebp - 0x24], 0x14
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x20], ax
mov ecx, dword ds:[0x13c1aac]
add ecx, 0xdfc
xor eax, eax
mov ax, word ds:[ecx]
mov word [ebp - 0x1e], ax
mov ax, word [edi + 0x10]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xe]
mov dword [ebp - 0x18], eax
mov eax, 5
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x24]
push 0x14
push eax
mov eax, 0x569b76
call eax
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10006933
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8