joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70a8c0
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 0x70a8eb
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 0x70a90f
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 0x70a92a
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 0x70e21b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x70e253
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.00710986
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0071095e
jmp 0x70e25f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x70fa68
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 0x70faaa
call fcn.0071b047
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x70faaa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x70faa1
xor eax, eax
jmp 0x70fab2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0070fab8
pop edi
pop esi
pop ebx
ret 4

Function at 0x7115fc
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 0x71161e
cmp dword [edi + 0x3c], 0
jne 0x71161e
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0071b047
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.0071164b
pop edi
pop esi
pop ebx
ret 8

Function at 0x71c180
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 0x71c1ae
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x71c1cc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0071c0e6
jmp 0x71c1cc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x71c1cc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0071c0e6
test edi, edi
mov eax, edi
jne 0x71c1b6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7682d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x72fbe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 8], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 1
mov esi, dword [eax - 8]
cmp esi, 3
jg 0x76833f
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00710254
mov dword [esp + 8], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.007104df
mov eax, esi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov edx, dword [0x788398]
push ebx
mov dword [esp + 8], edx
mov bl, 2
mov byte [esp + 0x28], bl
add esi, 0xfffffffd
push 3
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.0070accc
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.0071070e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00710618
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.007104df
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.007104df
push esi
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0070accc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.00710618
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.007104df
mov ecx, dword [esp + 0x34]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x20]
mov esi, dword [ecx - 8]
push 0x784de4
push eax
call fcn.007107e8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call fcn.00710618
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.007104df
cmp esi, 3
jg 0x768350
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
lea edx, [esp + 0x34]
push ecx
push edx
push esi
call fcn.0071070e
lea ecx, [esp + 8]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 1
call fcn.007104df
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.007104df
mov ecx, dword [esp + 0x20]
pop ebx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x768df0
Capabilities:
Access peb ldr_data
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x744bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.00713be0
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00713b3e
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call fcn.00713b3e
test edi, edi
mov byte [esp + 0x4c], 1
jne 0x768e46
xor eax, eax
jmp 0x768e49
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x20]
call fcn.00713bf5
test edi, edi
jne 0x768e64
xor eax, eax
jmp 0x768e67
mov eax, dword [edi + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x10]
call fcn.00713bf5
mov esi, dword [esp + 0x54]
test esi, esi
je 0x768e88
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call fcn.0071467a
mov eax, dword [eax + 4]
lea edx, [esp + 0x2c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x768eae
lea ecx, [ebp + 0x5c]
call fcn.007146e6
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
lea esi, [ebp + 0x5c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call fcn.0071468f
test esi, esi
je 0x768ee4
mov esi, dword [esi + 4]
test esi, esi
je 0x768ee4
mov ecx, dword [esp + 0x20]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 0
call fcn.00713c73
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00713c73
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x5ba57471
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x5ba5755b
mov eax, 0x94
call fcn.5bb36150
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5ba575d0
mov ecx, dword [esi + 0x10]
mov dword [0x5bb74d34], ecx
mov eax, dword [esi + 4]
mov dword [0x5bb74d40], eax
mov edx, dword [esi + 8]
mov dword [0x5bb74d44], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x5bb74d38], esi
je 0x5ba574de
or esi, 0x8000
mov dword [0x5bb74d38], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x5bb74d3c], eax
call fcn.5bb3735f
test eax, eax
pop ecx
je 0x5ba575d0
call fcn.5ba82323
test eax, eax
jne 0x5ba5750b
call fcn.5bb373bb
jmp 0x5ba575d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5bb76c50], eax
call fcn.5bb37213
mov dword [0x5bb74d18], eax
call fcn.5bb36cba
test eax, eax
jl 0x5ba57554
call fcn.5bb3716a
test eax, eax
jl 0x5ba5754f
call fcn.5bb36f10
test eax, eax
jl 0x5ba5754f
call fcn.5ba824e3
test eax, eax
jne 0x5ba5754f
inc dword [0x5bb74d14]
jmp 0x5ba575e1
call fcn.5bb36ebd
call fcn.5bb36aad
jmp 0x5ba57501
test eax, eax
jne 0x5ba5758b
cmp dword [0x5bb74d14], eax
jle 0x5ba575d0
dec dword [0x5bb74d14]
cmp dword [0x5bb74d70], eax
jne 0x5ba5757a
call fcn.5bb36a95
call fcn.5bb36ebd
call fcn.5bb36aad
call fcn.5bb373bb
jmp 0x5ba575e1
cmp eax, 2
jne 0x5ba575d4
push 0x88
push 1
call fcn.5ba823e2
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5ba575d0
push esi
push dword [0x5bb70c70]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x5ba575ca
call fcn.5ba824c6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x5ba575e1
call fcn.5bb3636d
pop ecx
xor eax, eax
jmp 0x5ba575e4
cmp eax, 3
jne 0x5ba575e1
push 0
call fcn.5bb36b43
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x5ba5c71c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0xf3
je 0x5ba5c739
cmp dword [ebp + 0xc], 0xf4
jne 0x5ba5c793
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x5ba4c690
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba5c793
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x5ba4e718
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba5c786
cmp dword [ebp - 0xc], 1
jne 0x5ba5c786
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [entry0]
test esi, esi
jne 0x5ba5c7ac
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x5ba5c7ac
mov esi, dword [ebp - 0x14]
mov eax, esi
pop esi
leave
ret 8

Function at 0x5ba5d2cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5bb70c3c]
push 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x109c
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp eax, 1
jne 0x5ba5d301
cmp byte [ebp - 0xc], 0x31
je 0x5ba5d365
push ebx
push esi
push edi
push 4
pop ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x5ba4cb40
push edi
mov esi, 0x5ba4c690
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba5d33a
cmp dword [ebp - 0x10], 2
jne 0x5ba5d33a
xor eax, eax
jmp 0x5ba5d362
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push SysReAllocString
mov dword [ebp - 0x14], ebx
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba5d35f
cmp dword [ebp - 0x10], 2
je 0x5ba5d336
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.5bb3f314
leave
ret
Function at 0x5ba5e7e2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x5bb70c3c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x5ba4cc94
mov edi, ecx
push 0x5ba47954
push dword [edi + 0xc]
call fcn.5ba572e2
test eax, eax
mov dword [ebp - 0x350], eax
jl 0x5ba5e8da
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x354], eax
je 0x5ba5e8da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test byte [ebp - 0x34c], 0x10
jne 0x5ba5e8a2
push 0x5ba4cb9c
lea eax, [ebp - 0x320]
push eax
call ebx
test eax, eax
je 0x5ba5e8a2
push 0x5ba4cba8
lea eax, [ebp - 0x320]
push eax
call ebx
test eax, eax
je 0x5ba5e8a2
push 0x5ba4cbb8
lea eax, [ebp - 0x320]
push eax
call ebx
test eax, eax
je 0x5ba5e8a2
lea eax, [ebp - 0x320]
push eax
push dword [esi + 0x1c]
mov ecx, edi
call fcn.5ba5ec55
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5ba5e852
test byte [esi + 0x26], 0x10
pop ebx
je 0x5ba5e8ce
push esi
mov ecx, edi
call fcn.5ba7eaf5
mov dword [ebp - 0x350], eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x350]
pop edi
pop esi
call fcn.5bb3f314
leave
ret 4
Function at 0x5ba63455
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
push 0x50
mov byte [esi + 0x44], bl
mov dword [esi + 0x4c], eax
call fcn.5ba5615b
test eax, eax
pop ecx
je 0x5ba63494
mov ecx, eax
call fcn.5ba63585
jmp 0x5ba63496
xor eax, eax
test eax, eax
mov dword [esi + 0x40], eax
je 0x5ba6357a
xor eax, eax
test bl, bl
setne al
push edi
push dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetParent]
lea eax, [eax + eax + 0xc]
mov dword [ebp + 0xc], eax
call edi
test eax, eax
je 0x5ba634d2
jmp 0x5ba634c9
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], eax
push dword [esi + 0x10]
call edi
test eax, eax
jne 0x5ba634c1
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0x10]
call ebx
movzx eax, word [ebp + 0xc]
push esi
push 0x5ba6046b
push dword [ebp + 8]
push eax
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x5ba63530
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.5ba60ab4
test eax, eax
jne 0x5ba63530
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x5ba6350a
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
pop edi
je 0x5ba63568
push 0
push 2
push 0x111
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
push dword [esi + 0x10]
call ebx
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 0x18

Function at 0x5ba641c9
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jbe 0x5ba64205
inc edi
lea eax, [edi + 1]
push eax
lea eax, [ebp - 4]
push eax
call fcn.5ba561af
test eax, eax
je 0x5ba6424a
push edi
push dword [ebp - 4]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x44], 0
jne 0x5ba64222
push 0x7d4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x5ba64222
xor eax, eax
inc eax
jmp 0x5ba64224
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [esi + 0x40]
call fcn.5ba64255
cmp dword [ebp - 4], 0
je 0x5ba64247
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8
Function at 0x5ba6add4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
xor ebx, ebx
cmp dword [0x5bb73c98], esi
lea edi, [ebp - 4]
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
jne 0x5ba6ae24
mov eax, dword [ebp + 8]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x5ba6ae28
imul eax, eax, 0x3e8
push 0x5ba6b619
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_SetTimer]
cmp eax, esi
mov dword [0x5bb73ca0], eax
jne 0x5ba6ae24
mov ebx, 0x80004005
jmp 0x5ba6ae95
xor eax, eax
jmp 0x5ba6aea1
push esi
push esi
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x5ba6ae43
mov ebx, 0x8007000e
jmp 0x5ba6ae9f
push 0x5bb73c94
push esi
lea eax, [ebp - 8]
push eax
push 0x5ba6b63d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x5bb73c98], eax
jne 0x5ba6ae6a
mov ebx, 0x8007000e
jmp 0x5ba6ae95
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 8], esi
jge 0x5ba6ae95
mov eax, dword [0x5bb73c98]
cmp eax, esi
je 0x5ba6ae86
push eax
call edi
mov ebx, dword [ebp - 8]
mov dword [0x5bb73c98], esi
mov dword [0x5bb73c94], esi
cmp dword [ebp - 4], esi
je 0x5ba6ae9f
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5ba6aead
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bb70c3c]
and dword [ebp - 0x10c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0x5ba4cac4
push 0
mov dword [ebp - 0x110], ebx
call fcn.5ba57361
test eax, eax
je 0x5ba6af00
mov dword [ebp - 0x10c], 0x80004005
jmp 0x5ba6af5d
cmp dword [ebp - 0x114], 2
push edi
jne 0x5ba6af35
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x5ba6af71
cmp eax, edi
ja 0x5ba6af71
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x5ba6af71
push esi
call sub.SHLWAPI.dll_PathRemoveBackslashA
push esi
call sub.SHLWAPI.dll_PathIsDirectoryA
test eax, eax
jne 0x5ba6af5c
push esi
call fcn.5ba819ed
mov dword [ebp - 0x10c], eax
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 8
mov dword [ebp - 0x10c], 0x80004005
jmp 0x5ba6af5c
Function at 0x5ba6d179
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5bb7079c], 0xb
push esi
mov esi, ecx
jne 0x5ba6d197
mov eax, 0x80004005
jmp 0x5ba6d26e
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x5ba4f868
push ebx
mov edi, 0x5ba4f838
push edi
push SysReAllocString
mov dword [ebp - 4], 4
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba6d1cb
cmp dword [ebp - 8], eax
jne 0x5ba6d1f3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 4
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba6d1fa
cmp dword [ebp - 8], eax
je 0x5ba6d1fa
mov eax, 0x80004005
jmp 0x5ba6d26c
xor ebx, ebx
push ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
push edi
push 0x5ba49704
push 4
push ebx
push 0x5ba49764
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x5ba6d26c
push 0x14
call fcn.5ba5615b
cmp eax, ebx
pop ecx
je 0x5ba6d234
mov ecx, eax
call fcn.5bb1b6e8
jmp 0x5ba6d236
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x5ba6d244
mov edi, 0x8007000e
jmp 0x5ba6d26a
mov ecx, dword [edi]
mov edx, dword [ecx]
lea edi, [esi + 0x1c]
push edi
push eax
push ecx
call dword [edx + 0x38]
mov edi, eax
cmp edi, ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
jge 0x5ba6d265
push eax
call dword [ecx + 8]
mov dword [esi + 0x18], ebx
jmp 0x5ba6d26a
push esi
push eax
call dword [ecx + 0x1c]
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5ba6e8e2
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, 0xfffffc7c
push edi
mov edi, ecx
ja 0x5ba6e912
cmp eax, 0xfffffc4a
jb 0x5ba6e912
push esi
push 0
push 0x4e
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5ba6e9c3
cmp eax, 0xfffffd36
je 0x5ba6e970
cmp eax, 0xfffffff4
je 0x5ba6e94d
cmp eax, 0xfffffffb
jne 0x5ba6e9c1
mov eax, dword [esi]
cmp eax, dword [edi + 0x2c]
jne 0x5ba6e970
call dword [sym.imp.USER32.dll_GetMessagePos]
mov ecx, eax
shr ecx, 0x10
movsx ecx, cx
movsx eax, ax
push ecx
push eax
mov ecx, edi
call fcn.5bb52596
xor eax, eax
inc eax
jmp 0x5ba6e9c3
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x5ba6e959
push 0x20
jmp 0x5ba6e96d
cmp eax, 0x10001
jne 0x5ba6e9c1
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x3c], eax
push 2
pop eax
jmp 0x5ba6e9c3
and dword [ebp + 0x10], 0
push 0
push dword [esi + 0xc]
push 0x419
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xdc
mov esi, eax
call fcn.5ba5615b
test eax, eax
pop ecx
je 0x5ba6e9a4
push esi
mov ecx, eax
call fcn.5bb51f62
mov esi, eax
jmp 0x5ba6e9a6
xor esi, esi
test esi, esi
je 0x5ba6e9c1
lea eax, [ebp + 0x10]
push eax
push 2
add edi, 0x10
push edi
push esi
call dword [sym.imp.ole32.dll_DoDragDrop]
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc