joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475b50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x475bf3
test eax, eax
jbe 0x475bf3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x475bf3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x475b9e
xor esi, esi
jmp 0x475ba4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x475bcf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00425510
add esi, eax
push esi
mov ebx, esi
call fcn.00425510
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475bb0
pop ebp
test edi, edi
pop edi
jne 0x475bf3
test ebx, ebx
je 0x475bf3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048eb30
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x475d35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x475e4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475e4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b2c1a
mov esi, eax
test esi, esi
je 0x475e4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x475e4d
mov ecx, esi
call fcn.00475ca0
cmp edi, eax
jge 0x475e4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475dd3
mov dword [esp + 0x34], 1
jmp 0x475e2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x475e4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00474500
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x484d80
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x484dc8
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 8]
push ecx
push 0x484d20
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x484dec
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push 1
mov esi, eax
call edi
push eax
push esi
add eax, 0xffffffec
add esi, 0xffffffd8
push eax
lea edx, [esp + 0x14]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov ecx, eax
pop edi
pop esi
mov dword [ecx], edx
mov edx, dword [esp + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
add esp, 0x10
ret 4

Function at 0x4886e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c1648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00488ae0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x56b804
call fcn.0048ff98
mov ecx, dword [0x4f24cc]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00485e40
mov esi, 0x4f2524
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x488787
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48877e
cmp al, 0xff
je 0x48877e
dec al
mov byte [ecx], al
jmp 0x488787
push ecx
call fcn.004b0f57
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004acb40
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4887cd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4887c4
cmp al, 0xff
je 0x4887c4
dec al
mov byte [ecx], al
jmp 0x4887cd
push ecx
call fcn.004b0f57
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0049001f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4a71b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c2740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0049c0e4
mov eax, dword [0x4f55b8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0049c016
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a7ca0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4a7257
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a724e
cmp al, 0xff
je 0x4a724e
dec al
mov byte [ecx], al
jmp 0x4a7257
push ecx
call fcn.004b0f57
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a7288
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a727f
cmp al, 0xff
je 0x4a727f
dec al
mov byte [ecx], al
jmp 0x4a7288
push ecx
call fcn.004b0f57
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4b35be
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b35f6
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.004b1648
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b1620
jmp 0x4b3602
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b4cb0
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 0x4b4cf2
call fcn.004bab26
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b4cf2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4ce9
xor eax, eax
jmp 0x4b4cfa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b4d00
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bb056
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 0x4bb084
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bb0a2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bafbc
jmp 0x4bb0a2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bb0a2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bafbc
test edi, edi
mov eax, edi
jne 0x4bb08c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 1
push 0
push 1
push 0x1f01ff
push 0x40925c
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x401049
push 0
push 0x80
push 4
push 0
push 1
push 0x1f01ff
push 0x40925c
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401081
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401050
push 2
push 0
push 0
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret

Function at 0x401090
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4092ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x401142
push str.DLLFILE
push 0x66
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x401142
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401142
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push esi
push 1
push esi
push 1
push 0x40000000
push 0x4092ec
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401137
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401137
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4092ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401150
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebx, 0x409274
call section..text
push 0x409288
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x40119e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40119e
mov ebx, 0x40929c
call section..text
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10
push esi
push 4
push 0
push 0
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4011d3
mov ebx, str._EXE_:MapViewOfFile
call section..text
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call fcn.00401090
mov esi, eax
test esi, esi
je 0x4012b6
push 0x4092fc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401227
mov ebx, 0x409304
call section..text
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10
push edi
call eax
mov ebx, str._EXE_:
call section..text
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x401279
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x401268
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x401251
push 0x40933c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x401201
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, str._EXE_:EXE
call section..text
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10
mov ebx, str._EXE_:DLL
call section..text
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10

Function at 0x4012ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x4012d8
repz ret
jmp fcn.0040152c
Function at 0x403501
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040242a
xor ebx, ebx
cmp dword [0x40b5dc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4035d6
push 0x408854
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x403541
xor eax, eax
jmp 0x40369a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408848
push edi
call esi
cmp eax, ebx
je 0x40353a
push eax
call fcn.004023c7
mov dword [esp], 0x408838
push edi
mov dword [0x40b5dc], eax
call esi
push eax
call fcn.004023c7
mov dword [esp], 0x408824
push edi
mov dword [0x40b5e0], eax
call esi
push eax
call fcn.004023c7
mov dword [0x40b5e4], eax
lea eax, [ebp - 8]
push eax
call fcn.004016d9
test eax, eax
pop ecx
pop ecx
je 0x4035a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402df3
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4035d6
push 0x408808
push edi
call esi
push eax
call fcn.004023c7
cmp eax, ebx
pop ecx
mov dword [0x40b5ec], eax
je 0x4035d6
push 0x4087f0
push edi
call esi
push eax
call fcn.004023c7
pop ecx
mov dword [0x40b5e8], eax
mov eax, dword [0x40b5e8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40364f
cmp dword [0x40b5ec], esi
je 0x40364f
push eax
call fcn.00402433
pop ecx
call eax
cmp eax, ebx
je 0x40361c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40b5ec]
call fcn.00402433
pop ecx
call eax
test eax, eax
je 0x40361c
test byte [ebp - 0x18], 1
jne 0x40364f
lea eax, [ebp - 0xc]
push eax
call fcn.00401710
test eax, eax
pop ecx
je 0x403637
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402df3
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x403646
or dword [ebp + 0x10], 0x200000
jmp 0x403680
or dword [ebp + 0x10], 0x40000
jmp 0x403680
mov eax, dword [0x40b5e0]
cmp eax, esi
je 0x403680
push eax
call fcn.00402433
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403680
mov eax, dword [0x40b5e4]
cmp eax, esi
je 0x403680
push dword [ebp - 4]
push eax
call fcn.00402433
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40b5dc]
call fcn.00402433
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x40b100
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x34]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
push str.BigDog301
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401fa0
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401067
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov esi, dword [esp + 0x2c]
push esi
call fcn.004011a0
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.00401200
test eax, eax
jne 0x401089
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
mov esi, eax
call edi
test eax, eax
je 0x4010f1
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x4010db
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
jne 0x4010b8
mov ebx, dword [esp + 0x38]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x1c
ret 0x10

Function at 0x401240
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
test eax, eax
push edi
mov dword [esp + 8], 1
je 0x4012a7
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4012a7
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4012a7
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4012a7
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x402990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [str.OEM2]
mov cl, byte [0x40b220]
push ebx
push esi
push edi
push 0xa
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], cl
call fcn.00403290
mov ebx, eax
mov edi, str.SOFTWAREZSMCUSBCAMERAZC0303TWAIN
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 0xa
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402a69
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402a69
cmp byte [ebx], 0x56
jne 0x402a69
cmp byte [ebx + 1], 0x4d
jne 0x402a69
mov al, byte [ebx + 2]
mov cl, 0x30
cmp al, cl
jne 0x402a69
mov dl, byte [ebx + 3]
mov al, 0x33
cmp dl, al
jne 0x402a69
cmp byte [ebx + 4], cl
jne 0x402a69
cmp byte [ebx + 5], al
jne 0x402a69
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret
Function at 0x425500
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a06fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049475e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x425582
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00491e90
mov eax, dword [eax]
push 0x5b6220
push eax
call fcn.00483f24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004949e9
test bl, bl
je 0x425582
push 0x5b6220
lea ecx, [esp + 0xc]
call fcn.00494d79
push 0x5b9d9c
lea ecx, [esp + 0xc]
call fcn.00494d79
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4255be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004949e9
jmp 0x425689
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x425642
lea edx, [esp + 0x7c]
push 0x5b9d98
push edx
call fcn.00483f24
add esp, 8
test eax, eax
je 0x425642
lea eax, [esp + 0x7c]
push 0x5b9d94
push eax
call fcn.00483f24
add esp, 8
test eax, eax
je 0x425642
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4255d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004949e9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x425ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x425f02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc