Function at 0x10031e40
Capabilities:
Contain obfuscated stackstrings
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10178a25
mov eax, dword fs:[0]
push eax
mov eax, 0x10f4
call fcn.10117e00
mov eax, dword [0x101ce2f4]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10dc], 0
test bh, bh
nop
lea ecx, [ebp - 0x10d5]
call fcn.10030950
mov dword [ebp - 0x10e4], eax
mov eax, dword [ebp - 0x10e4]
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10e8]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.10011360
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10d5]
call fcn.100024c0
test eax, 0x7159
mov dword [ebp - 0xc8], 0
test bl, bl
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
push ebx
pop ebx
mov dword [ebp - 0x64], 0xc
mov cl, cl
mov dword [ebp - 0x60], 0
test ah, ah
mov dword [ebp - 0x5c], 1
mov eax, eax
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x10031f3e
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000cf30
mov ecx, dword [ebp - 0x10dc]
or ecx, 1
mov dword [ebp - 0x10dc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.10006e20
mov eax, dword [ebp + 8]
jmp 0x10032272
cmp dword [ebp + 0x14], 0
je 0x10031f99
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10ec], edx
mov eax, dword [ebp - 0x10ec]
add eax, 1
mov dword [ebp - 0x10f0], eax
mov ecx, dword [ebp - 0x10ec]
mov dl, byte [ecx]
mov byte [ebp - 0x10f1], dl
add dword [ebp - 0x10ec], 1
cmp byte [ebp - 0x10f1], 0
jne 0x10031f5c
mov eax, dword [ebp - 0x10ec]
sub eax, dword [ebp - 0x10f0]
mov dword [ebp - 0x10f8], eax
je 0x10031f99
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc8], ecx
test edx, edx
test esi, esi
test eax, eax
push 0x44
push 0
lea edx, [ebp - 0xc4]
push edx
call fcn.101182b0
add esp, 0xc
mov ebx, ebx
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov edx, edx
mov dword [ebp - 0xc4], 0x44
mov ebp, ebp
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x84], ecx
test al, al
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x88], edx
mov al, al
mov word [ebp - 0x94], 0
test edx, edx
mov dword [ebp - 0x98], 0x101
push eax
pop eax
mov byte [ebp - 0x58], 0x63
mov byte [ebp - 0x57], 0x6d
mov byte [ebp - 0x56], 0x64
mov byte [ebp - 0x55], 0x2e
mov byte [ebp - 0x54], 0x65
mov byte [ebp - 0x53], 0x78
mov byte [ebp - 0x52], 0x65
mov byte [ebp - 0x51], 0x20
mov byte [ebp - 0x50], 0x2f
mov byte [ebp - 0x4f], 0x43
mov byte [ebp - 0x4e], 0x20
mov byte [ebp - 0x4d], 0
mov al, al
lea ecx, [ebp - 0x10d6]
call fcn.10030950
mov dword [ebp - 0x10fc], eax
mov eax, dword [ebp - 0x10fc]
mov dword [ebp - 0x1100], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1100]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x3c]
call fcn.100085d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10d6]
call fcn.100024c0
test ebx, ebx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10011930
mov ecx, ecx
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xc8]
push eax
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.100040b0
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x10032104
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test dl, dl
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000cf30
mov ecx, dword [ebp - 0x10dc]
or ecx, 1
mov dword [ebp - 0x10dc], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.10006e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.10006e20
mov eax, dword [ebp + 8]
jmp 0x10032272
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test edi, edi
mov dword [ebp - 0xcc], 0
nop
mov ecx, ecx
cmp dword [ebp + 0x18], 0
jle 0x1003217e
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov dl, dl
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
test cl, cl
mov dword [ebp - 0x14], 0
test ah, ah
call fcn.10041000
mov dword [ebp - 0xd0], eax
test ch, ch
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 0x1002e5f0
push 0
push 0
call fcn.1011990f
add esp, 0x18
mov dword [ebp - 0xcc], eax
push ecx
pop ecx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.100410c0
add esp, 4
test eax, 0x3ef1
mov ecx, 1
test ecx, ecx
je 0x100321db
mov bh, bh
mov bh, bh
push 0x1000
push 0
lea edx, [ebp - 0x10d4]
push edx
call fcn.101182b0
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
push 0
lea eax, [ebp - 0xd4]
push eax
push 0xfff
lea ecx, [ebp - 0x10d4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x100321c8
jmp 0x100321db
lea eax, [ebp - 0x10d4]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10011930
mov dh, dh
jmp 0x1003217e
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x7d05
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x3b75
cmp dword [ebp + 0x18], 0
jle 0x10032230
cmp dword [ebp - 0xcc], 0
je 0x10032230
mov dword [ebp - 0x14], 1
test dh, dh
push 0xffffffffffffffff
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test cl, cl
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000cf30
mov ecx, dword [ebp - 0x10dc]
or ecx, 1
mov dword [ebp - 0x10dc], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.10006e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.10006e20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1011717a
mov esp, ebp
pop ebp
ret