joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41adc0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4dea7a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esi], vtable.CBaseDlgPrinterSelectDirect.0
mov edi, dword [esi + 0x88]
cmp dword [esi + 0x84], edi
lea ebx, [esi + 0x80]
mov dword [esp + 0x28], 0xf
jbe 0x41ae14
call fcn.004b5f27
mov ebp, dword [ebx + 4]
cmp ebp, dword [ebx + 8]
jbe 0x41ae21
call fcn.004b5f27
push edi
push ebx
push ebp
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00414750
mov eax, dword [esi + 0x51c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x41ae44
push eax
call edi
mov eax, dword [esi + 0x520]
test eax, eax
je 0x41ae51
push eax
call edi
lea ecx, [esi + 0x524]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x41ae6e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esi + 0x738]
test ecx, ecx
je 0x41ae8b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x738], 0
mov ebp, dword [esi + 0x98]
cmp dword [esi + 0x94], ebp
lea edi, [esi + 0x90]
jbe 0x41aea4
call fcn.004b5f27
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x14], eax
jbe 0x41aeb9
call fcn.004b5f27
mov eax, dword [esp + 0x14]
push ebp
push edi
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00414750
mov eax, dword [esi + 0x734]
xor ebp, ebp
cmp eax, ebp
je 0x41aedc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x4c8]
mov dword [esi + 0x734], ebp
mov byte [esp + 0x28], 0xe
call fcn.004ac706
lea ecx, [esi + 0x454]
mov byte [esp + 0x28], 0xd
call fcn.004971e0
lea ecx, [esi + 0x400]
mov byte [esp + 0x28], 0xc
call fcn.004ac759
lea ecx, [esi + 0x3ac]
mov byte [esp + 0x28], 0xb
call fcn.004ac759
lea ecx, [esi + 0x358]
mov byte [esp + 0x28], 0xa
call fcn.004ac759
lea ecx, [esi + 0x304]
mov byte [esp + 0x28], 9
call fcn.004ac759
lea ecx, [esi + 0x2b0]
mov byte [esp + 0x28], 8
call fcn.004ac759
lea ecx, [esi + 0x254]
mov byte [esp + 0x28], 7
call fcn.00497300
lea ecx, [esi + 0x1f8]
mov byte [esp + 0x28], 6
call fcn.00497300
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x28], 5
call fcn.004acf42
lea ecx, [esi + 0x148]
mov byte [esp + 0x28], 4
call fcn.004acd1c
lea ecx, [esi + 0xf4]
mov byte [esp + 0x28], 3
call fcn.004acd1c
lea ecx, [esi + 0xa0]
mov byte [esp + 0x28], 2
call fcn.004acd1c
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x41afc2
push eax
call fcn.004a37b7
add esp, 4
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x41afdb
push eax
call fcn.004a37b7
add esp, 4
mov ecx, esi
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.004ad66d
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4251aa
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
mov eax, 0x1e64
call fcn.004b4db0
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x1e60], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x18c]
lea ecx, [esp + 0x1670]
push ecx
push 0
mov ecx, eax
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x670]
push ecx
lea ecx, [esp + 0x1674]
push ecx
mov ecx, eax
call edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x670]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, 0x5c
cmp word [esp + eax*2 + 0x66e], bx
je 0x42522b
push 0x5684d8
lea ecx, [esp + 0x674]
push ecx
call ebp
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
lea ecx, [esp + 0x260]
push ecx
mov ecx, eax
call edx
lea eax, [esp + 0x260]
push eax
call edi
cmp word [esp + eax*2 + 0x25e], bx
je 0x42526b
push 0x5684d8
lea ecx, [esp + 0x264]
push ecx
call ebp
lea edx, [esp + 0x670]
push edx
push str._s.CAT
lea eax, [esp + 0xe78]
push 0x400
push eax
call fcn.004b578c
push 0x250
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.004b4de0
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xe74]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42534e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, edi
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x674]
push edx
push 0x563c98
lea eax, [esp + 0xe7c]
push 0x400
push eax
call fcn.004b578c
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x278]
push edx
push 0x563c98
lea eax, [esp + 0x488]
push 0x104
push eax
call fcn.004b578c
add esp, 0x28
push 0x20
lea ecx, [esp + 0x46c]
push ecx
call edi
push 0
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0xe78]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push esi
call ebp
test eax, eax
jne 0x4252d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1e70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004b4b34
add esp, 0x1e64
ret
Function at 0x45da32
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
push edi
call edx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x45da5f
push 0x20
push edi
call ebx
push edi
call ebp
lea edi, [esi + 0x21c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45da78
push 0x20
push edi
call ebx
push edi
call ebp
add esi, 0x424
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45da91
push 0x20
push esi
call ebx
push esi
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x467e84
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push edi
call edx
mov edi, dword [esp + 0x120]
cmp edi, 5
mov word [ebx], 0
ja 0x467ecf
cmp edi, 2
jae 0x467eff
mov eax, edi
sub eax, 0
je 0x467eff
sub eax, 1
jne 0x467ed7
or eax, 0xffffffff
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b4b34
add esp, 0x104
ret 0xc
cmp edi, 0x400
je 0x467eff
mov ecx, 0x631bd8
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push str.Driver
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
jmp 0x467f2b
mov ecx, 0x631bd8
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x9c]
push 0x40
push edi
push str.Driver
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call edx
add esi, 4
push esi
push 0x40
lea eax, [esp + 0x98]
push eax
push 0x562d4c
push ebp
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x467eb1
lea edx, [esp + 0x92]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx eax, word [esp + 0x90]
push eax
call fcn.004b811a
xor ecx, ecx
add esp, 4
cmp eax, 0x50
setne cl
mov eax, ecx
jmp 0x467eb4

Function at 0x467fa4
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x84
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push edi
mov edi, dword [esp + 0x90]
call edx
mov ecx, 0x631bd8
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push str.Version
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call edx
add esi, 4
push esi
push 0x40
push edi
push str.0.00
lea eax, [esp + 0x18]
push eax
push str.CheckVersion
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
xor ecx, esp
call fcn.004b4b34
add esp, 0x84
ret 4

Function at 0x468034
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x84
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push edi
mov edi, dword [esp + 0x90]
call edx
mov ecx, 0x631bd8
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push str.NewSpecVersion
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call edx
add esi, 4
push esi
push 0x40
push edi
push str.0.00
lea eax, [esp + 0x18]
push eax
push str.CheckNewSpecDriverVersion
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
xor ecx, esp
call fcn.004b4b34
add esp, 0x84
ret 4
Function at 0x4680ec
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push edi
mov edi, dword [esp + 0x21c]
call edx
mov ecx, 0x631bd8
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push str.OldModel
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call edx
add esi, 4
push esi
push 0x208
push edi
push 0x562d4c
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x46814a
mov eax, 5
jmp 0x468154
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4b34
add esp, 0x20c
ret 8

Function at 0x46dfd0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
push 6
lea edi, [esi + 4]
push 0
mov dword [esi], vtable.CBaseInfoICF.0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [edi], 0
mov dword [esi + 8], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x46e012
cmp eax, 0x80010106
jne 0x46e078
lea eax, [esp + 0xc]
push eax
push 0x56b6fc
push 1
push 0
push 0x56b6ec
mov dword [esi + 8], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x46e058
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x46e058
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov eax, dword [esp + 8]
test eax, eax
je 0x46e068
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46e078
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x46fbe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ecc5b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esi], vtable.CBaseInfoMgr.0
call fcn.0046ea80
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.0046ea00
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x470070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
xor edi, edi
cmp dword [ecx + 0x30], 2
jne 0x47009e
cmp dword [ecx + 0x24], 4
jbe 0x47009e
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
push edx
push 0x26
call eax
test eax, eax
je 0x4700ff
lea eax, [edi + 1]
pop edi
add esp, 8
ret 8
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4700ff
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.ProgramFilesDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
mov eax, 1
je 0x470101
mov eax, edi
pop edi
add esp, 8
ret 8

Function at 0x470f70
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x13c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
push eax
mov dword [eax + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x154]
cmp eax, 0x24a
ja 0x470fbb
je 0x470fb7
sub eax, 0x182
je 0x470fb7
sub eax, 0x64
jne 0x470fc9
xor eax, eax
pop esi
ret
cmp eax, 0x898
je 0x47100b
cmp eax, 0x21d8
je 0x470fe6
push 0xe
push str.Windows_NT_x86
lea ecx, [esi + 0x160]
mov dword [esi + 8], 0
call fcn.00403330
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x24]
imul eax, eax, 0x64
add eax, dword [esi + 0x28]
push 0xb
push str.Windows_x64
lea ecx, [esi + 0x160]
mov dword [esi + 8], eax
call fcn.00403330
mov eax, 0x20000000
pop esi
ret
mov ecx, dword [esi + 0x24]
imul ecx, ecx, 0x64
add ecx, dword [esi + 0x28]
push 0xc
mov dword [esi + 8], ecx
push str.Windows_IA64
lea ecx, [esi + 0x160]
call fcn.00403330
mov eax, 0x10000000
pop esi
ret
Function at 0x4710a4
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov dword [esp + 4], 0
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 4]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 4]
test eax, eax
je 0x4710fb
cmp eax, 0x3e8
je 0x4710fb
cmp eax, 0x270f
je 0x4710fb
cmp dword [esp + 0x218], 1
jne 0x4711cd
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
push edi
lea edi, [esi + 0x20c]
push edi
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x471123
push 0x20
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 4
push esi
call ebx
test eax, eax
je 0x471139
push 0x20
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
push 0x206
lea ecx, [esp + 0x1a]
push 0
push ecx
mov word [esp + 0x20], 0
call fcn.004b4de0
add esp, 0xc
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x14]
push ecx
push str.RESTORE_COLOR_FOLDER
mov ecx, eax
call edx
mov ecx, 0x631bd8
call fcn.00403be0
mov edx, dword [eax]
mov edx, dword [edx + 0x74]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004b4b34
add esp, 0x210
ret 4

