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

Disassembly:
sub esp, 0x254
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push 0x41e540
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push ecx
call fcn.00401b00
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
lea edx, [esp + 0x5c]
push str.TrapDll.exe__TRAPDLL:
push edx
call esi
mov eax, dword [esp + 0x264]
lea ecx, [esp + 0x5c]
push eax
push ecx
call esi
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x78]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x4017a2
mov edx, dword [esp + 0x258]
push 0x41b164
push edx
call fcn.004043a0
add esp, 8
xor eax, eax
add esp, 0x254
ret
mov eax, 1
add esp, 0x254
ret

Function at 0x401f30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
jne 0x401f46
pop edi
pop esi
ret
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x401f55
pop edi
pop esi
ret
inc esi
push esi
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x401f73
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x401fa7
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret

Function at 0x401fc0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401fe3
pop esi
add esp, 0x1c
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402033
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4020a3
xor eax, eax
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret
Function at 0x4020b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4020c5
xor eax, eax
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x402100
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00418240
mov ecx, dword [esp + 0x100c]
push ebx
push esi
lea eax, [esp + 0x1018]
push edi
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x101c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x18]
push eax
push edx
push edi
call ebx
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x419330
push edi
and esi, 1
call ebx
and eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x404340
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41e75c], eax
call fcn.00404410
mov esi, dword [sym.imp.KERNEL32.dll_ExitProcess]
test eax, eax
jne 0x404362
push 0xffffffffffffffff
call esi
lea eax, [esp + 4]
push eax
call fcn.00404530
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x40438f
mov ecx, dword [0x41e75c]
push 0
push 0x4047d0
push 0
push 0x65
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.004082f0
push 0
call esi
pop esi
pop ecx
ret

Function at 0x404410
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
sub esp, 0x134
lea eax, [esp]
mov dword [esp], 8
push eax
mov dword [esp + 8], 0x103
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00401e10
lea ecx, [esp + 8]
mov dword [0x41e3e0], eax
push ecx
push str.EDIT
push 0
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x404463
add esp, 0x134
ret
mov edx, dword [esp + 0xc]
push esi
mov dword [0x41ea84], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push 0x41e540
push 0
mov dword [0x41e758], eax
call esi
push 0x41e540
call fcn.00401ad0
add esp, 4
push 0x104
push 0x41e400
push 0
call esi
call fcn.004081b0
lea eax, [esp + 0x34]
push 0x41e540
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x34]
push ecx
call fcn.00401b00
add esp, 4
lea edx, [esp + 0x34]
push str.TrapDll.exe
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x34]
push eax
call fcn.00401d50
add esp, 4
test eax, eax
pop esi
jne 0x4044fa
push 0x41bcc8
push eax
call fcn.004043a0
add esp, 8
mov eax, dword [0x41e28c]
test eax, eax
je 0x40450e
push 0x41e290
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x41e3e0]
test eax, eax
je 0x40451c
call fcn.00401fc0
mov eax, 1
add esp, 0x134
ret
Function at 0x406540
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
test eax, eax
push 0x104
je 0x406571
mov edx, dword [esp + 0x10c]
lea ecx, [esp + 4]
push ecx
push eax
push edx
call sub.procs.dll_GetModulePath
test eax, eax
jne 0x40658e
add esp, 0x104
ret
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 4]
push eax
push ecx
call sub.procs.dll_GetProcessPath
test eax, eax
jne 0x40658e
add esp, 0x104
ret
lea edx, [esp]
push edx
call fcn.00401ad0
add esp, 4
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
add esp, 0x104
ret

Function at 0x4065c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x110]
push edi
push esi
call fcn.004064e0
add esp, 4
test eax, eax
jne 0x4065fc
mov eax, dword [esp + 0x110]
push 0x41c098
push eax
call fcn.004043a0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [0x41e270]
mov edi, dword [esp + 0x110]
test eax, eax
je 0x406645
push esi
lea ecx, [esp + 0xc]
push 0x41c05c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x41b1c8]
add esp, 0xc
lea eax, [esp + 8]
push 0x24
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x406645
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40666f
push 0x41c038
push edi
call fcn.004043a0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x104
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40669c
push 0x41c01c
push edi
call fcn.004043a0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x406830
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406859
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x406c10
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [esp + 0x140]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406c4e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push esi
call edi
test eax, eax
je 0x406cfe
cmp word [esp + 0x14], 0x5a4d
je 0x406c8c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret
mov eax, dword [esp + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push esi
call edi
test eax, eax
je 0x406cfe
cmp dword [esp + 0x54], 0x4550
jne 0x406cfe
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x158]
cmp eax, ecx
ja 0x406cfe
push 0
push 0
push 0
push esi
call ebx
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push esi
call edi
test eax, eax
je 0x406cfe
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x407090
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [esp + 0x228]
xor ebx, ebx
push 0x104
test edi, edi
je 0x407108
mov esi, dword [esp + 0x228]
lea eax, [esp + 0x120]
push eax
push edi
push esi
call sub.procs.dll_GetModulePath
test eax, eax
jne 0x4070cf
pop edi
pop esi
pop ebx
add esp, 0x214
ret
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
call sub.procs.dll_GetModuleSize
test eax, eax
jne 0x4070e9
pop edi
pop esi
pop ebx
add esp, 0x214
ret
mov dword [esp + 0x10], edi
push esi
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x407149
pop edi
pop esi
pop ebx
add esp, 0x214
ret
mov esi, dword [esp + 0x228]
lea edx, [esp + 0x120]
push edx
push esi
call sub.procs.dll_GetProcessPath
test eax, eax
jne 0x40712b
pop edi
pop esi
pop ebx
add esp, 0x214
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call sub.procs.dll_GetProcessBaseSize
test eax, eax
jne 0x4070ed
pop edi
pop esi
pop ebx
add esp, 0x214
ret
mov edx, dword [esp + 0xc]
push edx
call fcn.00401a60
mov esi, eax
add esp, 4
test esi, esi
jne 0x40716f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
push edi
jne 0x4071a6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00401a90
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x214
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
push ecx
call fcn.00401b00
mov edx, dword [str.temp.dmp]
add esp, 4
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00416370
mov eax, dword [0x41d994]
add esp, 4
test eax, eax
je 0x4071f6
push esi
call fcn.004162d0
add esp, 4
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00406830
add esp, 0xc
test eax, eax
push esi
jne 0x407222
call fcn.00401a90
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x214
ret
call fcn.00401a90
lea eax, [esp + 0x1c]
push eax
call fcn.00408bb0
mov eax, dword [0x41e278]
add esp, 8
test eax, eax
je 0x407248
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x214
ret
Function at 0x407eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
push esi
mov esi, dword [esp + 0x98]
push edi
push 0x483
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov eax, dword [0x41e530]
push eax
call fcn.004064e0
add esp, 4
test eax, eax
jne 0x407ef8
push 0x41c098
push esi
call fcn.004043a0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x90
ret
mov eax, dword [0x41e530]
lea ecx, [esp + 0x38]
lea edx, [esp + 8]
push ecx
push edx
push eax
call sub.procs.dll_GetProcessBaseSize
test eax, eax
jne 0x407f2a
push 0x41c3dc
push esi
call fcn.004043a0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x90
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
push ebp
push ecx
push 0xffffffffffffffff
push 0x102b
push edi
mov dword [esp + 0x38], 2
mov dword [esp + 0x34], 0xfffffffd
call ebx
push 0
push 0
push 0x1004
push edi
call ebx
mov ebp, eax
xor esi, esi
test ebp, ebp
jbe 0x408018
lea eax, [esp + 0x18]
lea edx, [esp + 0x44]
push eax
push esi
push 0x102d
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0x32
mov dword [esp + 0x3c], edx
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004018f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ecx
je 0x407fb4
inc esi
cmp esi, ebp
jb 0x407f69
jmp 0x408018
cmp esi, ebp
jae 0x408018
lea edx, [esp + 0x18]
lea ecx, [esp + 0x44]
push edx
push esi
push 0x102d
push edi
mov dword [esp + 0x30], 3
mov dword [esp + 0x40], 0x32
mov dword [esp + 0x3c], ecx
call ebx
lea eax, [esp + 0x44]
push str.FREE
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408018
lea ecx, [esp + 0x78]
mov eax, 2
push ecx
push esi
push 0x102b
push edi
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], eax
call ebx
inc esi
cmp esi, ebp
jb 0x407fb8
dec esi
push 0
push esi
push 0x1013
push edi
call ebx
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x90
ret
Function at 0x4081b0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x41e540
push 0x41e140
call ebx
push 0x41e140
call fcn.00401b00
mov eax, dword [str.LordPE.iNi]
add esp, 4
push eax
push 0x41e140
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, 1
xor edi, edi
push 0x41b364
push 0x41e290
mov dword [0x41e260], edi
mov dword [0x41e264], esi
mov dword [0x41e268], esi
mov dword [0x41e26c], edi
mov dword [0x41e270], edi
mov dword [0x41e274], esi
mov dword [0x41e278], edi
mov dword [0x41e27c], 2
mov dword [0x41e280], esi
mov dword [0x41e284], edi
mov dword [0x41e288], edi
mov dword [0x41e28c], esi
call ebx
mov edx, dword [str.Current]
mov eax, dword [str.Options]
xor ecx, ecx
push 0x41e140
mov dword [0x41e398], ecx
push 0x180
mov dword [0x41e39c], ecx
push 0x41e260
mov dword [0x41e3a0], ecx
push edx
push eax
mov dword [0x41e394], esi
mov dword [0x41e3a4], ecx
mov dword [0x41e3a8], esi
mov dword [0x41e3ac], edi
mov dword [0x41e3b0], esi
mov dword [0x41e3b4], edi
mov dword [0x41e3b8], esi
mov dword [0x41e3bc], 2
mov dword [0x41e3c0], esi
mov dword [0x41e3c4], esi
mov dword [0x41e3c8], esi
mov dword [0x41e3cc], edi
mov dword [0x41e3d0], edi
mov dword [0x41e3d4], 0x400000
mov dword [0x41e3d8], edi
mov dword [0x41e3dc], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
pop edi
pop esi
pop ebx
ret

Function at 0x4089c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x120
mov eax, dword [esp + 0x130]
mov ecx, 1
test eax, eax
mov dword [esp], ecx
jbe 0x408a9d
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
mov esi, dword [esp + 0x138]
push edi
mov edi, dword [esp + 0x138]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push ebx
push eax
lea ecx, [esp + 0x28]
push str._sfile_shell_scommand
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408a49
mov dword [esp + 0x10], 0
jmp 0x408a7c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x18]
push eax
push edi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x408a71
mov dword [esp + 0x10], 0
jmp 0x408a7c
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add esi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x408a01
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov eax, ecx
add esp, 0x120
ret
Function at 0x408ab0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
test eax, eax
push ebx
mov ebx, 1
jbe 0x408b9e
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov edi, dword [esp + 0x124]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push eax
push str._sfile_shell
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x408b14
xor ebx, ebx
jmp 0x408b7f
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x18]
push ecx
push str._scommand
push edx
call esi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x408b4e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x408b7f
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x408b74
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x408b7f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x408ae2
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, ebx
pop ebx
add esp, 0x10c
ret

Function at 0x408bb0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x150
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x408c43
push eax
push 0x41dec0
call esi
push 0x41dec0
call fcn.00402090
add esp, 4
test eax, eax
je 0x408c07
push 0x42024
push 0x41c710
push 0x41c6d0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x408c07
push 0x41dec0
call fcn.004020b0
add esp, 4
push 0x41dec0
call fcn.00415890
add esp, 4
test eax, eax
je 0x408c95
push 0x41dec0
call fcn.00415a30
add esp, 4
test eax, eax
je 0x408c95
mov ecx, dword [0x41e760]
push eax
push ecx
call fcn.004159b0
add esp, 8
xor eax, eax
pop esi
add esp, 0x150
ret
lea eax, [esp + 4]
push eax
call fcn.004017b0
mov ecx, dword [0x41e760]
mov edx, dword [str..exe__.dll__.dmp]
add esp, 4
lea eax, [esp + 4]
mov byte [0x41dec0], 0
mov dword [esp + 0x20], 0x41dec0
push eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x3c], 0x1804
mov dword [esp + 0x14], edx
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
jne 0x408bcd
pop esi
add esp, 0x150
ret
lea edx, [esp + 0x50]
push 0x41dec0
push edx
call esi
lea eax, [esp + 0x50]
push eax
call fcn.00401ad0
add esp, 4
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [0x41e760]
mov eax, dword [0x41e75c]
push 0
push 0x408cf0
push edx
push 0x66
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x41dec0
call fcn.00415a00
add esp, 4
mov eax, 1
pop esi
add esp, 0x150
ret
Function at 0x40b2f0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x419
push esi
call edi
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 6
push eax
push 0
push 0x101b
push ebx
mov dword [esp + 0x28], 0x4c
mov dword [esp + 0x2c], 0x41c910
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x41c90c
push ecx
push 1
push 0x101b
push ebx
call ebp
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], 0x41c904
push edx
push 2
push 0x101b
push ebx
call ebp
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0x41c8f4
push eax
push 3
push 0x101b
push ebx
mov dword [esp + 0x28], 0x258
call ebp
push ebx
call fcn.00401b60
add esp, 4
push 0x41b
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x41c
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x41d
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x41f
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x420
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x421
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x422
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x423
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0x41c8ec
push 0x4002
push 0
push eax
mov dword [0x41e130], eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x41dfe8]
test eax, eax
je 0x40b44e
push 0
push 0x45d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40bc50
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0xe4
push esi
mov esi, dword [esp + 0xec]
push edi
push 0
push 0
push 0x1042
push 0x419
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x40bc94
pop edi
xor eax, eax
pop esi
add esp, 0xe4
ret
lea ecx, [esp + 8]
push ecx
push eax
call fcn.0040bfc0
add esp, 8
test eax, eax
jne 0x40bcaf
pop edi
pop esi
add esp, 0xe4
ret
mov eax, dword [0x41dfe8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x40bccc
push 0
push 0x462
push esi
call edi
push eax
call ebx
push 0x45f
push esi
call edi
push eax
call fcn.00401bb0
add esp, 4
push 0x460
push esi
call edi
push eax
call fcn.00401be0
add esp, 4
push 0x464
push esi
call edi
push eax
call fcn.00401bb0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
push 0x460
push esi
call edi
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
push 0x464
push esi
call edi
push eax
call ebx
mov ecx, dword [esp + 0x20]
push ecx
push 0x461
push esi
call edi
push eax
call ebx
mov edx, dword [esp + 0x24]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0xc5
push 0x461
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esp + 0xc]
mov edx, dword [str._08lX]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [eax]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x45f
push esi
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40bdaf
mov eax, dword [esp + 0x14]
mov ecx, dword [str._04lX]
xor edx, edx
mov dx, word [eax]
push edx
lea edx, [esp + 0x2c]
push ecx
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x460
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bddb
mov ecx, dword [esp + 0x1c]
mov eax, dword [str._08lX]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0x464
push esi
call edi
mov eax, dword [esp + 0x20]
pop ebx
test eax, eax
je 0x40bdf1
mov eax, dword [esp + 0x20]
push eax
push 0x461
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0xe4
ret