Function at 0x416fb0
Capabilities:
Create process on windows
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38c
lea ebx, [ebp - 0x30c]
mov dword [ebp - 0x30c], 0xc
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x561b04
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x348], eax
je 0x4172f6
mov ecx, ebx
mov esi, 0xffffffff
lea edx, [ebp - 0x340]
lea eax, [ebp - 0x344]
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0
call fcn.00415b20
test al, al
jne 0x4170d0
mov eax, dword [ebp - 0x340]
test eax, eax
je 0x417076
mov dword [esp], eax
lea ecx, [ebp - 0x340]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x340], 0
test eax, eax
je 0x41709b
mov dword [esp], eax
lea ecx, [ebp - 0x344]
call fcn.0042f4e0
sub esp, 4
mov dword [ebp - 0x344], 0
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x4170c0
mov dword [esp], eax
lea ecx, [ebp - 0x348]
call fcn.0042f4e0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, ebx
lea edx, [ebp - 0x338]
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
call fcn.00415b20
test al, al
jne 0x417150
mov eax, dword [ebp - 0x338]
test eax, eax
je 0x417116
mov dword [esp], eax
lea ecx, [ebp - 0x338]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x33c]
mov dword [ebp - 0x338], 0
test eax, eax
je 0x41713b
mov dword [esp], eax
lea ecx, [ebp - 0x33c]
call fcn.0042f4e0
sub esp, 4
mov dword [ebp - 0x33c], 0
jmp 0x41705b
mov ecx, ebx
lea edx, [ebp - 0x330]
lea eax, [ebp - 0x334]
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0
call fcn.00415b20
test al, al
jne 0x4171d0
mov eax, dword [ebp - 0x330]
test eax, eax
je 0x417196
mov dword [esp], eax
lea ecx, [ebp - 0x330]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x330], 0
test eax, eax
je 0x4171bb
mov dword [esp], eax
lea ecx, [ebp - 0x334]
call fcn.0042f4e0
sub esp, 4
mov dword [ebp - 0x334], 0
jmp 0x4170fb
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp], 0xfffffff6
call ebx
lea edx, [eax - 1]
sub esp, 4
cmp edx, 0xfffffffd
jbe 0x41736a
mov dword [esp], 0xfffffff5
call ebx
lea edx, [eax - 1]
sub esp, 4
cmp edx, 0xfffffffd
jbe 0x417359
mov dword [esp], 0xfffffff4
call ebx
lea edx, [eax - 1]
sub esp, 4
cmp edx, 0xfffffffd
jbe 0x41734f
lea ebx, [ebp - 0x2e4]
xor eax, eax
mov ecx, 0x11
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x348]
lea esi, [ebp - 0x220]
mov dword [ebp - 0x2e4], 0x44
mov edi, dword [ebp - 0x340]
mov dword [ebp - 0x2b8], 0x100
mov dword [esp + 8], 0x104
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x338]
mov dword [esp + 4], esi
mov dword [esp], 0
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x2a4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub eax, 1
sub esp, 0xc
cmp eax, 0x102
jbe 0x41737a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2a0]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0043c720
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], str.adb:_cannot_get_executable_path:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x2a0]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417c1c
mov esi, 0xffffffff
jmp 0x41717b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x220]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0043c720
mov eax, dword [ebp - 0x220]
mov dword [esp + 4], str.adb:_CreateFileW_nul_failed:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417c40
mov esi, 0xffffffff
jmp 0x4170a5
call fcn.00415980
jmp 0x41721e
lea esi, [esi]
call fcn.00415980
jmp 0x417206
lea esi, [esi]
call fcn.00415980
jmp 0x4171ee
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edi
lea edi, [ebp - 0x2a0]
mov eax, dword [eax]
mov dword [esp + 8], str.adb__L__s_fork_server_server___reply_fd__d
mov dword [esp + 4], 0x40
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.00415af0
lea eax, [ebp - 0x2f4]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x417492
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x300]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0043c720
mov eax, dword [ebp - 0x300]
mov dword [esp + 4], str.adb:_CreateProcessW_failed:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x300]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
je 0x4172ec
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4172ec
lea eax, [ebp - 0x310]
mov dword [esp], eax
call fcn.0051c400
push ecx
jmp 0x4172ec
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x2f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x348], 0
sub esp, 4
test eax, eax
je 0x4174e9
mov dword [esp], eax
lea ecx, [ebp - 0x348]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x340], 0
test eax, eax
je 0x41750e
mov dword [esp], eax
lea ecx, [ebp - 0x340]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x338], 0
test eax, eax
je 0x417533
mov dword [esp], eax
lea ecx, [ebp - 0x338]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x330], 0
test eax, eax
je 0x417558
mov dword [esp], eax
lea ecx, [ebp - 0x330]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x33c]
mov ebx, dword [sym.imp.msvcrt.dll__beginthreadex]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x416100
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
test eax, eax
mov dword [ebp - 0x328], eax
je 0x417a3b
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x33c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4160a0
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
test eax, eax
mov dword [ebp - 0x324], eax
je 0x417a6f
lea eax, [ebp - 0x320]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x344]
lea ebx, [ebp - 0x34b]
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x320], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 3
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4179ff
cmp dword [ebp - 0x320], 3
mov dword [ebp - 0x310], 0xa4b4f
jne 0x41774f
lea eax, [ebp - 0x310]
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x41774f
mov esi, 1
lea ebx, [ebp - 0x300]
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x3a98
mov dword [esp + 8], 1
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x324]
mov dword [esp], 2
mov dword [ebp - 0x2fc], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub esp, 0x10
cmp eax, 0x102
mov ebx, eax
je 0x417bb6
test eax, eax
jne 0x417b5b
mov eax, esi
xor eax, 1
movzx esi, al
neg esi
mov eax, dword [ebp - 0x324]
test eax, eax
je 0x4176f6
mov dword [esp], eax
lea ecx, [ebp - 0x324]
call fcn.0042f4e0
sub esp, 4
mov dword [ebp - 0x324], 0
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x41771b
mov dword [esp], eax
lea ecx, [ebp - 0x328]
call fcn.0042f4e0
sub esp, 4
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x328], 0
test eax, eax
je 0x417740
mov dword [esp], eax
lea ecx, [ebp - 0x32c]
call fcn.0042f4e0
sub esp, 4
mov dword [ebp - 0x32c], 0
jmp 0x41717b
mov eax, dword [ebp - 0x32c]
lea ebx, [ebp - 0x300]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
sub esp, 4
mov dword [esp + 4], str.ADB_server_didnt_ACK_n
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov dword [esp], ebx
call fcn.0041c7f0
mov eax, dword [ebp - 0x300]
mov dword [esp + 4], str.Full_server_startup_log:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x300]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417cca
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], str.Server_had_pid:__d_n
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov dword [esp], ebx
call fcn.0041c7f0
mov eax, dword [ebp - 0x300]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0042f5f0
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x300]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417ca6
mov eax, dword [ebp - 0x35c]
cmp eax, 0xffffffff
je 0x4179ba
mov dword [esp + 8], 2
lea esi, [ebp - 0x31c]
mov dword [esp + 4], 0xfffe0000
mov dword [esp], eax
call fcn.00430270
mov eax, dword [ebp - 0x35c]
mov dword [esp + 4], esi
mov dword [ebp - 0x31c], 0x55c3fc
mov dword [esp], eax
call fcn.0043a740
test al, al
je 0x417b28
lea eax, [ebp - 0x318]
mov dword [esp + 8], edi
lea edi, [ebp - 0x314]
mov dword [esp], eax
mov dword [esp + 4], str.____adb_starting__pid__d_____
call fcn.0043c360
lea eax, [ebp - 0x34c]
mov ecx, edi
mov dword [esp + 4], eax
mov dword [esp], 0x561bfd
call fcn.0051db30
push eax
push eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0043c5c0
mov eax, dword [ebp - 0x314]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417c64
mov edx, dword [ebp - 0x2fc]
mov ebx, dword [ebp - 0x300]
mov eax, edx
sub eax, ebx
mov dword [ebp - 0x360], eax
sar dword [ebp - 0x360], 2
mov esi, dword [ebp - 0x360]
sub esi, 1
js 0x41790d
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x364], eax
mov eax, dword [ebx + esi*4]
cmp dword [eax - 0xc], ecx
je 0x4179c4
sub esi, 1
jns 0x4178fc
cmp dword [ebp - 0x360], esi
mov ecx, esi
jbe 0x417952
mov eax, dword [ebx + ecx*4]
add esi, 1
mov dword [esp + 4], 0x561bff
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov edx, dword [ebp - 0x2fc]
mov ecx, esi
mov ebx, dword [ebp - 0x300]
mov eax, edx
sub eax, ebx
sar eax, 2
cmp esi, eax
jb 0x417917
cmp ebx, edx
mov esi, edx
je 0x417970
mov eax, dword [ebx]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417c88
add ebx, 4
cmp ebx, esi
jne 0x417958
mov eax, dword [ebp - 0x300]
test eax, eax
je 0x417982
mov dword [esp], eax
call fcn.00550630
mov eax, dword [ebp - 0x318]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417d0c
mov eax, dword [ebp - 0x31c]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
jne 0x417cee
mov eax, dword [ebp - 0x35c]
mov dword [esp], eax
call fcn.0041c780
mov esi, 0xffffffff
jmp 0x4176db
mov dword [ebp - 0x36c], edx
mov edx, dword [ebp - 0x364]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [ebp - 0x368], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcmp
mov ecx, dword [ebp - 0x368]
mov edx, dword [ebp - 0x36c]
test eax, eax
jne 0x417908
jmp 0x41790d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x417aa3
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
mov dword [esp + 8], 0x5619c3
lea ebx, [ebp - 0x300]
mov dword [esp + 4], str.could_not_read_ok_from_ADB_Server_s_n
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
jmp 0x417680
call dword [sym.imp.msvcrt.dll__errno]
or esi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00434820
mov dword [esp + 4], str.adb:_cannot_create_thread:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
jmp 0x417700
call dword [sym.imp.msvcrt.dll__errno]
or esi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00434820
mov dword [esp + 4], str.adb:_cannot_create_thread:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
jmp 0x4176db
lea edx, [ebp - 0x310]
mov dword [esp], edx
lea ebx, [ebp - 0x300]
mov dword [esp + 4], eax
call fcn.0043c720
mov eax, dword [ebp - 0x310]
mov dword [esp + 4], str.:__s
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.0043c360
mov eax, dword [ebp - 0x300]
mov dword [esp + 4], str.could_not_read_ok_from_ADB_Server_s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x300]
lea ecx, [eax - 0xc]
lea eax, [ebp - 0x314]
mov dword [esp], eax
call fcn.0051c420
mov eax, dword [ebp - 0x310]
push ecx
lea ecx, [eax - 0xc]
mov dword [esp], ebx
call fcn.0051c420
push esi
xor esi, esi
jmp 0x417680
mov eax, dword [ebp - 0x31c]
lea ecx, [eax - 0xc]
cmp ecx, 0x55c3f0
je 0x4179ac
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4179ac
mov dword [esp], ebx
call fcn.0051c400
push edi
jmp 0x4179ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x310]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0043c720
mov eax, dword [ebp - 0x310]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.adb:_unexpected_result_waiting_for_threads:__lu:__s_n
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x310]
lea ecx, [eax - 0xc]
lea eax, [ebp - 0x314]
mov dword [esp], eax
call fcn.0051c420
push eax
jmp 0x4179ba
mov eax, dword [sym.imp.msvcrt.dll__iob]
or esi, 0xffffffff
mov dword [esp + 4], str.adb:_timed_out_waiting_for_threads_to_finish_reading_from_ADB_server_n
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
push edx
push edx
jne 0x4176db
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 4], str.adb:_server_is_running_with_process_id__lu_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004342f0
jmp 0x4176db
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4172ec
lea eax, [ebp - 0x2f4]
mov dword [esp], eax
call fcn.0051c400
push ebx
jmp 0x4172ec
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417345
lea eax, [ebp - 0x2a0]
mov dword [esp], eax
call fcn.0051c400
push esi
jmp 0x417345
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4178c5
lea eax, [ebp - 0x34d]
mov dword [esp], eax
call fcn.0051c400
push eax
jmp 0x4178c5
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417969
mov dword [esp], edi
call fcn.0051c400
push eax
jmp 0x417969
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417815
lea eax, [ebp - 0x314]
mov dword [esp], eax
call fcn.0051c400
push eax
jmp 0x417815
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4177c0
lea eax, [ebp - 0x314]
mov dword [esp], eax
call fcn.0051c400
push edx
jmp 0x4177c0
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4179ac
mov dword [esp], edi
call fcn.0051c400
push eax
jmp 0x4179ac
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417997
mov dword [esp], edi
call fcn.0051c400
push eax
jmp 0x417997