Function at 0x477330
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
call edx
add esi, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477358
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop esi
ret
Function at 0x47e8c4
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
push edi
mov edi, dword [esp + 0x420]
mov eax, 1
je 0x47e961
test edi, edi
jne 0x47e8e6
xor eax, eax
jmp 0x47e961
push ebx
mov ebx, dword [esp + 0x428]
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.004b4de0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
add esp, 0xc
push 0x104
lea eax, [esp + 0x218]
push eax
call edx
mov esi, eax
test esi, esi
je 0x47e960
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47e95e
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x214]
push edx
lea eax, [esp + 0x10]
push eax
push 0x563c98
push 0xffffffffffffffff
push ebx
push edi
call fcn.004b57a8
add esp, 0x18
mov eax, esi
jmp 0x47e960
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.004b4b34
add esp, 0x414
ret 8
Function at 0x4980d0
Capabilities:
Set current directory

Disassembly:
mov dword [ecx], vtable.CPDLDlgPrinterSelectDirect.0
jmp fcn.0041adc0

Function at 0x498b40
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [ecx], vtable.CPDLFuncSub.0
jmp fcn.004595f0

Function at 0x498d20
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [ecx], vtable.CPDLInfoMgr.0
jmp fcn.0046f910

Function at 0x499b70
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x502abc
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esi], vtable.CBaseDirectPrintersSilent.0
mov eax, dword [esi + 0x58]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x40], 3
je 0x499bbb
push eax
call edi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x499bc5
push eax
call edi
mov eax, dword [esi + 0x14]
xor edi, edi
test eax, eax
jle 0x499bfa
mov edi, edi
test edi, edi
jl 0x499ca3
cmp edi, dword [esi + 0x14]
jge 0x499ca3
mov eax, dword [esi + 0x10]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call fcn.004a37b7
add edi, 1
add esp, 4
cmp dword [esi + 0x14], edi
jg 0x499bd0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [esp + 0x14], 0x14
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
test eax, eax
je 0x499c35
lea edx, [esp + 0x1c]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
call ebp
sub dword [esp + 0x14], 1
jne 0x499c14
lea ecx, [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esi + 0x40]
mov byte [esp + 0x40], 2
call fcn.004aef26
lea ecx, [esi + 0x24]
mov byte [esp + 0x40], 1
call fcn.004b06b8
lea ecx, [esi + 0xc]
call fcn.004997c0
mov esi, dword [esi + 4]
sub esi, 0x10
mov dword [esp + 0x40], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x499c8f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
jmp fcn.004a38b0
Function at 0x49fbf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x504025
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CBaseInfFile.0
call fcn.004a523f
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fc3b
push 0x80004005
call fcn.00403520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esp + 0x18], edi
call fcn.004a523f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fc68
push 0x80004005
call fcn.00403520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x18], 1
call fcn.004a523f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fc96
push 0x80004005
call fcn.00403520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x18], 2
call fcn.004a523f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fcc4
push 0x80004005
call fcn.00403520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 3
call fcn.004b0c28
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 4
call fcn.004aec33
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 5
call fcn.004aec33
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x288]
mov byte [esp + 0x18], 6
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.004aec33
lea ecx, [esi + 0x29c]
mov byte [esp + 0x18], 7
call fcn.004aec33
lea ecx, [esi + 0x2b0]
mov byte [esp + 0x18], 8
call fcn.004aec33
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x18], 9
call fcn.004aec33
lea ecx, [esi + 0x2d8]
mov byte [esp + 0x18], 0xa
call fcn.004aec33
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4a34f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
push 0
push ebx
push 0
mov esi, ecx
mov eax, dword [esi + 4]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [esi + 8], 0
jne 0x4a3558
mov ecx, dword [edi]
add ecx, 4
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 8], eax
je 0x4a355b
mov edx, dword [esi + 4]
push edi
push eax
push ebx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [esi + 8]
je 0x4a355b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
jne 0x4a3558
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc