joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454500
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5746cc]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4546b2
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], eax
call fcn.0040b740
mov ecx, eax
test ecx, ecx
je 0x4546d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str._s__s
push eax
call fcn.004094c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a3360
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454637
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x454625
cmp eax, 2
jne 0x454637
cmp dword [ebp - 0x21c], 0
jne 0x454637
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004be798
add esp, 8
test eax, eax
je 0x454684
test esi, esi
je 0x454684
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454660
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4546a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
test edi, edi
je 0x4546b4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4546b4
xor esi, esi
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.004864b8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00409360
int3
Function at 0x455b60
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b898
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5746cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x57c3e0], 0
jne 0x455ba4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x57c3e0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.0040b740
mov ecx, eax
test ecx, ecx
je 0x455c10
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x57c3e0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040b400
test al, al
jne 0x455bfc
mov ecx, 0x57c3e0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455be0
sub ecx, edx
sar ecx, 1
push ecx
push 0x57c3e0
mov ecx, esi
call fcn.0040ab90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00409360
int3
Function at 0x4562b0
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b968
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5746cc]
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
mov esi, dword [ebp + 8]
call fcn.0040b740
mov ecx, eax
test ecx, ecx
je 0x456477
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x456331
test esi, 0xffff0000
jne 0x45631a
movzx eax, si
lea ecx, [ebp - 0x38]
push eax
call fcn.00409d50
jmp 0x45633d
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456320
sub ecx, edx
sar ecx, 1
jmp 0x456333
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.0040ab90
push str._net_netload.dll
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00440cb0
add esp, 0xc
push dword [ebp - 0x34]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456416
push dword [ebp - 0x34]
call fcn.0045eae0
add esp, 4
test eax, eax
je 0x456416
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x456416
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InstallProvider
push eax
call esi
push str.RemoveProvider
push dword [edi]
mov dword [edi + 4], eax
call esi
mov dword [edi + 8], eax
lea eax, [ebp - 0x20]
push eax
push dword [edi]
mov dword [ebp - 0x20], 0x4973644c
mov dword [ebp - 0x1c], 0x736e4973
mov dword [ebp - 0x18], 0x6c6c6174
mov byte [ebp - 0x14], 0
call esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x30]
push eax
push dword [edi]
mov dword [ebp - 0x30], 0x5373644c
mov dword [ebp - 0x2c], 0x65527465
mov dword [ebp - 0x28], 0x79654b67
mov byte [ebp - 0x24], 0
call esi
cmp dword [edi + 4], 0
mov dword [edi + 0x10], eax
je 0x456416
cmp dword [edi + 8], 0
je 0x456416
cmp dword [edi + 0xc], 0
je 0x456416
test eax, eax
je 0x456416
mov esi, 1
jmp 0x456418
xor esi, esi
mov edx, dword [ebp - 0x34]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456439
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x456458
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.004864b8
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00409360
int3
Function at 0x4567a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b9d0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5746cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
or edi, 0xffffffff
mov dword [esi], vtable.CPluginTask.0
cmp dword [esi + 4], 0
je 0x45680a
mov dword [esi + 4], 0
mov ebx, dword [esi + 8]
mov dword [esi + 8], 0
test ebx, ebx
je 0x45680a
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x45680a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x45680a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456820
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 0x54]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45683a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x50]
cmp ecx, 0x10
jb 0x45686e
mov eax, dword [esi + 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x456864
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456965
mov eax, edx
push ecx
push eax
call fcn.004864f3
add esp, 8
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0xf
mov byte [esi + 0x3c], 0
mov ecx, dword [esi + 0x38]
cmp ecx, 0x10
jb 0x4568b4
mov eax, dword [esi + 0x24]
inc ecx
cmp ecx, 0x1000
jb 0x4568aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456965
mov eax, edx
push ecx
push eax
call fcn.004864f3
add esp, 8
mov dword [esi + 0x34], 0
mov eax, edi
mov dword [esi + 0x38], 0xf
mov byte [esi + 0x24], 0
mov edx, dword [esi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4568e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x14]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4568fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x10]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456914
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0xc]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45692e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esi + 8]
test esi, esi
je 0x456953
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x456953
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x456953
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004be5e3
int3
Function at 0x4581e0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5746cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], 0x104
test edi, edi
je 0x4582a4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4582a4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4582a4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4582a4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x45829d
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004864b8
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004864b8
mov esp, ebp
pop ebp
ret 4
Function at 0x4586f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x5746cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x438], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x428], edi
test eax, eax
jne 0x45872b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004864b8
mov esp, ebp
pop ebp
ret 0x14
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x42c]
push ecx
push ebx
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x42c], ebx
push ecx
push ebx
push ebx
push 4
push dword [ebp + 0xc]
mov dword [ebp - 0x418], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x458902
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 2
je 0x458771
cmp esi, 1
jne 0x458810
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x458810
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x424], ebx
push ecx
lea ecx, [ebp - 0x424]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x458810
mov esi, dword [ebp - 0x424]
sub esi, 1
js 0x45880d
mov ebx, dword [ebp - 0x428]
mov edi, esi
shl edi, 5
nop word [eax + eax]
mov eax, dword [ebp - 0x430]
cmp dword [edi + eax + 4], 3
jne 0x4587fd
test ebx, ebx
je 0x4587f0
cmp dword [edi + eax + 0x14], 0
jne 0x4587fd
add eax, 0xc
push ebx
add eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetTrusteeNameW]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4587fd
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
sub edi, 0x20
sub esi, 1
jns 0x4587c0
mov edi, dword [ebp - 0x428]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
push 0x208
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x458], xmm0
movups xmmword [ebp - 0x448], xmm0
call fcn.004a3360
add esp, 0xc
mov dword [ebp - 0x434], 0x104
test edi, edi
je 0x458885
lea eax, [ebp - 0x430]
mov dword [ebp - 0x420], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push 3
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x458]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x4588f4
push 0
push dword [ebp - 0x41c]
push 0
push 0
push 4
push dword [ebp + 0xc]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 0x41c]
inc ebx
test eax, eax
je 0x4588f4
push eax
call esi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x458901
push eax
call esi
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.004864b8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x458920
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5746cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push str.halowp_0961EB1E_4441_4BEB_BC69_7F2F0124241B
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
test edi, edi
je 0x45895b
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
push str.enter_KillProcessesInInstallPath_szTargetDir_s
call fcn.00443b30
mov eax, dword [esi]
add esp, 8
mov eax, dword [eax - 0xc]
test eax, eax
je 0x458a2b
cmp eax, 4
jle 0x458a2b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x210], eax
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.halowp.exe
push dword [esi]
push eax
call edi
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0043fd20
add esp, 8
test eax, eax
jne 0x458a00
push str.web_helper.exe
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0043fd20
add esp, 8
test eax, eax
je 0x458a0f
call ebx
sub eax, dword [ebp - 0x210]
cmp eax, 0x7530
jbe 0x4589a0
push 0
push dword [esi]
call fcn.0043fec0
call fcn.0040ca00
push str.end_KillProcessesInInstallPath
call fcn.00443b30
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004864b8
mov esp, ebp
pop ebp
ret
Function at 0x45a2a0
Capabilities:
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00486920
mov eax, dword [0x5746cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x52b694
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1004]
push eax
call fcn.0040e260
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004a3360
add esp, 0x10
lea eax, [ebp - 0x1004]
push 1
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x52b694
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
call fcn.0040e260
add esp, 4
mov ecx, ebx
call fcn.0045a730
mov ecx, ebx
call fcn.00459f60
test eax, eax
je 0x45a3b9
cmp dword [ebx + 0x10], 0
je 0x45a3a4
mov ecx, ebx
call fcn.0045a990
push str.Switch
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathshalowp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004864b8
mov esp, ebp
pop ebp
ret
Function at 0x45a730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00486920
mov eax, dword [0x5746cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004a3360
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x535568
push eax
lea eax, [ebp - 0x1804]
push eax
call edi
lea eax, [ebp - 0x1804]
push eax
call fcn.0040e1f0
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004a3360
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x535568
push eax
lea eax, [ebp - 0x2004]
push eax
call edi
lea eax, [ebp - 0x2004]
push eax
call fcn.0040e1f0
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004a3360
add esp, 0x10
lea eax, [ebp - 0x1004]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x535568
push eax
lea eax, [ebp - 0x2804]
push eax
call edi
lea eax, [ebp - 0x2804]
push eax
call fcn.0040e1f0
push 0x800
lea eax, [ebp - 0x3004]
push 0
push eax
call fcn.004a3360
add esp, 0x10
lea eax, [ebp - 0x1004]
push 0x535568
push eax
lea eax, [ebp - 0x3004]
push eax
call edi
lea eax, [ebp - 0x3004]
push eax
call fcn.0040e1f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.004864b8
mov esp, ebp
pop ebp
ret
Function at 0x45eae0
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x55b2b8
push 0x4a4e00
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x5746cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x45ec5a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ec5a
push 0x118
push 0
lea eax, [ebp - 0x544]
push eax
call fcn.004a3360
add esp, 0xc
mov dword [ebp - 0x548], 0x11c
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x544], 6
jae 0x45eb73
mov eax, 1
jmp 0x45ec5c
mov dword [ebp - 0x58c], 0x10
mov dword [ebp - 0x588], esi
mov dword [ebp - 0x584], 0
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x42c], 0xaac56b
mov dword [ebp - 0x428], 0x11d0cd44
mov dword [ebp - 0x424], 0xc000c28c
mov dword [ebp - 0x420], 0xee95c24f
xor eax, eax
mov dword [ebp - 0x57c], 0x30
mov dword [ebp - 0x578], eax
mov dword [ebp - 0x574], eax
mov dword [ebp - 0x570], 2
mov dword [ebp - 0x56c], eax
mov dword [ebp - 0x568], 1
mov dword [ebp - 0x560], 1
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x558], eax
or eax, 0x1080
mov dword [ebp - 0x554], eax
mov dword [ebp - 0x550], 0
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x564], eax
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
je 0x45ec78
cmp eax, 0x800b0101
je 0x45ec78
cmp eax, 0x800b0109
je 0x45ec78
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004864b8
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x55c]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test eax, eax
je 0x45ed0f
cmp dword [eax + 0x40], 0
jbe 0x45ed0f
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45ed0f
mov eax, dword [eax + 0x28]
test eax, eax
je 0x45ed0f
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45ed0f
cmp dword [eax + 0xc], 0
jbe 0x45ed0f
mov eax, dword [ecx]
test eax, eax
je 0x45ed0f
cmp dword [eax + 0xc], 0
jbe 0x45ed0f
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45ed0f
mov eax, dword [eax]
test eax, eax
je 0x45ed0f
mov esi, dword [eax + 4]
test esi, esi
je 0x45ed0f
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.004a3360
add esp, 0xc
push 0x200
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 4
push esi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
dec eax
mov ecx, 1
cmp eax, 0x1fe
cmovbe edi, ecx
mov dword [ebp - 0x54c], edi
mov esi, dword [ebp - 0x55c]
push 0x30
push 0
lea eax, [ebp - 0x57c]
push eax
call fcn.004a3360
add esp, 0xc
mov dword [ebp - 0x57c], 0x30
mov dword [ebp - 0x55c], esi
mov dword [ebp - 0x560], 2
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
jmp 0x45ec5c
Function at 0x460790
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5746cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x254], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4607e1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004864b8
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x25c]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x25c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x25c]
or eax, dword [ebp - 0x258]
je 0x4608e3
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x24c]
push 0
push eax
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x24c], 0
push eax
push esi
call ebx
test eax, eax
je 0x4608e3
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x4608e3
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x250]
push 0
push eax
push dword [ebp - 8]
mov dword [ebp - 0x250], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x4608e3
push 0
lea eax, [ebp - 0x24c]
push eax
push 0xf8
lea eax, [ebp - 0x13c]
push eax
push esi
call ebx
test eax, eax
je 0x4608e3
mov eax, 0x8664
cmp word [ebp - 0x138], ax
jne 0x4608fd
push 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push eax
push dword [ebp - 8]
push esi
call edi
cmp eax, 0xffffffff
je 0x4608e3
push 0
lea eax, [ebp - 0x24c]
push eax
push 0x108
lea eax, [ebp - 0x244]
push eax
push esi
call ebx
test eax, eax
je 0x4608e3
mov eax, dword [ebp - 0x19c]
test eax, eax
je 0x4608e3
mov edi, dword [ebp - 0x198]
test edi, edi
jne 0x460911
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004864b8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4608e3
mov edi, dword [ebp - 0xa0]
test edi, edi
je 0x4608e3
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x25c]
ja 0x4608e3
cmp ecx, eax
jb 0x4608e3
push 0
lea ecx, [ebp - 0x250]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4608e3
lea eax, [ebp - 0x245]
mov byte [ebp - 0x245], 0
push eax
mov eax, dword [ebp - 0x254]
mov ecx, eax
push eax
push edi
call fcn.0045f320
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
push 0
push eax
push edi
push dword [ecx]
push esi
call ebx
test eax, eax
je 0x4608e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004864b8
mov esp, ebp
pop ebp
ret