joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421589
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x4215b5
mov dword [edi], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x421692
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4215fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x421692
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x421692
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x421692
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x421692
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x421692
lea ecx, [esi + 4]
mov dword [ebp - 0x20], ecx
push dword [ecx]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x42167c
mov ecx, dword [ebp - 0x20]
inc eax
add ecx, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp eax, dword [esi]
jb 0x421657
jmp 0x421692
test byte [esi + eax*8 + 8], 4
je 0x421688
xor ebx, ebx
inc ebx
jmp 0x421692
test edi, edi
je 0x421692
mov dword [edi], 1
cmp dword [ebp - 0x10], 0
je 0x4216a1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x4216ac
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x4216bb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret 4
Function at 0x422318
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 6
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
push ebx
mov ebx, edx
push esi
mov esi, edx
push edi
test eax, eax
je 0x4223f8
xor ecx, ecx
cmp cx, word [eax]
je 0x4223f8
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push 3
call fcn.00404e73
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4224ee
mov edi, dword [ebp - 8]
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x4223c3
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x4223a5
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.0043d3e0
mov ebx, esp
test ebx, ebx
je 0x4223c9
mov dword [ebx], 0xcccc
jmp 0x4223be
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00443bd6
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4223c9
mov dword [ebx], 0xdddd
add ebx, 8
jmp 0x4223c5
xor ebx, ebx
test ebx, ebx
jne 0x4223d1
push 0xe
pop edi
jmp 0x4224ee
push edi
push 0
push ebx
call fcn.0043f630
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push 3
call fcn.00404e73
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x4224d8
xor edx, edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4224a6
xor ecx, ecx
cmp cx, word [eax]
je 0x4224a6
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push 3
call fcn.00404e73
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4224d8
mov edi, dword [ebp - 0xc]
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x42247a
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x42245c
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.0043d3e0
mov esi, esp
test esi, esi
je 0x422480
mov dword [esi], 0xcccc
jmp 0x422475
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00443bd6
mov esi, eax
pop ecx
test esi, esi
je 0x422480
mov dword [esi], 0xdddd
add esi, 8
jmp 0x42247c
xor esi, esi
test esi, esi
jne 0x422485
push 0xe
pop edi
jmp 0x4224d8
push edi
push 0
push esi
call fcn.0043f630
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push 3
call fcn.00404e73
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x4224d8
lea ecx, [ebp - 0x14]
call fcn.00404e54
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4224d8
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test ebx, ebx
je 0x4224e3
push ebx
call fcn.00408ccb
pop ecx
test esi, esi
je 0x4224ee
push esi
call fcn.00408ccb
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00404e54
mov eax, edi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x423063
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acd63
mov eax, dword fs:[0]
push eax
mov eax, 0x1264
call fcn.0043d890
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043f630
add esp, 0xc
lea ecx, [ebp - 0x1264]
push str.http:__
call fcn.00408f27
and dword [ebp - 4], 0
xor eax, eax
inc eax
mov dword [ebp - 0x126c], 0x1048
push eax
mov dword [ebp - 0x1270], eax
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x1270]
push eax
push str.DownloadDomain
push str.SOFTWAREMcAfeeUPDMGR
push 0x80000002
call fcn.00409d65
add esp, 0x1c
mov dword [ebp - 0x1268], eax
mov ebx, str.CSelfUpdate::UpdateCertificate
test eax, eax
je 0x42314f
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x42313d
lea eax, [ebp - 0x1268]
push eax
push str.Failed_to_get_download_domain__will_use_default._hr__0x_08x
push 0x530
push ebx
push str.SelfUpdate.cpp
push 4
call fcn.00402fc0
add esp, 0x18
push str.download.mcafee.com
lea ecx, [ebp - 0x1264]
call fcn.00413c0f
jmp 0x42316c
lea eax, [ebp - 0x1260]
push eax
lea ecx, [ebp - 0x1264]
call fcn.00413c0f
lea ecx, [ebp - 0x1264]
call fcn.004222f0
push str._molbin_shared_mccore_cert_trusted.js
lea ecx, [ebp - 0x1264]
call fcn.00413c0f
push dword [esi + 0xc]
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00443be1
push str._trusted.js
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0044ae7c
add esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push dword [ebp - 0x1264]
call fcn.00421d0e
push 3
mov esi, eax
pop edi
push edi
mov dword [ebp - 0x1268], esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4231f6
lea eax, [ebp - 0x1268]
push eax
push str.Download_trusted_data:_error___d
push 0x53e
push ebx
push str.SelfUpdate.cpp
push edi
call fcn.00402fc0
mov esi, dword [ebp - 0x1268]
add esp, 0x18
test esi, esi
jne 0x42325d
lea eax, [ebp - 0x218]
push eax
call fcn.00432371
test eax, eax
push edi
setne bl
call fcn.0042c3e0
pop ecx
pop ecx
test eax, eax
je 0x423250
mov ecx, str.failed
test bl, bl
mov eax, str.succeeded
cmove eax, ecx
mov dword [ebp - 0x1268], eax
lea eax, [ebp - 0x1268]
push eax
push str.Update_trusted_data__s
push 0x543
push str.CSelfUpdate::UpdateCertificate
push str.SelfUpdate.cpp
push edi
call fcn.00402fc0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x1264]
lea ecx, [ecx - 0x10]
call fcn.0040a044
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.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x423287
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x414]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x410
xor edi, edi
mov dword [ebp - 0x418], ecx
push edi
push eax
call fcn.0043f630
push dword [esi]
lea eax, [ebp - 0x414]
push dword [ebx]
push str.__s___s
push 0x410
push eax
call fcn.00422d5d
add esp, 0x20
test eax, eax
jne 0x423457
push 0x44
pop esi
push esi
lea eax, [ebp - 0x470]
push edi
push eax
call fcn.0043f630
push 0x10
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.0043f630
add esp, 0x18
mov dword [ebp - 0x470], esi
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x468], str.winsta0default
push eax
lea eax, [ebp - 0x470]
push eax
mov eax, dword [ebp - 0x418]
push dword [eax + 0xc]
lea eax, [ebp - 0x414]
push edi
push 0x20
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x423390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 4
mov dword [ebp - 0x418], esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x423389
lea eax, [ebp - 0x418]
push eax
push str.CreateProcess_failed:_d
push 0x428
push str.CSelfUpdate::_CreateProcessAndWait
push str.SelfUpdate.cpp
push 4
call fcn.00402fc0
mov esi, dword [ebp - 0x418]
add esp, 0x18
mov eax, esi
jmp 0x423457
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x428], edi
je 0x4233a6
push dword [ebp - 0x428]
call esi
cmp dword [ebp - 0x42c], edi
je 0x423455
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4233eb
mov eax, dword [ebx]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
push str.Waiting_for_process:_s_to_exit...
push 0x433
push str.CSelfUpdate::_CreateProcessAndWait
push str.SelfUpdate.cpp
push 3
call fcn.00402fc0
add esp, 0x18
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x42c]
push 1
push eax
call fcn.0042346a
mov edi, eax
push 3
mov dword [ebp - 0x418], edi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x42344d
mov eax, dword [ebx]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
push str.Process:_s_exit_with_error_code:_d
push 0x436
push str.CSelfUpdate::_CreateProcessAndWait
push str.SelfUpdate.cpp
push 3
call fcn.00402c40
mov edi, dword [ebp - 0x418]
add esp, 0x1c
push dword [ebp - 0x42c]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret 8
Function at 0x42563a
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x4ad075
call fcn.0043d027
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.004041d0
push eax
lea ecx, [ebp - 0x18]
call fcn.00408efe
push str.updmgr.inf
push dword [esi + 0xc]
lea eax, [ebp - 0x18]
xor ebx, ebx
push 0x4b4958
push eax
mov dword [ebp - 4], ebx
call fcn.004092d4
mov esi, dword [ebp - 0x18]
add esp, 0x10
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4256d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov dword [ebp - 0x1c], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4257e0
lea eax, [ebp - 0x1c]
push eax
push str.Create_File_returned_error__ld
push 0x31e
push str.CSelfUpdate::prepareInstall
push str.SelfUpdate.cpp
push 4
call fcn.00402fc0
add esp, 0x18
jmp 0x4257e0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push 2
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0xfeff
push ecx
push eax
call edi
push 0x400
push str._Installer_Config__r_nAppID_UPDMGR_r_nShared_0_r_n_Install_NT__r_nCabFilesNT_ExtractCAB_r_nInstallFiles_RunINF_r_n_Version__r_nSignature__Chicago__r_nAdvancedINF_2.5_r_nLayoutFile_updmgr.inf_r_n_SourceDisksNames__r_n1__UpdateManager_Background_Update_Master_File_____1_r_n
call fcn.00443d87
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x10]
add eax, eax
push ecx
push eax
push str._Installer_Config__r_nAppID_UPDMGR_r_nShared_0_r_n_Install_NT__r_nCabFilesNT_ExtractCAB_r_nInstallFiles_RunINF_r_n_Version__r_nSignature__Chicago__r_nAdvancedINF_2.5_r_nLayoutFile_updmgr.inf_r_n_SourceDisksNames__r_n1__UpdateManager_Background_Update_Master_File_____1_r_n
push dword [ebp - 0x14]
call edi
push 0x104
push str._CabFilesNT__r_n
call fcn.00443d87
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x10]
add eax, eax
push ecx
push eax
push str._CabFilesNT__r_n
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
add ecx, 0x14
push ebx
push edx
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
call fcn.00421ff4
push eax
push dword [ebp - 0x14]
call edi
push 0x104
push str._InstallFiles__r_n
call fcn.00443d87
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x10]
add eax, eax
push ecx
push eax
push str._InstallFiles__r_n
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
add ecx, 0x18
push ebx
push edx
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
mov dword [ebp - 0x1c], eax
call fcn.00421ff4
mov ebx, dword [ebp - 0x14]
push eax
push ebx
call edi
mov edi, eax
test edi, edi
je 0x4257aa
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], ecx
je 0x4257d4
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4257d4
push str.WriteFile_error._Wrote_less_bytes_than_expected
push 0x33a
push str.CSelfUpdate::prepareInstall
push str.SelfUpdate.cpp
push 4
call fcn.00402c10
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne bl
lea ecx, [esi - 0x10]
call fcn.0040a044
mov al, bl
call fcn.0043cff0
ret
Function at 0x4283c9
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4ad42c
call fcn.0043d027
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00428a45
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0xc], bl
je 0x42851d
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push 0xf003f
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4284f1
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4284f1
cmp dword [ebp - 0x14], 1
jne 0x428475
push 7
pop ecx
lea edi, [ebp - 0x3c]
mov word [ebp - 0x1c], 0x500
rep stosd dword es:[edi], eax
push ebx
push 0x10000000
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], ebx
push eax
push 2
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x40], 0x20
mov eax, ebx
mov dword [ebp - 0x3c], 0x221
push edx
mov dword [ecx], eax
mov ax, word [ebp - 0x1c]
mov word [ecx + 4], ax
call fcn.0042764a
mov edx, dword [ebp + 0xc]
add esp, 0x1c
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push ebx
push str.IsRestartPending
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4284d1
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4284c6
lea eax, [ebp + 8]
push eax
push str.Failed_to_write_restart_pending_flag_to_the_registry___error__d
push 0x327
push str.UpdateSetting::SetRestartPending
push str.UpdateSetting.cpp
push 4
call fcn.00402fc0
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4284dc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a044
mov al, bl
call fcn.0043cff0
ret 8
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4284dc
push str.Failed_to_create_MISP_volatile_root_key
push 0x30c
push str.UpdateSetting::SetRestartPending
push str.UpdateSetting.cpp
push 4
call fcn.00402c10
add esp, 0x14
jmp 0x4284dc
push str.IsRestartPending
push dword [ebp - 0x10]
push 0x80000002
call fcn.00422318
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x4284da
push 2
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4284dc
lea eax, [ebp + 8]
push eax
push str.Failed_to_delete_restart_pending_flag_from_the_registry___error__d
push 0x337
push str.UpdateSetting::SetRestartPending
push str.UpdateSetting.cpp
push 2
call fcn.00402fc0
add esp, 0x18
jmp 0x4284dc
Function at 0x42892f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x118], edx
mov eax, dword [edi + 0x60]
test eax, eax
je 0x428982
cmp dword [edi + 8], ebx
je 0x428982
push ebx
push edx
push ebx
push ebx
push 4
push 4
push ecx
call eax
mov ecx, dword [ebp - 0x110]
jmp 0x428984
mov eax, ebx
test eax, eax
jne 0x428a33
push esi
xor eax, eax
mov dword [ebp - 0x114], 0x104
push eax
push eax
push eax
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x428a15
and dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x428a1d
push dword [ebp - 0x118]
mov ecx, edi
push dword [ebp - 0x11c]
push dword [ebp + 0xc]
push dword [ebp - 0x10c]
call fcn.0042892f
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x428a1d
cmp esi, 0x103
je 0x428a30
mov ecx, dword [ebp - 0x110]
inc ebx
test esi, esi
je 0x42898d
mov eax, esi
jmp 0x428a32
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42b3b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad838
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ef340]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x42b3f8
xor eax, eax
jmp 0x42b486
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x4c6840
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x42b426
xor edi, edi
jmp 0x42b479
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x4b4958
push eax
call fcn.0042a8a0
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 8
jb 0x42b465
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00403e40
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test esi, esi
je 0x42b484
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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 - 0x10]
xor ecx, ebp
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x42d380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42d393
lea eax, [edi + 0x57]
pop edi
pop ebp
ret 8
push esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0x8000
push 0x4c6800
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp + 8]
test eax, eax
jns 0x42d3cd
test esi, esi
je 0x42d3c2
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
mov eax, 0x57
pop edi
pop ebp
ret 8
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0044b572
add esp, 0x10
mov edi, eax
test esi, esi
je 0x42d3e9
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
mov eax, edi
pop edi
pop ebp
ret 8

Function at 0x42dab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x42dacd
xor ecx, ecx
cmp cx, word [eax]
je 0x42dacd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42dacd
mov al, 1
ret
xor al, al
ret

Function at 0x42dd20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x42dd3d
xor ecx, ecx
cmp cx, word [eax]
je 0x42dd3d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42dd3d
mov al, 1
ret
xor al, al
ret

Function at 0x42ded0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x42df9f
xor eax, eax
cmp ax, word [ebx]
je 0x42df9f
lea eax, [edi + 0x20]
push eax
push 0
call fcn.0042c580
add esp, 8
test al, al
je 0x42df0a
pop edi
mov eax, 0xb7
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push 0
push 0xa0
push esi
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x42df3c
cmp ecx, 0xffffffff
je 0x42df3c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
jne 0x42df58
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov dword [edi + 0x24], 0
pop edi
pop ebx
pop ebp
ret 8
cmp esi, 3
jne 0x42df73
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 8
cmp esi, 2
je 0x42df7d
cmp esi, 1
jne 0x42df96
push 0
lea ecx, [ebp + 0xc]
mov word [ebp + 8], 0xfeff
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 8
pop edi
mov eax, 0x57
pop ebx
pop ebp
ret 8
Function at 0x42ebd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x42ebfc
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x50]
mov ecx, esi
mov ebx, 0x57
call eax
test al, al
je 0x42ecad
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42ecad
xor ecx, ecx
cmp cx, word [eax]
je 0x42ecad
mov ecx, esi
call fcn.0042dfb0
mov ebx, eax
test ebx, ebx
je 0x42ec3b
cmp ebx, 0xb7
jne 0x42ecad
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042cd30
mov edi, dword [ebp - 4]
mov ebx, eax
test ebx, ebx
jne 0x42ecad
test edi, edi
jne 0x42ec6b
lea ebx, [eax + 0xe]
jmp 0x42ecad
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ec70
sub ecx, edx
lea eax, [ebp - 0x10]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
mov esi, eax
push edi
call fcn.0042e3c0
test esi, esi
jne 0x42ecaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, dword [ebp - 8]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x24], 0
test eax, eax
je 0x42ecc7
cmp eax, 0xffffffff
je 0x42ecc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42ecd4
push edi
call fcn.00443bd1
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x42ece2
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14