Function at 0x1002e6e0
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 0x100407e9
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x100512d4]
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 - 0x2ec], edi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push dword [0x10051284]
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 0x1002e762
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 0x10046f8c
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 0x1002e829
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e81f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002e81f
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
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 0x1002e887
mov esi, 0x2f
cmp byte [edx], 0x5c
jne 0x1002e880
mov word [edx], si
add edx, 2
cmp edx, ecx
jne 0x1002e878
push 1
push 0x10046f94
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 dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e8b0
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
push 1
push 0x10047108
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 4
mov dword [ebp - 0x2ec], 0x103
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call sym.ahclient.dll_SearchHelp
mov edx, dword [str._isAppInstalled]
mov ecx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e964
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x290]
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 - 0x290]
push eax
mov byte [ebp - 4], 6
call sym.ahclient.dll_SearchHelp
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
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 - 0x278]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2c0]
push eax
call sym.ahclient.dll_SearchHelp
add esp, 0xc
mov ecx, eax
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
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 - 0x30c], xmm0
cmp edx, 0x10
jb 0x1002ea80
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ea67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebc6
push edx
push ecx
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [ebp - 0x30c]
add esp, 8
movq xmm1, qword [ebp - 0x2e0]
mov edx, dword [ebp - 0x2ac]
movq qword [ebp - 0x250], xmm1
mov byte [ebp - 4], 7
movups xmmword [ebp - 0x260], xmm0
cmp edx, 0x10
jb 0x1002eacd
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002eac3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebc6
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x1002eb26
mov ecx, dword [ebp - 0x2d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002eb1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebc6
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1002eb7b
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002eb71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebc6
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x1002ebd6
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ebcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ebcc
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 0x1002ec77
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1002ec36
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ec2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002eca9
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 0x1002ecb9
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ecaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ecaf
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 0x10046f98
push esi
push eax
movlpd qword [ebp - 0x34c], xmm0
movlpd qword [ebp - 0x344], xmm0
movlpd qword [ebp - 0x33c], xmm0
movlpd qword [ebp - 0x334], xmm0
movlpd qword [ebp - 0x32c], xmm0
movlpd qword [ebp - 0x324], xmm0
movlpd qword [ebp - 0x31c], xmm0
movlpd qword [ebp - 0x314], xmm0
mov dword [ebp - 0x350], 0x44
movups xmmword [ebp - 0x2fc], 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 - 0x2fc]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x350]
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 0x1002edb7
push 0xffffffffffffffff
push dword [ebp - 0x2fc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x2fc]
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 - 0x2fc]
add esp, 4
test eax, eax
je 0x1002edd2
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f8]
test eax, eax
je 0x1002ede3
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x2ec], 0
jne 0x1002f604
push 1
push 0x10047108
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call sym.ahclient.dll_SearchHelp
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ee47
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
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x290], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x280], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2a8]
push eax
call sym.ahclient.dll_SearchHelp
add esp, 0xc
mov ecx, eax
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
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 - 0x2e8], xmm1
movups xmmword [ebp - 0x2d0], xmm0
cmp edx, 0x10
jb 0x1002ef63
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ef4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f0a9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
movups xmm0, xmmword [ebp - 0x2d0]
add esp, 8
movq xmm1, qword [ebp - 0x2e8]
mov edx, dword [ebp - 0x294]
movq qword [ebp - 0x250], xmm1
mov byte [ebp - 4], 0xb
movups xmmword [ebp - 0x260], xmm0
cmp edx, 0x10
jb 0x1002efb0
mov ecx, dword [ebp - 0x2a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002efa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f0a9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x1002f009
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002efff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f0a9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x1002f05e
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f054
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f0a9
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x1002f0b9
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f0af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002f0af
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 0x1002f15a
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1002f119
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f10f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f18c
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 0x1002f19c
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f192
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002f192
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 0x10046f98
push esi
push eax
mov dword [ebp - 0x2e4], 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
push dword [ebp - 0x2e4]
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 esi, eax
test esi, esi
jne 0x1002f323
push dword [ebp - 0x2e4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x10], 0
mov ecx, edi
push 0
mov dword [edi + 0x14], 0xf
push 0x10042d3f
mov byte [edi], 0
call sym.ahclient.dll_SearchHelp
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1002f26c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f262
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5fe
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
cmp edx, 0x10
jb 0x1002f2bf
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f2b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5fe
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
mov edx, dword [ebp - 0x234]
mov byte [ebp - 0x260], 0
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
cmp edx, 8
jb 0x1002f6d3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f314
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5fe
push edx
push ecx
call sym.ahclient.dll_SearchHelp
add esp, 8
jmp 0x1002f6d3
push 0xfffffffffffffff6
mov dword [ebp - 0x324], 0x101
call dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x318], eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [ebp - 0x314], eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x308]
push 0
push eax
lea eax, [ebp - 0x314]
mov dword [ebp - 0x308], 0xc
push eax
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x304], 0
push eax
mov dword [ebp - 0x300], 1
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x1002f3b1
push dword [ebp - 0x2e4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x1002f20d
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x2fc]
push ecx
lea ecx, [ebp - 0x350]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x1002f464
mov eax, dword [ebp - 0x2dc]
test eax, eax
je 0x1002f46a
push 0
lea ecx, [ebp - 0x2f4]
push ecx
push 0x1000
push esi
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x1002f464
cmp dword [ebp - 0x2f4], eax
jne 0x1002f464
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x1002f464
cmp dword [ebp - 0x2f4], 0
je 0x1002f464
push dword [ebp - 0x2e4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push dword [ebp - 0x2dc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x2dc], 0
jmp 0x1002f20d
mov eax, dword [ebp - 0x2dc]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2dc], 0
mov byte [eax + esi - 2], 0
push dword [ebp - 0x2fc]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x2f8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x2e4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
mov dword [ebp - 0x298], 0
add esp, 4
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f4d0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2a8]
call sym.ahclient.dll_SearchHelp
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
movups xmm0, xmmword [ebp - 0x2a8]
mov edx, dword [ebp - 0x21c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x298]
movq qword [edi + 0x10], xmm0
cmp edx, 8
jb 0x1002f552
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f548
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5fe
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 0x1002f5a5
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f59b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5fe
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 0x1002f6d3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f314
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002f314
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 0x10042d3f
mov byte [edi], 0
call sym.ahclient.dll_SearchHelp
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1002f641
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 0x1002f69a
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f690
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002f690
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 eax, dword [ebp - 0x234]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
cmp eax, 8
jb 0x1002f6d3
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.1000aa50
lea ecx, [ebp + 0x24]
call fcn.1000aa50
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.1003af70
mov esp, ebp
pop ebp
ret