joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5179f0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb768
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 0x517a2a
mov eax, dword [edi]
jmp 0x517a2c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x517ac6
cmp dword [esi + 4], 0
je 0x517ac6
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
mov ecx, edi
movlpd qword [ebp - 0x38], xmm0
call fcn.00520960
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
cmp dword [ebp - 0x38], eax
jne 0x517ac6
cmp dword [ebp - 0x34], edx
jne 0x517ac6
cmp dword [edi + 0x14], 8
jb 0x517a74
mov eax, dword [edi]
jmp 0x517a76
mov eax, edi
push 0x61c190
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.005a5ddd
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x517ae6
call fcn.00514550
cmp dword [eax], 0
je 0x517ac6
call fcn.00514550
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x517ab2
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.0057608a
mov esp, ebp
pop ebp
ret 4
push dword [esi + 4]
mov byte [ebp - 0x2d], 1
call fcn.0057653d
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 0x517b43
push eax
push dword [esi + 4]
push 1
push ebx
call fcn.005a8440
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x517b43
mov eax, dword [esi]
push edi
push ecx
push ebx
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test al, al
je 0x517b3f
inc edi
jmp 0x517b10
mov byte [ebp - 0x2d], 0
push ebx
call fcn.00576339
push dword [esi + 0x30]
call fcn.005a5ebc
add esp, 8
test eax, eax
jne 0x517b5b
mov dword [esi + 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.004087d0
mov al, byte [ebp - 0x2d]
jmp 0x517ac8
Function at 0x51d3c0
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 0x51d45e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x51d450
cmp word [ebp - 0x20c], 0
jne 0x51d423
xor ecx, ecx
jmp 0x51d43f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d430
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 0x51d4a6
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x51d4a6
cmp word [ebp - 0x20c], 0
jne 0x51d47d
xor ecx, ecx
jmp 0x51d495
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d486
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 0x51d4f8
cmp dword [esi + 0x14], 8
jb 0x51d4b7
mov eax, dword [esi]
jmp 0x51d4b9
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x51d4f8
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x51d4ec
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x51d4d3
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.0057608a
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.0057608a
mov esp, ebp
pop ebp
ret

Function at 0x51d510
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 0x51d52f
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.00598db1
mov esi, eax
add esp, 4
test esi, esi
je 0x51d567
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
test eax, eax
jne 0x51d56f
call fcn.0058f17b
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.0058f17b
add esp, 4
mov al, 1
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x51d6c0
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
push 0
push 0x2b
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x51d6fe
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
push 0x5f8f14
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005a9dfa
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x51d725
xor ecx, ecx
jmp 0x51d73f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d730
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 0x51d760
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
push 0
push 0x1c
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x51d79e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
push 0x5f8f14
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005a9dfa
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x51d7c5
xor ecx, ecx
jmp 0x51d7df
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d7d0
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 0x51d830
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x26
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x51d86e
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 0x51d87c
xor ecx, ecx
jmp 0x51d894
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d885
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408a10
push 0x1b
push str.AdobeAdobe_Creative_Cloud
mov ecx, esi
call fcn.0040c5a0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x51d8d0
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
push 0
push 0x2b
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x51d90e
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 0x51d91c
xor ecx, ecx
jmp 0x51d934
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d925
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408a10
push 0x1b
push str.AdobeAdobe_Desktop_Common
mov ecx, esi
call fcn.0040c5a0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x51d970
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
cmp ecx, 0x20
ja case.0x51d97c.31
jmp dword [ecx*4 + 0x51db80]
push ecx
mov ecx, 0x26
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x2a
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x2b
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x2c
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x24
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x25
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x29
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x14
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x17
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x28
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 5
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x1a
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x1c
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x23
call fcn.0051d3c0
add esp, 4
pop esi
ret
push ecx
mov ecx, 0x2e
call fcn.0051d3c0
add esp, 4
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.0051d510
mov ecx, esi
pop esi
jmp fcn.0051d590
mov ecx, esi
pop esi
jmp fcn.0051d620
mov ecx, esi
pop esi
jmp fcn.0051d6c0
mov ecx, esi
pop esi
jmp fcn.0051d760
mov ecx, esi
pop esi
jmp fcn.0051d800
mov ecx, esi
call fcn.0051d6c0
test al, al
je case.0x51d97c.31
push str.OOBE
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.0051d760
test al, al
je case.0x51d97c.31
push str.OOBE
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.0051d800
test al, al
je case.0x51d97c.31
push str.OOBE
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.0051d6c0
test al, al
je case.0x51d97c.31
push str.OOBEPDApp
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.0051d760
test al, al
je case.0x51d97c.31
push str.OOBEPDApp
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.0051d6c0
test al, al
je case.0x51d97c.31
push str.AdobeApplicationManagerAAMRefs
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.0051d6c0
test al, al
je case.0x51d97c.31
push str.ADCRefs
mov ecx, esi
call fcn.0040c4b0
mov al, 1
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.0051d8d0
mov ecx, esi
pop esi
jmp fcn.0051d830
xor al, al
pop esi
ret
Function at 0x51f200
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x51f20d
mov eax, dword [esi]
jmp 0x51f20f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51f230
cmp dword [esi + 0x14], 8
jb 0x51f222
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp dword [esi + 0x14], 8
jb 0x51f238
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x51f2a1
mov eax, dword [0x656c44]
test eax, eax
je 0x51f27c
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x32
call eax
add esp, 0x1c
xor eax, eax
test esi, esi
sete al
pop esi
ret
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51f2a1
mov eax, dword [ecx]
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x51fba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce938
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x51fbd9
mov eax, dword [edi]
jmp 0x51fbdb
mov eax, edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x51fc84
cmp dword [0x656c44], 0
je 0x51fc44
cmp dword [edi + 0x14], 8
jb 0x51fc11
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x20
xor al, al
jmp 0x51fd7a
mov esi, dword [0x656c48]
test esi, esi
je 0x51fc7d
cmp dword [edi + 0x14], 8
jb 0x51fc56
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push str.FileUtils
push 0x5f8398
push 0x32
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x1c
xor al, al
jmp 0x51fd7a
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x51fcac
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00518080
mov bl, al
add esp, 4
test bl, bl
je 0x51fd63
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x14]
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x51fcf1
mov ecx, edi
call fcn.004fccb0
jmp 0x51fd5c
cmp dword [0x656c44], 0
je 0x51fd27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x1c
jmp 0x51fd5a
mov esi, dword [0x656c48]
test esi, esi
je 0x51fd57
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push str.FileUtils
push 0x5f8398
push 0x32
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x18
mov esi, dword [ebp - 0x30]
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x51fd78
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408df0
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
Function at 0x520880
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x5208b0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
push ebx
push eax
movzx eax, dx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x52092a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x52092a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [edi + 0x14], 8
mov ebx, eax
jb 0x5208ed
mov ecx, dword [edi]
jmp 0x5208ef
mov ecx, edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x52092a
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x52093d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0051def0
mov ecx, dword [ebp - 4]
test al, al
pop ebx
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.0057608a
mov esp, ebp
pop ebp
ret

Function at 0x520960
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x52096b
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5209a5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0xffffffff
pop edi
jne 0x5209b5
cmp dword [esi + 4], 0
jne 0x5209b5
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x526f60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x64a070]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push 0
xor edx, edx
mov ecx, esi
call fcn.00526de0
add esp, 4
test al, al
je 0x526fba
inc esi
cmp esi, 0xf
jl 0x526fa0
jmp 0x526fbd
dec esi
mov dword [ebx], esi
mov edi, 1
movzx esi, word [ebx]
xor eax, eax
push 0xfe
push eax
mov word [esp + 0x2c], ax
xorps xmm0, xmm0
lea eax, [esp + 0x2e]
mov dword [esp + 0x18], 0x11c
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.0058fee0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x527059
inc edi
cmp edi, 0xa
jl 0x526fc2
jmp 0x52705f
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
push 0xfe
mov dword [esp + 0x14], 0x11c
movups xmmword [esp + 0x18], xmm0
movzx edi, word [eax + 4]
movzx esi, word [eax]
xor eax, eax
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.0058fee0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x527115
inc ebx
cmp ebx, 0xa
jl 0x527064
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x527750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x527769
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5277a6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x5277a2
nop word [eax + eax]
cmp esi, edx
jae 0x5277a6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x527790
cmp esi, edx
jb 0x5277ad
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x527950
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
push esi
push edi
test ecx, ecx
jne 0x527990
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x5279a3
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x5279ca
call edi
cmp eax, 5
jne 0x5279ca
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x527a89
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x527a05
call edi
cmp eax, 0x7a
jne 0x527a89
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x527a89
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x527a89
xor edi, edi
cmp dword [ebx], edi
jbe 0x527a89
lea esi, [ebx + 8]
nop dword [eax]
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x527a75
test byte [esi], 4
jne 0x527a7f
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x527a60
jmp 0x527a86
mov dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x527a97
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x527aa2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x527ab2
push eax
call edi
test esi, esi
je 0x527ab9
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0057608a
mov esp, ebp
pop ebp
ret