joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438517
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x4385d8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4385d8
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push str.SelfProtectAPI2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x2c]
call fcn.00402766
push ebx
lea ecx, [edi + 0x30]
call fcn.00402766
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret 4

Function at 0x438696
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4b3aef
call fcn.004764c0
mov ebx, dword [ebp + 0x80c]
test ebx, ebx
jne 0x4386cb
xor eax, eax
jmp 0x43876f
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
xor edi, edi
push str.SOFTWAREKasperskyLabSetupFolders
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4386c4
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004024e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00415953
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0043246d
lea ecx, [ebp - 0x10]
call fcn.004159bb
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004380a4
push str.avp.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x438762
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x804
leave
ret 4
Function at 0x4391c7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov edi, ecx
call fcn.00475420
add esp, 0xc
push str.safemonSelfProtectAPI2.dll
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
call fcn.00438517
xor esi, esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43923c
inc esi
cmp esi, 0xa
jl 0x43921a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret 4
Function at 0x439670
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x4afefa
call fcn.004764c0
mov edi, dword [ebp + 0x41c]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x208], ax
xor ebx, ebx
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.00475420
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00475420
xor esi, esi
inc esi
add esp, 0x18
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x1c], esi
call fcn.00453f76
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00430d98
test eax, eax
jne 0x43980f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.RULE_360Safe
push str.SYSTEMCurrentControlSetServices360SelfProtection
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
je 0x439758
push str.error___Is360SafeUnique_____SHGetValue_______n
call fcn.00404da7
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xd]
call fcn.004404fe
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x414
leave
ret
xor eax, eax
cmp ax, word [ebp + 0x208]
jne 0x43976a
push str.error___Is360SafeUnique____
jmp 0x439721
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43978f
lea eax, [ebp + 0x210]
push eax
push str.error___Is360SafeUnique_____RULE_360Safe
call fcn.00404da7
pop ecx
jmp 0x439726
lea eax, [ebp]
push eax
lea eax, [ebp + 0x210]
push eax
lea ecx, [ebp - 0xd]
call fcn.00453fb3
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4397c7
push str.error___Is360SafeUnique_____RuleFile.GetProtectPath______n
call fcn.00404da7
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.004404fe
mov eax, ebx
jmp 0x439735
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43980f
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x43980f
mov dword [ebp - 0x14], esi
cmp edi, ebx
je 0x43980f
cmp dword [ebp + 0x420], ebx
jle 0x43980f
lea eax, [ebp]
push eax
push dword [ebp + 0x420]
push edi
call fcn.00402287
push edi
push str.GetPathViaSelfProtect__s
call fcn.00404da7
pop ecx
pop ecx
mov ebx, dword [ebp - 0x14]
jmp 0x4397b4
Function at 0x439862
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x104
cmp eax, edi
je 0x4398fb
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push edi
push eax
push edi
mov dword [ebp - 0x74], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4398fb
cmp dword [ebp - 0x74], edi
je 0x4398fb
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4398fb
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x80]
push edi
call esi
test eax, eax
je 0x4398f4
mov eax, ebx
jmp 0x4398fd
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x19c
leave
ret 4

