joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408750
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47524b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x1018]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00457170
mov esi, dword [esi + 0x138]
add esp, 0xc
push str.i18ni18n.ini
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea edx, [esp + 0x810]
push 0
push edx
call fcn.00457170
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x4818a8
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x810]
call fcn.00408d80
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.00405560
mov esi, eax
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408855
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1018]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4

Function at 0x408880
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
push 0x11c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
mov dword [0x4925b8], 0
call fcn.00457170
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x408904
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x408956
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408956
lea ecx, [esp + 4]
push ecx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x408936
cmp ax, 6
jne 0x408956
mov eax, 1
mov dword [0x4925b8], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045715c
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x144
ret
Function at 0x408970
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov eax, dword [0x4925b8]
test eax, eax
jl 0x408985
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x40898a
call fcn.00408880
test eax, eax
jne 0x4089a7
lea edx, [esp]
push edx
mov dword [esp + 4], eax
call fcn.004054d0
add esp, 4
neg eax
sbb eax, eax
and eax, dword [esp]
pop ecx
ret
push 4
lea eax, [esp + 4]
push eax
push 4
push str.QIBegin
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x4089ea
push str.QIBegin
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x409780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409797
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4097c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4097c4
cmp esi, eax
jae 0x4097c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4097b4
cmp esi, eax
jb 0x4097ce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4097e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40984e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40981f
cmp eax, 2
jne 0x40983a
mov eax, dword [esp]
test esi, esi
je 0x409848
test eax, eax
je 0x409843
test al, 1
jne 0x40983a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x409848
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x40ae70
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x474ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x44]
mov eax, dword [0x494598]
mov ecx, dword [eax + 0xc]
push 0x494598
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x40aebf
mov eax, 0x80004005
jmp 0x40afda
mov eax, dword [esi]
test eax, eax
je 0x40aecd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], 0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x78]
push esi
push edi
call edx
mov dword [esp + 0x44], eax
test eax, eax
jge 0x40aee9
jmp 0x40afda
lea edi, [ebp + 8]
call fcn.0040ad80
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x40af06
push 0x80004003
call fcn.00446a70
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x40af20
push 0x80004003
call fcn.00446a70
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x40af37
mov eax, dword [eax]
jmp 0x40af39
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40afa6
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00404320
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x40af67
push 0x80004003
call fcn.00446a70
mov ebx, dword [eax]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x30]
push edx
call ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40afaa
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x40afc0
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x40afc4
test edi, edi
jge 0x40afd8
mov eax, dword [esi]
test eax, eax
je 0x40afd8
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x40b3f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x47612e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [edi], vtable.CSetupBaseCall.0
mov eax, dword [0x492d7c]
mov edx, dword [eax + 0xc]
mov ecx, 0x492d7c
call edx
add eax, 0x10
mov dword [edi + 4], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x492d7c]
mov edx, dword [eax + 0xc]
mov ecx, 0x492d7c
call edx
add eax, 0x10
mov dword [edi + 8], eax
mov eax, 1
mov byte [esp + 0x1c], al
lea esi, [edi + 0x18]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x14], esi
mov dword [esi], vtable.CINIReader.0
call fcn.00417810
mov byte [esp + 0x1c], 2
mov dword [esi + 0x30], vtable.CFileInfo.0
mov eax, dword [0x492d7c]
mov edx, dword [eax + 0xc]
mov ecx, 0x492d7c
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
lea eax, [edi + 0x78]
push eax
mov byte [esp + 0x20], 3
call fcn.00417170
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40d170
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x28]
call fcn.0045b080
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40d20f
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x4c]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40d228
jb 0x40d1f0
cmp eax, dword [esp + 0x10]
ja 0x40d228
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d1f5
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40d1d8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 8
Function at 0x40d250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00457170
add esp, 0xc
push 0x400
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4
Function at 0x40e8d0
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x49426c], 0
jne 0x40e8e3
push esi
call fcn.004041c0
add esp, 4
ret
call fcn.00404070
test eax, eax
je 0x40e8f2
mov eax, 1
ret
test esi, esi
jne 0x40e8f9
xor eax, eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e8ec
push esi
call fcn.004040f0
mov eax, 1
add esp, 4
ret

Function at 0x40f220
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f250
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
push esi
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040f280
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40f280
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
mov ebx, dword [esp + 0x101c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp eax, 0xffffffff
je 0x40f3d6
test ebx, ebx
je 0x40f3d6
test ecx, ecx
jle 0x40f3d6
mov eax, ecx
cdq
push ebp
and edx, 0xfff
push esi
add eax, edx
push edi
mov esi, eax
mov edi, ecx
sar esi, 0xc
and edi, 0x80000fff
jns 0x40f2ed
dec edi
or edi, 0xfffff000
inc edi
mov ebp, ebx
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ebx
jle 0x40f362
lea esp, [esp]
push 0x1000
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00457840
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, 0x1000
lea esp, [esp]
mov dl, byte [eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40f320
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f3a6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f357
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebx
add ebp, 0x1000
cmp ebx, esi
jl 0x40f300
test edi, edi
jle 0x40f3cf
push edi
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.00457840
add esp, 0xc
lea eax, [esp + 0x1c]
test edi, edi
jle 0x40f38a
mov ecx, edi
nop
mov dl, byte [eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40f380
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40f3c1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0045715c
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f3cf
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x40f3a8
mov ecx, dword [esp + 0x1010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x1010
ret
Function at 0x40f6f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x2000], eax
xor eax, eax
test ebx, ebx
je 0x40f7e5
mov word [ebx], ax
test edi, edi
jne 0x40f72e
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045715c
add esp, 0x2004
ret
push esi
mov esi, 0x4816a8
mov ecx, dword [esi]
push edi
push ecx
call fcn.00457f98
add esp, 8
test eax, eax
je 0x40f767
add esi, 8
cmp esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
jl 0x40f734
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045715c
add esp, 0x2004
ret
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40f7b8
push 0x2000
lea edx, [esp + 8]
push 0
push edx
call fcn.00457170
add esp, 0xc
push 1
push esi
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f7b8
lea eax, [esp + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f7a0
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x200c]
jl 0x40f7d0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045715c
add esp, 0x2004
ret
push eax
lea ecx, [esp + 8]
push ecx
push ebx
call fcn.0045810b
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045715c
add esp, 0x2004
ret

Function at 0x40f850
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
xor eax, eax
push 0x3ffe
mov ebx, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00457170
add esp, 0xc
mov dword [esp + 8], 0
test esi, esi
je 0x40f935
test edi, edi
je 0x40f935
lea edx, [esp + 8]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40f935
cmp eax, 0x3fff
ja 0x40f935
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f935
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x4813b0
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f935
lea edx, [ebx + ebx]
push edx
push 0
push edi
call fcn.00457170
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
dec ebx
push ebx
push edi
call fcn.0045ad7b
add esp, 0x28
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.0045715c
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x4010
ret
Function at 0x40f950
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x2024
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x2020], eax
xor eax, eax
test esi, esi
je 0x40f9db
push 0x2000
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x10], 3
call fcn.00457170
push 0x1000
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0045810b
add esp, 0x18
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x614
push ecx
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, 1
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.0045715c
add esp, 0x2024
ret

Function at 0x410860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4753b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00408d80
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004106c0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4108db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 4]
test esi, esi
je 0x4108eb
cmp esi, dword [esp + 0x14]
je 0x4108f0
call fcn.004577aa
xor eax, eax
cmp edi, dword [esp + 0x18]
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4753b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00408d80
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004106c0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41098b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
add esi, 4
test edi, edi
je 0x4109a0
cmp edi, eax
je 0x4109a5
call fcn.004577aa
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4109ba
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00410d10
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411bc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475c28
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x411c6a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411c6a
lea eax, [esp + 0x14]
push eax
mov edi, str.version1.0_encodingutf_16
call fcn.00404230
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
mov dword [esp + 0x6c], 0
call fcn.00404230
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x74], 1
call fcn.0040aff0
lea edi, [esp + 0x10]
call fcn.004042d0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.004042d0
cmp dword [esp + 0x4c], 0
sete al
test al, al
sete al
test al, al
jne 0x411c80
lea ecx, [esp + 0x48]
call fcn.0040acb0
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x14]
push edx
mov edi, 0x482760
call fcn.00404230
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
lea esi, [esp + 0x3c]
mov byte [esp + 0x6c], 5
call fcn.0040abb0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.004042d0
cmp dword [esp + 0x40], 0
sete al
test al, al
sete al
test al, al
je 0x411ce3
cmp dword [esp + 0x3c], 0
sete al
test al, al
sete al
test al, al
je 0x411ce3
mov edx, dword [ebp + 8]
add edx, 8
mov ecx, esi
call fcn.00411e60
lea ecx, [esp + 0x14]
push ecx
mov edi, str.Plugin_AfterSetup
call fcn.00404230
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x18]
lea esi, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.0040abb0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xa
call fcn.004042d0
cmp dword [esp + 0x30], 0
sete al
test al, al
sete al
test al, al
je 0x411d46
cmp dword [esp + 0x2c], 0
sete al
test al, al
sete al
test al, al
je 0x411d46
mov edx, dword [ebp + 8]
add edx, 0x20
mov ecx, esi
call fcn.00411e60
lea eax, [esp + 0x14]
push eax
mov edi, str.Plugin_BeforeUninstall
call fcn.00404230
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov byte [esp + 0x6c], 0xb
call fcn.0040abb0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xd
call fcn.004042d0
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x411da9
cmp dword [esp + 0x1c], 0
sete al
test al, al
sete al
test al, al
je 0x411da9
mov edx, dword [ebp + 8]
add edx, 0x38
mov ecx, esi
call fcn.00411e60
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.004043a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.004043a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.004043a0
lea ecx, [esp + 0x48]
call fcn.0040acb0
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4151b0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push edi
push esi
call ecx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], eax
jle 0x4152dd
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x415212
call fcn.004577aa
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp dword [ecx - 0xc], 0
je 0x4152cd
cmp dword [esi + 0x1c], 0
je 0x4152c3
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x41524e
push 4
lea edx, [eax + 0x14]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 4
push edx
push ecx
push eax
call ebx
jmp 0x4152cd
cmp edx, 1
jne 0x415271
mov edx, dword [eax + 0x18]
mov ebx, dword [edx - 0xc]
add ebx, ebx
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 1
push edx
push ecx
push eax
call ebx
jmp 0x4152cd
cmp edx, 2
jne 0x4152cd
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x18]
push edx
push edi
push esi
call eax
lea eax, [esp + 0x430]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415290
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x434]
push edx
mov edx, dword [esp + 0x20]
push 1
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
jmp 0x4152cd
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add dword [esp + 0x10], 0x1c
inc edi
cmp edi, dword [esp + 0x14]
jl 0x4151f0
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4