joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46903c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4691e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4691c8
mov dl, 1
mov eax, dword [0x41bcf0]
call fcn.00403850
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040472c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4691b7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004562fc
test al, al
je 0x4691aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4691f8
lea eax, [ebp - 0x254]
call fcn.00409f54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4691aa
xor eax, eax
push ebp
push 0x4691a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x469230
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46918c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46918c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4690ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004202b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691ee
lea eax, [ebp - 0x260]
call fcn.0040472c
ret

Function at 0x469b30
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4dcbe0]
cmp byte [eax + 0xa5], 0
jne 0x469ba1
cmp dword [0x4dcbf8], 0
jne 0x469b62
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x469aec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dcbf8], eax
cmp dword [0x4dcbf4], 0
jne 0x469b7d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4dcbf4], eax
cmp dword [0x4dcbfc], 0
jne 0x469ba1
push esp
push 0
push 0
push 0x469a90
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4dcbfc], eax
pop edx
ret
Function at 0x46a234
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dcbe0]
cmp dword [eax + 0x30], 0
je 0x46a2de
cmp dword [ebx + 0x94], 0
jne 0x46a2d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a1c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46a2d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46a29e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a2d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041def4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46a2ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46ae3c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46ae71
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040481c
jmp 0x46ae7e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404780
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c038
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c079
mov eax, esi
call fcn.0045177c
test al, al
je 0x46c079
mov eax, dword [ebx + 0x84]
call fcn.00451478
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c079
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451478
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48e57c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x48e5a1
cmp dword [esp + 4], 5
jb 0x48e5a1
mov al, 1
jmp 0x48e5a3
xor eax, eax
add esp, 0x94
ret
Function at 0x49ec44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49edc5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4da834], 0
jne 0x49eda2
push 0x4dcc70
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x49ed9b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4da834], 0
jne 0x49ed83
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404d78
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bec
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408c04
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x49eddc
call fcn.00409fec
mov eax, dword [ebp - 0xc]
call fcn.00404bec
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x49ed04
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404d78
jmp 0x49ed3b
lea eax, [ebp - 8]
mov edx, 0x49edfc
call fcn.004047c4
xor eax, eax
push ebp
push 0x49ed31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00473608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ed3b
mov eax, dword [ebp - 8]
call fcn.00404bec
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4da834], eax
cmp dword [0x4da834], 0
jne 0x49ed6e
mov ecx, dword [0x4db5ec]
mov dl, 1
mov eax, dword [0x407f88]
call fcn.0040d04c
call fcn.00404124
push 0x49ee08
mov eax, dword [0x4da834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4dcc88], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49eda2
push 0x4dcc70
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49edcc
lea eax, [ebp - 0x18]
call fcn.0040472c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404750
ret
Function at 0x4aac8c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4aacc7
cmp dword [ebx + 0x5c], 0
je 0x4aacc7
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004a2c78
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4aae12
cmp dword [ebx + 0x7c], 0
jne 0x4aaced
mov dl, 1
mov eax, dword [0x41b748]
call fcn.00403850
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4aadeb
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4aae18]
push eax
mov al, byte [0x4aae1c]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4db61c]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x48a39c]
call fcn.0048c474
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4aade4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004a2c78
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004a2c78
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4a0270]
call fcn.00405d04
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4aadb7
mov edx, dword [0x4db870]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4aadc8
cmp eax, 0x1007
jne 0x4aadc4
mov byte [ebx + 0x74], 0x18
jmp 0x4aadc8
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aae12
mov eax, dword [ebp - 4]
call fcn.00403880
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004a2c78
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4abe78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ac0d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4abedb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004ab940
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d99c
cmp al, 1
jne 0x4abedb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004abc58
test al, al
je 0x4ac067
cmp dword [ebp - 8], 0
jge 0x4abef9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004ab940
mov eax, dword [ebp - 0x210]
call fcn.004049ec
cmp ebx, eax
jge 0x4abf43
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004ab940
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4db954]
and eax, 0xff
bt dword [edx], eax
jae 0x4abf43
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4abf57
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004abe54
cmp ebx, dword [ebp - 8]
je 0x4ac059
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4abf83
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a88
and eax, 0x7f
movzx eax, word [eax*2 + 0x4da888]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4ac046
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a88
and eax, 0x7f
movzx eax, word [eax*2 + 0x4da888]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00451478
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a88
and eax, 0x7f
movzx eax, word [eax*2 + 0x4da888]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00451478
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac04d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4ac0ba
cmp dword [ebp - 8], 0
jge 0x4ac072
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004ab940
mov eax, dword [ebp - 0x218]
call fcn.004049ec
cmp eax, dword [ebp - 8]
jg 0x4ac0ac
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004ab940
mov eax, dword [ebp - 0x21c]
call fcn.004049ec
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004abe54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac0df
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404750
ret
Function at 0x4c526c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c529a
mov eax, ebx
call fcn.004c5d20
cmp dword [ebx + 0x40], 0
je 0x4c5293
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c530b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c52fd
cmp dword [ebx + 8], 0
je 0x4c52bc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4c52ce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c52fd
cmp dword [ebx + 8], 0
je 0x4c52af
cmp eax, 3
je 0x4c52e1
dec eax
jne 0x4c52af
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c52af
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c52af
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c5329
cmp dword [ebx + 0x14], 0xcc
je 0x4c5329
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c5334
pop ebx
ret
Function at 0x401960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401979
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4019b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019a0
cmp esi, eax
jb 0x4019ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x424330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45cab8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x474728]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], vtable.CRgn.0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
push 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0xc]
call fcn.00434a3a
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_PtInRegion]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 8], vtable.CGdiObject.0
call fcn.00434a8d
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 0x28
Function at 0x427670
Capabilities:
Capture webcam image
Hide graphical window

Disassembly:
sub esp, 0x3c
push esi
push 0
mov esi, ecx
mov eax, dword [esi + 0x20]
push eax
push 0xa
push 0xa
push 1
push 1
push 0x50000000
push 0
call sub.AVICAP32.dll_capCreateCaptureWindowA
test eax, eax
mov dword [esi + 0x74], eax
jne 0x4276ac
push eax
push eax
push 0x462524
mov ecx, esi
call fcn.0042e314
xor eax, eax
pop esi
add esp, 0x3c
ret
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebp
test eax, eax
je 0x427825
mov ecx, dword [esi + 0x74]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x40a
push ecx
call ebx
test eax, eax
je 0x427825
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x74]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 0x74]
push 0x40000000
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0x114]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x114]
push 2
lea ecx, [esp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 4
sub ecx, 1
add edi, 1
sub eax, 1
add edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
sub ecx, edi
push ecx
sub eax, edx
push eax
mov eax, dword [esi + 0x74]
push edi
push edx
push 0
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x74]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x74]
push edx
call ebp
test eax, eax
pop edi
je 0x427791
mov ecx, dword [esi + 0x74]
lea eax, [esp + 0x1c]
push eax
push 0x2c
push 0x40e
push ecx
call ebx
cmp dword [esp + 0x24], 0
je 0x427835
mov edx, dword [esi + 0x74]
push edx
call ebp
test eax, eax
je 0x4277b5
mov eax, dword [esi + 0x74]
push 0
push 0
push 0x42a
push eax
call ebx
mov ecx, dword [esi + 0x74]
push ecx
call ebp
test eax, eax
je 0x4277ce
mov edx, dword [esi + 0x74]
push 0
push 0
push 0x429
push edx
call ebx
mov eax, dword [esi + 0x74]
push eax
call ebp
test eax, eax
je 0x4277e7
mov ecx, dword [esi + 0x74]
push 0
push 0x1e
push 0x434
push ecx
call ebx
mov edx, dword [esi + 0x74]
push edx
call ebp
test eax, eax
je 0x427800
mov eax, dword [esi + 0x74]
push 0
push 1
push 0x432
push eax
call ebx
mov ecx, dword [esi + 0x74]
push ecx
call ebp
test eax, eax
je 0x427819
mov edx, dword [esi + 0x74]
push 0
push 1
push 0x435
push edx
call ebx
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x3c
ret
push 0
push 0
push 0x462518
mov ecx, esi
call fcn.0042e314
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x3c
ret
Function at 0x42c496
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x42c4dc
call fcn.0042bafa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42c4dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x42c51f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42c508
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42c508
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42c51c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x430595
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4305ce
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042b25a
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00429e98
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43228a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4322cd
call fcn.0042bafa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4322cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4322e8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00431e41
test ebx, ebx
mov esi, eax
je 0x4322e6
test edi, edi
je 0x4322e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43a203
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 0x43a231
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a24f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043a16d
jmp 0x43a24f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43a24f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043a16d
test edi, edi
mov eax, edi
jne 0x43a239
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x478864]
test ecx, ecx
je 0x43a312
jmp 0x43a202
ret 8