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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
lea edx, [ebp - 0xa28]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa34], eax
inc eax
shl eax, 8
push edx
or eax, 0xf003f
mov edx, str.SOFTWAREMicrosoftInstallerProducts
push eax
cmp ecx, reloc.OLEAUT32.dll_SysReAllocString
mov eax, str.SOFTWAREClassesInstallerProducts
push 0
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aa74
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0xa2c]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xa2c], 0x208
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push dword [ebp - 0xa28]
call ebx
mov esi, eax
cmp esi, 0x103
je 0x40aa63
test esi, esi
jne 0x40a9cf
lea eax, [ebp - 0x414]
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x40a915
mov ecx, dword [str.SourceList]
mov dword [eax], ecx
mov ecx, dword [0x5c3d48]
mov dword [eax + 4], ecx
mov ecx, dword [0x5c3d4c]
mov dword [eax + 8], ecx
mov ecx, dword [0x5c3d50]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5c3d54]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5c3d58]
mov dword [eax + 0x14], ecx
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa24]
mov dword [ebp - 0xa30], 0x207
push eax
mov eax, dword [ebp - 0xa34]
inc eax
push 0
shl eax, 0x10
or eax, 2
push eax
push str.PackageName
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa28]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40aa09
mov eax, dword [ebp - 0xa30]
add eax, eax
cmp eax, 0x410
jae 0x40aa84
xor ecx, ecx
mov word [ebp + eax - 0xa24], cx
lea eax, [ebp - 0xa24]
push 0x5c358c
push eax
call fcn.0055da38
add esp, 8
test eax, eax
je 0x40aa09
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xa2c], 0x208
push eax
lea eax, [ebp - 0x414]
inc edi
push eax
push edi
push dword [ebp - 0xa28]
call ebx
mov esi, eax
cmp esi, 0x103
jne 0x40a904
jmp 0x40aa63
mov eax, dword [ebp - 0xa2c]
add eax, eax
cmp eax, 0x410
jae 0x40aa84
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
test esi, esi
je 0x40aa63
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x614]
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x614]
call fcn.004041a0
push dword [ebp - 0xa28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret 8
call fcn.0054e504
int3
Function at 0x40ae60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x210], ecx
mov esi, dword [edi + 0x210]
mov eax, dword [edi + 0x20c]
sub esi, eax
sar esi, 2
sub esi, 1
js 0x40aef9
nop word [eax + eax]
mov eax, dword [edi + 0x20c]
mov ebx, dword [eax + esi*4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x40aed7
push eax
push ebx
lea eax, [ebp - 0x20c]
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
call fcn.004041a0
mov eax, dword [edi + 0x20c]
push dword [eax + esi*4]
call fcn.005580d5
mov ecx, dword [ebp - 0x210]
add esp, 4
sub esi, 1
jns 0x40aea0
mov eax, dword [edi + 0x20c]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x210], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret 4
Function at 0x40af20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
lea edx, [ebp - 0x628]
push ebx
push esi
mov dword [ebp - 0x63c], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
inc eax
push edi
push edx
shl eax, 8
or eax, 0xf003f
mov dword [ebp - 0x630], ebx
push eax
push 0
push str.SOFTWAREClassesRecord
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b159
mov eax, dword [ebx + 0x20c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x210], eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x638], 0
push eax
push 0
push dword [ebp - 0x628]
mov dword [ebp - 0x634], 0x104
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x40b144
nop dword [eax]
test eax, eax
jne 0x40b103
lea eax, [ebp - 0x62c]
xor bl, bl
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b0fd
xor esi, esi
mov dword [ebp - 0x624], 0x104
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push dword [ebp - 0x62c]
call edi
cmp eax, 0x103
je 0x40b0d5
test eax, eax
jne 0x40b0a0
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x104
push eax
lea eax, [ebp - 0x620]
push eax
mov eax, dword [ebp - 0x63c]
inc eax
push 0
shl eax, 0x10
or eax, 2
push eax
push str.CodeBase
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40b0a0
cmp dword [ebp - 0x624], eax
je 0x40b0a0
push str._zewsproxy.dll
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
setne bl
test eax, eax
jne 0x40b0d5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x104
push eax
lea eax, [ebp - 0x418]
inc esi
push eax
push esi
push dword [ebp - 0x62c]
call edi
cmp eax, 0x103
jne 0x40b035
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
test bl, bl
mov ebx, dword [ebp - 0x630]
je 0x40b103
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.0040ade0
jmp 0x40b103
mov ebx, dword [ebp - 0x630]
mov eax, dword [ebp - 0x638]
lea ecx, [ebp - 0x634]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x634], 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x628]
mov dword [ebp - 0x638], eax
call edi
cmp eax, 0x103
jne 0x40afd0
push dword [ebp - 0x628]
mov ecx, ebx
call fcn.0040ae60
push dword [ebp - 0x628]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a6ed
mov eax, dword fs:[0]
push eax
mov eax, 0x18e8
call fcn.0054e9a0
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18f0]
mov dword [ebp - 0x18f0], 8
push eax
mov dword [ebp - 0x18ec], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0041a385
push 0xc
call fcn.00414c96
add esp, 4
mov dword [ebp - 0x18f4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40be11
mov ecx, eax
call fcn.0041ad8c
mov esi, eax
jmp 0x40be13
xor esi, esi
push 0x5c4008
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0041b80c
push str.73151C92_9C5B_44AC_B1EB_06B88E33F4AE
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xcc], eax
test eax, eax
je 0x40be8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40be8e
call fcn.00403e70
push ecx
lea ecx, [ebp - 0x18e8]
call fcn.0040c620
lea eax, [ebp - 0x18e8]
mov dword [ebp - 4], 1
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00416e2a
test esi, esi
je 0x40be81
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x18e8]
call fcn.0040baf0
jmp 0x40be95
push 1
call fcn.0041a01d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret

Function at 0x40c030
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a740
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5e3fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c11d
mov dword [ebp - 4], 0
call fcn.0041678c
mov ecx, eax
test ecx, ecx
je 0x40c131
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [0x5ed600]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
test edi, edi
je 0x40c0ab
mov eax, edi
lea ecx, [ebp + 8]
mov edi, dword [edi]
add eax, 8
push eax
call fcn.00406840
mov esi, dword [ebp + 8]
test edi, edi
je 0x40c0ab
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c087
mov ecx, 0x5ed5fc
call fcn.0041538a
push 0x5c358c
push ebx
push ecx
call fcn.004076c0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
push 0x5c35b8
push ebx
push ecx
call fcn.004076c0
push ebx
call edi
push str.ddxreg.dll
push ebx
push ecx
call fcn.004076c0
push ebx
call edi
push str.ddxdd.exe
push ebx
push ecx
call fcn.004076c0
push ebx
call edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c10f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x308
push ebx
call fcn.0054e5df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407340
int3
Function at 0x40c150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00416ab7

Function at 0x40c620
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a879
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
push 0
push 0x66
mov dword [ebp - 0x28], esi
call fcn.0041d1d4
mov dword [ebp - 4], 0
mov dword [esi], vtable.CZEDDInstallDlg.0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0x1894], 0
mov dword [esi + 0x1898], 0
lea edi, [esi + 0x189c]
mov dword [edi], 0
lea ebx, [esi + 0x18a0]
mov dword [ebx], 0
mov dword [esi + 0x18a4], 0
mov byte [ebp - 4], 0xa
call fcn.0041586a
call fcn.0041586a
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x204
mov dword [esi + 0x18d0], eax
lea eax, [esi + 0xcd8]
push 0
push eax
call fcn.005515b0
xor eax, eax
mov dword [esi + 0x18cc], 0
add esp, 0xc
mov dword [esi + 0x1890], 1
mov word [esi + 0xc18], ax
mov word [esi + 0x418], ax
mov dword [esi + 0xfe0], eax
call fcn.00410f10
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x20]
push eax
push str.VBScript
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x40c76c
push edi
push 0x5c45e8
push 0x15
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x40c77a
mov ecx, str.failed_to_call_CoCreateInstance
call fcn.004041a0
jmp 0x40c7e4
push 0xc
call fcn.00414c96
mov edx, eax
add esp, 4
mov dword [ebp - 0x24], edx
test edx, edx
je 0x40c7a3
mov dword [edx], vtable.CScriptSite.0
mov dword [edx + 4], 1
mov dword [edx + 8], 0
jmp 0x40c7a5
xor edx, edx
mov eax, dword [esi + 0x18a4]
mov dword [esi + 0x18a4], edx
test eax, eax
je 0x40c7c6
push 0xc
push eax
call fcn.0054e5df
mov edx, dword [esi + 0x18a4]
add esp, 8
mov eax, dword [edi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [edi]
push ebx
push 0x5c44ec
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret 4
Function at 0x40eab0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0xf013f
push 0
push str.SOFTWAREMicrosoftActive_SetupInstalled_Components313BA6B7_CF53_4C6F_BDF5_4D55100AF19A
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb0c
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
test edi, edi
je 0x40eb16
push str.RemoveAS__RegDeleteTree
push edi
mov ecx, esi
call fcn.0040f7e0
lea ecx, [esi + 0x1010]
test ecx, ecx
je 0x40eb16
call fcn.004041a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40eb0c
push edi
push 0x100
push str.SOFTWAREMicrosoftActive_SetupInstalled_Components313BA6B7_CF53_4C6F_BDF5_4D55100AF19A
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x40eb61
push str.RemoveAS__RegDeleteKey
push eax
mov ecx, esi
call fcn.0040f7e0
lea ecx, [esi + 0x1010]
test ecx, ecx
je 0x40eb0c
call fcn.004041a0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40eb70
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push ebx
push eax
push eax
mov word [ebx], ax
mov edx, 0x26
cmp dword [ecx + 0xed8], 1
mov eax, 0x1c
cmove eax, edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40ebd8
push esi
push edi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40eba5
mov ecx, 0x12
mov esi, str.ZE_PowerGroupDDXLibraryddxas.exe
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
je 0x40ebd3
mov al, 1
pop ebx
pop ebp
ret 4
xor eax, eax
mov word [ebx], ax
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x410a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push str.DDXNotes.txt
push ecx
push 0x1a4
mov ecx, dword [ebx + 0xd4]
mov dword [ebp - 0x10c], ebx
call fcn.004077a0
mov esi, dword [ebx + 0xd4]
push str.DDXNotes.txt
push esi
push ecx
call fcn.004076c0
push 0x5c53bc
push esi
call fcn.0055b786
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x410ad9
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0
push ebx
call fcn.0055aafd
push ebx
call fcn.0055be92
xor esi, esi
mov edi, eax
push esi
push esi
push ebx
call fcn.0055aafd
push ebx
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.0055bf94
add esp, 0x28
test eax, eax
je 0x410b2a
nop
push ebx
lea eax, [ebp - 0x104]
inc esi
push 0xff
push eax
call fcn.0055bf94
add esp, 0xc
test eax, eax
jne 0x410b10
lea eax, [edi + 1]
lea eax, [eax + esi*2]
push eax
call fcn.00414cd3
mov edi, eax
add esp, 4
mov dword [ebp - 0x108], edi
mov edx, 4
mov ecx, edi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x410b48
push edx
push edx
push ebx
call fcn.0055aafd
push ebx
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.0055bf94
add esp, 0x18
test eax, eax
je 0x410c26
nop word [eax + eax]
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b90
sub eax, edx
dec eax
cmp byte [ebp + eax - 0x104], 0xa
jne 0x410bb6
cmp eax, 0x100
jae 0x410c9f
mov byte [ebp + eax - 0x104], cl
lea edx, [ebp - 0x104]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x410bc0
sub edx, esi
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410bd0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x108]
lea ecx, [edi - 1]
nop
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410bf0
mov ax, word [0x5c53c0]
mov word [ecx], ax
mov al, byte [0x5c53c2]
push ebx
mov byte [ecx + 2], al
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.0055bf94
add esp, 0xc
test eax, eax
jne 0x410b80
push ebx
call fcn.0055b148
mov esi, dword [ebp - 0x10c]
add esp, 4
mov esi, dword [esi + 0xd4]
push str.DDXNotes.txt
push esi
push ecx
call fcn.004076c0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [edi]
test al, al
je 0x410c6e
mov ecx, edi
cmp al, 0x20
je 0x410c66
cmp al, 0xd
je 0x410c66
cmp al, 0xa
je 0x410c66
cmp al, 9
jne 0x410c8c
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410c56
push 1
push edi
call fcn.0054e5df
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret
call fcn.0054e504
int3
Function at 0x410f10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5e3fe4]
xor eax, esp
mov dword [esp + 0x224], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x410f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5c5464
push eax
push str._t_d___s
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004041a0
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x410fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LookupPrivilegeValue
jmp 0x410ff1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x411012
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5c54d8
push eax
push str._t_d___s
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004041a0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
Function at 0x416b0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0041586a
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x416b42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00416b55
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41b4b2
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41b505
push esi
push dword [ebp + 8]
call fcn.0041b69b
mov edi, eax
test edi, edi
je 0x41b500
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41b500
mov eax, dword [ebp - 8]
jmp 0x41b517
mov eax, dword [ebp + 0x10]
jmp 0x41b517
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x41f6a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x41f6e2
call fcn.0041586a
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f6e2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f6ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004296a1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4200e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x420171
cmp dword [esi + 0x20], 0
je 0x420171
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420171
cmp dword [ebp + 8], 0
je 0x420171
xor edi, edi
mov ebx, edi
call fcn.0041586a
push 0x58ce40
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x420155
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x420171
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004494d5
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42016d
mov ecx, esi
call fcn.0041fe83
mov eax, edi
jmp 0x420173
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4246a1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57b036
call fcn.0054e827
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4246c7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x424721
lea ecx, [ebp - 0x10]
call fcn.00409590
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x58aa8c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0055c4a7
push eax
call fcn.00406e30
add esp, 0x14
test esi, esi
je 0x424714
push esi
call fcn.0055c101
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004070b0
mov eax, ebx
call fcn.0054e7f5
ret 8

Function at 0x44af85
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x44afdb
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x44afb4
call fcn.00418757
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x44afc9
call fcn.00418757
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x44afdb
call fcn.00418757
call fcn.0041586a
cmp dword [eax + 0x3c], 0
je 0x44aff0
push edi
mov ecx, ebx
call fcn.0044a6a8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0044b1d6
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x44b019
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x44b025
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8