Function at 0x439982
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x4399f8
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4399f8
push edi
mov edi, dword [ebp - 4]
dec edi
js 0x4399f7
push esi
mov esi, edi
shl esi, 5
mov eax, dword [ebp - 8]
add eax, esi
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4399ee
cmp dword [ebp + 0x10], 0
je 0x4399e4
cmp dword [eax + 0x14], 0
jne 0x4399ee
push dword [ebp + 0x10]
add eax, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_GetTrusteeNameW]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4399ee
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
sub esi, 0x20
test edi, edi
jge 0x4399b3
pop esi
pop edi
leave
ret 0xc
Function at 0x439bae
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov eax, dword [ebp + 0x1c8]
push ebx
mov ebx, dword [ebp + 0x1d4]
push edi
xor edi, edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
cmp eax, edi
jne 0x439bea
xor eax, eax
jmp 0x439cd4
cmp ebx, edi
jne 0x439c0a
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x439be3
lea ebx, [ebp - 0x4c]
push esi
lea eax, [ebp - 0x58]
push eax
push edi
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 4
push dword [ebp + 0x1cc]
xor esi, esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x439cd1
cmp dword [ebp + 0x1d0], 2
je 0x439c49
cmp dword [ebp + 0x1d0], 1
jne 0x439c57
mov ecx, dword [ebp - 0x60]
push ebx
push 3
push dword [ebp - 0x54]
call fcn.004399fc
push 0x20
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x50], edi
call fcn.00475420
add esp, 0xc
push 3
push dword [ebp + 0x1d0]
lea eax, [ebp - 0x80]
push dword [ebp + 0x1d8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x80]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x439cc7
push edi
push dword [ebp - 0x50]
push edi
push edi
push 4
push dword [ebp + 0x1cc]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x50], edi
je 0x439cc7
push dword [ebp - 0x50]
call ebx
cmp dword [ebp - 0x58], edi
je 0x439cd1
push dword [ebp - 0x58]
call ebx
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x1bc]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x1c0
leave
ret 0x14
Function at 0x439e8b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3e4], eax
push ebx
mov ebx, dword [ebp + 0x3f0]
push esi
mov esi, dword [ebp + 0x3f4]
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1dc], ax
lea eax, [ebp + 0x1de]
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], esi
call fcn.00475420
mov ecx, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp + 0x400], 0
push dword [ebp + 0x3f8]
push esi
push ebx
je 0x439ef4
call fcn.00439d05
jmp 0x439ef9
call fcn.00439dc6
push ebx
mov esi, 0x104
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.00405417
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4badcc
lea eax, [ebp + 0x1dc]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x43a048
test byte [ebp - 0x74], 0x10
je 0x439fd5
cmp dword [ebp + 0x3fc], 0
je 0x43a02a
push 0x4d5320
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x43a02a
push 0x4d33f4
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x43a02a
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00475420
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.00405417
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1dc]
push eax
call edi
push dword [ebp + 0x400]
mov ecx, dword [ebp - 0x78]
push dword [ebp + 0x3fc]
lea eax, [ebp + 0x1dc]
push dword [ebp + 0x3f8]
push dword [ebp - 0x7c]
push eax
call fcn.00439e8b
jmp 0x43a02a
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00475420
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.00405417
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1dc]
push eax
call edi
cmp dword [ebp + 0x400], 0
push dword [ebp + 0x3f8]
mov ecx, dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1dc]
push eax
je 0x43a025
call fcn.00439d05
jmp 0x43a02a
call fcn.00439dc6
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439f3d
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x3e4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0047549a
add ebp, 0x3e8
leave
ret 0x14
Function at 0x43a124
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00475420
and dword [ebp - 0x400c], 0
add esp, 0xc
test esi, esi
je 0x43a205
test edi, edi
je 0x43a205
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x43a205
cmp eax, 0x3fff
ja 0x43a205
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a205
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x4d2f80
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43a205
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00475420
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
dec esi
push esi
push edi
call fcn.00477b60
xor eax, eax
add esp, 0x28
inc eax
jmp 0x43a207
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret
Function at 0x43a235
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
push ebx
push esi
mov esi, dword [ebp + 0x3b4]
push edi
mov ecx, 0x4f7c20
call fcn.0043a0cc
test eax, eax
jne 0x43a3d5
push 0x208
push eax
lea eax, [ebp + 0x1a0]
push eax
call fcn.00475420
add esp, 0xc
push str.safemon
push esi
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
je 0x43a3d5
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x1a0]
push eax
call fcn.00475ebe
pop ecx
mov esi, 0x104
lea ecx, [ebp + eax*2 + 0x1a0]
sub esi, eax
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x80], str.HomePageLib.dat
mov dword [ebp - 0x7c], str.HPLib.dat
mov dword [ebp - 0x78], str.bfhlib.dat
mov dword [ebp - 0x74], str.cfhlib.dat
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp + eax*4 - 0x80]
push edi
call fcn.00475ebe
pop ecx
cmp eax, esi
jae 0x43a310
push edi
call fcn.00475ebe
pop ecx
jmp 0x43a312
mov eax, esi
push eax
push edi
push esi
push dword [ebp - 0x70]
call fcn.00476737
add esp, 0x10
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
je 0x43a3c8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x43a3bb
push 0x80
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43a367
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x43a3bb
push 0x208
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475420
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00477a45
lea eax, [ebp - 0x68]
push 0x4bae70
push eax
call fcn.00477a17
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x1c
push 3
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
je 0x43a3bb
push 4
push 0
lea eax, [ebp - 0x68]
push eax
call edi
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
jne 0x43a3f1
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 4
jl 0x43a2f5
xor eax, eax
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x3ac
leave
ret 4
push 0xb
pop eax
jmp 0x43a3d7

Function at 0x43a918
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x43a969
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x43a97a
push 0xd
pop eax
jmp 0x43a9a7
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x43a97d
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x43ae91
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.00410fd0
mov ebx, eax
cmp ebx, edi
je 0x43af01
lea ecx, [ebp - 0x70]
call fcn.00411011
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x43af19
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0043ae91
cmp eax, edi
jne 0x43af4c
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x43af09
lea ecx, [ebp - 0x70]
call fcn.00411011
push dword [ebp - 0x78]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00411011
mov eax, esi
jmp 0x43aee7
Function at 0x43c833
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0xa7c
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xa7c], eax
push 8
mov eax, 0x4b010f
call fcn.004764c0
mov edi, dword [ebp + 0xa88]
mov esi, str.C:Windows
push esi
call fcn.00475ebe
push eax
push esi
push edi
call fcn.00477d1d
add esp, 0x10
test eax, eax
jne 0x43c87f
push 0xc
pop eax
jmp 0x43c97f
mov esi, 0x208
push esi
xor ebx, ebx
lea eax, [ebp + 0x464]
push ebx
push eax
call fcn.00475420
push esi
lea eax, [ebp + 0x66c]
push ebx
push eax
call fcn.00475420
add esp, 0x18
push 0x104
lea eax, [ebp + 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea eax, [ebp + 0x874]
push ebx
push eax
call fcn.00475420
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push str..dll
push edi
lea eax, [ebp + 0x874]
push eax
call esi
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], ebx
mov dword [ebp + 0x460], ebx
lea eax, [ebp + 0x874]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0043a57a
jmp 0x43c967
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.0043c78a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0043c66e
push dword [eax]
lea eax, [ebp + 0x66c]
push eax
lea eax, [ebp + 0x464]
push eax
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402820
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
test eax, eax
jne 0x43c96d
mov byte [ebp - 4], bl
call fcn.00402820
lea ecx, [ebp]
call fcn.0043a471
test eax, eax
jne 0x43c907
jmp 0x43c975
call fcn.00402820
push 0xc
pop ebx
lea ecx, [ebp]
call fcn.0043a498
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa7c]
xor ecx, ebp
call fcn.0047549a
add ebp, 0xa80
leave
ret 4

Function at 0x43cbd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
add ecx, 4
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43cbfe
cmp dword [ebp - 4], esi
je 0x43cc2c
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.SetupKilled
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43cc23
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x43cc31
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
push edi
mov eax, ecx
lea ecx, [ebp - 0x68]
push ecx
xor esi, esi
push 3
add eax, 4
push esi
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43cc8a
cmp dword [ebp - 0x68], esi
jne 0x43cc8a
mov dword [ebp - 0x6c], 1
jmp 0x43cd2d
push ebx
push 4
pop eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
mov ebx, str.SetupKilled
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43cd0a
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x43cd11
push 0x206
mov word [ebp - 0x64], ax
xor ebx, ebx
lea eax, [ebp - 0x62]
push esi
inc ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.00475420
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x43cd11
mov dword [ebp - 0x74], ebx
jmp 0x43cd11
mov dword [ebp - 0x6c], 1
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x68], esi
pop ebx
cmp dword [ebp - 0x74], esi
je 0x43cd2d
push dword [ebp - 0x78]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0x1a4]
mov eax, dword [ebp - 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
add ebp, 0x1a8
leave
ret
cmp dword [ecx], 0
je 0x43cdbc
jmp 0x43cc31
ret

Function at 0x43cd47
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
add ecx, 4
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43cdad
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.SetupKilled
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43cda4
push str._Setup_Find_SetupKilled_symbol
call fcn.00404da7
pop ecx
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret