joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x589c91
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push 0x5b239c
add eax, 0x5c
push eax
lea ebx, [esp + 0x18]
call fcn.00532290
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5312c4
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x78]
call eax
mov edx, dword [esp + 0x14]
test edx, edx
je 0x5312c0
call fcn.00481720
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x24], 0
je 0x5312d5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x5321b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [esi]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [ecx]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov dword [esp + 8], 0x2711
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push edx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x53220d
mov eax, dword [esp + 0x10]
add esp, 0x1c
ret 4
mov eax, dword [esi]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
add esp, 0x1c
ret 4

Function at 0x5328b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x585e68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0xc], 0
je 0x5328fb
push 0
lea edx, [esp + 0x18]
push edx
add ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push ecx
call eax
add esp, 0xc
lea esi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00532be0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x532931
mov eax, dword [eax]
test eax, eax
je 0x532931
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x533ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push ebp
xor ebp, ebp
test eax, eax
mov dword [esp + 4], ebp
je 0x533f56
push edi
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x533f55
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
add eax, 1
push eax
call fcn.00548a37
mov esi, eax
add esp, 4
test esi, esi
je 0x533f4d
mov edx, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
test ebp, ebp
je 0x533f44
mov eax, dword [esp + 0xc]
mov edx, esi
mov byte [esi + eax], 0
call fcn.00479660
push esi
call fcn.005649af
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x533f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [eax]
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push 2
push ebp
push 1
push 0x40000000
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x533ffc
mov eax, dword [esi]
mov dword [esp + 0xc], ebp
cmp dword [eax - 4], 1
mov ebx, dword [eax - 0xc]
mov dword [esp + 0x14], ebx
jle 0x533fa4
mov ecx, ebx
push ecx
push esi
call fcn.0044e270
mov eax, dword [esi]
push ebp
lea edx, [esp + 0x10]
push edx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
cmp edx, ebp
jne 0x533fbf
xor ecx, ecx
jmp 0x533fd5
mov ecx, edx
lea ebp, [ecx + 1]
mov bl, byte [ecx]
add ecx, 1
test bl, bl
jne 0x533fc4
sub ecx, ebp
js 0x534007
mov ebx, dword [esp + 0x14]
cmp ecx, dword [edx - 8]
jg 0x534007
test eax, eax
mov dword [edx - 0xc], ecx
mov edx, dword [esi]
mov byte [ecx + edx], 0
je 0x533ff5
cmp dword [esp + 0xc], ebx
jne 0x533ff5
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x80070057
call fcn.00473d10
int3

Function at 0x534020
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x589bad
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ebx
push 0x206
lea eax, [esp + 0x26]
mov dword [esp + 0x238], 1
push ebx
push eax
mov dword [esp + 0x18], ebx
mov word [esp + 0x2c], bx
call fcn.005695a0
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x23c]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x534128
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5340e3
sub eax, edx
sar eax, 1
je 0x534108
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x20]
call fcn.00481720
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x534128
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x534145
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00564207
add esp, 0x22c
ret
Function at 0x5347d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x58b372
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x22c], esi
mov dword [esp + 0xc], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x5f7780
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [esp + 0x1a]
mov dword [esp + 0x230], esi
push esi
push eax
mov dword [esp + 0x18], 1
mov word [esp + 0x20], si
call fcn.005695a0
add esp, 0xc
push esi
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
je 0x534891
cmp ebx, esi
je 0x534891
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.MicrosoftInternet_ExplorerQuick_Launch
lea edx, [esp + 0x18]
push edx
call esi
push ebx
lea eax, [esp + 0x18]
push eax
call esi
lea edx, [esp + 0x14]
call fcn.00481720
mov eax, edi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00564207
add esp, 0x224
ret

Function at 0x5348c0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x590bb0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
xor edi, edi
test esi, esi
je 0x5349e3
test ebx, ebx
je 0x5349e3
mov eax, dword [0x5f8fb0]
test eax, eax
jne 0x53490f
call fcn.00537fa0
mov dword [0x5f8fb0], eax
cmp eax, 6
je 0x5349ce
lea ecx, [esp + 0x10]
call fcn.00534a00
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5349a6
lea ecx, [esp + 0x14]
call fcn.005347d0
lea edi, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00480f90
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.004818c0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
push 0
push ecx
push 0x5adcfc
xor edx, edx
mov ecx, esi
call fcn.00534170
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 5
push 0
push 0
push edx
push str.taskbarpin
push 0
mov esi, 0x80004005
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x53499d
xor esi, esi
xor eax, eax
test esi, esi
sete al
mov edi, eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5349ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x534a00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x58b372
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x22c], esi
mov dword [esp + 0xc], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x5f7780
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [esp + 0x1a]
mov dword [esp + 0x230], esi
push esi
push eax
mov dword [esp + 0x18], 1
mov word [esp + 0x20], si
call fcn.005695a0
add esp, 0xc
push esi
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
je 0x534ac1
cmp ebx, esi
je 0x534ac1
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea edx, [esp + 0x18]
push edx
call esi
push ebx
lea eax, [esp + 0x18]
push eax
call esi
lea edx, [esp + 0x14]
call fcn.00481720
mov eax, edi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00564207
add esp, 0x224
ret

Function at 0x534af0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58dd88
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0047bc80
add esp, 4
lea esi, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.005358e0
mov ecx, dword [esp + 8]
push ecx
push 0
push str.LastTime
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x534b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x5350c0
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58ce00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, 0x5b5e84
lea ecx, [esp + 0x14]
call fcn.00534a00
lea eax, [esp + 0x10]
push eax
mov ecx, str.gametaskbarforgamebox
mov dword [esp + 0x3c], 0
call fcn.00481430
lea ecx, [esp + 0xc]
push ecx
mov ecx, str.SoftwareKingsoftKVip
mov byte [esp + 0x3c], 1
call fcn.00481430
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
mov bl, 2
push eax
mov ecx, SysReAllocStringLen
mov byte [esp + 0x40], bl
call fcn.0047b9d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push str.kybox
mov byte [esp + 0x44], 3
mov ecx, dword [0x5f8cb8]
push 0x5aeb8c
push ecx
push 0x5aebdc
mov esi, eax
call fcn.00479130
add esp, 8
mov esi, eax
call fcn.00479130
add esp, 8
mov esi, eax
call fcn.00479280
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x535193
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5351b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5351d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5351fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x535219
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x535219
mov esi, 1
jmp 0x53521b
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x535260
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5959d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x5f8fb0]
test eax, eax
jne 0x535298
call fcn.00537fa0
mov dword [0x5f8fb0], eax
cmp eax, 6
je 0x535420
cmp eax, 7
je 0x535420
cmp eax, 0xc
je 0x535420
lea eax, [esp + 0x10]
push eax
call fcn.00534710
add esp, 4
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5353f8
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 3
push str._from:_d
lea edi, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.00481690
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, 0x5b5e84
call fcn.005348c0
add esp, 0xc
test eax, eax
je 0x5353ef
push 0
call fcn.00564426
add esp, 4
lea edx, [esp + 0x18]
push edx
mov ecx, str.gametaskbarforgamebox
mov edi, eax
call fcn.00481430
lea eax, [esp + 0x14]
push eax
mov ecx, str.SoftwareKingsoftKVip
mov byte [esp + 0x3c], 2
call fcn.00481430
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, SysReAllocStringLen
mov byte [esp + 0x40], 3
call fcn.0047b9d0
lea ecx, [esp + 0x18]
push ecx
push str.kybox
mov byte [esp + 0x40], 4
mov edx, dword [0x5f8cb8]
push 0x5aeb8c
push edx
push 0x5aebdc
mov esi, eax
call fcn.00479130
add esp, 8
mov esi, eax
call fcn.00479130
add esp, 8
mov edx, edi
mov esi, eax
call fcn.00478f50
lea esi, [esp + 0x1c]
call fcn.0047b970
lea ecx, [esp + 0x14]
call fcn.004818c0
lea ecx, [esp + 0x18]
call fcn.004818c0
lea ecx, [esp + 0xc]
call fcn.004818c0
lea ecx, [esp + 0x10]
call fcn.004818c0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
lea ecx, [esp + 0xc]
call fcn.004818c0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535420
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x535780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x58cdc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
mov ebp, 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
push 0x17
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], ebx
call fcn.00534020
add esp, 4
lea edi, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00480f90
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, 0x5bcbe4
call fcn.00478cb0
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x5b5e84
mov byte [esp + 0x38], 2
call fcn.00478cb0
add esp, 0x10
lea edi, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00480f90
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535867
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53588c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x53589e
xor ebp, ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5358c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x535a30
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
push ebp
push esi
xor ebp, ebp
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
je 0x535ac7
push edi
push esi
call fcn.00548a37
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x535abe
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push edi
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x535ab5
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x5aeb10
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x535ab5
cmp dword [esp + 0x10], ebp
jbe 0x535ab0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebx + 4], ecx
mov dword [ebx], edx
mov ebp, 1
push edi
call fcn.005649af
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret
Function at 0x536d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x58cc80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.00481090
lea ecx, [esp + 0x2c]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.005376c0
lea edi, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00480f90
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x536e08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x536e1d
mov ebx, 1
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x536e41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x537b50
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0xc]
xor edi, edi
push edx
mov dword [eax], edi
push ebp
mov dword [esp + 0x14], edi
mov dword [ecx], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x537bf3
push ebx
push esi
call fcn.00548a37
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x537bdc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x5aeb10
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x537bdc
cmp dword [esp + 0x14], esi
je 0x537bdc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea edi, [esi + 1]
test ebx, ebx
je 0x537be9
push ebx
call fcn.005649af
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x537d30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x58cbd2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x22c], edi
mov dword [esp + 0x10], edi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x5f7780
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
push 0x206
lea eax, [esp + 0x1e]
mov dword [esp + 0x230], edi
push edi
push eax
mov dword [esp + 0x1c], 1
mov word [esp + 0x24], di
call fcn.005695a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x537dd0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x18]
mov ebx, eax
push edx
mov eax, esi
call fcn.00480ff0
call fcn.00537c40
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00564207
add esp, 0x220
ret