joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4417c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x60a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6162e0]
cmp eax, dword [ecx + 4]
jle 0x441849
push 0x6162e0
call fcn.0055effe
add esp, 4
cmp dword [0x6162e0], 0xffffffff
jne 0x441849
xor eax, eax
mov dword [0x6162dc], 7
push 0x5a53c0
mov dword [0x6162d8], 0
mov word [0x6162c8], ax
call fcn.0055f5a7
push 0x6162e0
call fcn.0055efbf
add esp, 8
cmp dword [0x6162dc], 8
mov eax, 0x6162c8
mov dword [0x6162d8], 0
cmovae eax, dword [0x6162c8]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x6162d8], ecx
sete al
test al, al
je 0x441988
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00500c60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4418b9
push ecx
lea ecx, [ebp - 0x28]
call fcn.00500fb0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00500c60
test al, al
je 0x4418d2
push str.OOBE
lea ecx, [ebp - 0x28]
call fcn.00413760
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4418f4
push ecx
lea ecx, [ebp - 0x28]
call fcn.00500fb0
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x6162c8
push eax
call fcn.00414130
cmp esi, 1
jne 0x441944
push str.temp_lbs_wid
lea ecx, [ebp - 0x40]
call fcn.00413890
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov ecx, 0x6162c8
call fcn.00500ee0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp eax, 8
jb 0x441973
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00414580
jmp 0x441973
cmp esi, 2
jne 0x441973
push str.temp_ins_lbs_wid
lea ecx, [ebp - 0x40]
call fcn.00413890
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
mov ecx, 0x6162c8
call fcn.00500ee0
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.004137d0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x441988
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00414580
mov eax, 0x6162c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
Function at 0x448c00
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 [0x60a070]
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 0x448c4f
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
je 0x448c92
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
je 0x448c89
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x448ca6
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.0055eeb4
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 0x448ce7
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.0055eeb4
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x448cf5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x448d05
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.0055eeb4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x455120
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.00507cf0
lea ecx, [esi + 0x24]
call fcn.00507c60
cmp dword [esi + 0x20], 2
jne 0x455160
mov eax, dword [esi + 0x60]
test eax, eax
je 0x455149
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x455159
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x20], 0
mov dword [esi + 0x20], 0
pop esi
ret
Function at 0x455760
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x24]
call fcn.00507cf0
lea ecx, [esi + 0x28]
call fcn.00507c60
cmp dword [esi + 0x20], 2
jne 0x4557a0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x455789
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x455799
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x20], 0
mov dword [esi + 0x20], 1
pop esi
ret
Function at 0x45e310
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a926
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x60a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x1c]
call fcn.005008c0
add esp, 4
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push 0x1d
push str.AdobePIIcom.adobe.pii.prefs
call fcn.00413c10
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00500ee0
mov byte [ebp - 4], 0
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x45e3af
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00414580
xor bl, bl
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e4ca
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
je 0x45e3f9
sub esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00511cf0
add esp, 0xc
jmp 0x45e4ca
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.00509ab0
test al, al
je 0x45e49b
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
push str._prefs_property__keypiiNoticeShown_
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00413890
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0050dbb0
lea ecx, [ebp - 0x70]
call fcn.004137d0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push 0x5cee48
call fcn.00576b16
add esp, 8
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
lea ecx, [ebp - 0x58]
call fcn.00405410
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x45e4b4
mov ecx, esi
xor esi, esi
test ecx, ecx
je 0x45e4b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [ebp - 0x14], 0
je 0x45e4c0
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
je 0x45e4ca
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x45e4df
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00414580
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.0055eeb4
mov esp, ebp
pop ebp
ret
Function at 0x463b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b6e6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], vtable.ThorSDK::AppletMessageManager.0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f230
mov dword [esi], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f230
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f230
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], 0
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 7
mov word [edi + 0x64], ax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], 7
mov word [edi + 0x90], ax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], 7
mov word [edi + 0xa8], ax
mov dword [edi + 0xc0], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46ef50
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 [0x60a070]
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 0x46efd2
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 0x46efd2
call fcn.00467600
cmp dword [eax], 0
je 0x46efbe
call fcn.00467600
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.0055eeb4
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 0x46f02a
call fcn.00467600
cmp dword [eax], 0
je 0x46f00b
call fcn.00467600
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.0055eeb4
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 0x46f086
call fcn.00467600
cmp dword [eax], 0
je 0x46f05e
call fcn.00467600
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.0055eeb4
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 0x46f0e6
call fcn.00467600
cmp dword [eax], 0
je 0x46f0b8
call fcn.00467600
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.0055eeb4
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46f0f4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46f104
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.0055eeb4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46feb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x60a070]
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 0x46fef0
mov eax, dword [edi]
jmp 0x46fef2
mov eax, edi
push 0x5c2d80
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.0057772d
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x46ff49
call fcn.00467600
cmp dword [eax], 0
je 0x46ff42
call fcn.00467600
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x46ff2e
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 0x470021
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x46ff42
push eax
mov bl, 1
mov dword [esi + 4], eax
call fcn.0055f6c6
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 0x46ffe0
push eax
push dword [esi + 4]
push 1
push edi
call fcn.0057aee0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x46ffe0
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.00470930
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
add ecx, 0x14
cmp ecx, eax
je 0x46ffdb
push 0xffffffffffffffff
push 0
push eax
call fcn.00414130
inc dword [ebp - 0x14]
jmp 0x46ff80
test bl, bl
je 0x46fff2
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.0055eec5
push dword [esi + 0x30]
call fcn.0057780c
add esp, 8
test eax, eax
jne 0x47000a
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x47001f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414580
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.0055eeb4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4705d0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c988
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x60a070]
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 0x47060a
mov eax, dword [edi]
jmp 0x47060c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4706a6
cmp dword [esi + 4], 0
je 0x4706a6
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
mov ecx, edi
movlpd qword [ebp - 0x38], xmm0
call fcn.00502310
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
cmp dword [ebp - 0x38], eax
jne 0x4706a6
cmp dword [ebp - 0x34], edx
jne 0x4706a6
cmp dword [edi + 0x14], 8
jb 0x470654
mov eax, dword [edi]
jmp 0x470656
mov eax, edi
push 0x5c2d80
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.0057772d
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4706c6
call fcn.00467600
cmp dword [eax], 0
je 0x4706a6
call fcn.00467600
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x470692
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.0055eeb4
mov esp, ebp
pop ebp
ret 4
push dword [esi + 4]
mov byte [ebp - 0x2d], 1
call fcn.0055f6c6
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 0x470723
push eax
push dword [esi + 4]
push 1
push ebx
call fcn.0057aee0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x470723
mov eax, dword [esi]
push edi
push ecx
push ebx
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test al, al
je 0x47071f
inc edi
jmp 0x4706f0
mov byte [ebp - 0x2d], 0
push ebx
call fcn.0055eec5
push dword [esi + 0x30]
call fcn.0057780c
add esp, 8
test eax, eax
jne 0x47073b
mov dword [esi + 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.004137d0
mov al, byte [ebp - 0x2d]
jmp 0x4706a8

Function at 0x4723a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x4723be
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.0057772d
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x472417
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.0057aee0
push dword [ebp - 8]
call fcn.0057780c
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x4723ff
cmp al, 0xfe
je 0x472408
cmp al, 0xff
jne 0x472411
cmp cl, 0xfe
jne 0x472411
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x472420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x47245a
call fcn.004723a0
test al, al
jne 0x47245a
mov eax, dword [ebx]
test eax, eax
je 0x472453
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.00473360
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x472467
mov eax, dword [esi]
jmp 0x472469
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x472501
cmp dword [esi + 0x14], 8
jb 0x472491
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4724bc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 8]
push 0
push ecx
jne 0x4724ea
push 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp - 4]
mov word [ebp - 4], 0xbbef
push ecx
push eax
mov byte [ebp - 2], 0xbf
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x472510
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cb76
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x60a070]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4725d4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00413890
xor bl, bl
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push 0
cmovae eax, dword [ebp - 0x260]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4725a9
cmp eax, 0xb7
je 0x4725a9
cmp eax, 0x50
jne 0x4725ab
mov bl, 1
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4725c9
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00414580
test bl, bl
jne 0x4725d4
xor al, al
jmp 0x4726f2
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4725fe
xor ecx, ecx
jmp 0x472616
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472607
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00413c10
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [esi], ax
jne 0x472656
xor ecx, ecx
jmp 0x47266f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472660
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00413c10
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0047a0a0
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4726b5
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00414580
test bl, bl
je 0x4726d2
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4726d0
push 0xffffffffffffffff
push 0
push eax
call fcn.00414130
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4726f0
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00414580
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.0055eeb4
mov esp, ebp
pop ebp
ret 4
Function at 0x472910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x472920
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x5d3a54
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x472980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x472990
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x5d3a84
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4