joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429600
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x449e4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push esi
mov esi, dword [esp + 0x36c]
mov eax, esi
mov dword [esp + 8], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429630
sub eax, edx
mov dword [esp + 4], eax
je 0x429792
mov eax, dword [esp + 0x370]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429650
sub eax, edx
mov dword [esp + 4], eax
je 0x429792
lea eax, [esp + 0x254]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x429792
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x429792
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
lea eax, [esp + 0x10]
push eax
push str..lnk
mov dword [esp + 0x370], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x429758
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ecx]
mov edx, dword [esp + 0x378]
lea ecx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x44bbd0
push eax
call fcn.00401d20
mov esi, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push 0
call fcn.004282d0
test eax, eax
jl 0x42973f
mov edx, dword [esp + 0x37c]
push edx
lea eax, [esp + 0x15c]
push eax
call fcn.0042de57
add esp, 8
test eax, eax
jne 0x42973f
push 0x20
push esi
call ebx
push esi
call ebp
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4296e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esi - 0x10]
mov dword [esp + 0x368], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x429792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x35c]
pop esi
mov dword fs:[0], ecx
add esp, 0x364
ret 8
Function at 0x4297b0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov word [esp + 0x18], bx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401360
push str.Shell32.dll
mov ecx, esi
call fcn.004283c0
cmp eax, 0x50000
jb 0x429863
push str.Shlwapi.dll
mov ecx, esi
call fcn.004283c0
cmp eax, 0x50000
jb 0x429863
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4298c5
lea ecx, [esp + 0x10]
push ecx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4298c5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4298c5
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4298c5
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4298c5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4298d0
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x4298ea
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x429908
lea eax, [esp + 0x18]
push eax
push 0x44d640
jmp 0x429912
lea ecx, [esp + 0x18]
push ecx
push 0x44bb80
push edi
call fcn.00401d20
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429930
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov word [esp + 0x18], bx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
mov ecx, esi
stosw word es:[edi], ax
call fcn.00401360
call fcn.00404100
cmp eax, 2
je 0x4299ca
cmp eax, 3
je 0x4299ca
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x429a2c
lea ecx, [esp + 0x10]
push ecx
push 0x19
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x429a2c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x429a2c
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429a2c
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Common_Desktop
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429a2c
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429a33
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x429a4d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x429a6b
lea eax, [esp + 0x18]
push eax
push 0x44d640
jmp 0x429a75
lea ecx, [esp + 0x18]
push ecx
push 0x44bb80
push esi
call fcn.00401d20
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429a90
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449e76
push eax
mov eax, dword [0x466df0]
mov dword fs:[0], esp
mov eax, dword [eax - 0xc]
sub esp, 0x254
test eax, eax
je 0x429c96
call fcn.00404100
cmp eax, 5
je 0x429ad4
cmp eax, 6
je 0x429ad4
cmp eax, 0xa
mov eax, 2
jne 0x429ad9
mov eax, 0x17
push esi
push eax
call fcn.00404690
mov esi, eax
add esp, 4
test esi, esi
je 0x429c95
push edi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x466df0]
push eax
push esi
lea ecx, [esp + 0x14]
push 0x44bbe8
push ecx
mov dword [esp + 0x274], 0
call fcn.00401d20
mov edi, dword [esp + 0x1c]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x429b54
lea eax, [edi - 0x10]
mov dword [esp + 0x264], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x429c8a
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x154]
push eax
push 0x105
mov byte [esp + 0x26c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x429c46
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x429c46
lea ecx, [esp + 0x14]
push ecx
push 0x44d6b4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x429c38
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
jne 0x429c17
push 0x44bbdc
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x429c17
push 0x44bbd8
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x429c17
lea ecx, [esp + 0x48]
push ecx
push edi
lea edx, [esp + 0x20]
push 0x44bbe8
push edx
call fcn.00401d20
mov esi, dword [esp + 0x28]
add esp, 0x10
push 0x20
push esi
call ebp
push esi
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x429bc4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esi - 0x10]
mov byte [esp + 0x264], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429c6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x264], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429c94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
add esp, 0x260
ret
Function at 0x42a0b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x18], 0x2c
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x1c]
push edx
push 0x104
lea eax, [esp + 0x330]
push eax
push str.Canon_CAPT_Tools
push str.GroupName
push str.CAPT_Groups
call ebp
lea eax, [esp + 0x328]
lea edi, [eax + 1]
jmp 0x42a110
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a110
sub eax, edi
push eax
lea ecx, [esp + 0x32c]
push ecx
lea ecx, [esi + 0x118]
call fcn.00401a70
lea edx, [esp + 0x1c]
push edx
push 0
push str.NumItems
push str.CAPT_Groups
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x42a1f1
jmp 0x42a160
push 0x44bfb0
lea eax, [esp + 0x124]
push eax
call ebx
push esi
lea ecx, [esp + 0x228]
push str.CAPTItem_i
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x104
lea eax, [esp + 0x128]
push eax
push str.NAME_NONE_
lea ecx, [esp + 0x234]
push ecx
push str.CAPT_Groups
call ebp
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x124]
push eax
call fcn.0042e8d8
lea ecx, [esp + 0x18]
push ecx
push 0
call fcn.0042e8d8
add esp, 0x10
test eax, eax
je 0x42a1e4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x160]
add ecx, 0x158
push eax
push edx
call fcn.0043c149
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jle 0x42a160
lea eax, [esp + 0x1c]
push eax
push 0
push str.NumItems
push str.CAPT_Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x42a2ae
lea esp, [esp]
push 0x44bfb0
lea ecx, [esp + 0x124]
push ecx
call ebx
push esi
lea edx, [esp + 0x228]
push str.CAPTItem_i
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x104
lea ecx, [esp + 0x128]
push ecx
push str.NAME_NONE_
lea edx, [esp + 0x234]
push edx
push str.CAPT_Startup
call ebp
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.0042e8d8
lea edx, [esp + 0x18]
push edx
push 0
call fcn.0042e8d8
add esp, 0x10
test eax, eax
je 0x42a2a1
mov ecx, dword [esp + 0x18]
add ecx, 0x144
push eax
mov eax, dword [ecx + 8]
push eax
call fcn.0043c149
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jle 0x42a220
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x41c
ret
Function at 0x42a2c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push edi
mov edx, ecx
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
add edx, 0x14
push edx
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push str.0.00
push str.AboutDLGVersion
push str.VersionInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a310
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401a70
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x42b980
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x508
push ebx
mov ebx, dword [esp + 0x518]
push ebp
push esi
mov ecx, ebx
call fcn.00401360
mov ebp, dword [esp + 0x524]
mov ecx, ebp
call fcn.00401360
mov esi, dword [esp + 0x518]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42bb11
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x31c]
push edx
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0043011f
add esp, 0x14
xor eax, eax
mov cl, byte [esp + eax + 0x214]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x42b9e3
mov eax, dword [esp + 0x51c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ba00
push edi
lea edi, [esp + 0x14]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42ba10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ba30
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00401a70
xor eax, eax
jmp 0x42ba50
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x114], cl
inc eax
test cl, cl
jne 0x42ba50
lea eax, [esp + 0x318]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ba70
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42ba81
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42baa0
lea edi, [esp + 0x114]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42bab3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bad4
sub eax, edx
push eax
lea edx, [esp + 0x114]
push edx
mov ecx, ebp
call fcn.00401a70
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x42bb11
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x42bb11
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x508
ret 0x10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x508
ret 0x10
Function at 0x42be30
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x44d8f4
push 1
push 0
push 0x44d8e4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x42be90
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x42be90
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x42be9e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42beac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x42c250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], ecx
xor eax, eax
push 6
mov ecx, 0x82
lea edi, [esp + 0x234]
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x20], esi
xor ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
or edi, 0xffffffff
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, esi
jge 0x42c2a6
cmp eax, 0x80010106
jne 0x42c3d2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x28], 1
call fcn.0042be30
test eax, eax
jl 0x42c3d2
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x42c3d2
push 0x105
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42c3d2
lea ecx, [esp + 0x28]
push 0x44d938
push ecx
call fcn.0042dd8d
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0042dd8d
lea ecx, [esp + 0x38]
push str.RPK.exe
push ecx
call fcn.0042dd8d
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x42c3d2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push ebx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x42c3d0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x42c3d2
mov ax, word [esp + 0x1c]
cmp ax, 0xffff
jne 0x42c377
mov edi, 2
jmp 0x42c381
cmp ax, si
jne 0x42c381
mov edi, 1
push 0x104
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x42c3bd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
add ecx, 4
push ecx
call fcn.00446b64
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
add ecx, 8
call fcn.0042c0d0
jmp 0x42c3d2
xor edi, edi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
push ebx
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c3f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42c3fe
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42c40c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42c41a
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42c430
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
xor edi, edi
push 6
push edi
mov esi, ecx
xor bl, bl
mov dword [esp + 0x14], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x42c457
cmp eax, 0x80010106
jne 0x42c4ca
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov edi, 1
call fcn.0042be30
test eax, eax
jl 0x42c4ca
push 0x105
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42c4ca
lea edx, [esp + 0x10]
push 0x44d938
push edx
call fcn.0042dd8d
mov eax, dword [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042dd8d
lea edx, [esp + 0x20]
push str.RPK.exe
push edx
call fcn.0042dd8d
mov ecx, dword [esp + 0x24]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0042c170
test eax, eax
jl 0x42c4ca
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c4d8
mov edx, dword [eax]
push eax
call dword [edx + 8]
test edi, edi
je 0x42c4e2
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x20c
ret 4

Function at 0x42da66
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042dd50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42db01
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x469240]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42db01
cmp eax, 1
je 0x42db22
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42db01
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42dace
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42dafd
xor eax, eax
inc eax
jmp 0x42db41
cmp edi, eax
jae 0x42db05
xor eax, eax
jmp 0x42db41
cmp eax, esi
jae 0x42db0c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x469240]
jmp 0x42db25
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret