joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471f40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov edi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045ab90
mov ebx, eax
mov dx, word [edi + 4]
mov eax, ebp
call fcn.00471dec
mov esi, eax
test esi, esi
je 0x471f8d
mov al, byte [0x471fa0]
cmp al, bl
jne 0x471f8d
mov edx, esi
mov eax, ebp
call fcn.00471d94
mov dword [edi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x471f95
mov edx, edi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x474f38
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408f70
add esp, 0x3ec
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
call fcn.00455cc4
mov edi, eax
dec edi
test edi, edi
jl 0x47640f
inc edi
xor esi, esi
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00455cd4
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4763a6
je 0x4763c7
dec eax
je 0x4763e8
jmp 0x476407
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00455cd4
cmp byte [ebx + 0x158], 0
setne dl
call fcn.00455bf0
jmp 0x476407
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00455cd4
cmp byte [ebx + 0x158], 1
setne dl
call fcn.00455bf0
jmp 0x476407
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00455cd4
cmp byte [ebx + 0x158], 2
setne dl
call fcn.00455bf0
inc esi
dec edi
jne 0x476387
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x476434
cmp eax, dword [esp]
pop edx
pop eax
jae 0x476495
jmp 0x476438
pop edx
pop eax
jge 0x476495
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x12c]
test byte [eax + 0x50], 2
je 0x476471
cmp byte [ebx + 0x155], 2
je 0x476471
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xe8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4764b1
push 0
mov eax, dword [ebx + 0x120]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0xf8]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x4764b1
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042c314
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x120]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x47efa4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47f0e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x47f0c7
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408f70
mov dl, 1
mov eax, dword [0x465a04]
call fcn.00465a5c
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x412fa8]
call fcn.00403328
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00465ad8
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x47f0c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, 0x47f0f8
call fcn.00465e24
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404438
xor eax, eax
push ebp
push 0x47f0bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00417010
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0047f100
mov eax, dword [ebp - 0xc]
call fcn.00408a44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f0c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00403358
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00403358
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f0e9
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404150
ret

