joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fced0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4fcee0
mov eax, dword [edi]
jmp 0x4fcee2
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fcf2f
cmp dword [edi + 0x14], 8
jb 0x4fcef5
mov edi, dword [edi]
push edi
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.005031f0
add esp, 0x10
push str.Source_file_does_not_exist_in_utilCopySrcFileToDstFile
push str.Utilities
call fcn.00502600
push eax
call fcn.00503430
add esp, 0xc
xor al, al
pop edi
pop esi
ret
mov dl, 1
mov ecx, esi
call fcn.004fc7b0
test al, al
je 0x4fcf2a
cmp dword [esi + 0x14], 8
jb 0x4fcf46
mov eax, dword [esi]
jmp 0x4fcf48
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4fcf50
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
test al, al
jne 0x4fcf90
cmp dword [esi + 0x14], 8
jb 0x4fcf6b
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.Utilities
call fcn.00502600
push eax
call fcn.00503430
add esp, 0x14
xor al, al
pop edi
pop esi
ret
mov ecx, esi
call fcn.004fccb0
cmp dword [esi + 0x14], 8
jb 0x4fcf9f
mov esi, dword [esi]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov al, 1
pop esi
ret
Function at 0x4fcfb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be440
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004fc560
test al, al
jne 0x4fd030
push str.Failed_to_convert_path_to_wide_char
push str.Utilities
call fcn.00502600
push eax
call fcn.00503310
add esp, 0xc
xor bl, bl
jmp 0x4fd10b
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004fc560
test al, al
je 0x4fd011
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
test eax, eax
je 0x4fd081
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.004fc7b0
test al, al
jne 0x4fd081
push str.Failed_to_remove_remains_of_the_installation
push str.Utilities
call fcn.00502600
push eax
call fcn.00503430
add esp, 0xc
xor bl, bl
jmp 0x4fd10b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push str.Backup_File__ls_Source_File_:_ls
push str.Utilities
call fcn.00502600
push eax
call fcn.00503310
add esp, 0x14
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005a8669
add esp, 8
test eax, eax
je 0x4fd0f1
push str.Failed_to_Restore_the_Backup_File
push str.Utilities
call fcn.00502600
push eax
call fcn.005034c0
add esp, 0xc
xor bl, bl
jmp 0x4fd10b
push str.Backup_Folder_is_restored_to_original_File
push str.Utilities
call fcn.00502600
push eax
call fcn.00503310
add esp, 0xc
mov bl, 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fd120
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4fd149
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00409510
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x4fe2e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbac8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x64a070]
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
cmp dword [esi], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x4fe33a
push str.OPM_db_is_not_initialized_in_opd_getOpdSchemaVersion
push 0x613904
call fcn.00502600
push eax
call fcn.005033a0
add esp, 0xc
mov eax, 1
jmp 0x4fe3bc
push 0x35
push str.SELECT_value_FROM_opm_meta_WHERE_keyschema_version
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408bb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x28]
push edi
call fcn.004fda30
mov edi, eax
add esp, 4
test edi, edi
jne 0x4fe3a5
push 0x43
push str.SELECT_value_FROM_opm_meta_WHERE_keyschema_compatibility_version
lea ecx, [ebp - 0x28]
call fcn.00408bb0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x28]
push ebx
call fcn.004fda30
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4fe3ba
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408df0
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.0057608a
mov esp, ebp
pop ebp
ret 8
Function at 0x5020e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc608
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
call fcn.00501ea0
push 0
push 0x5f1952
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00408bb0
push 0x104
mov dword [ebp - 4], 0
call fcn.0057653d
add esp, 4
mov dword [ebp - 0x6c], 0x104
lea edx, [ebp - 0x2c]
mov ecx, esi
mov ebx, eax
call fcn.00502000
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
add eax, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.005022d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov edx, dword [edi + 0x14]
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
cmp edx, 0x10
jb 0x5021a9
mov ecx, dword [edi]
jmp 0x5021ab
mov ecx, edi
mov eax, dword [edi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x5021b7
mov edi, dword [edi]
push ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.005022d0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmovae esi, dword [ebp - 0x44]
push eax
push 0x20119
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call edi
test eax, eax
je 0x502205
lea eax, [ebp - 0x60]
push eax
push 0x20219
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call edi
test eax, eax
jne 0x502238
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x502238
cmp byte [ebx], al
je 0x50222e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502225
sub eax, edx
mov ecx, dword [ebp - 0x70]
push eax
push ebx
call fcn.00408bb0
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00576339
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 8
jb 0x50225f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x502288
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
cmp eax, 0x10
jb 0x5022b1
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x5023f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc670
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x6185d8
mov ecx, 0x659bc0
mov dword [ebp - 0x418], 0x659bc0
call fcn.004f8ab0
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push eax
push 0x200
mov dword [0x659bc0], 0x618684
mov dword [0x659c4c], 0
mov word [0x659c50], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50248a
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 8
call fcn.0057609b
mov esi, eax
add esp, 4
mov dword [ebp - 0x414], esi
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [0x659c48], esi
cmp dword [esi], 0
jne 0x5024c4
push str.Local5071F542_DF26_4e46_810E_74570ED35255
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi], eax
push 0xc0
call fcn.0057609b
add esp, 4
mov dword [ebp - 0x414], eax
push 0x6185dc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004f6480
mov byte [ebp - 4], 0
mov ecx, eax
push 0x1e
mov dword [0x659c44], eax
call fcn.004f8120
mov ecx, dword [0x659c44]
push 0x5f8398
push str.PDApp.log
call fcn.004f8360
push dword [0x659c44]
call fcn.004f4f20
mov ecx, eax
call fcn.004f4fc0
push 3
push 0x6185dc
mov ecx, 0x659be0
call fcn.00408a10
mov eax, 0x659bc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret

Function at 0x506540
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccd60
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x64a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [edx + 0x51], 0
mov dword [edx + 0x58], 0x10
cmp byte [edx + 0x51], 0
jne 0x506592
mov byte [edx + 0x51], 1
lea ecx, [edx + 0x10]
jmp 0x506594
xor ecx, ecx
mov dword [edx + 0x5c], ecx
mov byte [edx + 0xa1], 0
mov dword [edx + 0xa8], 0x10
cmp byte [edx + 0xa1], 0
jne 0x5065bd
mov byte [edx + 0xa1], 1
lea ecx, [edx + 0x60]
jmp 0x5065bf
xor ecx, ecx
mov dword [edx + 0xac], ecx
mov eax, edx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x506e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x506e3d
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x506e4b
xor ecx, ecx
jmp 0x506e63
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506e54
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408a10
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0057608a
mov esp, ebp
pop ebp
ret

Function at 0x507370
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.005777d0
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor edx, edx
cmp dword [ecx + 0x14], 8
push edi
mov dword [ebp - 0x200c], edx
jb 0x50739c
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x5073c1
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5073f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50743f
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x507447
call esi
mov dword [ebp - 0x200c], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x507400
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [ebp - 0x200c]
xor eax, eax
mov ecx, dword [ebp - 4]
test edx, edx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x507480
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cce08
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x64a070]
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
lea edi, [esi + 0x4c]
xor bl, bl
cmp dword [edi + 0x14], 8
jb 0x5074bc
mov eax, dword [edi]
jmp 0x5074be
mov eax, edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x5074e6
xor al, al
jmp 0x5075ae
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x507505
mov eax, dword [ebp - 0x38]
mov bl, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jmp 0x507511
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x5075ac
cmp dword [ebp - 0x2c], 0
jl 0x5075ac
jg 0x507537
cmp dword [ebp - 0x30], 0xa00000
jb 0x5075ac
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x507548
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00408f10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0050b5f0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00507370
test al, al
je 0x50758c
mov ecx, esi
call fcn.004f78e0
mov eax, dword [esi]
mov ecx, esi
push ebx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x14]
mov bl, al
cmp ecx, 8
jb 0x5075ac
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409510
mov al, bl
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.0057608a
mov esp, ebp
pop ebp
ret 4

Function at 0x5075d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x50761e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x50761b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x50761b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
mov ecx, dword [ebp + 0x1c]
setne bl
cmp ecx, 8
jb 0x507636
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00409510
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x18
Function at 0x5082e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x100
push eax
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x50834c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Failed_in_getting_user_name_error:_d
push 0x613904
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.005033a0
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x210], 0
jne 0x50835a
xor ecx, ecx
jmp 0x508372
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x508363
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00408a10
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x508db0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x5f5608]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x656420], ecx
mov dword [eax*8 + 0x656424], edx
inc eax
cmp eax, 0x100
jl 0x508db4
xorps xmm0, xmm0
pop edi
movlpd qword [0x656c28], xmm0
movlpd qword [0x656c20], xmm0
mov byte [0x65641a], 1
pop esi
ret
Function at 0x516370
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 1
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push str.VIKeyContainer
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x5163f2
push 8
push 1
push eax
push str.VIKeyContainer
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x5163f2
call fcn.00514550
cmp dword [eax], 0
je 0x5163de
call fcn.00514550
push str.Failed_in_getSignatureOfData_CryptAcquireContext
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x51644a
call fcn.00514550
cmp dword [eax], 0
je 0x51642b
call fcn.00514550
push str.Failed_in_getSignatureOfData_CryptCreateHash
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5164a6
call fcn.00514550
cmp dword [eax], 0
je 0x51647e
call fcn.00514550
push str.Failed_in_getSignatureOfData_CryptHashData
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
push 0
push ebx
push edi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x516506
call fcn.00514550
cmp dword [eax], 0
je 0x5164d8
call fcn.00514550
push str.Failed_in_getSignatureOfData_CryptGetHashParam
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x516514
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x516524
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5172d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdfc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x64a070]
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
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x14], 8
jb 0x517310
mov eax, dword [edi]
jmp 0x517312
mov eax, edi
push 0x61c190
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.005a5ddd
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x517369
call fcn.00514550
cmp dword [eax], 0
je 0x517362
call fcn.00514550
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x51734e
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
push ecx
call dword [eax + 0x1c]
add esp, 0x10
xor al, al
jmp 0x517441
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x517362
push eax
mov bl, 1
mov dword [esi + 4], eax
call fcn.0057653d
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
nop
mov eax, dword [esi + 0x30]
test eax, eax
je 0x517400
push eax
push dword [esi + 4]
push 1
push edi
call fcn.005a8440
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x517400
mov eax, dword [esi]
lea edx, [ebp - 0x2c]
push edx
push ecx
mov dword [esi + 8], ecx
mov ecx, esi
mov eax, dword [eax + 0x10]
push edi
call eax
neg al
lea ecx, [esi + 0x10]
sbb al, al
and bl, al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00517d50
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
add ecx, 0x14
cmp ecx, eax
je 0x5173fb
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
inc dword [ebp - 0x14]
jmp 0x5173a0
test bl, bl
je 0x517412
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x38]
mov eax, dword [eax + 0x28]
call eax
mov bl, al
push edi
call fcn.00576339
push dword [esi + 0x30]
call fcn.005a5ebc
add esp, 8
test eax, eax
jne 0x51742a
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x51743f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00409510
mov al, bl
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.0057608a
mov esp, ebp
pop ebp
ret 0xc