joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10106b2
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
push esi
push edi
push dword [eax + 0x10438c4]
mov edi, dword [ebp + 8]
call fcn.01011d99
test eax, eax
jne 0x10106f0
call fcn.0102960a
test eax, eax
je 0x1010848
cmp dword [0x1043850], 0
mov eax, 0x1005054
jne 0x1010703
mov eax, 0x100505c
push eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0100e041
push 0x100482c
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01007b2f
push edi
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01007b2f
xor edi, edi
push 5
lea eax, [ebp - 0x104]
inc edi
push eax
mov dword [0x104388c], edi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jbe 0x1010844
push 0
push 0x1004820
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x1043844], eax
test eax, eax
je 0x1010848
mov ecx, dword [0x10437c0]
mov eax, dword [0x10437c8]
mov esi, dword [0x10437c4]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x10c], eax
mov eax, dword [0x10437cc]
sub eax, esi
mov dword [ebp - 0x108], eax
push 0x10
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], esi
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp - 0x10c]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
add esp, 0xc
push edi
push dword [ebp - 0x108]
lea ecx, [eax + 2]
push eax
mov eax, dword [0x10437b8]
push dword [ebp - 0x110]
imul eax, eax, 0x50
push dword [ebp - 0x114]
mov dword [ebp - 0x124], ecx
push dword [eax + 0x10438c0]
call esi
push edi
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push dword [0x1043844]
call esi
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
push dword [eax + 0x10438c0]
push 0
push 0x429
push dword [0x1043844]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
call fcn.0101ddf0
mov eax, edi
jmp 0x101084a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0103d1ec
leave
ret 4

Function at 0x1010c52
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x64
lea ecx, [ebp - 0x68]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
and dword [ebp - 0x6c], 0
xor eax, eax
cmp ax, word [esi]
jge 0x1010cd1
push ebx
lea ebx, [esi + 0xc]
push edi
mov eax, dword [ebx - 4]
mov ecx, dword [esi + 4]
push dword [ecx + eax*4 + 4]
lea edi, [ebp - 0x68]
call fcn.010102ad
test eax, eax
jne 0x1010cb2
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
push dword [ecx + eax*4 + 4]
call fcn.0103232b
mov edi, eax
test edi, edi
jne 0x1010cc2
movsx eax, word [esi]
inc dword [ebp - 0x6c]
add ebx, 0x16
cmp dword [ebp - 0x6c], eax
jl 0x1010c88
jmp 0x1010ccf
push edi
call fcn.0100916e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0103d1ec
leave
ret 8
Function at 0x1012f0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x1012f30
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1012f30
and dword [0x1041968], 0
xor eax, eax
inc eax
jmp 0x1012f3c
mov dword [0x1041968], 3
xor eax, eax
pop ebp
ret 4

Function at 0x101309d
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10049d4
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10130f8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push str.SharedDir
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10130eb
inc edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1013110
cmp byte [ebp + 0x10], 1
push esi
push dword [ebp + 8]
jne 0x101310a
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
jmp 0x1013110
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop edi
pop esi
leave
ret 0xc

Function at 0x101318c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x1041968], 0
push esi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10131d2
test al, 0x10
jne 0x10131ed
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01013047
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1004fe4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x20c]
push eax
call fcn.01012e56
mov esi, eax
test esi, esi
je 0x1013238
push esi
call fcn.01030f14
test eax, eax
je 0x1013238
push esi
call fcn.01007110
mov dword [0x1041968], 1
xor eax, eax
jmp 0x101323a
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0103d1ec
leave
ret
Function at 0x101329c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10132b2
xor eax, eax
jmp 0x10133cd
movzx eax, word [ebp + 8]
dec eax
push esi
je 0x10133af
dec eax
je 0x101337f
dec eax
dec eax
je 0x10132da
mov dword [0x1041968], 6
xor edi, edi
jmp 0x10133ca
push 1
push 0x1a
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, 0x104
test eax, eax
jl 0x1013325
push esi
push edi
call fcn.01013047
push 0x100504c
push esi
push edi
call fcn.01007b2f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10133a6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x10133a6
push ebx
push esi
push edi
call fcn.0101309d
push esi
push edi
call fcn.01013047
push 0x100504c
push esi
push edi
call fcn.01007b2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
cmp eax, 0xffffffff
jne 0x1013371
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push edi
call fcn.01013047
push 0x100504c
push esi
push edi
call fcn.01007b2f
push edi
call ebx
cmp eax, 0xffffffff
je 0x10133bc
push 0x1004a4c
push esi
push edi
call fcn.01007b2f
jmp 0x10133bc
push 1
push 0x1a
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, 0x104
push esi
push edi
test eax, eax
jge 0x10132f7
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push edi
call fcn.01013047
jmp 0x10133bc
push edi
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push edi
call fcn.01013047
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10135f2
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x414], 0
cmp dword [0x1043850], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x410], ebx
mov eax, 0x1005054
jne 0x101362c
mov eax, 0x100505c
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0100e041
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x10049cc
lea eax, [ebp - 0x108]
push eax
call esi
sub edi, eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01007b2f
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 3
lea eax, [ebp - 0x418]
push eax
push 0x1004f54
push ebx
mov ebx, 0x10049c4
push ebx
call edi
cmp eax, 1
jbe 0x1013799
lea eax, [ebp - 0x108]
push eax
push 0x304
lea eax, [ebp - 0x40c]
push eax
push 0x1004f54
push dword [ebp - 0x410]
push ebx
call edi
push dword [ebp - 0x410]
call esi
cmp byte [ebp - 0x40c], 0
mov esi, eax
lea eax, [ebp - 0x40c]
je 0x1013701
cmp byte [eax], 0x2c
je 0x10136dc
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
jne 0x10136c9
jmp 0x1013701
mov byte [eax], 0
inc eax
push 0x201
lea esi, [esi + eax + 1]
push eax
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x414], esi
mov byte [esi + 0x200], 0
mov esi, 0x304
push esi
lea eax, [ebp - 0x40c]
push eax
call fcn.01013047
push dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push esi
push eax
call fcn.01007b2f
push 1
lea eax, [ebp - 0x40c]
push eax
call fcn.01013dc4
cmp dword [ebp + 8], 0
je 0x101379b
jmp 0x101378f
mov ecx, dword [ebp - 0x414]
test ecx, ecx
jne 0x101374b
mov ecx, 0x1004617
mov eax, dword [0x1043894]
test eax, eax
jne 0x1013762
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
mov eax, dword [eax + 0x10438c0]
mov edx, dword [0x1043824]
or edx, 0x2011
push edx
push dword [0x1043644]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x1013795
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.01013dc4
mov esi, eax
test esi, esi
je 0x101373c
mov eax, esi
jmp 0x101379b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103d1ec
leave
ret 4
Function at 0x10137b1
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 1
push 0x1c
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x104
test eax, eax
jl 0x1013811
push esi
push edi
call fcn.01013047
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100504c
push esi
push edi
call fcn.01007b2f
push edi
call ebx
cmp eax, 0xffffffff
jne 0x101380a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x101380d
xor eax, eax
inc eax
test eax, eax
jne 0x101385e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
push edi
call fcn.01013047
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100504c
push esi
add eax, edi
push edi
mov dword [ebp + 0xc], eax
call fcn.01007b2f
push edi
call ebx
cmp eax, 0xffffffff
jne 0x101385e
push 0x1004a50
push esi
push dword [ebp + 0xc]
call fcn.0100e041
push edi
call ebx
cmp eax, 0xffffffff
jne 0x101385e
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x1013865
push esi
push edi
call fcn.01013047
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xc
push edi
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
push edi
call esi
add eax, edi
push eax
push dword [ebp + 8]
call fcn.0101354d
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10139c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
call fcn.01012e02
movzx eax, ax
mov dword [ebp - 0x110], eax
test ax, ax
jne 0x1013a05
xor eax, eax
jmp 0x1013aaa
push edi
mov edi, dword [ebp + 0x10]
mov eax, 0x104
cmp edi, eax
jb 0x1013a14
mov edi, eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push edi
push ebx
call fcn.01013047
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
movzx eax, word [ebp - 0x110]
push eax
push 0x1004a5c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01007bcb
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call fcn.01007b2f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1013aa6
push edi
push ebx
call fcn.01013047
push ebx
call esi
mov ecx, edi
sub ecx, eax
dec ecx
je 0x1013a93
push 0xc
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
push dword [ebp - 0x10c]
call fcn.0101354d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1013aa8
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0103d1ec
leave
ret 0xc
Function at 0x1026a9b
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
mov eax, 0x10420c0
cmp dword [eax], 0
je 0x1026ab8
add eax, 0x12
inc esi
cmp eax, 0x1042444
jl 0x1026aa8
cmp esi, 0x32
jne 0x1026ada
cmp dword [0x104388c], 0
je 0x1026ad6
push 0x424
call fcn.010281fa
push eax
call fcn.0102b50a
xor eax, eax
jmp 0x1026b57
push edi
push 0x26
push dword [ebp + 0x10]
call fcn.0100bd56
test eax, eax
je 0x1026b0a
movzx eax, byte [eax + 1]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
imul esi, esi, 0x12
push dword [ebp + 0x10]
movzx edi, ax
call fcn.0103232b
mov dword [esi + 0x10420c8], eax
jmp 0x1026b15
imul esi, esi, 0x12
xor edi, edi
and dword [esi + 0x10420c8], edi
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi + 0x10420c0], eax
call fcn.0103232b
cmp dword [0x10438a0], 0
mov word [esi + 0x10420d0], di
mov dword [esi + 0x10420c4], eax
pop edi
je 0x1026b42
or ecx, 0xffffffff
jmp 0x1026b48
mov ecx, dword [0x10437b8]
mov dword [esi + 0x10420cc], ecx
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x1026d6a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0102695d
mov ebx, edx
mov edx, dword [ebp + 0xc]
mov edi, eax
test edx, edx
je 0x1026e6b
cmp edx, 0xffffffff
je 0x1026e94
cmp dword [esi], 3
jne 0x1026e4d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov word [ebp - 0x10], ax
add eax, edi
mov word [ebp - 0xc], ax
lea eax, [ebx + ecx]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 2
push 0x706a
push edx
mov word [ebp - 0xe], cx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
test eax, eax
je 0x1026e94
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 8], eax
test eax, eax
je 0x1026e42
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x1026e39
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x1026e39
push 0xcc0020
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0
push 0
push dword [ebp + 8]
push ebx
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1026e94
push 0
push ebx
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1026e94
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
add eax, edi
push 0xaa
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
mov dword [ebp - 0x10], ecx
add ecx, ebx
mov dword [ebp - 8], ecx
call fcn.0102f1b8
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x102855e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10285be
cmp dword [ebp - 4], edi
je 0x10285be
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10285b5
cmp dword [ebp - 0xc], 4
jne 0x10285b5
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 0x10
Function at 0x102b5b2
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [0x1043884], edi
je 0x102b5e2
mov dword [0x1043884], edi
jmp 0x102b72a
cmp dword [0x1043888], edi
jne 0x102b72a
cmp dword [0x10418d8], 5
jge 0x102b79f
inc dword [0x10418d8]
cmp dword [ebp + 0x10], 2
je 0x102b60d
cmp dword [ebp + 0x10], 3
jne 0x102b617
mov dword [0x1043890], 1
cmp ebx, edi
je 0x102b62e
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x102b649
mov ebx, dword [0x1043894]
jmp 0x102b649
mov eax, dword [0x1043894]
cmp eax, edi
je 0x102b63b
mov ebx, eax
jmp 0x102b649
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
mov ebx, dword [eax + 0x10438c0]
mov esi, dword [ebp + 0xc]
cmp esi, 2
je 0x102b66d
cmp esi, 0x2328
jl 0x102b661
cmp esi, 0x238b
jle 0x102b66d
push dword [ebp + 0x14]
push esi
call fcn.010281fa
push eax
jmp 0x102b674
push esi
push dword [0x1043680]
push 0x1005904
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.01007bcb
add esp, 0x14
cmp dword [0x10438a0], edi
je 0x102b69f
push edi
push 1
push edi
push edi
call fcn.01023145
cmp dword [0x1043880], edi
je 0x102b6b5
push 0x63
push dword [0x10438c0]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, 0x2010
cmp esi, 2
jne 0x102b6c3
mov eax, edi
jmp 0x102b6cd
mov eax, dword [0x1043824]
or eax, 0x2040
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
push dword [0x1043644]
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
test eax, eax
jne 0x102b70c
cmp dword [ebp + 0xc], 2
jne 0x102b70c
mov eax, dword [0x1043824]
or eax, edi
push eax
push dword [0x1043644]
push dword [0x1043680]
push ebx
call esi
mov dword [ebp + 0x10], 2
cmp dword [0x1043880], 0
je 0x102b72a
push 0
push 0x2710
push 0x63
push dword [0x10438c0]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp + 0x10]
dec eax
je 0x102b74a
dec eax
dec eax
je 0x102b752
call fcn.0102b557
push 0x1004b38
push 1
push 0x10058b8
call fcn.0103d72e
dec dword [0x10418d8]
jmp 0x102b7b0
call fcn.01011d7f
push 0x10058a4
mov edi, eax
mov esi, 0x111
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0100e041
mov eax, dword [edi + 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.01007b2f
call fcn.0102b557
push 5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll__exit]
push 0x1005858
push 1
push 0x1005808
call fcn.0103d72e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103d1ec
leave
ret 0x10
Function at 0x1031901
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, esi
neg eax
sbb eax, eax
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and eax, 0xffffffe0
add eax, 0x419
mov ebx, edx
push eax
push ebx
mov dword [ebp - 0x110], ebx
call edi
neg esi
sbb esi, esi
and esi, 0x20
add esi, 0x3f9
push esi
push ebx
mov dword [ebp - 0x114], eax
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x190
push eax
mov dword [ebp - 0x108], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
jle 0x1031b21
push ebx
push ebx
push 0xb
push dword [ebp - 0x114]
call esi
push ebx
push ebx
push 0xb
push dword [ebp - 0x108]
call esi
mov eax, dword [ebp - 0x118]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x11c], eax
cmp eax, ebx
jne 0x10319c2
push dword [0x10413bc]
push 1
push 0x1006590
call fcn.0103d72e
jmp 0x1031b21
push eax
push dword [ebp - 0x118]
push 0x191
push dword [ebp - 0x108]
call esi
cmp dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], ebx
jle 0x1031a97
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x11c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x120], eax
mov eax, dword [eax]
lea edx, [ebp - 0x104]
push edx
sub eax, ecx
push eax
push 0x189
push dword [ebp - 0x108]
call esi
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
sub eax, dword [ebp - 0x10c]
push ebx
push eax
push 0x199
push dword [ebp - 0x108]
call esi
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x180
push dword [ebp - 0x114]
call esi
push dword [ebp - 0x124]
push eax
push 0x19a
push dword [ebp - 0x114]
call esi
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
sub eax, dword [ebp - 0x10c]
push ebx
push eax
push 0x182
push dword [ebp - 0x108]
call esi
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x118]
jl 0x10319e8
push ebx
push 1
push 0xb
push dword [ebp - 0x114]
call esi
push ebx
push 1
push 0xb
push dword [ebp - 0x108]
call esi
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
push 0x190
push 0x1389
push dword [ebp - 0x110]
call edi
push eax
call esi
neg eax
sbb eax, eax
neg eax
push eax
push 0x138a
push dword [ebp - 0x110]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push ebx
push 0x190
push 0x138c
push dword [ebp - 0x110]
call edi
push eax
call esi
neg eax
sbb eax, eax
neg eax
push eax
push 0x138b
push dword [ebp - 0x110]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103d1ec
leave
ret
Function at 0x1032572
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x10413a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1041cac]
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10325b4
push 0x40
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x10325a9
mov ecx, eax
call fcn.0103859c
jmp 0x10325ab
xor eax, eax
mov dword [0x1041cac], eax
test eax, eax
je 0x10325d5
push esi
push eax
call fcn.0103703a
test eax, eax
jne 0x103261a
push esi
call fcn.01011844
test eax, eax
jne 0x103261a
push esi
push dword [0x1041cac]
call fcn.010385ca
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push esi
push 0x8b
call fcn.010281fa
push eax
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.01007bcb
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
call fcn.0102b50a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0103d1ec
leave
ret 4