joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
mov eax, 0x7fffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00473110
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x54], 0
call fcn.004f46f0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4f4988
mov eax, dword [esp + 8]
push 0
test eax, eax
push 0
jne 0x4f48b5
mov ecx, dword [edi + 0x4c]
add ecx, 0x14
call fcn.004d2250
jmp 0x4f48c1
mov ecx, dword [edi + 0x4c]
push eax
add ecx, 0x14
call fcn.004d2340
test eax, eax
je 0x4f4988
lea esi, [eax + 0x18]
push esi
call fcn.00474090
add esi, eax
push esi
call fcn.00474090
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4f4988
mov eax, dword [esp + 8]
test eax, eax
jne 0x4f48ff
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004f8d30
jmp 0x4f490e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
sub eax, ecx
sub eax, esi
mov esi, dword [esp + 0xc]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
sub ecx, esi
mov esi, dword [esp + 0x18]
sub eax, edx
sub eax, esi
mov esi, dword [esp + 0x10]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
sub eax, esi
cmp edx, 0x202004f
jne 0x4f495a
xor eax, eax
jmp 0x4f4964
cmp edx, 0x2020050
jne 0x4f4964
xor ecx, ecx
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, edi
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x202003d
call fcn.004f2da0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x54d7d0
call fcn.00473310
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x4f9900
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push esi
lea eax, [esp + 4]
push 0x44
mov esi, ecx
push eax
call fcn.00474040
add esp, 8
lea ecx, [esi + 0x64]
mov eax, dword [esi + 0x5c]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x2c], 0x44
mov dword [esi + 0x388], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4f9960
push 0x596508
call fcn.004dc1b0
add esp, 4
xor eax, eax
pop esi
add esp, 0x44
ret
push 0
push 0
push 0
push 0
push esi
push 0x4f98a0
call fcn.0051dd5d
mov eax, 1
pop esi
add esp, 0x44
ret

Function at 0x50e1fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x598a60
cmp edx, dword [eax]
je 0x50e220
add eax, 8
inc ecx
cmp eax, 0x598af0
jl 0x50e211
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x598a60]
jne 0x50e34e
mov eax, dword [0x5a8a54]
cmp eax, 1
je 0x50e328
test eax, eax
jne 0x50e251
cmp dword [0x5978c4], 1
je 0x50e328
cmp edx, 0xfc
je 0x50e34e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50e288
lea eax, [ebp - 0x1a4]
push 0x559914
push eax
call fcn.00508450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00501d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x50e2cb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00501d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x595b24
push edi
call fcn.00502d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x5598f8
push eax
call fcn.00508450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00508460
lea eax, [ebp - 0xa0]
push 0x5598f4
push eax
call fcn.00508460
push dword [esi + 0x598a64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00508460
push 0x12010
lea eax, [ebp - 0xa0]
push 0x5598cc
push eax
call fcn.0051065b
add esp, 0x2c
pop edi
jmp 0x50e34e
lea eax, [ebp + 8]
lea esi, [esi + 0x598a64]
push 0
push eax
push dword [esi]
call fcn.00501d10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x515190
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00502e90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x51525b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x51525b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x51520e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x515219
or bh, 8
and edi, 0x8000000
je 0x515234
mov eax, dword [0x5aa1bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x51525b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x51565b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x51567f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x51569a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x519d33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x519d55
cmp dword [edi + 0x3c], 0
jne 0x519d55
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00535588
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00519d82
pop edi
pop esi
pop ebx
ret 8

Function at 0x51b995
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51b9cd
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.00519a71
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00519a49
jmp 0x51b9d9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51d444
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 0x51d486
call fcn.00535588
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51d486
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51d47d
xor eax, eax
jmp 0x51d48e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051d494
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push edi
push str.error:
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
add eax, 0x40
push eax
call edi
mov ecx, dword [ebp + 8]
add esp, 8
lea eax, [ebp + 0xc]
push eax
push ecx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
push 0x46e578
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x401060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
add esp, 4
push eax
push str.error:__s:
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
add eax, 0x40
push eax
call edi
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
push edx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
push 0x46e578
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x4010d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push str.ADB_TRACE
call dword [sym.imp.MSVCR100.dll_getenv]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4011f6
cmp byte [ebx], 0
je 0x4011f6
push esi
push edi
lea ebx, [ebx]
push 0x46e608
push ebx
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x40112e
mov eax, ebx
lea edx, [eax + 1]
jmp 0x401120
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401120
sub eax, edx
add eax, ebx
mov dword [ebp - 4], eax
mov esi, dword [0x46e598]
mov edi, eax
sub edi, ebx
mov dword [ebp - 8], 0
test esi, esi
je 0x4011d0
mov ecx, esi
lea eax, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401150
sub ecx, eax
cmp edi, ecx
jne 0x40119e
mov ecx, edi
mov edx, ebx
cmp edi, 4
jb 0x40117a
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x40119e
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x401166
test ecx, ecx
je 0x4011b2
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40119e
cmp ecx, 1
jbe 0x4011b2
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40119e
cmp ecx, 2
jbe 0x4011b2
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x4011b2
mov eax, dword [ebp - 8]
mov esi, dword [eax*8 + 0x46e5a0]
inc eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x401147
jmp 0x4011cd
mov edx, dword [ebp - 8]
mov ecx, dword [edx*8 + 0x46e59c]
test ecx, ecx
je 0x4011ea
mov eax, 1
shl eax, cl
or dword [0x4815b8], eax
mov eax, dword [ebp - 4]
cmp byte [eax], 0
mov ebx, eax
je 0x4011da
lea ebx, [eax + 1]
cmp byte [ebx], 0
jne 0x401100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [0x4815b8], 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0xfc
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402850
mov ecx, dword [str.adb.log]
mov edx, dword [0x46e9fc]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fopen]
push esi
push edi
push 0x46ea00
mov dword [eax], ecx
push 0x46ea04
mov dword [eax + 4], edx
call ebx
add esp, 8
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x4028af
mov esi, eax
mov ecx, 8
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll___iob_func]
mov ecx, 8
lea esi, [ebp - 0x12c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push 0x46ea08
push eax
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4028cc
mov ebx, dword [ebp - 0x10c]
push 0
push 4
push 0
push ebx
call dword [sym.imp.MSVCR100.dll_setvbuf]
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0x12c]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll___iob_func]
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
mov ecx, 8
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
call ebx
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll__getpid]
push eax
push str.____adb_starting__pid__d______n
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Create thread
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push sym.kadb.exe_protected_virtual:_void___thiscall_AdbObjectHandle::LastReferenceReleased_void_
call fcn.00459dc1
add esp, 4
mov ebx, 1
push ebx
push 0x402810
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.00414b50
mov dword [0x4936e0], ebx
call fcn.00416e70
push 0
push 0
push 0x417080
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402c02
push str.cannot_create_input_thread
call fcn.00401060
call fcn.00416670
call fcn.00404ec0
mov eax, dword [ebp + 0xc]
push eax
push str.tcp:_d
lea ecx, [ebp - 0x24]
push 0x1e
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
push 0
lea edx, [ebp - 0x24]
push str.smartsocket
push edx
call fcn.004025d0
add esp, 0x1c
test eax, eax
je 0x402c3f
push ebx
call dword [sym.imp.MSVCR100.dll_exit]
cmp dword [ebp + 8], 0
je 0x402c66
push 0
lea eax, [ebp - 0x28]
push eax
push 3
push 0x46eadc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.00402820
test byte [0x4815b8], bl
je 0x402cda
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, dword [eax]
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
push str.adb_main
push str.adb.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call esi
push str.Event_loop_starting_n
mov dword [eax], edi
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0xc
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov dword [eax], edi
call fcn.00412690
int3
Function at 0x404490
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.ANDROID_SDK_HOME
mov dword [ebp - 0x254], eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x4044e5
lea ecx, [ebp - 0x218]
push ecx
push eax
push eax
push 0x28
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x250], edx
test dword [0x4815b8], 0x400
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov ebx, dword [sym.imp.MSVCR100.dll_fprintf]
mov edi, dword [sym.imp.MSVCR100.dll___iob_func]
je 0x404574
call esi
mov eax, dword [eax]
push 0x4815a0
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.get_user_keyfilepath
push str.adb_auth_host.cpp
push str._s::_s__:
call edi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call esi
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
push edx
push str.home__s_n
mov dword [eax], ecx
call edi
add eax, 0x40
push eax
call ebx
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [ebp - 0x24c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x250]
push str..android
push edx
push 0x46f004
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x14
cmp eax, 0x104
jge 0x404659
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 8
test eax, eax
je 0x40466d
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
jns 0x40466d
test dword [0x4815b8], 0x400
je 0x404659
call esi
mov ecx, dword [eax]
push 0x4815a0
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.get_user_keyfilepath
push str.adb_auth_host.cpp
push str._s::_s__:
call edi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call esi
mov edx, dword [ebp - 0x24c]
mov dword [eax], edx
lea eax, [ebp - 0x110]
push eax
push str.Cannot_mkdir__s
call edi
add eax, 0x40
push eax
call ebx
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [ebp - 0x24c]
mov dword [eax], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x254]
push str.adbkey
lea edx, [ebp - 0x110]
push edx
push 0x46f004
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
Function at 0x405c60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4936ec]
test eax, eax
jne 0x405c89
push str.adb:_Product_directory_not_specified__use__p_or_define_ANDROID_PRODUCT_OUT_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c90
sub eax, edx
push esi
mov edx, eax
mov eax, ebx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ca2
sub eax, esi
lea edi, [eax + edx + 2]
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x405cc6
push str.adb:_Out_of_memory__product_file____n
jmp 0x405c6e
mov eax, dword [0x4936ec]
push ebx
push eax
push 0x46f004
push edi
push esi
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x405d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0045a200
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jl 0x405e8e
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fprintf]
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__errno]
test byte [0x4815b8], 1
je 0x405dbd
call edi
mov eax, dword [eax]
push 0x4815a0
mov dword [ebp - 0x1008], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.read_and_dump
push str.commandline.cpp
push str._s::_s__:
call esi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1008]
push edx
push str.read_and_dump__:_pre_adb_read_fd_d__n
mov dword [eax], ecx
call esi
add eax, 0x40
push eax
call ebx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov ecx, dword [ebp - 0x1008]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f2b0
add esp, 4
test eax, eax
jne 0x405dd9
mov dword [ebp - 0x1008], 0xffffffff
jmp 0x405df6
mov ecx, dword [eax]
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0xc
mov dword [ebp - 0x1008], eax
test byte [0x4815b8], 1
je 0x405e74
call edi
mov ecx, dword [eax]
push 0x4815a0
mov dword [ebp - 0x100c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.read_and_dump
push str.commandline.cpp
push str._s::_s__:
call esi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call edi
mov edx, dword [ebp - 0x100c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x1008]
push eax
push ecx
push str.read_and_dump__:_post_adb_read_fd_d_:_len_d_n
call esi
add eax, 0x40
push eax
call ebx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov edx, dword [ebp - 0x100c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x405e8b
jns 0x405e9c
call edi
cmp dword [eax], 4
je 0x405d46
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
call esi
add eax, 0x20
push eax
mov eax, dword [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x1004]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
jmp 0x405d46

Function at 0x406480
Capabilities:
Create thread

Disassembly:
push esi
push str.shell:
call fcn.004057d0
mov esi, eax
add esp, 4
test esi, esi
jns 0x4064b8
push 0x4936f0
push str.error:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, 1
pop esi
ret
push 8
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
push eax
push 0
push 0x4061b0
mov dword [eax], esi
mov dword [eax + 4], 0
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
push esi
call fcn.00405d10
add esp, 4
xor eax, eax
pop esi
ret