joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d80
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 edx, dword [ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
push eax
push edx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408dee
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x408dbf
cmp eax, 2
jne 0x408dda
mov eax, dword [esp]
test esi, esi
je 0x408de8
test eax, eax
je 0x408de3
test al, 1
jne 0x408dda
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x408de8
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 0x40a400
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x483288
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
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 [0x4a6798]
mov ecx, dword [eax + 0xc]
push 0x4a6798
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x40a44f
mov eax, 0x80004005
jmp 0x40a56a
mov eax, dword [esi]
test eax, eax
je 0x40a45d
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 0x40a479
jmp 0x40a56a
lea edi, [ebp + 8]
call fcn.0040a310
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x40a496
push 0x80004003
call fcn.00451040
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x40a4b0
push 0x80004003
call fcn.00451040
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 0x40a4c7
mov eax, dword [eax]
jmp 0x40a4c9
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a536
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00402400
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x40a4f7
push 0x80004003
call fcn.00451040
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 0x40a53a
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x40a550
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x40a554
test edi, edi
jge 0x40a568
mov eax, dword [esi]
test eax, eax
je 0x40a568
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 0x40a720
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x484aee
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a30f8]
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 [0x4a4e50]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a4e50
call edx
add eax, 0x10
mov dword [edi + 4], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x4a4e50]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a4e50
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.00418e20
mov byte [esp + 0x1c], 2
mov dword [esi + 0x30], vtable.CFileInfo.0
mov eax, dword [0x4a4e50]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a4e50
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.004187f0
lea ecx, [edi + 0x94]
push ecx
mov dword [edi + 0x90], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
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 0x40cd90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x4a30f8]
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.00461880
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.00464810
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40ce2f
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x4c]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40ce48
jb 0x40ce10
cmp eax, dword [esp + 0x10]
ja 0x40ce48
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce15
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40cdf8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00461862
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.00461862
mov esp, ebp
pop ebp
ret 8

Function at 0x40ce70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00461880
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.00461862
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb20
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x4a644c], 0
jne 0x40fb33
push esi
call fcn.00402030
add esp, 4
ret
call fcn.00401ee0
test eax, eax
je 0x40fb42
mov eax, 1
ret
test esi, esi
jne 0x40fb49
xor eax, eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb3c
push esi
call fcn.00401f60
mov eax, 1
add esp, 4
ret

Function at 0x40fd00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x482ea2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [ebx], vtable.CFileManagerEx.2.0
mov dword [esp + 0x20], 3
mov eax, dword [esi + 0x9c]
xor ebp, ebp
mov dword [esi + 0xb4], 1
cmp eax, ebp
je 0x40fd7b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x9c], ebp
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd9b
mov eax, dword [esi + 0x80]
push eax
call fcn.0041aab0
add esp, 4
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x40fdbf
mov edi, dword [esi + 0x94]
call fcn.0040e730
mov eax, dword [esi + 0x90]
push eax
call fcn.0044d6f0
add esp, 4
mov eax, dword [esi + 0x84]
push eax
mov dword [esi + 0x90], ebp
mov dword [esi + 0x94], ebp
mov dword [esi + 0x98], ebp
call fcn.0044d6f0
mov byte [esp + 0x24], 1
mov eax, dword [esi + 0x80]
sub eax, 0x10
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebx
call fcn.0041a640
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x410620
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 0x410650
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
push eax
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00410680
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x410680
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1024]
mov ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
je 0x4107ab
xor ebp, ebp
cmp edi, ebp
je 0x4107ab
cmp ebx, ebp
jle 0x4107ab
mov eax, ebx
cdq
and edx, 0xfff
add eax, edx
push esi
mov esi, eax
sar esi, 0xc
and ebx, 0x80000fff
jns 0x4106ef
dec ebx
or ebx, 0xfffff000
inc ebx
cmp esi, ebp
mov dword [esp + 0x10], ebp
jle 0x41074c
jmp 0x410700
push 0x1000
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00465350
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
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 0x41077b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x410741
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebp
add edi, 0x1000
cmp ebp, esi
jl 0x410700
test ebx, ebx
jle 0x4107a4
push ebx
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00465350
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410796
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00461862
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4107a4
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x41077d
mov ecx, dword [esp + 0x1018]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00461862
add esp, 0x1010
ret
Function at 0x410ab0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x2000], eax
xor eax, eax
test ebx, ebx
je 0x410ba5
mov word [ebx], ax
test edi, edi
jne 0x410aee
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461862
add esp, 0x2004
ret
push esi
mov esi, 0x4918e8
mov ecx, dword [esi]
push edi
push ecx
call fcn.00462130
add esp, 8
test eax, eax
je 0x410b27
add esi, 8
cmp esi, str.360DesktopMainWndForMsg
jl 0x410af4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461862
add esp, 0x2004
ret
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x410b78
push 0x2000
lea edx, [esp + 8]
push 0
push edx
call fcn.00461880
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 0x410b78
lea eax, [esp + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410b60
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x200c]
jl 0x410b90
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461862
add esp, 0x2004
ret
push eax
lea ecx, [esp + 8]
push ecx
push ebx
call fcn.004625ca
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461862
add esp, 0x2004
ret

Function at 0x410c10
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.00462620
mov eax, dword [0x4a30f8]
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.00461880
add esp, 0xc
mov dword [esp + 8], 0
test esi, esi
je 0x410cf5
test edi, edi
je 0x410cf5
lea edx, [esp + 8]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x410cf5
cmp eax, 0x3fff
ja 0x410cf5
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410cf5
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x4915c8
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410cf5
lea edx, [ebx + ebx]
push edx
push 0
push edi
call fcn.00461880
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.00464f09
add esp, 0x28
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.00461862
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00461862
add esp, 0x4010
ret
Function at 0x410d10
Capabilities:
Check if file exists
Check os version

Disassembly:
mov eax, 0x2140
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x213c], eax
test esi, esi
jne 0x410d43
xor eax, eax
mov ecx, dword [esp + 0x213c]
xor ecx, esp
call fcn.00461862
add esp, 0x2140
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410dfe
xor eax, eax
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 + 0x144]
push eax
mov dword [esp + 0x10], 3
call fcn.00461880
push 0x1000
lea ecx, [esp + 0x14c]
push esi
push ecx
call fcn.004625ca
push 0x11c
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00461880
add esp, 0x24
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x24], 6
jb 0x410ddf
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp]
lea edx, [esp + 0x13c]
mov eax, 0x614
push ecx
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x213c]
xor ecx, esp
mov eax, 1
call fcn.00461862
add esp, 0x2140
ret

Function at 0x411b60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4843c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a30f8]
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.00407340
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004119b0
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 0x411bdb
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 0x411beb
cmp esi, dword [esp + 0x14]
je 0x411bf0
call fcn.00461bce
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 0x411c10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4843c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a30f8]
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.00407340
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004119b0
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 0x411c8b
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 0x411ca0
cmp edi, eax
je 0x411ca5
call fcn.00461bce
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411cba
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00412010
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 0x412dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4845a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x412e6a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412e6a
lea eax, [esp + 0x14]
push eax
mov edi, str.version1.0_encodingutf_16
call fcn.00402310
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
mov dword [esp + 0x6c], 0
call fcn.00402310
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.0040a580
lea edi, [esp + 0x10]
call fcn.004023b0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.004023b0
cmp dword [esp + 0x4c], 0
sete al
test al, al
sete al
test al, al
jne 0x412e80
lea ecx, [esp + 0x48]
call fcn.0040a240
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, 0x492a3c
call fcn.00402310
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
lea esi, [esp + 0x3c]
mov byte [esp + 0x6c], 5
call fcn.0040a140
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.004023b0
cmp dword [esp + 0x40], 0
sete al
test al, al
sete al
test al, al
je 0x412ee3
cmp dword [esp + 0x3c], 0
sete al
test al, al
sete al
test al, al
je 0x412ee3
mov edx, dword [ebp + 8]
add edx, 8
mov ecx, esi
call fcn.00413060
lea ecx, [esp + 0x14]
push ecx
mov edi, str.Plugin_AfterSetup
call fcn.00402310
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x18]
lea esi, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.0040a140
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xa
call fcn.004023b0
cmp dword [esp + 0x30], 0
sete al
test al, al
sete al
test al, al
je 0x412f46
cmp dword [esp + 0x2c], 0
sete al
test al, al
sete al
test al, al
je 0x412f46
mov edx, dword [ebp + 8]
add edx, 0x20
mov ecx, esi
call fcn.00413060
lea eax, [esp + 0x14]
push eax
mov edi, str.Plugin_BeforeUninstall
call fcn.00402310
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov byte [esp + 0x6c], 0xb
call fcn.0040a140
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xd
call fcn.004023b0
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x412fa9
cmp dword [esp + 0x1c], 0
sete al
test al, al
sete al
test al, al
je 0x412fa9
mov edx, dword [ebp + 8]
add edx, 0x38
mov ecx, esi
call fcn.00413060
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.00402480
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.00402480
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00402480
lea ecx, [esp + 0x48]
call fcn.0040a240
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 0x416880
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4a30f8]
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 0x4169ad
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 0x4168e2
call fcn.00461bce
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp dword [ecx - 0xc], 0
je 0x41699d
cmp dword [esi + 0x1c], 0
je 0x416993
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x41691e
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 0x41699d
cmp edx, 1
jne 0x416941
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 0x41699d
cmp edx, 2
jne 0x41699d
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 0x416960
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 0x41699d
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 0x4168c0
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00461862
mov esp, ebp
pop ebp
ret 4