joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x407a3b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407a3b
test esi, esi
je 0x4079f5
cmp esi, 0xffffffff
je 0x4079f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x407a81
mov eax, dword [esp + 0x160]
test eax, eax
je 0x407a24
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x407a3b
jmp 0x407a33
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x407a3b
mov dword [esp + 0x10], 1
test esi, esi
je 0x407a81
cmp esi, 0xffffffff
je 0x407a81
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x407ab8
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x407a8e
call edi
test eax, eax
je 0x407a81
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x407ab8
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x407a69
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x407a81
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x407ab8
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x407a9b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00406eb0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x407b20
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x407b50
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret
Function at 0x407b80
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x407c12
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x407c04
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x407bfc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x407bc5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x407f70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x407fb1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x407fb1.2
jmp dword [eax*4 + 0x40803c]
mov word [esp + 0x48], di
jmp 0x407fea
mov word [esp + 0x48], 2
jmp 0x407fea
mov word [esp + 0x48], 3
jmp 0x407fea
mov word [esp + 0x48], 4
jmp 0x407fea
mov word [esp + 0x48], 7
jmp 0x407fea
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x408034
cmp dword [esp + 0x70], edi
je 0x408020
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x42e620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42e620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42e624], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42e628], eax
call edi
push eax
call esi
mov dword [0x42e630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42e62c], eax
mov eax, dword [0x42e62c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x42e630], ecx
je 0x4069c7
push eax
call esi
push dword [0x42e630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x42e624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x42e628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42e620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4284b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x42fecc]
mov edx, dword [0x42fd18]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x428570
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
cmp ebx, 0x182
jne 0x4285a5
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x4285c3
cmp ebx, 0x19f
jne 0x4285c3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x428613
push esi
jmp 0x4285d0
lea esi, [ebp - 0x824]
mov dword [ebp - 0x824], 0
call fcn.00428560
mov dl, byte [ebp - 0x824]
mov eax, dword [ebp - 0x828]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x42860d
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x4285d0
pop esi
pop edi
cmp ebx, 0x2d
jne 0x42862d
mov dword [0x430000], 0xa62e7790
mov dword [0x430004], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x428640
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x42fecc]
push ebx
push esi
mov esi, dword [0x42fd18]
mov ebx, eax
cmp eax, 0x5dd
jne 0x428662
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x42d1d0]
call fcn.00428530
cmp dword [0x42fecc], 0x2f
jne 0x42867d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.00428570
add esp, 4
cmp dword [0x42fecc], 0x568
pop esi
pop ebx
jne 0x4286a8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push 9
push 0x416aa0
push 1
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0x416aa0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40103b
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401117
push esi
call fcn.00401130
add esp, 4
test eax, eax
je 0x401117
push 0x412020
push 0
push 0x41202c
push 0x412034
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x415e88], eax
mov eax, dword [esp + 0x38]
mov al, byte [eax]
test al, al
je 0x401092
cmp al, 0x30
mov eax, dword [0x415e88]
jne 0x40108b
and al, 0xfe
jmp 0x40108d
or al, 1
mov dword [0x415e88], eax
mov ecx, dword [esp + 0x3c]
push ecx
push esi
call fcn.00401200
add esp, 8
test eax, eax
je 0x401117
push 0x416aa0
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
mov esi, eax
call edi
test eax, eax
je 0x401109
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
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 0x4010f8
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 0x4010d5
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x401200
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
lea ecx, [esp]
mov dword [0x415e80], eax
push ebx
push ebp
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x41203c
push 0xffffffffffffffff
sub esi, edi
sub ebx, ecx
push 0x412048
push 0x41204c
sar esi, 1
sar ebx, 1
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x40126c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov ebp, ecx
sub edi, esi
sub ebp, ebx
jmp 0x401289
push 0x412054
push 0
push 0x412060
push 0x412064
call ebp
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x18]
cmp edi, dword [esp + 0x10]
jl 0x401293
cmp edi, eax
jle 0x401297
sub eax, esi
mov edi, eax
cmp ebp, dword [esp + 0x14]
jl 0x4012a1
cmp ebp, ecx
jle 0x4012a5
sub ecx, ebx
mov ebp, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x41206c
push 0
push 0x412078
push 0x41207c
call ebx
mov esi, eax
test esi, esi
jne 0x4012cb
mov edi, 0x80000000
mov esi, edi
push 0x412084
push 0
push 0x412090
push 0x412094
call ebx
test eax, eax
jne 0x4012e9
mov ebp, 0x80000000
mov eax, ebp
mov edx, dword [esp + 0x24]
push 0
push edx
push 0
push 0
push eax
push esi
push ebp
push edi
push 0xcf0000
push 0x416ac0
push 0x416aa0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x416aac], eax
jne 0x401320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov cl, byte [0x415e88]
test cl, 2
je 0x40132f
push 0
jmp 0x40133d
test cl, 0x10
je 0x401338
push 6
jmp 0x40133d
mov ecx, dword [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x416aac]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x403280
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c4
mov eax, dword [str.dwShowStatus]
push esi
push edi
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetcontrolPrintPorts
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4128c0]
mov dword [esp + 0xc], eax
mov al, byte [0x4128c8]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x415f98]
mov byte [esp + 0x18], al
mov edx, dword [0x4128c4]
mov eax, ecx
shl eax, 3
sub eax, ecx
mov dword [esp + 0x14], edx
movsb byte es:[edi], byte [esi]
lea ecx, [eax + eax*2]
mov eax, dword [0x415ec0]
lea edx, [esp + 0x4c]
mov edi, dword [eax + ecx*4 + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0xcc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0x4128cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0xcc]
push ecx
push 0x20019
push 0
push edx
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40335a
mov edx, dword [esp + 8]
lea eax, [esp + 0x1d0]
push 4
push eax
push 4
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x1c4
ret
Function at 0x403b20
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x10
push 0x412ae4
push 0
push str.MaskWinNtLPT
push str.BrStsWnd
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x403bc5
cmp dword [0x415e94], 4
jl 0x403bc5
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareBrotherBrownieBrcdcmon
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403bc0
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0
push str.Support
push ecx
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403baf
xor eax, eax
xor edx, edx
test eax, eax
sete dl
mov eax, edx
add esp, 0x10
ret
mov eax, dword [esp + 0xc]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
add esp, 0x10
ret
mov eax, 1
add esp, 0x10
ret
Function at 0x405f90
Capabilities:
Create directory
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x20019
push 1
push 0
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 0x416740
push eax
push 0
push str.DefaultSpoolDirectory
push ecx
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406041
push 0x100
push 0x416740
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x416740
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x412dc8]
repne scasb al, byte es:[edi]
mov eax, dword [str._spoolprinters]
mov ecx, dword [0x412dc4]
dec edi
mov dword [edi], eax
mov eax, dword [0x412dcc]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push 0x416740
push str._s.
push 0x416980
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x416980
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x406081
push 0
push 0x416740
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x412dd8
push 0x100
push 0x416980
push 0x415ef4
push 0x412de4
push 0x412dec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [0x416980]
test al, al
je 0x40615e
mov edi, 0x416980
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x416980
cmp byte [ecx + 0x41697f], 0x5c
jne 0x4060f2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dx, word [0x412df4]
mov al, byte [0x412df6]
dec edi
mov word [edi], dx
mov byte [edi + 2], al
jmp 0x406102
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [0x412df8]
mov dword [edi - 1], ecx
lea edx, [esp + 0x20]
push edx
push 0x416980
call ebx
mov esi, eax
mov edi, 0x416980
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, 0x416980
dec ecx
sub eax, 2
push esi
mov byte [ecx + eax], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
jne 0x4061ad
push 0
push 0x416980
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4061ad
push 0x412dfc
push eax
push 0x412e08
push 0x412e10
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x416740
push str._skeepspl.
push 0x416980
call ebp
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x416980
call ebx
push 0x416740
push str._skeepspl_
push 0x416980
mov esi, eax
call ebp
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4061a6
push 0
push 0x416980
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x4072d0
Capabilities:
Capture webcam image
Read .ini file

Disassembly:
sub esp, 0x40
mov eax, dword [0x4165fc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
push 0x517
push 0x419
push eax
call esi
mov edx, dword [0x4165fc]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x41d
push edx
call esi
mov eax, dword [0x415e80]
mov ecx, dword [0x4165fc]
push 0
push eax
mov eax, dword [0x416a8c]
push 0x270f
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x34]
push edx
push 0xc8
add ecx, 6
push eax
push ecx
push 0x50b40242
push 0
push str.COMBOBOX
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [0x4165fc]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0x1f
push 0x141
push 0x270f
push edx
mov dword [0x416618], eax
call edi
mov eax, dword [0x4165fc]
push 0
push 0
push 0x14b
push 0x270f
push eax
call edi
mov edx, dword [0x415e80]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x30]
push 0x20
push ecx
push 0x578
push edx
xor esi, esi
call ebx
mov al, byte [esp + 0x30]
test al, al
je 0x4073f3
mov ecx, dword [0x4165fc]
lea eax, [esp + 0x30]
push eax
push esi
push 0x143
push 0x270f
push ecx
call edi
mov edx, dword [0x4165fc]
push esi
push esi
push 0x151
push 0x270f
push edx
call edi
mov edx, dword [0x415e80]
inc esi
lea eax, [esp + 0x30]
push 0x20
lea ecx, [esi + 0x578]
push eax
push ecx
push edx
call ebx
mov al, byte [esp + 0x30]
test al, al
jne 0x4073a5
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, 0xa
push ebx
lea eax, [esp + 0x14]
push 0x412f10
push eax
mov dword [0x415ed0], esi
call ebp
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push 0x412f14
push 0x20
push ecx
push 0x415f08
push edx
push str.Attributes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x30]
test al, al
je 0x4074a6
mov ecx, dword [0x4165fc]
lea eax, [esp + 0x30]
push eax
push esi
push 0x143
push 0x270f
push ecx
call edi
mov edx, dword [0x4165fc]
push ebx
push esi
push 0x151
push 0x270f
push edx
call edi
inc esi
inc ebx
push ebx
lea eax, [esp + 0x14]
push 0x412f10
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push 0x412f14
push 0x20
push ecx
push 0x415f08
push edx
push str.Attributes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x30]
test al, al
jne 0x40743d
push 0x412f2c
push 0
push 0x412f38
push 0x412f40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
cmp ebx, 0xa
jl 0x4074ea
mov eax, dword [0x415ed0]
sub ebx, 0xa
sub esi, eax
cmp ebx, esi
jl 0x4074e6
xor ebx, ebx
push 0x412f48
push ebx
push 0x412f54
push 0x412f5c
jmp 0x407508
add ebx, eax
jmp 0x40750e
cmp ebx, dword [0x415ed0]
jge 0x4074f6
test ebx, ebx
jge 0x40750e
xor ebx, ebx
push 0x412f64
push ebx
push str.Attrib
push 0x412f78
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [0x4165fc]
push 0
push ebx
push 0x14e
push 0x270f
push eax
call edi
mov ecx, dword [0x4165fc]
push 0
push ebx
push 0x15c
push 0x270f
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x407650
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x168
push ebx
mov ebx, dword [esp + 0x170]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x180]
cmp eax, 5
ja case.0x407679.2
jmp dword [eax*4 + 0x4077f4]
push esi
push str.Update95
lea eax, [esp + 0x20]
push 0x412f9c
push eax
jmp 0x4076b4
push esi
push str.UpdateNT
lea ecx, [esp + 0x20]
push str._s_d
push ecx
jmp 0x4076b4
push esi
push str.Update
lea edx, [esp + 0x20]
push 0x412f88
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x78]
lea ecx, [esp + 0x18]
push ebx
push 0x100
push eax
push 0x415f0c
push ecx
push 0x412fb8
call ebp
mov al, byte [esp + 0x78]
test al, al
je 0x4077e8
lea edx, [esp + 0x78]
cmp al, 0x2c
je 0x4076f7
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x4076e9
jmp 0x4076fb
mov byte [edx], 0
inc edx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4077de
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x58]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x3c]
push 0x100
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
push ecx
push 0x415f10
push 0
push edx
call ebp
mov cl, byte [esp + 0x78]
lea esi, [esp + 0x78]
test cl, cl
je 0x4077da
lea eax, [esp + eax + 0x78]
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x10]
jae 0x4077da
push ebx
lea ecx, [esp + 0x1c]
push 0x20
push ecx
push 0x415f14
lea edx, [esp + 0x48]
push esi
push edx
call ebp
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x40]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x407791
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
jmp 0x40766d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret