Function at 0x100059d0
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 [0x1000c00c]
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, 0x1000d1d8
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10005a10
movsx eax, word [edi]
test eax, eax
je 0x10005a60
cmp eax, 0x1000
ja 0x10005a3a
push eax
push edi
push 0x1000d1d8
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10005a60
push 0x1000
push 0
push 0x1000d1d8
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 0x10005a96
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 0x10005ad8
mov ecx, 0xd1e
cmp ax, cx
jne 0x10005aed
mov word [edi + 4], dx
mov eax, dword [0x1000d240]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10006025
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 0x10006025
mov ecx, 0x37f
cmp ax, cx
jne 0x10005c03
cmp word [edi + 0x2a], 1
mov esi, 0x20
mov ecx, 0x3ab
mov edx, 0x569b76
jne 0x10005b87
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 [0x1000c6d1], 0
je 0x10006025
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 0x10006022
mov ecx, 0xdde
cmp ax, cx
jne 0x10005c6c
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 [0x1000c024]
lea eax, [ebp - 0x34]
mov dword [0x49099b], 0xffffaaaa
push eax
push dword [ebp - 0x34]
push 4
push 0x49099a
call esi
jmp 0x10006025
mov ecx, 0x666
cmp ax, cx
jne 0x10005ca7
movups xmm0, xmmword [edi + 0xc]
movups xmmword [0x1000cc70], xmm0
movups xmm0, xmmword [edi + 0x1c]
movups xmmword [0x1000cc80], xmm0
movups xmm0, xmmword [edi + 0x2c]
movups xmmword [0x1000cc90], xmm0
movups xmm0, xmmword [edi + 0x3c]
movups xmmword [0x1000cca0], xmm0
jmp 0x10006025
mov ecx, 0xafa
cmp ax, cx
jne 0x10005cde
cwde
push eax
push str.PACKET_SUCESSO_Type:__d
call fcn.10005990
add esp, 8
cmp word [edi + 4], 2
jne 0x10006025
push str.shutdown__s__t_2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
jmp 0x10006025
mov ecx, 0x10a
cmp ax, cx
jne 0x10005d36
xor eax, eax
push 0x10009078
mov word [0x1000c7b4], 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 0x10006025
push eax
push 2
push 1
push 0x1000c7b4
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 0x10006025
mov ecx, 0x182
cmp ax, cx
je 0x10005d4b
mov word [0x1000cc68], ax
jmp 0x10006025
mov eax, dword [0x1000ccb0]
mov ecx, dword [0x1000ccb4]
mov byte [ebp - 0x35], 0
cmp eax, ecx
je 0x10005d73
movzx edx, word [edi + 0x10]
cmp edx, dword [eax]
je 0x10005d6f
add eax, 4
cmp eax, ecx
jne 0x10005d62
jmp 0x10005d73
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 0x10005e30
cmp si, cx
je 0x10005e30
cmp si, dx
jb 0x10005dbb
cmp si, cx
jbe 0x10005e9c
mov edi, dword [ebp - 0x34]
xor edx, edx
mov byte [0x1000c6d2], 1
movzx ecx, word [edi + 0x10]
mov eax, ecx
cmp ecx, 0x1015
ja 0x10005e0b
je case.0x10005e15.4118
sub eax, 0x1a3
je case.0x10005e15.4118
sub eax, 1
jne case.default.0x10005e15
mov edx, ecx
mov eax, dword [0x1000ccb4]
mov dword [ebp - 0x40], edx
cmp eax, dword [0x1000ccb8]
je 0x10005e1c
mov ecx, 0xf4c
mov dword [eax], edx
add dword [0x1000ccb4], 4
lea edx, [ecx - 9]
jmp 0x10005e9f
sub eax, 0x1016
cmp eax, 4
ja case.default.0x10005e15
jmp dword [eax*4 + 0x1000603c]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.10003930
mov ecx, 0xf4c
lea edx, [ecx - 9]
jmp 0x10005e9f
mov edi, dword [ebp - 0x34]
mov byte [0x1000c6d2], 1
movzx edx, word [edi + 0x10]
mov eax, edx
cmp eax, 0x309
ja 0x10005e63
je case.0x10005e7d.778
sub eax, 0x19c
cmp eax, 0xa6
ja case.0x10005e7d.778
movzx eax, byte [eax + 0x10006058]
jmp dword [eax*4 + 0x10006050]
cmp eax, 0x6cb
ja 0x10005e84
je case.0x10005e7d.778
sub eax, 0x30a
cmp eax, 7
ja case.0x10005e7d.778
movzx eax, byte [eax + 0x10006104]
jmp dword [eax*4 + 0x10006100]
cmp eax, 0xbd3
mov cx, word [edi + 0xe]
call fcn.10003420
mov ecx, 0xf4c
lea edx, [ecx - 9]
jmp 0x10005e9f
mov edi, dword [ebp - 0x34]
cmp byte [ebp - 0x35], 0
je 0x10005f03
mov al, byte [0x1000c6d2]
test al, al
je 0x10005f03
cmp si, dx
jb 0x10005eca
cmp si, cx
ja 0x10005eca
movzx ecx, word [edi + 0x10]
mov esi, 0x1015
mov edx, ecx
cmp cx, si
jne 0x10005ef1
jmp 0x10005ef1
movzx ecx, word [edi + 0x10]
mov eax, ecx
mov byte [0x1000c6d2], 1
mov edx, ecx
cmp eax, 0x1015
ja 0x10005eec
je 0x10005eec
sub eax, 0x1a3
je 0x10005eec
sub eax, 1
mov al, byte [0x1000c6d2]
test al, al
je 0x10005f03
mov cx, word [edi + 0xe]
call fcn.10003420
jmp 0x10006025
mov eax, 0x338
cmp word [0x1000cc68], ax
jne 0x10006025
movzx ecx, word [edi + 0x10]
xor esi, esi
xor edx, edx
nop dword [eax]
mov eax, ecx
cmp ecx, 0x956
ja 0x10005f87
je case.0x10005fc4.4019
cmp ecx, 0x1d9
ja 0x10005f5d
je case.0x10005fc4.4019
sub eax, 0x1a3
je case.0x10005fc4.4019
sub eax, 1
je case.0x10005fc4.4019
cmp ecx, esi
jne 0x10005fcf
inc edx
cmp edx, 0x3f
jl 0x10005f20
jmp 0x10006025
cmp ecx, 0x6cb
ja 0x10005f7f
je case.0x10005fc4.4019
sub eax, 0x1db
cmp eax, 7
ja case.0x10005fc4.4021
movzx eax, byte [eax + 0x10006114]
jmp dword [eax*4 + 0x1000610c]
cmp ecx, 0x6ee
jmp 0x10005f4c
cmp ecx, 0xc44
ja 0x10005fa9
je case.0x10005fc4.4019
sub eax, 0x957
cmp eax, 0x39
ja case.0x10005fc4.4021
movzx eax, byte [eax + 0x10006124]
jmp dword [eax*4 + 0x1000611c]
cmp ecx, 0x17d5
ja case.0x10005fc4.4021
je case.0x10005fc4.4019
sub eax, 0xfb3
cmp eax, 0x66
ja case.0x10005fc4.4021
movzx eax, byte [eax + 0x10006168]
jmp dword [eax*4 + 0x10006160]
mov esi, ecx
jmp 0x10005f52
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.100069a3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8