Function at 0x480af4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x480b2c]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x480b0a
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x480b19
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x480b28
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x481f38
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x49351c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x481f5e
push 0
mov eax, dword [0x49351c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x485124
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045dc
xor eax, eax
push ebp
push 0x485287
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004045ec
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48525e
mov eax, ebx
call fcn.004026f4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x485257
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x485241
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x485298
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x4851e6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00406cac
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
call fcn.00406ca0
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.00408548
mov eax, edi
call fcn.0040412c
push 0x4852bc
push dword [ebp - 0x18]
push 0x4852d8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.004044ac
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.00408e1c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x485241
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00408f70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48525e
mov eax, dword [ebp - 0xc]
call fcn.00402714
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48528e
lea eax, [ebp - 0x11c]
call fcn.0040412c
lea eax, [ebp - 0x18]
call fcn.0040412c
lea eax, [ebp - 4]
call fcn.0040412c
ret

Function at 0x4852e8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x404], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x485371
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, ebx
call fcn.004045ec
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jne 0x485335
mov eax, esi
mov edx, ebx
call fcn.00404180
jmp 0x485358
lea eax, [ebp - 0x404]
lea edx, [ebp - 0x400]
mov ecx, 0x400
call fcn.0040439c
mov eax, dword [ebp - 0x404]
mov edx, esi
call fcn.004081cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485378
lea eax, [ebp - 0x404]
call fcn.0040412c
ret
Function at 0x4858c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045dc
xor eax, eax
push ebp
push 0x4859a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 4]
call fcn.00408e1c
lea edx, [ebp - 8]
xor eax, eax
call fcn.004028d0
lea eax, [ebp - 0x309]
mov edx, dword [ebp - 8]
call fcn.00408e1c
lea eax, [ebp - 0x350]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d74
mov dword [ebp - 0x350], 0x44
mov dword [ebp - 0x324], 1
mov word [ebp - 0x320], bx
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x350]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x485977
or esi, 0xffffffff
jmp 0x485985
push 0xffffffffffffffff
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4859a7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404150
ret
Function at 0x485e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045dc
mov eax, dword [ebp - 8]
call fcn.004045dc
mov eax, dword [ebp - 0xc]
call fcn.004045dc
xor eax, eax
push ebp
push 0x48604e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004081cc
cmp dword [ebp - 0x10], 0
je 0x485fa9
push dword [ebp - 4]
push 0x486064
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004044ac
mov eax, dword [ebp - 0x14]
call fcn.0040891c
test al, al
je 0x485fa9
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.004045ec
push eax
push dword [ebp - 4]
push 0x486064
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004044ac
mov eax, dword [ebp - 0x18]
call fcn.004045ec
push eax
push 0x486068
mov eax, dword [0x49351c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
cmp dword [0x493218], 0
je 0x485f90
push 1
push 0xa
push dword [ebp - 4]
push 0x486064
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004044ac
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x494d48]
mov eax, dword [eax + 0x300]
mov edx, 0x486078
call fcn.00481c6c
mov eax, dword [0x494d48]
mov eax, dword [eax + 0x330]
mov dl, 1
call fcn.0042c314
mov bl, 1
jmp 0x486033
cmp dword [0x493218], 0
je 0x486031
mov eax, dword [0x494d48]
mov eax, dword [eax + 0x328]
cmp dword [eax + 0xc], 1
jne 0x486001
push 1
push 0xa
push 0x486090
push dword [0x494d4c]
push 0x486064
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004044ac
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x494d48]
mov eax, dword [eax + 0x300]
mov edx, 0x4860b0
call fcn.00481c6c
jmp 0x48601f
push 1
push 0xa
mov eax, dword [0x494d48]
mov eax, dword [eax + 0x300]
mov ecx, 0x4860c8
mov edx, 0x4860e0
call fcn.00481c6c
mov eax, dword [0x494d48]
mov eax, dword [eax + 0x330]
mov dl, 1
call fcn.0042c314
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486055
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404150
ret
Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
pop eax
cmp edi, 0xffffffff
je 0x401578
sub esp, 0xc
mov esi, 0x1000
push 0x1001
call sym._malloc
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x20], eax
jmp 0x4014a2
sub esi, eax
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push ebx
push edi
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x401563
mov eax, dword [ebp - 0x10]
add ebx, eax
test eax, eax
jne 0x4014a0
cmp ebx, dword [ebp - 0x20]
je 0x401528
mov byte [ebx], 0
push esi
push esi
push str.WARNING
mov ebx, dword [ebp - 0x20]
push ebx
call sym._strstr
pop edx
pop ecx
push str.ERROR
mov ebx, eax
mov eax, dword [ebp - 0x20]
push eax
call sym._strstr
add esp, 0x10
test eax, eax
je 0x4014fe
cmp eax, ebx
jae 0x4014fe
mov ebx, eax
test ebx, ebx
je 0x401528
push esi
push esi
push str._INFO_
push ebx
call sym._strstr
add esp, 0x10
test eax, eax
je 0x401519
mov byte [eax], 0
push 0
push str.Android_SDK_Setup___Output
push ebx
push 0
call sub.USER32.dll_MessageBoxA
sub esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call sym._free
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test eax, eax
je 0x40154b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push str.CloseHandle_read_temp_file_failed
call dbg.display_error
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push str.Read_Output_failed
call dbg.display_error
add esp, 0x10
jmp 0x4014c7
sub esp, 0xc
push str.Open_temp_file_failed
call dbg.display_error
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
push 0x104
call sym._malloc
pop ecx
pop esi
push eax
mov ebx, eax
push 0xf6
call sub.KERNEL32.dll_GetTempPathA
pop esi
cmp eax, 0x104
pop edx
jg 0x4015be
test eax, eax
jne 0x4015e2
sub esp, 0xc
or esi, 0xffffffff
push str.GetTempPath_failed
call dbg.display_error
mov dword [esp], ebx
call sym._free
mov eax, esi
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x4030f1
push ebx
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
je 0x401647
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
push edx
push 0
push pe_nt_image_headers32
push 2
push eax
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
pop eax
cmp esi, 0xffffffff
je 0x40165c
sub esp, 0xc
push ebx
call sym._free
mov eax, esi
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
sub esp, 0xc
or esi, 0xffffffff
push str.GetTempFileName_failed
call dbg.display_error
add esp, 0x10
jmp 0x401632
sub esp, 0xc
push str.Create_temp_file_failed
call dbg.display_error
add esp, 0x10
jmp 0x401632
Function at 0x4016b0
Capabilities:
Create process on windows
Delete file
Self delete

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x278
lea edi, [ebp - 0x268]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dbg.create_temp_file
mov ebx, 1
add esp, 0x10
mov esi, eax
cmp eax, 0xffffffff
je 0x40182a
push eax
lea eax, [ebp - 0x60]
push 0x44
push 0
push eax
call sym._memset
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 0x100
mov dword [esp], 0xfffffff6
call sub.KERNEL32.dll_GetStdHandle
lea ebx, [ebp - 0x164]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push eax
push eax
push 0x104
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
add esp, 0x14
test eax, eax
je 0x401848
lea ecx, [eax - 1]
test ecx, ecx
jle 0x40176b
cmp byte [ebp + ecx - 0x164], 0x5c
je 0x40176b
lea edx, [ebx + eax]
jmp 0x401768
mov al, byte [edx - 2]
dec edx
cmp al, 0x5c
je 0x40176b
dec ecx
jne 0x401760
mov byte [ebp + ecx - 0x164], 0
push eax
push eax
push ebx
push str.Program_dir:__s_n
call dbg.dprintf
pop ecx
pop eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0
push 0x8000000
push 1
push 0
push 0
push str.tools_android.bat_update_sdk
push 0
call sub.KERNEL32.dll_CreateProcessA
mov ebx, eax
push eax
push str.CreateProcess_returned__d_n
call dbg.dprintf
add esp, 0x10
test ebx, ebx
je 0x401834
sub esp, 0xc
push str.Wait_for_process_to_finish._n
call dbg.dprintf
pop eax
mov eax, dword [ebp - 0x1c]
pop edx
push 0xffffffffffffffff
push eax
call sub.KERNEL32.dll_WaitForSingleObject
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ebx, dword [ebp - 0x18]
push ebx
call sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
add esp, 0xc
sub esp, 0xc
push str.Cleanup._n
call dbg.dprintf
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test eax, eax
je 0x40186d
test ebx, ebx
je 0x40185f
sub esp, 0xc
push edi
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
test eax, eax
jne 0x40182a
sub esp, 0xc
push str.Delete_temp_file_failed
call dbg.display_error
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
mov bl, 1
push str.Failed_to_execute_tools_android.bat:
call dbg.display_error
add esp, 0x10
jmp 0x4017ea
sub esp, 0xc
mov ebx, 1
push str.Failed_to_get_programs_filename:
call dbg.display_error
add esp, 0x10
jmp 0x4017ea
sub esp, 0xc
push edi
call dbg.read_temp_file
add esp, 0x10
jmp 0x40180a
sub esp, 0xc
push str.CloseHandle_temp_file_failed
call dbg.display_error
add esp, 0x10
jmp 0x401806
Function at 0x405ad0
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebp
mov ecx, 0x104
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
lea ebx, [ebp - 0x128]
mov dword [esp + 8], ecx
mov esi, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
add eax, ebx
jmp 0x405b06
dec eax
cmp byte [eax], 0x5c
jne 0x405b05
mov dword [esp], ebx
inc eax
mov edi, pe_nt_image_headers32
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
mov dl, 0x74
mov cl, 0x78
sub esp, 4
mov byte [eax + ebp - 0x129], dl
mov dl, 0x74
mov byte [eax + ebp - 0x12a], cl
xor ecx, ecx
mov byte [eax + ebp - 0x12b], dl
mov edx, 2
xor eax, eax
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov edi, 0x40000000
mov dword [esp + 0x10], edx
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ebx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
mov edx, dword [esi + 0x520]
sub esp, 0x1c
mov eax, dword [esi + 0x524]
imul eax, edx
dec eax
jl 0x405c42
lea esi, [esi]
lea edi, [edi]
lea edx, [ebx + 0xfa0]
mov dword [esp + 4], edx
mov eax, dword [esi + 0x66c0]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
lea edx, [ebp - 0x238]
mov ecx, 0x104
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov ecx, 0x4121f0
lea eax, [ebp - 0x238]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
xor ecx, ecx
mov edx, eax
cmp byte [eax], 0
jmp 0x405c05
inc edx
inc ecx
cmp byte [edx], 0
jne 0x405c00
mov dword [esp + 8], ecx
xor edx, edx
inc ebx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x23c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_WriteFile
mov ecx, dword [esi + 0x524]
sub esp, 0x14
mov eax, dword [esi + 0x520]
imul ecx, eax
cmp ecx, ebx
jge 0x405ba0
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4071a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov ecx, dword [eax + 0x520]
mov dword [ebp - 0x13c], eax
cmp ecx, 1
jl 0x4072a7
mov edx, dword [eax + 0x524]
lea esi, [esi]
xor esi, esi
cmp edx, 1
mov ebx, 1
jge 0x407257
jmp 0x407288
cmp edx, 2
je 0x407270
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
lea edx, [ebp - 0x128]
mov ecx, 0xff
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov ecx, 0x411024
lea eax, [ebp - 0x128]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
cmp eax, 1
mov eax, dword [ebp - 0x13c]
adc esi, 0
inc ebx
mov edx, dword [eax + 0x524]
cmp edx, ebx
jl 0x407282
cmp edx, 1
jne 0x4071f1
mov edi, dword [ebp - 0x144]
add edi, 0x1388
jmp 0x4071f6
mov edx, dword [ebp - 0x144]
lea edi, [ebx + edx*2 + 0x1386]
jmp 0x4071f6
mov ecx, dword [eax + 0x520]
xor ebx, ebx
cmp edx, esi
sete bl
inc dword [ebp - 0x144]
add dword [ebp - 0x140], ebx
cmp ecx, dword [ebp - 0x144]
jge 0x4071e0
mov dword [esp + 0xc], ecx
mov eax, str.__d____d
lea ebx, [ebp - 0x138]
mov esi, dword [ebp - 0x140]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], esi
call sub.USER32.dll_wsprintfA
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x13c]
mov ecx, 0x20
mov dword [esp + 4], ecx
mov edi, dword [edx + 0x68ec]
mov dword [esp], edi
call sub.USER32.dll_SetDlgItemTextA
mov esi, dword [ebp - 0x140]
sub esp, 0xc
test esi, esi
je 0x40734c
mov ebx, dword [ebp - 0x140]
mov edi, 0x1e
mov edx, dword [ebp - 0x140]
mov dword [esp + 4], edi
shl ebx, 6
add ebx, edx
mov edx, dword [ebp - 0x13c]
lea ecx, [edx + ebx*4 + 0x424]
mov dword [esp + 8], ecx
mov ecx, dword [edx + 0x68ec]
mov dword [esp], ecx
call sub.USER32.dll_SetDlgItemTextA
mov edi, dword [ebp - 0x13c]
sub esp, 0xc
mov dword [esp], edi
call fcn.00406ab0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x13c]
mov esi, 0x412200
mov eax, 0x1e
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x68ec]
mov dword [esp], ecx
call sub.USER32.dll_SetDlgItemTextA
mov edi, dword [ebp - 0x13c]
sub esp, 0xc
mov dword [esp], edi
call fcn.00406ab0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret