joyce8/EMBER2024-capa huggingface dataset:
Function at 0x502360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccbf8
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.00502120
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.00576a65
add esp, 4
mov dword [ebp - 0x6c], 0x104
lea edx, [ebp - 0x2c]
mov ecx, esi
mov ebx, eax
call fcn.00502280
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.00502550
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 0x502429
mov ecx, dword [edi]
jmp 0x50242b
mov ecx, edi
mov eax, dword [edi + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x502437
mov edi, dword [edi]
push ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.00502550
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 0x502485
lea eax, [ebp - 0x60]
push eax
push 0x20219
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call edi
test eax, eax
jne 0x5024b8
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 0x5024b8
cmp byte [ebx], al
je 0x5024ae
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5024a5
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.00576861
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 8
jb 0x5024df
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 0x502508
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 0x502531
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.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x502670
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccc60
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 0x618674
mov ecx, 0x659bc0
mov dword [ebp - 0x418], 0x659bc0
call fcn.004f8d40
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push eax
push 0x200
mov dword [0x659bc0], 0x6186f4
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 0x50270a
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 8
call fcn.005765c3
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 0x502744
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.005765c3
add esp, 4
mov dword [ebp - 0x414], eax
push 0x618678
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004f6710
mov byte [ebp - 4], 0
mov ecx, eax
push 0x1e
mov dword [0x659c44], eax
call fcn.004f83b0
mov ecx, dword [0x659c44]
push 0x5f8398
push str.PDApp.log
call fcn.004f85f0
push dword [0x659c44]
call fcn.004f51b0
mov ecx, eax
call fcn.004f5250
push 3
push 0x618678
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.005765b2
mov esp, ebp
pop ebp
ret

Function at 0x5067c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd350
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 0x506812
mov byte [edx + 0x51], 1
lea ecx, [edx + 0x10]
jmp 0x506814
xor ecx, ecx
mov dword [edx + 0x5c], ecx
mov byte [edx + 0xa1], 0
mov dword [edx + 0xa8], 0x10
cmp byte [edx + 0xa1], 0
jne 0x50683d
mov byte [edx + 0xa1], 1
lea ecx, [edx + 0x60]
jmp 0x50683f
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 0x507080
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 0x5070bd
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x5070cb
xor ecx, ecx
jmp 0x5070e3
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5070d4
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.005765b2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00577cb0
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 0x50761c
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 0x507641
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 0x507677
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.005765b2
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 0x5076bf
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 0x5076c7
call esi
mov dword [ebp - 0x200c], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x507680
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.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x507700
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd3f8
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 0x50773c
mov eax, dword [edi]
jmp 0x50773e
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 0x507766
xor al, al
jmp 0x50782e
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x507785
mov eax, dword [ebp - 0x38]
mov bl, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jmp 0x507791
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 0x50782c
cmp dword [ebp - 0x2c], 0
jl 0x50782c
jg 0x5077b7
cmp dword [ebp - 0x30], 0xa00000
jb 0x50782c
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x5077c8
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.0050b850
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.005075f0
test al, al
je 0x50780c
mov ecx, esi
call fcn.004f7b70
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 0x50782c
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.005765b2
mov esp, ebp
pop ebp
ret 4

Function at 0x507850
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x50789e
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 0x50789b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x50789b
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 0x5078b6
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 0x508540
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 0x5085ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Failed_in_getting_user_name_error:_d
push 0x613984
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00503620
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x210], 0
jne 0x5085ba
xor ecx, ecx
jmp 0x5085d2
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5085c3
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.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x509010
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x5f56e0]
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 0x509014
xorps xmm0, xmm0
pop edi
movlpd qword [0x656c28], xmm0
movlpd qword [0x656c20], xmm0
mov byte [0x65641a], 1
pop esi
ret
Function at 0x5165c0
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 0x516642
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 0x516642
call fcn.005147a0
cmp dword [eax], 0
je 0x51662e
call fcn.005147a0
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.005765b2
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 0x51669a
call fcn.005147a0
cmp dword [eax], 0
je 0x51667b
call fcn.005147a0
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.005765b2
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 0x5166f6
call fcn.005147a0
cmp dword [eax], 0
je 0x5166ce
call fcn.005147a0
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.005765b2
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 0x516756
call fcn.005147a0
cmp dword [eax], 0
je 0x516728
call fcn.005147a0
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.005765b2
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x516764
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x516774
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.005765b2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x517520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce5a8
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 0x517560
mov eax, dword [edi]
jmp 0x517562
mov eax, edi
push 0x61c16c
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.005a632d
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x5175b9
call fcn.005147a0
cmp dword [eax], 0
je 0x5175b2
call fcn.005147a0
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x51759e
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 0x517691
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5175b2
push eax
mov bl, 1
mov dword [esi + 4], eax
call fcn.00576a65
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 0x517650
push eax
push dword [esi + 4]
push 1
push edi
call fcn.005a89b0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x517650
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.00518000
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
add ecx, 0x14
cmp ecx, eax
je 0x51764b
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
inc dword [ebp - 0x14]
jmp 0x5175f0
test bl, bl
je 0x517662
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.00576861
push dword [esi + 0x30]
call fcn.005a640c
add esp, 8
test eax, eax
jne 0x51767a
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x51768f
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.005765b2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x517c40
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbd48
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]
cmp dword [edi + 0x14], 8
jb 0x517c7a
mov eax, dword [edi]
jmp 0x517c7c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x517d16
cmp dword [esi + 4], 0
je 0x517d16
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
mov ecx, edi
movlpd qword [ebp - 0x38], xmm0
call fcn.005212d0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
cmp dword [ebp - 0x38], eax
jne 0x517d16
cmp dword [ebp - 0x34], edx
jne 0x517d16
cmp dword [edi + 0x14], 8
jb 0x517cc4
mov eax, dword [edi]
jmp 0x517cc6
mov eax, edi
push 0x61c16c
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.005a632d
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x517d36
call fcn.005147a0
cmp dword [eax], 0
je 0x517d16
call fcn.005147a0
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x517d02
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
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.005765b2
mov esp, ebp
pop ebp
ret 4
push dword [esi + 4]
mov byte [ebp - 0x2d], 1
call fcn.00576a65
xor edi, edi
mov dword [ebp - 0x14], 7
add esp, 4
mov dword [ebp - 0x18], edi
mov ebx, eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
nop dword [eax]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x517d93
push eax
push dword [esi + 4]
push 1
push ebx
call fcn.005a89b0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x517d93
mov eax, dword [esi]
push edi
push ecx
push ebx
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test al, al
je 0x517d8f
inc edi
jmp 0x517d60
mov byte [ebp - 0x2d], 0
push ebx
call fcn.00576861
push dword [esi + 0x30]
call fcn.005a640c
add esp, 8
test eax, eax
jne 0x517dab
mov dword [esi + 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.004087d0
mov al, byte [ebp - 0x2d]
jmp 0x517d18
Function at 0x51dd30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x51ddce
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x51ddc0
cmp word [ebp - 0x20c], 0
jne 0x51dd93
xor ecx, ecx
jmp 0x51ddaf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51dda0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408a10
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x51de16
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x51de16
cmp word [ebp - 0x20c], 0
jne 0x51dded
xor ecx, ecx
jmp 0x51de05
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51ddf6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408a10
mov bl, 1
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51de68
cmp dword [esi + 0x14], 8
jb 0x51de27
mov eax, dword [esi]
jmp 0x51de29
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x51de68
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x51de5c
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x51de43
mov esi, dword [esi]
xor ecx, ecx
pop edi
mov word [esi + eax*2], cx
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040d3f0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005765b2
mov esp, ebp
pop ebp
ret

Function at 0x51de80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x51de9f
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00599286
mov esi, eax
add esp, 4
test esi, esi
je 0x51ded7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
test eax, eax
jne 0x51dedf
call fcn.00599281
add esp, 4
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
call fcn.004089c0
push esi
call fcn.00599281
add esp, 4
mov al, 1
pop esi
pop edi
mov esp, ebp
pop ebp
ret