joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a36a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x11c], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a3711
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a37f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4c8764
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0x20
ja 0x4a3955
lea edx, [ebp - 0x210]
push edx
push str..htm
push SysReAllocString
mov ecx, dword [ebp - 0x22c]
call fcn.004a36a0
test eax, eax
jne 0x4a3955
push str._shellopencommand
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x210]
push edx
push SysReAllocString
mov ecx, dword [ebp - 0x22c]
call fcn.004a36a0
test eax, eax
jne 0x4a3955
push str.__1_
lea eax, [ebp - 0x210]
push eax
call fcn.0040b8f0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4a38fe
push 0x4c8790
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040b8f0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4a38f3
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [ebp + eax - 0x211]
mov dword [ebp - 0x228], eax
jmp 0x4a38fc
mov ecx, dword [ebp - 0x228]
mov byte [ecx], 0
jmp 0x4a3907
mov edx, dword [ebp - 0x228]
mov byte [edx], 0
push 0x4c8794
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
call fcn.00401e60
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040b8e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb0e1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4dd704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x84], 0
jne 0x4a3de0
lea ecx, [ebp - 0x10]
call fcn.004058d0
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401310
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a850
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00407440
lea ecx, [ebp - 0x10]
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a3dc7
push 0x6a
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a3dc7
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4a6740
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x4c], 0x41
mov byte [ebp - 0x4b], 0x59
mov byte [ebp - 0x4a], 0x34
mov byte [ebp - 0x49], 0x43
mov byte [ebp - 0x48], 0x57
mov byte [ebp - 0x47], 0x36
mov byte [ebp - 0x46], 0x45
mov byte [ebp - 0x45], 0x55
mov byte [ebp - 0x44], 0x33
mov byte [ebp - 0x43], 0x47
mov byte [ebp - 0x42], 0x53
mov byte [ebp - 0x41], 0x37
mov byte [ebp - 0x40], 0x49
mov byte [ebp - 0x3f], 0x51
mov byte [ebp - 0x3e], 0x32
mov byte [ebp - 0x3d], 0x4b
mov byte [ebp - 0x3c], 0x4f
mov byte [ebp - 0x3b], 0x4d
mov byte [ebp - 0x3a], 0x38
mov byte [ebp - 0x39], 0x4e
mov byte [ebp - 0x38], 0x4c
mov byte [ebp - 0x37], 0x50
mov byte [ebp - 0x36], 0x31
mov byte [ebp - 0x35], 0x4a
mov byte [ebp - 0x34], 0x52
mov byte [ebp - 0x33], 0x48
mov byte [ebp - 0x32], 0x39
mov byte [ebp - 0x31], 0x54
mov byte [ebp - 0x30], 0x46
mov byte [ebp - 0x2f], 0x56
mov byte [ebp - 0x2e], 0x44
mov byte [ebp - 0x2d], 0x35
mov byte [ebp - 0x2c], 0x58
mov byte [ebp - 0x2b], 0x42
mov byte [ebp - 0x2a], 0x30
mov byte [ebp - 0x29], 0x5a
fld dword [0x4cf53c]
fstp dword [ebp - 0x28]
fld dword [0x4cf538]
fstp dword [ebp - 0x24]
mov dword [ebp - 4], 0
jmp 0x4a6807
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x4a6848
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fmul dword [ebp - 0x24]
fdiv dword [ebp - 0x28]
fnstcw word [ebp - 0x56]
movzx eax, word [ebp - 0x56]
or eax, 0xc00
mov dword [ebp - 0x5c], eax
fldcw word [ebp - 0x5c]
fistp dword [ebp - 0x60]
fldcw word [ebp - 0x56]
mov cl, byte [ebp - 0x60]
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x20], cl
jmp 0x4a67fe
mov dword [ebp - 4], 0
jmp 0x4a685a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x4a6880
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + edx - 0x20]
mov cl, byte [ebp + eax - 0x4c]
push ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b200
jmp 0x4a6851
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a8010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb8b7
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4dd704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call fcn.004058d0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4a8064
mov eax, dword [ebp + 0xc]
push eax
push 0x4c8a5c
lea ecx, [ebp - 0x10]
push ecx
call fcn.00405550
add esp, 0xc
jmp 0x4a807c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4c8a60
lea edx, [ebp - 0x10]
push edx
call fcn.00405550
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00404330
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x280
push ecx
call fcn.004754f0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2ac
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2ac]
mov edx, dword [eax + 0x4c]
call edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x78
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
push 1
push 0x8001
mov ecx, dword [ebp - 0x14]
call fcn.004055b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4abf30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4e3f3c], 0
je 0x4abf56
mov eax, dword [0x4e3f38]
jmp 0x4ac098
mov dword [0x4e3f3c], 1
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x4ac093
mov dword [ebp - 0x128], 0x104
mov dword [ebp - 0x120], 1
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x4ac086
mov edx, dword [str.Windows_Classic.theme]
mov dword [ebp - 0x140], edx
mov eax, dword [0x4c8d64]
mov dword [ebp - 0x13c], eax
mov ecx, dword [0x4c8d68]
mov dword [ebp - 0x138], ecx
mov edx, dword [0x4c8d6c]
mov dword [ebp - 0x134], edx
mov eax, dword [0x4c8d70]
mov dword [ebp - 0x130], eax
mov cx, word [0x4c8d74]
mov word [ebp - 0x12c], cx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp dword [ebp - 0x144], eax
jl 0x4ac086
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 0x144]
sub ecx, eax
lea edx, [ebp + ecx - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x4ac086
mov dword [0x4e3f38], 1
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e3f38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret
Function at 0x4ac640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000000
jae 0x4ac6f6
mov dword [ebp - 8], 1
push 0x94
call fcn.00487508
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ac6f1
push 0x94
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004858f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0x94
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x4ac6b1
mov dword [ebp - 8], 5
jmp 0x4ac6e5
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 5
jne 0x4ac6cc
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
jne 0x4ac6cc
mov dword [ebp - 8], 6
jmp 0x4ac6e5
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 5
jne 0x4ac6e5
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 1
jne 0x4ac6e5
mov dword [ebp - 8], 7
mov edx, dword [ebp - 0xc]
push edx
call fcn.004872ce
add esp, 4
jmp 0x4ac79e
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
cmp edx, 4
jge 0x4ac71b
mov dword [ebp - 8], 0
jmp 0x4ac79e
mov dword [ebp - 8], 2
push 0x94
call fcn.00487508
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ac79e
push 0x94
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004858f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0x94
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x4ac779
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0xa
jne 0x4ac779
mov dword [ebp - 8], 3
jmp 0x4ac792
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 4
jne 0x4ac792
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0x5a
jne 0x4ac792
mov dword [ebp - 8], 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004872ce
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4ac7d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.00405870
mov dword [ebp - 8], eax
push 2
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ac813
mov dword [ebp - 8], 0
push 2
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ac81d
xor eax, eax
jmp 0x4ac885
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ac838
xor eax, eax
jmp 0x4ac885
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ac84f
xor eax, eax
jmp 0x4ac885
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ac0b0
add esp, 4
mov word [ebp - 4], ax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
movzx eax, word [ebp - 4]
cmp eax, 0x10
je 0x4ac876
xor eax, eax
jmp 0x4ac885
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0046f584
mov esp, ebp
pop ebp
ret
Function at 0x4b2710
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc38
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x190], ecx
lea ecx, [ebp - 0x184]
call fcn.00402a90
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.00405510
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.00406b50
or eax, 4
or eax, 0x20
push eax
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.00406b80
push 0xffffffffffffffff
lea ecx, [ebp - 0x184]
call fcn.00405a20
sub eax, 0xa
push eax
push 0
push 0x4c7042
push 0
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.004655ad
lea ecx, [ebp - 0x12c]
call fcn.004058d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004b77b0
mov byte [ebp - 4], 1
call fcn.004b66d0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x188], 0
jmp 0x4b27fc
mov ecx, dword [ebp - 0x188]
add ecx, 1
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x188]
cmp edx, dword [ebp - 0x14]
jge 0x4b289f
push 0x104
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.004b64c0
add esp, 0xc
mov edx, dword [ebp - 0x188]
add edx, 1
push edx
lea eax, [ebp - 0x124]
push eax
push str._s__d
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00405550
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.00404330
push eax
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.00406af0
push eax
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.00406b20
mov dword [ebp - 0x18c], eax
push 1
mov edx, dword [ebp - 0x18c]
push edx
mov ecx, dword [ebp - 0x190]
add ecx, 0x84
call fcn.0046ef7d
jmp 0x4b27ed
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 2
jl 0x4b28f3
push 0x4c9038
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call fcn.004a1203
add esp, 8
test eax, eax
jne 0x4b28f3
mov ecx, dword [ebp - 0x190]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x190]
mov eax, dword [edx + 0x150]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004b76b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.0040a880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret
Function at 0x4b2cc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb317
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4dd704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004a2290
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0x4c9148
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00401620
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0040a880
lea ecx, [ebp - 0x10]
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b2d4e
push 0
lea ecx, [ebp - 0x10]
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401860
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a880
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4b3cd0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xc], 0
lea ecx, [ebp + 8]
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
je 0x4b3d0b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 8]
call fcn.0040a880
mov eax, dword [ebp - 0x28]
jmp 0x4b3d72
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4b3d3f
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp + 8]
call fcn.0040a880
mov eax, dword [ebp - 0x2c]
jmp 0x4b3d72
fild qword [ebp - 0x18]
fdiv qword [0x4cf550]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
fld dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x4b3d61
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x30], edx
lea ecx, [ebp + 8]
call fcn.0040a880
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret 8

Function at 0x4b3f00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
push str.help.chm
push 0x4e3ee0
lea eax, [ebp - 4]
push eax
call fcn.00401620
add esp, 0xc
mov dword [ebp - 0xc], eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00404330
push eax
push 0x4c98bc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 4]
call fcn.0040a880
cmp dword [ebp + 0xc], 1
jne 0x4b3f4e
jmp 0x4b3f5e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.0046d1b4
mov esp, ebp
pop ebp
ret 8
Function at 0x4b3ff0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4dd704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
push eax
push 0x66
mov ecx, dword [ebp - 0x24]
call fcn.00464a97
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx], vtable.CCamCapDlg.0
mov ecx, dword [ebp - 0x24]
add ecx, 0x74
call fcn.004a1c80
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x78
call fcn.00405880
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
add ecx, 0xcc
call fcn.00402000
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
add ecx, 0xec
call fcn.0046564c
mov byte [ebp - 4], 4
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0xf4
call fcn.004b2300
mov byte [ebp - 4], 5
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x2564
call fcn.004b2b60
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
add ecx, 0x25e0
call fcn.004058d0
mov byte [ebp - 4], 7
push 0x80
call fcn.00405840
mov ecx, eax
call fcn.00405850
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x25e4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004a2290
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, 0x4e3ee0
call fcn.00405790
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.0040a880
push str.config.ini
push 0x4e3ee0
lea eax, [ebp - 0x20]
push eax
call fcn.00401620
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x34]
push edx
mov ecx, 0x4e3ee4
call fcn.00405790
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.0040a880
mov eax, dword [ebp - 0x24]
mov dword [0x4e3b68], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x25d8], 0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 3
jl 0x4b41a2
push 0x4c94a0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call fcn.004a1203
add esp, 8
test eax, eax
jne 0x4b41a2
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
push 0x4b39a0
call fcn.00466a9e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc14a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4dd704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push str.video.db
push 0x4e3ee0
lea eax, [ebp - 0x10]
push eax
call fcn.00401620
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x10]
call fcn.00404330
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004a1ce0
movzx edx, byte [ebp - 0x11]
cmp edx, 1
jne 0x4b58dc
push str.CREATE_TABLE_video___tid_INTEGER_PRIMARY_KEY__tfilename_TEXT__ttm_tTIMESTAMP_DEFAULT_CURRENT_TIMESTAMP___create_index_indexfn_on_video_filename__
mov ecx, dword [ebp - 0x18]
add ecx, 0x74
call fcn.004a1de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret