Function at 0x1002be40
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e08e
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2e8], edi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push dword [0x1004f330]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002bec2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call sym.ahclient.dll_SearchHelp
push 0xffffffffffffffff
push 0x10044204
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call sym.ahclient.dll_SearchHelp
mov ecx, eax
mov dword [ebp - 0x268], 0
xor eax, eax
mov dword [ebp - 0x264], 7
cmp dword [ebp - 0x238], ecx
mov word [ebp - 0x278], ax
lea eax, [ebp - 0x248]
cmovb ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x278]
push eax
call sym.ahclient.dll_SearchHelp
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x1002bf87
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002bf7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ce58
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
movups xmm1, xmmword [ebp - 0x278]
cmp dword [ebp - 0x264], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x268]
movq xmm0, qword [ebp - 0x268]
movd ecx, xmm1
movups xmmword [ebp - 0x248], xmm1
cmovae edx, ecx
movq qword [ebp - 0x238], xmm0
lea eax, [edx + eax*2]
lea edx, [ebp - 0x248]
cmovae edx, ecx
mov ecx, eax
cmp edx, ecx
je 0x1002bfe5
mov esi, 0x2f
cmp byte [edx], 0x5c
jne 0x1002bfde
mov word [edx], si
add edx, 2
cmp edx, ecx
jne 0x1002bfd6
push 1
push 0x1004420c
lea ecx, [ebp - 0x248]
call sym.ahclient.dll_SearchHelp
mov edx, dword [str.ARH.exe]
mov esi, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2dc], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002c010
sub ecx, dword [ebp - 0x2dc]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call sym.ahclient.dll_SearchHelp
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 0x2e8], 0x103
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], 1
mov word [ebp - 0x290], 0x20
mov edx, dword [str._isAppInstalled]
mov ecx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], al
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c0b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call sym.ahclient.dll_SearchHelp
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c0]
push eax
mov byte [ebp - 4], 6
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2d8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2c8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2e8]
lea ecx, [ebp - 0x278]
call sym.ahclient.dll_SearchHelp
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x278]
push eax
mov byte [ebp - 4], 8
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x24c]
movq qword [ebp - 0x2e0], xmm1
movups xmmword [ebp - 0x308], xmm0
cmp edx, 0x10
jb 0x1002c1be
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c1a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c2e9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [ebp - 0x308]
add esp, 8
movq xmm1, qword [ebp - 0x2e0]
mov edx, dword [ebp - 0x264]
movq qword [ebp - 0x250], xmm1
mov byte [ebp - 4], 7
movups xmmword [ebp - 0x260], xmm0
cmp edx, 0x10
jb 0x1002c20b
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c201
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c2e9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x1002c264
mov ecx, dword [ebp - 0x2d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c25a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c2e9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x2ac]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1002c29e
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c294
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c2e9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x1002c2f9
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c2ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c2ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
push 1
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2a8]
push eax
call sym.ahclient.dll_SearchHelp
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x1002c39a
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1002c359
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c34f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c3cc
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x294]
cmp edx, 8
jb 0x1002c3dc
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c3d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c3d2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov esi, dword [ebp - 0x220]
add esi, 3
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xorps xmm0, xmm0
mov dword [ebp - 0x2dc], eax
push 0x10044210
push esi
push eax
movlpd qword [ebp - 0x348], xmm0
movlpd qword [ebp - 0x340], xmm0
movlpd qword [ebp - 0x338], xmm0
movlpd qword [ebp - 0x330], xmm0
movlpd qword [ebp - 0x328], xmm0
movlpd qword [ebp - 0x320], xmm0
movlpd qword [ebp - 0x318], xmm0
movlpd qword [ebp - 0x310], xmm0
mov dword [ebp - 0x34c], 0x44
movups xmmword [ebp - 0x2f8], xmm0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
mov esi, dword [ebp - 0x2dc]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x1c
lea ecx, [ebp - 0x2f8]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x34c]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push esi
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x1002c4da
push 0xffffffffffffffff
push dword [ebp - 0x2f8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2f8]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x2f8]
add esp, 4
test eax, eax
je 0x1002c4f5
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f4]
test eax, eax
je 0x1002c506
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x2e8], 0
jne 0x1002cdc6
mov dword [ebp - 0x2c4], 0xf
mov dword [ebp - 0x2c8], 1
mov word [ebp - 0x2d8], 0x20
mov edx, dword [str._appLocation]
mov ecx, edx
mov byte [ebp - 4], 9
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c560
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x278]
call sym.ahclient.dll_SearchHelp
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x278]
push eax
mov byte [ebp - 4], 0xa
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2a8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x298], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2e8]
lea ecx, [ebp - 0x290]
call sym.ahclient.dll_SearchHelp
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x290]
push eax
mov byte [ebp - 4], 0xc
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x24c]
movq qword [ebp - 0x2e0], xmm1
movups xmmword [ebp - 0x2b8], xmm0
cmp edx, 0x10
jb 0x1002c66e
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c655
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c799
push edx
push ecx
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [ebp - 0x2b8]
add esp, 8
movq xmm1, qword [ebp - 0x2e0]
mov edx, dword [ebp - 0x27c]
movq qword [ebp - 0x250], xmm1
mov byte [ebp - 4], 0xb
movups xmmword [ebp - 0x260], xmm0
cmp edx, 0x10
jb 0x1002c6bb
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c6b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c799
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x1002c714
mov ecx, dword [ebp - 0x2a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c70a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c799
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x264]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x1002c74e
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c744
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c799
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x1002c7a9
mov ecx, dword [ebp - 0x2d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c79f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c79f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
push 1
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2a8]
push eax
call sym.ahclient.dll_SearchHelp
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x1002c84a
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1002c809
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c7ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c87c
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x294]
cmp edx, 8
jb 0x1002c88c
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c882
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c882
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov esi, dword [ebp - 0x220]
add esi, 3
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x10044210
push esi
push eax
mov dword [ebp - 0x2dc], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
mov esi, dword [ebp - 0x2dc]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x1c
push 0x1000
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x2dc], eax
test eax, eax
jne 0x1002ca13
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1002c958
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c94e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cdc0
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 0x10
jb 0x1002c9af
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002c9a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cdc0
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
cmp edx, 8
jb 0x1002cb6e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ca04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cdc0
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
jmp 0x1002cb6e
push 0xfffffffffffffff6
mov dword [ebp - 0x320], 0x101
call dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x314], eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [ebp - 0x310], eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x304]
push 0
push eax
lea eax, [ebp - 0x310]
mov dword [ebp - 0x304], 0xc
push eax
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x300], 0
push eax
mov dword [ebp - 0x2fc], 1
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x1002cbb4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x2dc]
add esp, 4
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x10040faf
mov byte [edi], 0
call sym.ahclient.dll_SearchHelp
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1002cade
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call sym.ahclient.dll_SearchHelp
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 0x10
jb 0x1002cb35
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002cb2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cdc0
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
mov dword [ebp - 0x24c], 0xf
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x1002cb6e
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call sym.ahclient.dll_SearchHelp
xor eax, eax
mov dword [ebp - 0x234], 7
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
call fcn.10007ad0
lea ecx, [ebp + 0x24]
call fcn.10007ad0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x2f8]
push ecx
lea ecx, [ebp - 0x34c]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push esi
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x1002ccd1
mov eax, dword [ebp - 0x2e4]
test eax, eax
je 0x1002ccd7
push 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x1000
push dword [ebp - 0x2dc]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x1002ccd1
cmp dword [ebp - 0x2f0], eax
jne 0x1002ccd1
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x1002ccd1
cmp dword [ebp - 0x2f0], 0
je 0x1002ccd1
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x2dc]
call dword [sym.imp.kernel32.dll_GlobalFree]
push dword [ebp - 0x2e4]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x10040faf
mov ecx, edi
mov dword [ebp - 0x2e4], 0
call sym.ahclient.dll_SearchHelp
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1002cca4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call sym.ahclient.dll_SearchHelp
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.10007ad0
jmp 0x1002cb50
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e4], 0
mov byte [eax + ecx - 2], 0
push dword [ebp - 0x2f8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x2f4]
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2a8]
add esp, 4
push esi
call sym.ahclient.dll_SearchHelp
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
lea eax, [ebp - 0x2a8]
mov ecx, edi
push eax
call sym.ahclient.dll_SearchHelp
lea ecx, [ebp - 0x2a8]
call fcn.10007ad0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1002cd6b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call sym.ahclient.dll_SearchHelp
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 0x10
jb 0x1002cb35
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002cb2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002cb2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x10040faf
mov byte [edi], 0
call sym.ahclient.dll_SearchHelp
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1002ce03
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call sym.ahclient.dll_SearchHelp
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 0x10
jb 0x1002cb35
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002cb2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002cb2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3