joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484322
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x18]
cmp dword [eax - 0xc], 0
jne 0x484336
xor eax, eax
jmp 0x4843ae
push esi
push edi
lea esi, [ebx + 8]
mov edx, 0x7d0
jmp 0x484393
lea eax, [ebp - 4]
sub ecx, edx
push eax
push edx
push 0
push 0
push dword [ebx + 0x18]
mov dword [ebp - 4], ecx
push reloc.OLEAUT32.dll_SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esi]
test eax, eax
jne 0x484385
cmp dword [ebp - 4], 0xa
jbe 0x4843aa
cmp word [edi], 0x50
jne 0x4843aa
cmp word [edi + 2], 0x45
jne 0x4843aa
cmp word [edi + 4], 0x52
jne 0x4843aa
cmp word [edi + 6], 0x46
je 0x4843b3
cmp eax, 0xea
jne 0x4843aa
mov edx, dword [ebx + 0xc]
sub edx, edi
add edx, edx
mov ecx, esi
call fcn.00426346
mov ecx, dword [esi + 4]
mov eax, ecx
mov edx, dword [esi]
sub eax, edx
cmp eax, 0x989680
jb 0x484342
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 4]
mov ecx, esi
call fcn.004159bf
mov eax, edi
jmp 0x4843ac
Function at 0x48698d
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push ecx
push 2
pop ecx
call fcn.00484e54
mov esi, eax
test esi, esi
jne 0x4869a2
xor ebx, ebx
jmp 0x4869b8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4869bd
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push ecx
push 2
pop ecx
call fcn.00484e54
mov esi, eax
test esi, esi
jne 0x4869d2
xor ebx, ebx
jmp 0x4869e8
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4872d3
Capabilities:
Create process on windows

Disassembly:
push 0xb0
mov eax, 0x50eaaf
call fcn.005060cc
mov esi, edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xa9]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
call fcn.004266ae
and dword [ebp - 4], 0
cmp dword [0xd5b274], 0
jne 0x487355
push 0x90
lea eax, [ebp - 0xa4]
mov dword [0xd5b274], 1
push 0
push eax
mov dword [ebp - 0xa8], 0x94
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
imul eax, dword [ebp - 0xa4], 0xa
add eax, dword [ebp - 0xa0]
mov dword [0xd5b270], eax
jmp 0x48735a
mov eax, dword [0xd5b270]
cmp eax, 0x3c
jl 0x48739b
call fcn.00426031
test eax, eax
je 0x48739b
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push edi
call fcn.004094e6
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push esi
call fcn.004094e6
push 2
pop ecx
mov byte [ebp - 4], 0
call fcn.00486c3e
pop ecx
pop ecx
test eax, eax
je 0x48739b
push 0x21
pop esi
jmp 0x4873b0
push dword [ebp - 0xb0]
push 0
push edi
push esi
push ebx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
call fcn.004267da
mov eax, esi
call fcn.00506076
ret

Function at 0x488510
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0xaba010]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0xd5c0cc], 0
push esi
mov esi, ecx
mov dword [esp + 4], str.SeBackupPrivilege
mov dword [esp + 8], str.SeDebugPrivilege
mov dword [esp + 0xc], str.SeLoadDriverPrivilege
mov dword [esp + 0x10], str.SeSecurityPrivilege
jne 0x488566
push 4
pop edx
lea ecx, [esp + 4]
mov dword [0xd5c0cc], 1
call fcn.0042627e
mov ecx, esi
call fcn.00488109
mov ecx, esi
call fcn.00482472
mov ecx, esi
call fcn.004882d4
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004efcea
mov esp, ebp
pop ebp
ret
Function at 0x488856
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0xd50708], 2
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jge 0x48887f
xor eax, eax
jmp 0x488a0c
mov esi, dword [0xd5c0bc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x190
jae 0x48889e
mov esi, 0xd5c0a8
jmp 0x488a04
mov ebx, 0x600
lea eax, [ebp - 0x60c]
push ebx
xor esi, esi
push esi
push eax
call fcn.004f1a90
add esp, 0xc
lea edx, [ebp - 0x60c]
push esi
push ebx
push 8
pop ecx
call fcn.00410587
test eax, eax
jne 0x488878
push 0x14
push esi
push edi
call fcn.004f1a90
mov al, byte [0xd50708]
add esp, 0xc
mov byte [edi], al
mov ebx, esi
mov ecx, dword [0xd50708]
test ecx, ecx
jle 0x4889d9
cmp esi, 0x300
jae 0x4889d9
mov eax, dword [esi + 0xd50720]
or eax, dword [esi + 0xd50724]
je 0x4889cd
mov eax, dword [ebp + esi - 0x5fc]
sub eax, dword [esi + 0xd50728]
mov edx, dword [ebp + esi - 0x5f8]
sbb edx, dword [esi + 0xd5072c]
add eax, dword [ebp + esi - 0x604]
mov ecx, dword [ebp + esi - 0x60c]
adc edx, dword [ebp + esi - 0x600]
sub eax, dword [esi + 0xd50730]
mov dword [ebp - 0x61c], eax
sbb edx, dword [esi + 0xd50734]
sub ecx, dword [esi + 0xd50720]
mov dword [ebp - 0x610], ecx
mov ecx, dword [ebp + esi - 0x608]
sbb ecx, dword [esi + 0xd50724]
mov dword [ebp - 0x614], ecx
cmp edx, ecx
mov ecx, dword [0xd50708]
mov dword [ebp - 0x618], edx
jl 0x4889cd
jg 0x488985
cmp eax, dword [ebp - 0x610]
jb 0x4889cd
or eax, edx
je 0x4889cd
push 0
push 0x64
push dword [ebp - 0x614]
push dword [ebp - 0x610]
call fcn.00506280
push dword [ebp - 0x618]
push dword [ebp - 0x61c]
push edx
push eax
call fcn.005064a0
push 0x64
pop edx
mov ecx, edx
sub ecx, eax
jns 0x4889be
xor ecx, ecx
jmp 0x4889c3
cmp ecx, edx
cmovg ecx, edx
mov byte [edi + ebx + 1], cl
mov ecx, dword [0xd50708]
inc ebx
add esi, 0x30
cmp ebx, ecx
jl 0x4888ed
push 0x600
lea eax, [ebp - 0x60c]
push eax
push 0xd50720
call fcn.004f1510
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, edi
mov dword [0xd5c0bc], eax
mov edi, 0xd5c0a8
push 5
xor eax, eax
pop ecx
inc eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 4

Function at 0x48d887
Capabilities:
Find taskbar

Disassembly:
push ebx
xor ebx, ebx
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x48d89c
pop ebx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push edi
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call esi
mov edi, eax
test edi, edi
je 0x48d8d3
push ebx
push str.SysPager
push ebx
push edi
call esi
push ebx
test eax, eax
push str.ToolbarWindow32
cmove eax, edi
push ebx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x48d8d7
xor eax, eax
jmp 0x48d8e5
push 0
push str.ToolbarWindow32
push 0
push edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48ddda
Capabilities:
Capture webcam image

Disassembly:
push 0x14
mov eax, 0x50ef94
call fcn.00506098
mov ebx, dword [0xd58f68]
test ebx, ebx
je 0x48dea9
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.0048dd93
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
push 0x18
mov dword [ebp - 0x10], esi
cdq
pop esi
idiv esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48de86
mov eax, dword [ebp - 0x10]
lea esi, [ecx + 0x14]
mov ecx, dword [ebp - 0x14]
cmp dword [esi - 0x10], ebx
jne 0x48de75
call fcn.0048d887
mov edi, eax
test edi, edi
je 0x48de80
push 1
push dword [esi]
push 0x404
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [esi]
push 0x419
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x48de6f
push 0
push eax
push 0x416
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc eax
add esi, 0x18
mov dword [ebp - 0x10], eax
cmp eax, ecx
jb 0x48de2b
mov ecx, dword [ebp - 0x20]
push 0x18
pop esi
test ecx, ecx
je 0x48dea9
push dword [ebp - 0x1c]
push ecx
call fcn.0041140e
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cdq
idiv esi
push esi
mov edx, eax
call fcn.0040b8be
pop ecx
pop ecx
call fcn.00506061
ret
Function at 0x4952e2
Capabilities:
Get file system object information

Disassembly:
push 0x174
mov eax, 0x50f69f
call fcn.005060cc
mov ebx, ecx
mov dword [ebp - 0x180], ebx
push ecx
mov ecx, esp
push edx
call fcn.004094e6
lea ecx, [ebp - 0x178]
call fcn.00422a77
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x180]
mov edi, 0xd5ac70
push eax
mov ecx, edi
call fcn.00496161
mov eax, dword [eax]
cmp eax, dword [0xd5ac70]
je 0x495370
mov ecx, dword [eax + 0x14]
sub ecx, 0x10
call fcn.004098e7
add eax, 0x10
or esi, 0xffffffff
mov dword [ebx], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x178]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4954f4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4954f4
mov esi, 0x160
lea eax, [ebp - 0x170]
push esi
push 0
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x170]
push 0x410
push esi
push eax
push 0x80
push dword [ebp - 0x178]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp byte [ebp - 0x60], 0
lea eax, [ebp - 0x60]
mov ecx, str.Disk_file
cmove eax, ecx
lea ecx, [ebp - 0x17c]
push eax
call fcn.004094e6
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x174]
mov ecx, edi
push eax
call fcn.00410044
mov esi, dword [ebp - 0x174]
cmp esi, dword [0xd5ac70]
je 0x4953f9
push dword [esi + 0x10]
lea ecx, [ebp - 0x178]
call fcn.0040d992
test eax, eax
jns 0x49542f
lea eax, [ebp - 0x178]
push ecx
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x174]
push eax
push ecx
mov ecx, edi
call fcn.00412dbd
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x174]
push eax
call fcn.004100e8
mov esi, dword [ebp - 0x174]
mov eax, dword [ebp - 0x17c]
lea ecx, [esi + 0x14]
mov edi, dword [ecx]
or esi, 0xffffffff
sub edi, 0x10
mov dword [ebp - 0x180], ecx
lea edx, [eax - 0x10]
mov dword [ebp - 0x174], edx
cmp edx, edi
je 0x4954a8
cmp dword [edi + 0xc], 0
jl 0x495499
mov edx, dword [edx]
cmp edx, dword [edi]
jne 0x495499
mov ecx, dword [ebp - 0x174]
call fcn.004098e7
mov dword [ebp - 0x174], eax
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x495486
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x174]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4954a2
push dword [eax - 0xc]
push eax
call fcn.0040942f
mov eax, dword [ebp - 0x17c]
lea ecx, [eax - 0x10]
call fcn.004098e7
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x17c]
mov dword [ebx], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4954d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x178]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4954f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
call fcn.00506076
ret
Function at 0x49a0fe
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 0x444], eax
push esi
add eax, 0xffffff28
mov dword [ebp - 0x450], ecx
push edi
neg ebx
mov esi, 0x400
push esi
sbb ebx, ebx
xor edi, edi
and ebx, eax
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x448], ebx
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x404]
add ebx, 4
mov dword [ebp - 0x44c], ebx
push esi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x31
push dword [ebx]
call edi
push 0x3c
mov esi, eax
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push 0x3c
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [ebp - 0x43c], 0
jle 0x49a1b4
push 0
push 0x4375ef
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov esi, dword [ebp - 0x444]
push ecx
push ecx
mov eax, esp
xor ecx, ecx
push ecx
push 2
push ecx
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
push dword [ebx]
call fcn.004167be
push dword [ebp - 0x448]
push 0x416354
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
push 0
push 0
push 0x418
push dword [esi]
call edi
push 0
push 1
push 0x401
push dword [esi]
call edi
push 0
push 1
push 0x7f
push dword [ebx]
call edi
test eax, eax
jne 0x49a28a
mov eax, dword [0xd59fbc]
test eax, eax
jne 0x49a270
mov esi, dword [0xd584c8]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xc
call ebx
push eax
push 0xb
call ebx
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 1
push esi
call edi
mov esi, dword [0xd584c8]
push 0
push 0x32
mov dword [0xd59fbc], eax
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 1
push esi
call edi
mov ebx, dword [ebp - 0x44c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0xd59fb8], eax
mov eax, dword [0xd59fbc]
push eax
push 1
mov esi, 0x80
push esi
push dword [ebx]
call edi
push dword [0xd59fb8]
push 0
push esi
push dword [ebx]
call edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, ebx
call fcn.004165da
mov ecx, dword [ebp - 0x450]
xor eax, eax
pop edi
pop esi
inc eax
and dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49cbc9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 0x444], eax
push esi
add eax, 0xffffff2c
mov dword [ebp - 0x450], ecx
push edi
neg ebx
mov esi, 0x400
push esi
sbb ebx, ebx
xor edi, edi
and ebx, eax
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x448], ebx
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x404]
add ebx, 4
mov dword [ebp - 0x44c], ebx
push esi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x31
push dword [ebx]
call edi
push 0x3c
mov esi, eax
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push 0x3c
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [ebp - 0x43c], 0
jle 0x49cc7f
push 0
push 0x4375ef
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov esi, dword [ebp - 0x444]
push ecx
push ecx
mov eax, esp
xor ecx, ecx
push ecx
push 2
push ecx
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
push dword [ebx]
call fcn.004167be
push dword [ebp - 0x448]
push 0x416354
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
push 0
push 0
push 0x418
push dword [esi]
call edi
push 0
push 1
push 0x401
push dword [esi]
call edi
push 0
push 1
push 0x7f
push dword [ebx]
call edi
test eax, eax
jne 0x49cd55
mov eax, dword [0xd59fbc]
test eax, eax
jne 0x49cd3b
mov esi, dword [0xd584c8]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xc
call ebx
push eax
push 0xb
call ebx
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 1
push esi
call edi
mov esi, dword [0xd584c8]
push 0
push 0x32
mov dword [0xd59fbc], eax
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 1
push esi
call edi
mov ebx, dword [ebp - 0x44c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0xd59fb8], eax
mov eax, dword [0xd59fbc]
push eax
push 1
mov esi, 0x80
push esi
push dword [ebx]
call edi
push dword [0xd59fb8]
push 0
push esi
push dword [ebx]
call edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, ebx
call fcn.004165da
mov ecx, dword [ebp - 0x450]
xor eax, eax
pop edi
pop esi
inc eax
and dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a1ca4
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x510378
call fcn.00506098
mov edi, ecx
xor ebx, ebx
push ebx
push ebx
push 0x1032
push dword [edi + 0x41d4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, eax
test edx, edx
je 0x4a1e2f
mov eax, dword [0xd58f54]
test eax, eax
jne 0x4a1cde
mov eax, ebx
jmp 0x4a1ce1
add eax, 0x5c
cmp dword [eax + 0x224], ebx
je 0x4a1dc0
lea ecx, [ebp - 0x20]
call fcn.004229d4
mov esi, eax
push 0x55d4a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.004094e6
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov edx, eax
mov dword [esp], str._thread_s__
call fcn.00405cb9
pop ecx
push 0x33
push 0x51e630
push dword [eax]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x14]
cmp eax, 6
setne bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1d5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1d7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1d9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1dbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4a1e2f
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x10]
xor ebx, ebx
mov ecx, edi
push eax
inc ebx
call fcn.004a0567
test eax, eax
je 0x4a1e2f
push dword [eax + 0x24]
xor ecx, ecx
inc ecx
call fcn.00484e54
mov esi, eax
test esi, esi
je 0x4a1dfd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x10]
cmovne ecx, ebx
mov ebx, ecx
mov ecx, edi
push eax
call fcn.004a0567
test eax, eax
jne 0x4a1dd6
test ebx, ebx
jne 0x4a1e2f
push ecx
mov ecx, esp
push 0x51e784
call fcn.004094e6
mov ecx, dword [edi + 4]
call fcn.00437612
pop ecx
xor eax, eax
call fcn.00506061
ret 0x10
Function at 0x4a9b3f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 0x444], eax
push esi
add eax, 0xffffbe30
mov dword [ebp - 0x450], ecx
push edi
neg ebx
mov esi, 0x400
push esi
sbb ebx, ebx
xor edi, edi
and ebx, eax
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x448], ebx
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x404]
add ebx, 4
mov dword [ebp - 0x44c], ebx
push esi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x31
push dword [ebx]
call edi
push 0x3c
mov esi, eax
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push 0x3c
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [ebp - 0x43c], 0
jle 0x4a9bf5
push 0
push 0x4375ef
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov esi, dword [ebp - 0x444]
push ecx
push ecx
mov eax, esp
xor ecx, ecx
push ecx
push 2
push ecx
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
push dword [ebx]
call fcn.004167be
push dword [ebp - 0x448]
push 0x416354
push dword [ebx]
call dword [sym.imp.USER32.dll_EnumChildWindows]
push 0
push 0
push 0x418
push dword [esi]
call edi
push 0
push 1
push 0x401
push dword [esi]
call edi
push 0
push 1
push 0x7f
push dword [ebx]
call edi
test eax, eax
jne 0x4a9ccb
mov eax, dword [0xd59fbc]
test eax, eax
jne 0x4a9cb1
mov esi, dword [0xd584c8]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xc
call ebx
push eax
push 0xb
call ebx
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 1
push esi
call edi
mov esi, dword [0xd584c8]
push 0
push 0x32
mov dword [0xd59fbc], eax
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 1
push esi
call edi
mov ebx, dword [ebp - 0x44c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0xd59fb8], eax
mov eax, dword [0xd59fbc]
push eax
push 1
mov esi, 0x80
push esi
push dword [ebx]
call edi
push dword [0xd59fb8]
push 0
push esi
push dword [ebx]
call edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, ebx
call fcn.004165da
mov ecx, dword [ebp - 0x450]
xor eax, eax
pop edi
pop esi
inc eax
and dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4aa09f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x44
mov eax, 0x510986
call fcn.00506103
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x24]
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4aa20a
xor edi, edi
push 0xc
mov dword [ebp - 4], edi
call fcn.004f0435
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
mov dword [ebp + 8], ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
jmp 0x4aa102
push edi
push edi
push 0x1200
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
mov eax, edi
cmp eax, ecx
jge 0x4aa17e
push 0x2c
mov dword [ebp - 4], 2
call fcn.004f0435
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x4aa14d
push 0x2c
push edi
push eax
mov dword [ebp - 0x18], eax
call fcn.004f1a90
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
or dword [eax + 0x20], 0xffffffff
or dword [eax + 0x24], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.004390ed
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x4aa11c
mov eax, dword [esi + 0x7c]
push 4
inc eax
push eax
push dword [esi + 0x74]
call fcn.004f5f34
add esp, 0xc
test eax, eax
je 0x4aa1ce
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x7c]
push 4
inc eax
push eax
push dword [esi + 0x78]
call fcn.004f5f34
add esp, 0xc
test eax, eax
je 0x4aa1ce
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
shl edx, 2
mov dword [esi + 0x78], eax
add ecx, edx
je 0x4aa1c5
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0x78]
add eax, edx
je 0x4aa1cb
mov dword [eax], ebx
inc dword [esi + 0x7c]
cmp dword [ebp - 0x24], 0
jle 0x4aa207
push 0x2c
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.004f1a90
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x4c], edi
test byte [eax + 8], 1
je 0x4aa1f9
mov eax, dword [eax + 0x18]
or dword [ebp - 0x50], 1
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
push dword [ebp + 0xc]
call fcn.004a4d0a
mov eax, dword [ebp + 0xc]
call fcn.00506061
ret 0x10