joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100364eb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003650f
test al, 0x10
je 0x1003650f
xor esi, esi
jmp 0x10036599
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10036529
mov edx, edi
mov ecx, ebx
xor esi, esi
call fcn.10034039
jmp 0x10036599
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
mov esi, eax
test esi, esi
js 0x10036599
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x10036590
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.100364eb
mov esi, eax
test esi, esi
js 0x10036590
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10036581
mov edx, edi
mov ecx, ebx
xor esi, esi
call fcn.10034039
jmp 0x10036590
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038446
Capabilities:
Move file

Disassembly:
push 0x22c
mov eax, 0x10088518
call fcn.100853c9
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x228], eax
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10015daa
and dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.1003837a
mov edi, eax
test edi, edi
js 0x100385d5
and dword [ebp - 0x224], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
mov eax, dword [ebx]
push ecx
push ebx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100a0bc0]
call esi
mov edi, eax
test edi, edi
js 0x100385c9
push dword [ebp - 0x21c]
mov esi, 0x104
lea ecx, [ebp - 0x218]
mov edx, esi
call fcn.1001b46e
mov edi, eax
test edi, edi
js 0x100385c9
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.1003273e
mov edi, eax
test edi, edi
js 0x100385c9
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x100385ba
mov esi, dword [ebx]
lea edi, [ebp - 0x238]
xor eax, eax
stosd dword es:[edi], eax
push 0x1f
mov ecx, dword [esi + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x238]
push eax
push 0x1000658c
push ebx
call dword [0x100a0bc0]
call dword [esi + 0x18]
mov edi, eax
test edi, edi
js 0x100385c9
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push 0
push 1
push 0x2002
push 0x1042
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
mov edi, eax
test edi, edi
js 0x100385ad
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
push eax
mov dword [ecx], eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100a0bc0]
call esi
lea ecx, [ebp - 0x220]
call fcn.100155c9
jmp 0x100385c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
push dword [ebp - 0x224]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
mov eax, edi
call fcn.10085378
ret 8
Function at 0x1003a463
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
cmp dword [ebp + 8], 1
jbe 0x1003a492
mov eax, dword [ebp + 8]
jmp 0x1003a495
xor eax, eax
inc eax
cmp ebx, eax
jae 0x1003a4de
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1003a4cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
cmp esi, 0x80070005
je 0x1003a4c3
cmp esi, 0x80070020
jne 0x1003a4de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x1003a487
push 0
push edi
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003a577
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
xor ebx, ebx
cmp ebx, 0xa
jae 0x1003a618
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1003a616
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
cmp esi, 0x80071770
jne 0x1003a5f2
push 8
xor esi, esi
push esi
push esi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1003a5e3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1003a5f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003a5f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
cmp esi, 0x80070005
je 0x1003a602
cmp esi, 0x80070020
jne 0x1003a618
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
inc ebx
jmp 0x1003a58b
xor esi, esi
test esi, esi
js 0x1003a629
cmp byte [ebp + 0x10], 0
je 0x1003a629
mov ecx, edi
call fcn.1003a4e9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1003a634
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
xor esi, esi
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
cmp ebx, 0xa
jae 0x1003a6b4
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003a66a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x1003a693
and edi, 0xffffdffd
xor esi, esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003a693
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
cmp esi, 0x80070005
je 0x1003a6a3
cmp esi, 0x80070020
jne 0x1003a6b4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
inc ebx
jmp 0x1003a646
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d28d
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2bc], 0
lea eax, [ebp - 0x2bc]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
and dword [edi], 0
call fcn.1001b609
mov esi, eax
test esi, esi
js 0x1003d314
push ebx
mov ebx, 0x2b4
lea eax, [ebp - 0x2b8]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x101
push ebx
push eax
push 0
push dword [ebp - 0x2bc]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
pop ebx
test eax, eax
je 0x1003d305
mov eax, dword [ebp - 0x2b8]
mov dword [edi], eax
jmp 0x1003d314
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
push dword [ebp - 0x2bc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10084510
mov esp, ebp
pop ebp
ret 4

Function at 0x1003d334
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [edi], ebx
cmp byte [ecx + 8], bl
je 0x1003d3e8
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], ebx
push eax
call fcn.1001b609
mov esi, eax
test esi, esi
js 0x1003d3da
mov esi, 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x200
push esi
push eax
push ebx
push dword [ebp - 0x2bc]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1003d3cb
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [edi], esi
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
jmp 0x1003d3da
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
push dword [ebp - 0x2bc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1003d3f4
add ecx, 0xa
mov edx, edi
call fcn.10015fda
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f923
mov esp, ebp
pop ebp
ret 4

Function at 0x1003d568
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x208
mov dword [esi + 4], eax
xor eax, eax
push eax
mov byte [esi + 8], 1
mov word [esi + 0xa], ax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push dword [esi + 4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp - 4]
dec eax
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
and eax, 0x80004005
call fcn.10084510
mov esp, ebp
pop ebp
ret 4
Function at 0x1003d5d4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
push 1
push dword [esi*8 + 0x1009e8d0]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1003d62c
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x1003d659
inc esi
cmp esi, 7
jb 0x1003d5f2
or dword [edi + 4], 0xffffffff
lea ecx, [edi + 0xa]
push ebx
mov edx, 0x104
mov byte [edi + 8], 0
call fcn.1002f923
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret
push dword [esi*8 + 0x1009e8d0]
mov ecx, edi
call fcn.1003d568
jmp 0x1003d648

Function at 0x1003d85a
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x10088e23
call fcn.100853ff
mov esi, ecx
mov dword [ebp - 0x20], esi
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.10015f77
push 1
push 0x1000c52c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1001b2c9
lea ecx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
je 0x1003d89f
push 0x13
push 0x1000c5e0
jmp 0x1003d8a6
push 0xe
push 0x1000c5c0
call fcn.1001b2c9
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push ecx
push ecx
push 0x2001f
push ecx
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push SysReAllocString
call fcn.10013245
test eax, eax
je 0x1003d8e4
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
cmp eax, 0xa
jb 0x1003d8f5
push 0xa
pop eax
mov dword [ebp - 0x1c], eax
mov ebx, edi
cmp ebx, eax
jae 0x1003d95d
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x18]
call fcn.10015daa
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push 0x1000c2c8
push eax
call fcn.1001e1df
add esp, 0xc
cmp ebx, dword [esi + 4]
jb 0x1003d930
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
imul ecx, ebx, 0x214
add ecx, dword [esi]
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x2c]
call fcn.1003d4eb
test eax, eax
js 0x1003d8dd
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.10015dfc
mov eax, dword [ebp - 0x1c]
inc ebx
mov esi, dword [ebp - 0x20]
jmp 0x1003d8f7
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push edi
push 0x1000c2ac
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1003d8d5
cmp dword [ebp - 0x2c], eax
je 0x1003d98d
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
jmp 0x1003d9b2
mov eax, edi
call fcn.10085364
ret 0xc
Function at 0x1003d9bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x60
mov eax, 0x10088e4e
call fcn.100853ff
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
push ebx
push ebx
push 0x403
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x1003d9f4
push 0x8000ffff
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, eax
call fcn.10040f8d
push ebx
push ebx
push 0x14b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x30], ebx
mov edi, ebx
mov dword [ebp - 0x28], ebx
cmp edi, dword [esi + 4]
jae 0x1003db3c
mov dword [ebp - 0x20], ebx
mov ecx, dword [esi]
imul eax, edi, 0x214
mov dword [ebp - 0x2c], eax
add ecx, eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003d334
test eax, eax
jns 0x1003da4a
mov byte [ebp - 4], bl
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1003db61
or eax, 0xffffffff
mov esi, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 2
cmp edi, dword [eax + 4]
jb 0x1003da6c
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov ecx, dword [eax]
lea eax, [ebp - 0x18]
add ecx, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], ebx
call fcn.1001b609
mov edi, dword [ebp - 0x18]
test eax, eax
js 0x1003da94
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 0x11], 1
cmp eax, 0xffffffff
jne 0x1003da97
mov byte [ebp - 0x11], bl
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x11], 0
je 0x1003dad0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ecx + 4]
jae 0x1003da61
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
add ecx, dword [ebp - 0x2c]
push eax
call fcn.1003d28d
mov esi, dword [ebp - 0x1c]
test eax, eax
js 0x1003dad0
mov ecx, dword [ebp - 0x38]
push esi
call fcn.1002f351
mov dword [ebp - 0x34], eax
xor eax, eax
lea edi, [ebp - 0x68]
push 9
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
inc eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
sets al
mov dword [ebp - 0x60], edi
dec eax
and eax, 6
inc eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push ebx
push 0x40b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jns 0x1003db46
call fcn.100154b3
push eax
jmp 0x1003d9ee
mov eax, ebx
call fcn.10085364
ret 4
test esi, esi
je 0x1003db51
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push edi
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x28], edi
jmp 0x1003da13
Function at 0x1003fa48
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push edi
mov edi, ecx
push 0x419
push dword [edi + 0x34]
mov byte [edi + 0x169e], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x1003faa6
cmp eax, dword [edi + 0x6c]
jge 0x1003faa6
jb 0x1003fa88
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
push esi
imul esi, eax, 0x214
mov ecx, edi
add esi, dword [edi + 0x68]
call fcn.1003ebfc
push esi
lea ecx, [eax + 0x248]
call fcn.1003d25a
pop esi
xor eax, eax
pop edi
ret 0x10
Function at 0x1003fc41
Capabilities:
Create thread
Get disk information

Disassembly:
push 0x18
mov eax, 0x100890fb
call fcn.10085396
mov dword [ebp - 0x18], ecx
xor ebx, ebx
inc ebx
push ebx
push 0x854
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x1003fc93
mov byte [esi], cl
lea eax, [esi + 0x83c]
mov dword [esi + 4], ecx
push eax
mov dword [esi + 0x838], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 8]
call fcn.100822be
xor ecx, ecx
jmp 0x1003fc95
mov esi, ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push ecx
push esi
push 0x10081c80
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x1003fce5
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1003fcd7
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x1003fcdc
call fcn.10081b4d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003fcea
call fcn.10081b4d
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.100820c6
test al, al
sete cl
test al, al
jne 0x1003fd1d
lea edx, [ebp - 0xd]
mov byte [ebp - 0xd], al
mov ecx, edi
call fcn.10082209
cmp byte [ebp - 0xd], 0
jne 0x1003fd1b
mov ecx, edi
call fcn.10082189
test al, al
jne 0x1003fd33
xor cl, cl
test cl, cl
jne 0x1003fd33
mov ecx, dword [ebp - 0x18]
mov edx, 0x4ac
mov ecx, dword [ecx + 0x34]
call fcn.1003fb7a
jmp 0x1003fd89
mov ecx, dword [ebp - 0x18]
call fcn.1003ebfc
test byte [eax + 0x460], 2
je 0x1003fd9f
push edi
lea ecx, [ebp - 0x14]
call fcn.10015f77
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.1001eae9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1003fd8d
mov eax, dword [ebp - 0x18]
mov edx, 0x4ad
mov ecx, dword [eax + 0x34]
call fcn.1003fb7a
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
mov byte [ebp - 4], bl
xor bl, bl
jmp 0x1003fda4
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
mov byte [ebp - 4], bl
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xe
test esi, esi
je 0x1003fddc
lea eax, [esi + 0x83c]
mov byte [ebp - 4], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 4]
call fcn.10081a15
push esi
mov byte [ebp - 4], 0xf
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
mov byte [ebp - 4], 0xe
and dword [ebp - 0x1c], 0
pop ecx
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.10085364
ret 4
Function at 0x100408f3
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008571b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [0x1009eec4]
mov dword [ebx], 0x10002bdc
mov dword [ebx + 4], 0x10002bcc
mov dword [ebx + 8], 0x10002bb8
mov dword [ebx + 0xc], 0x10002bb0
mov dword [ebx + 0x30], 0x10002ba0
mov dword [ebx + 0x50], 0xc0000001
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100a0bc0]
mov ecx, edi
call esi
mov ecx, ebx
call fcn.1003e2b8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10084510
mov esp, ebp
pop ebp
ret

Function at 0x1004275a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x10042784
call fcn.100426df
test al, al
je 0x1004277b
push 0x80070006
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x10042720
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
test eax, eax
jne 0x100427a9
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
ret 0xc

Function at 0x1004486e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100448c3
jmp 0x100448a6
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100448bc
cmp esi, dword [ebp - 4]
je 0x100448ba
push 0
push esi
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov esi, eax
test esi, esi
jne 0x10044893
jmp 0x100448bc
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
and dword [ebx + 0x64], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100448e5
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi + 0x70]
push eax
mov edx, dword [eax]
mov esi, dword [edx + 0x5c]
mov ecx, esi
call dword [0x100a0bc0]
call esi
test eax, eax
jne 0x1004492b
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004492b
push 0
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10084510
mov esp, ebp
pop ebp
ret 4
Function at 0x1004f51e
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1304], ebx
je 0x1004f5b9
push edi
mov edi, dword [esi + 0x15fc]
call dword [sym.imp.USER32.dll_GetFocus]
cmp edi, eax
jne 0x1004f5b8
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x1004f5b8
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x419
push dword [esi + 0x15fc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi + 0x15fc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
test eax, eax
je 0x1004f5b8
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
movzx ecx, ax
mov eax, dword [ebp - 0x20]
dec eax
movzx eax, ax
shl eax, 0x10
or ecx, eax
push ecx
push ebx
push 0x412
push dword [esi + 0x1304]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret