joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440cc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4768b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046ec40
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440660
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046eb6e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046b42c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046b42c
push 1
push 0
push 0
mov ecx, esi
call fcn.0046b3d4
push 1
push 0
push 1
mov ecx, esi
call fcn.0046b3d4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ecb2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440e40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4768d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046ec40
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440660
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046eb6e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440f04
cmp dword [esp + 0x40], 1
jne 0x440f02
cmp ecx, eax
jge 0x440f04
mov eax, ecx
cmp eax, 0xc8
jge 0x440f10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440cc0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ecb2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441690
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046984a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046eee8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00470447
test eax, eax
je 0x4417ac
mov ecx, dword [esp + 0x3c]
call fcn.0046ef15
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x441770
push edi
mov ecx, esi
call fcn.0046c573
mov ecx, esi
call fcn.00441910
cmp dword [esp + 0x38], 1
jne 0x4417a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046c6ae
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4441d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444203
push esi
call fcn.004472c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4441fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444289
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444272
mov eax, dword [esi + 8]
test eax, eax
je 0x444227
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44426e
cmp eax, 2
je 0x444272
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44421a
cmp eax, 3
je 0x44424d
cmp eax, 1
jne 0x44421a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44421a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44421a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004442b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444298
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004442b0
add esp, 4
pop esi
ret

Function at 0x44f570
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44f5d6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44f5d6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44f5b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44f960
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44f998
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4505c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x450609
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x450a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00450630
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004506b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004506b0
lea ecx, [esi + 0xc]
call fcn.00468226
lea ecx, [esi + 0x10]
call fcn.00468226
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451c40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451c40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451c40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046829b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046829b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x453490
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4534da
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x453509
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45354b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46a63f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a677
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004686f6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004686ce
jmp 0x46a683
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46bd30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46bd72
call fcn.00471af2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46bd72
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46bd69
xor eax, eax
jmp 0x46bd7a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046bd80
pop edi
pop esi
pop ebx
ret 4

Function at 0x472022
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x472050
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47206e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471f88
jmp 0x47206e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47206e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471f88
test edi, edi
mov eax, edi
jne 0x472058
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
test byte [ebp + 0xc], 1
jne 0x401622
mov ebx, dword [ebp - 4]
leave
ret
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push eax
call dbg.adb_socket_accept
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40161d
sub esp, 0xc
mov dword [ebp - 0xc], 0x10000
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1002
push 0xffff
push ebx
call fcn.00418a10
push ebx
call dbg.create_local_socket
add esp, 0x10
test eax, eax
je 0x401682
sub esp, 0xc
push eax
call dbg.connect_to_smartsocket
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
push ebx
call dbg.adb_close
add esp, 0x10
jmp 0x40161d

Function at 0x4024a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
push str.ADB_TRACE
call sym._getenv
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40255c
mov al, byte [eax]
test al, al
je 0x40255c
push eax
push eax
push str.__:_
mov eax, dword [ebp - 0x14]
push eax
call sym._strpbrk
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402573
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
sub edi, esi
mov ebx, dword [global_tags]
mov dword [ebp - 0x20], edi
test ebx, ebx
je 0x402554
mov esi, dword [global_tags]
xor ebx, ebx
jmp 0x402514
inc ebx
mov esi, dword [ebx*8 + 0x4207a0]
test esi, esi
je 0x402554
sub esp, 0xc
push esi
call sym._strlen
add esp, 0x10
cmp dword [ebp - 0x20], eax
jne 0x402508
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
cld
cmp eax, eax
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x402508
mov ecx, dword [ebx*8 + 0x4207a4]
test ecx, ecx
je 0x40258f
mov eax, 1
shl eax, cl
mov ecx, dword [0x43cb58]
or ecx, eax
mov dword [0x43cb58], ecx
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x402564
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov al, byte [edx + 1]
jmp 0x4024c3
sub esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call sym._strlen
mov edi, dword [ebp - 0x14]
add esp, 0x10
add eax, edi
mov dword [ebp - 0x10], eax
jmp 0x4024e9
mov dword [0x43cb58], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4062f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
push str.ADBHOST
call sym._getenv
add esp, 0x10
test eax, eax
je 0x4063e0
mov edx, dword [ebp + 0xc]
push ecx
push 1
push edx
push eax
call dbg.socket_network_client
add esp, 0x10
mov edi, eax
test eax, eax
js 0x4063e0
test byte [0x43cb58], 8
jne 0x406371
sub esp, 0xc
lea ebx, [ebp - 0x4c]
push edi
call dbg.disable_tcp_nagle
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x421416
push str._s_d
push 0x40
push ebx
call sym.___mingw_snprintf
add esp, 0x20
mov eax, dword [ebp + 0xc]
push 1
push eax
push ebx
push edi
call dbg.register_socket_transport
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call fcn.0041dcdc
mov ebx, dword [0x43d3d8]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.5
push str.system_core_adb_transport_local.c
push 0x4213e6
push ebx
call sym._fprintf_3
call sym.__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.client:_connected_on_remote_on_fd__d_n
push ebx
call sym._fprintf_3
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov dword [eax], esi
jmp 0x406331
push eax
push eax
mov eax, dword [ebp + 0xc]
push 1
push eax
call dbg.socket_loopback_client
mov edi, eax
add esp, 0x10
or eax, 0xffffffff
test edi, edi
jns 0x406328
jmp 0x406369

Function at 0x406520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dbg.client_socket_thread
mov ebx, dword [0x42a008]
test ebx, ebx
jne 0x40653d
mov esi, dbg.server_socket_thread
test byte [0x43cb58], 8
jne 0x406590
push edi
mov ebx, dword [ebp + 8]
push ebx
push 0
push esi
call sym.__beginthread
add esp, 0x10
inc eax
je 0x406561
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [0x42a008]
mov eax, str.client
test ecx, ecx
jne 0x406575
mov eax, 0x42142c
push edx
push edx
push eax
push str.cannot_create_local_socket__s_thread
call dbg.fatal_errno
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x43cb38
call fcn.0041dcdc
mov ebx, dword [0x43d3d8]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.50
push str.system_core_adb_transport_local.c
push 0x4213e6
push ebx
call sym._fprintf_3
call sym.__errno
add esp, 0x10
mov dword [eax], edi
mov eax, str.client
mov ecx, dword [0x42a008]
test ecx, ecx
jne 0x4065e3
mov eax, 0x42142c
push edx
push eax
push str.transport:_local__s_init_n
push ebx
call sym._fprintf_3
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov dword [eax], edi
jmp 0x406546
Function at 0x407540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1008
call fcn.00418c10
mov eax, dword [ebp - 0x10]
mov esi, eax
test eax, eax
js 0x4076da
mov eax, dword [0x43d3d8]
add eax, 0x40
mov dword [ebp - 0x1014], eax
lea esi, [esi]
test byte [0x43cb58], 1
jne 0x4075e1
lea esi, [esi]
lea edx, [ebp - 0x100c]
push eax
push 0x1000
push edx
push esi
call dbg.adb_read
add esp, 0x10
mov edi, eax
test byte [0x43cb58], 1
jne 0x407657
cmp edi, 0
je 0x4076da
jl 0x4076e2
mov ebx, dword [0x43d3d8]
lea eax, [ebp - 0x100c]
add ebx, 0x20
push ebx
push edi
push 1
push eax
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
add esp, 0x10
test byte [0x43cb58], 1
je 0x407580
call sym.__errno
sub esp, 0xc
mov ebx, dword [eax]
push 0x43cb38
call fcn.0041dcdc
add esp, 0xc
push global___FUNCTION__.23
push str.system_core_adb_commandline.c
push 0x4233d0
mov eax, dword [ebp - 0x1014]
push eax
call sym._fprintf_5
call sym.__errno
add esp, 0xc
mov dword [eax], ebx
push esi
push str.read_and_dump__:_pre_adb_read_fd_d__n
mov eax, dword [ebp - 0x1014]
push eax
call sym._fprintf_5
pop eax
mov eax, dword [ebp - 0x1014]
push eax
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov dword [eax], ebx
jmp 0x407580
call sym.__errno
sub esp, 0xc
mov eax, dword [eax]
mov dword [ebp - 0x1010], eax
push 0x43cb38
call fcn.0041dcdc
mov ebx, dword [0x43d3d8]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.23
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call sym._fprintf_5
call sym.__errno
mov edx, dword [ebp - 0x1010]
mov dword [eax], edx
push edi
push esi
push str.read_and_dump__:_post_adb_read_fd_d_:_len_d_n
push ebx
call sym._fprintf_5
add esp, 0x14
push ebx
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov edx, dword [ebp - 0x1010]
cmp edi, 0
mov dword [eax], edx
jne 0x4075ae
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.__errno
cmp dword [eax], 4
je 0x407570
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
push str.shell:
call dbg.adb_connect
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x407bb0
sub esp, 0xc
push 8
call sym._malloc
add esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], 0
push eax
push 0
push dbg.stdin_read_thread
call sym.__beginthread
mov eax, ebx
call dbg.read_and_dump
xor eax, eax
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
call dbg.adb_error
push edx
push eax
mov eax, dword [0x43d3d8]
push 0x423568
add eax, 0x20
push eax
call sym._fprintf_5
mov eax, 1
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x407be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x428
xor esi, esi
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x40c]
mov edx, dword [eax]
mov dword [ebp - 0x41c], edx
mov edx, dword [eax + 4]
push eax
mov dword [ebp - 0x418], edx
call sym._free
mov eax, dword [0x43d3d8]
add esp, 0x10
add eax, 0x40
mov dword [ebp - 0x420], eax
test byte [0x43cb58], 1
jne 0x407d70
mov edx, dword [ebp - 0x418]
push ecx
push 0x400
push ebx
push edx
call sym._read
add esp, 0x10
mov edi, eax
test byte [0x43cb58], 1
jne 0x407cd9
cmp edi, 0
je 0x407c8a
jl 0x407dec
xor edx, edx
nop
mov al, byte [edx + ebx]
cmp al, 0xd
je 0x407c94
ja 0x407ca0
cmp al, 0xa
je 0x407c94
xor esi, esi
inc edx
cmp edx, edi
jne 0x407c60
mov ecx, dword [ebp - 0x41c]
push eax
push edi
push ebx
push ecx
call dbg.adb_write
add esp, 0x10
test eax, eax
jg 0x407c1f
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 1
jmp 0x407c6f
cmp al, 0x2e
je 0x407cb3
cmp al, 0x7e
jne 0x407c6d
cmp esi, 1
jne 0x407c6f
mov si, 2
jmp 0x407c6f
cmp esi, 2
jne 0x407c6d
push eax
push eax
mov eax, dword [0x43d3d8]
push str._n_disconnect__n
add eax, 0x20
push eax
call sym._fprintf_5
mov dword [esp], 0
call sym._exit
call sym.__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x43cb38
mov dword [ebp - 0x414], eax
call fcn.0041dcdc
mov edx, dword [0x43d3d8]
add esp, 0xc
add edx, 0x40
push global___FUNCTION__.32
mov dword [ebp - 0x410], edx
push str.system_core_adb_commandline.c
push 0x4233d0
push edx
call sym._fprintf_5
call sym.__errno
mov edx, dword [ebp - 0x414]
add esp, 0xc
mov dword [eax], edx
mov eax, dword [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x410]
push str.stdin_read_thread__:_post_unix_read_fdi_d_...__n
push eax
call sym._fprintf_5
pop eax
mov eax, dword [ebp - 0x410]
push eax
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov edx, dword [ebp - 0x414]
mov dword [eax], edx
jmp 0x407c51
call sym.__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x43cb38
call fcn.0041dcdc
mov eax, dword [ebp - 0x420]
add esp, 0xc
push global___FUNCTION__.32
push str.system_core_adb_commandline.c
push 0x4233d0
push eax
call sym._fprintf_5
call sym.__errno
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x420]
push str.stdin_read_thread__:_pre_unix_read_fdi_d_...__n
push eax
call sym._fprintf_5
pop eax
mov eax, dword [ebp - 0x420]
push eax
call sym._fflush
mov dword [esp], 0x43cb38
call fcn.0041dce4
add esp, 0xc
call sym.__errno
mov dword [eax], edi
jmp 0x407c2c
call sym.__errno
cmp dword [eax], 4
je 0x407c1f
jmp 0x407c8a