joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d4c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, eax
mov dword [0x4c2eb4], ecx
test ecx, ecx
je 0x43d513
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43d50d
push dword [0x4c2eb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
xor eax, eax
test ecx, ecx
mov dword [0x4c2eb4], ecx
sete al
pop ebp
ret
mov ecx, dword [0x4c2eb4]
xor eax, eax
test ecx, ecx
sete al
pop ebp
ret
Function at 0x43db60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push eax
push 0
lea eax, [ebp + 0x14]
mov dword [esi], 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [edi], 0
push dword [ebp + 8]
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x10]
mov dword [edi], ecx
test eax, eax
jne 0x43dbd3
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x43dbd3
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43dbd3
pop edi
mov eax, 1
pop esi
pop ebp
ret
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi], 0
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4433e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
test esi, esi
je 0x443411
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 4
Function at 0x44fe90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
add eax, 3
mov dword [ebp - 4], ecx
cdq
and edx, 3
mov dword [ebp + 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
lea ecx, [edx + eax]
mov eax, dword [ebp + 8]
push edi
and ecx, 0xfffffffc
mov dword [ebp - 8], ecx
mov ebx, dword [eax + 4]
sub esi, ebx
mov edi, dword [eax]
dec esi
mov eax, edi
imul esi, ecx
imul eax, dword [ebp + 0x14]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add esi, eax
mov eax, dword [ebp - 4]
add esi, dword [eax + 0x154]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
sub eax, edi
imul eax, dword [ebp + 0x14]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
sub ecx, ebx
test ecx, ecx
jle 0x44ff56
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push 0
push esi
push dword [eax + 0x150]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [ebp - 4]
push dword [eax + 0x150]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x1c
cmp eax, ebx
jne 0x44ff64
mov edx, dword [ebp + 8]
add edi, ebx
mov ecx, dword [ebp + 0x10]
sub esi, dword [ebp - 8]
inc ecx
mov dword [ebp + 0x10], ecx
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
cmp ecx, eax
jl 0x44ff11
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x46aa70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c0e0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 1
add eax, esi
je 0x46ab28
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
push eax
push esi
mov byte [eax], 0
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsdec]
add esp, 8
lea eax, [ebp - 0x110]
push eax
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46ab22
push 0x105
lea eax, [ebp - 0x10c]
xor edi, edi
push eax
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x110]
test eax, eax
mov eax, 1
cmove edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x46ab22
push esi
push SysReAllocString
call ebx
push 0x5c
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x46aab0
mov edi, 1
pop ebx
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
call fcn.0047ff18
mov esp, ebp
pop ebp
ret 4

Function at 0x46ab50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
push esi
jne 0x46ab83
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
neg eax
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x46abd3
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
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 eax, eax
jne 0x46abd3
test esi, esi
jne 0x46abd3
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46add0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ccec
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_APtrList::constructor_void_]
push 0
mov byte [ebp - 4], 1
call fcn.00477270
add esp, 4
lea ecx, [ebp - 0x14]
mov esi, eax
push str.Icon_Filenames
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov edx, dword [esi]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
mov dword [ebp - 0x18], 1
call dword [edx + 0x14]
test eax, eax
je 0x46ae5e
cmp dword [ebp - 0x28], 0
jle 0x46ae5e
mov bl, 1
jmp 0x46ae60
xor bl, bl
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x10]
test bl, bl
je 0x46aed5
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
push str.AppData
mov esi, dword [eax + 8]
call edi
push str.AppIcons
lea ecx, [ebp - 0x10]
call edi
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AString_const__]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46aeff
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetApplDir_void_]
push str.AppData
lea ecx, [ebp - 0x10]
call edi
push str.AppIcons
lea ecx, [ebp - 0x10]
call edi
push str.DefaultPM.ico
lea ecx, [ebp - 0x10]
call edi
jmp 0x46aeff
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetApplDir_void_]
mov esi, dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
lea ecx, [ebp - 0x10]
push str.AppData
call esi
push str.AppIcons
lea ecx, [ebp - 0x10]
call esi
push str.DefaultPM.ico
lea ecx, [ebp - 0x10]
call esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
lea ecx, [ebp - 0x34]
call dword [sym.imp.FSUTIL.dll_public_virtual:_void___thiscall_APtrList::destructor_void_]
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4760d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d828
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea edi, [esi + 4]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push edi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ASecurityMS.0
mov dword [edi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call ebx
test eax, eax
jne 0x47617f
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.ScanvecAmiable_Dummy
push edi
call ebx
test eax, eax
jne 0x47617f
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.ScanvecAmiable_Dummy
push edi
call ebx
test eax, eax
je 0x47618d
mov ecx, esi
call fcn.00476ba0
mov ecx, esi
call fcn.00476ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476350
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d860
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 8], 0
je 0x476397
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
call fcn.00476ff0
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x10]
push 0x28
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.SA686A8B88_0784_4b2e_8B19_54DFC016617B
push eax
mov dword [ebp - 4], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x476429
call esi
cmp eax, 0x8009000f
jne 0x4763ed
push 0x20
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.SA686A8B88_0784_4b2e_8B19_54DFC016617B
lea eax, [ebp - 0x10]
push eax
call ebx
test eax, eax
jne 0x4763f4
call esi
xor esi, esi
jmp 0x47648f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x476429
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea ecx, [ebp - 0x10]
call fcn.00477090
mov dword [edi + 8], eax
mov esi, 1
jmp 0x47648f
lea ecx, [ebp - 0x18]
call fcn.00476ff0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0
push 0
push 0x254
push 0x4c0b48
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x47646e
call esi
push 0x30
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.SA686A8B88_0784_4b2e_8B19_54DFC016617B
lea eax, [ebp - 0x10]
push eax
call ebx
xor esi, esi
jmp 0x476487
lea ecx, [ebp - 0x10]
call fcn.00477090
push eax
mov dword [edi + 8], eax
call fcn.00476290
add esp, 4
mov esi, 1
lea ecx, [ebp - 0x18]
call fcn.00477010
lea ecx, [ebp - 0x10]
call fcn.00477020
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4764b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x476535
cmp dword [edi + 4], 0
je 0x476524
cmp dword [edi + 0xc], 0
je 0x476524
mov dword [esi], eax
inc eax
push eax
call sub.mfc140.dll_Ordinal_265
push dword [ebp + 8]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
push esi
push dword [esi + 4]
push 0
push 1
push 0
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x47652c
push dword [esi + 4]
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x476540
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d888
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00476ff0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x8004
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4765d8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00477030
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4765d8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push dword [ebp - 0x10]
push 0x6601
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4765d8
mov esi, dword [ebp - 0x14]
jmp 0x4765da
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.00477000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x476600
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
jne 0x476629
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
cmp dword [edi + 4], 0
je 0x47669c
cmp dword [edi + 0xc], 0
je 0x47669c
push 0
push esi
push 0
push 0
push 1
push 0
mov dword [esi], eax
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x476696
push dword [esi]
call sub.mfc140.dll_Ordinal_265
push dword [ebp + 8]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
lea eax, [ebp + 8]
push dword [esi]
push eax
push dword [esi + 4]
push 0
push 1
push 0
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x47661e
push dword [esi + 4]
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x476ba0
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d958
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c0e0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.00476ff0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x8004
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x476c4e
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00477030
push 0
push 0x14
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xb9a04334
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 0x9bf7c103
mov dword [ebp - 0x1c], 0x23cc6433
mov dword [ebp - 0x18], 0x268b0111
mov dword [ebp - 0x14], 0x2922dd9b
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x476c4e
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp - 0x28]
push 0x6601
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
lea ecx, [ebp - 0x28]
call fcn.00477000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ff18
mov esp, ebp
pop ebp
ret
Function at 0x476db0
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d9c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.00476ff0
push 0x20
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push dword [ebp + 0x14]
lea eax, [ebp + 0x14]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x476e06
xor esi, esi
jmp 0x476eae
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.00477070
lea ecx, [ebp - 0x10]
call fcn.00476ff0
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 1
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x14]
mov dword [ebp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x476ea4
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.00477030
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x476ea4
mov esi, dword [ebp + 0x10]
push esi
push 0
push 0
push 0
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x476ea4
push dword [esi]
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov dword [esi + 4], eax
push esi
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x476eca
push dword [esi + 4]
call sub.mfc140.dll_Ordinal_266
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.00477000
lea ecx, [ebp - 0x14]
call fcn.00477020
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
jmp 0x476ea6
Function at 0x476ee0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, ecx
test edi, edi
je 0x476ef4
mov dword [edi], 1
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
push eax
push 0
push 0
push 0x8004
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x476f88
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x476f7f
mov eax, dword [ebp + 0x18]
cmp eax, 3
ja case.default.0x476f32
jmp dword [eax*4 + 0x476fa4]
mov eax, dword [esi + 0x10]
jmp 0x476f50
mov eax, dword [esi + 0x14]
jmp 0x476f50
mov eax, dword [esi + 0x18]
jmp 0x476f50
mov eax, dword [esi + 0x1c]
jmp 0x476f50
mov eax, dword [ebp + 0x1c]
push 0
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x476f90
test edi, edi
je 0x476f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090006
jne 0x476f7f
mov dword [edi], 0
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x18

Function at 0x4771c0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov edi, dword [ebx]
add edi, 0xf
and edi, 0xfffffff8
push edi
call sub.mfc140.dll_Ordinal_265
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
push dword [ebx]
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
push ebx
push esi
push 0
push 1
push 0
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x477630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dae8
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4c0e0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push 0x10e
push eax
push 0
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
push 0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator___int_]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::getFileName_class_AString__const]
push str.FSUtil.dll
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
push str.Program
lea ecx, [ebp - 0x128]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::Find_char_const__const]
test eax, eax
jne 0x477723
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::exists_void_const]
test eax, eax
je 0x477723
push 0
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator___int_]
lea eax, [ebp - 0x120]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
mov byte [eax], 0
jmp 0x477735
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
lea ecx, [ebp - 0x128]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ff18
mov esp, ebp
pop ebp
ret

Function at 0x477790
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00477540
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x4c]
cmp eax, 0x100000
jne 0x4777b4
mov dword [esi + 0x2c], 0
mov eax, dword [0x4c4aa4]
test eax, eax
je 0x4777fe
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
push eax
call fcn.0047db50
mov esi, eax
add esp, 4
test esi, esi
je 0x4777f9
lea eax, [ebp - 4]
push eax
call fcn.00477960
add esp, 4
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, dword [0x4c4aa4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret