joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017c65
Capabilities:
Delete file

Disassembly:
push 0x22c
mov eax, 0x10067c84
call fcn.1002f321
mov eax, ecx
mov dword [ebp - 0x220], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x238], esi
call fcn.1000d514
mov edi, eax
xor eax, eax
pop ecx
mov ecx, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], eax
sub ecx, 1
je 0x10017cfc
sub ecx, 1
jne 0x10017d55
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x220]
push 0x1006d7cc
push dword [eax + 0x34]
call fcn.1000dd17
add esp, 0xc
lea eax, [ebp - 0x21c]
push dword [ebp - 0x224]
push eax
push ebx
call fcn.1001150f
add esp, 0xc
jmp 0x10017d55
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [eax + 0x38]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0x220]
push dword [eax + 0x38]
push ebx
call fcn.10005340
pop ecx
pop ecx
jmp 0x10017d55
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x10017d65
push 2
pop eax
jmp 0x10017e0c
lea eax, [ebp - 0x21c]
push eax
call fcn.1000d762
pop ecx
test eax, eax
je 0x10017d5d
cmp dword [ebp + 0x10], 0
je 0x10017dc0
lea eax, [ebp - 0x21c]
push eax
call fcn.1001721e
pop ecx
cmp eax, 1
jne 0x10017dc0
lea eax, [ebp - 0x21c]
push eax
call fcn.1000d9e8
pop ecx
test eax, eax
jne 0x10017dc0
cmp edi, 1
jne 0x10017daf
push ebx
call fcn.1000d9e8
pop ecx
test eax, eax
jne 0x10017dc5
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
jmp 0x10017d5f
cmp edi, 1
jne 0x10017df3
mov eax, dword [ebp - 0x220]
push esi
push 0x1006d7cc
push dword [eax + 0x34]
call fcn.1000dd17
add esp, 0xc
test eax, eax
je 0x10017df8
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.1000dda7
pop ecx
pop ecx
test eax, eax
jmp 0x10017df6
cmp edi, 2
jne 0x10017e0a
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.1000b08e
xor eax, eax
call fcn.1002f26e
ret 0x10
Function at 0x10018173
Capabilities:
Delete file

Disassembly:
push 0x274
mov eax, 0x10067d23
call fcn.1002f321
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x26c]
push ebx
push eax
mov dword [ebp - 0x280], edi
call fcn.10038c20
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x26c]
add esp, 0xc
push 2
push 1
push ebx
push eax
push str.dat.diff
push esi
call fcn.10016691
mov esi, eax
test esi, esi
jne 0x100182cd
mov eax, dword [ebp - 0x274]
push 3
pop esi
push edi
push 0x1006d6f0
push dword [eax + 0x34]
mov dword [ebp - 0x27c], esi
call fcn.1000dd17
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x10018262
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], ebx
push eax
call fcn.10001860
pop ecx
test eax, eax
je 0x10018237
push edi
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call fcn.100018d7
add esp, 0xc
mov ebx, eax
or dword [ebp - 4], 0xffffffff
jmp 0x1001827d
push eax
push edi
lea eax, [ebp - 0x26c]
mov ecx, 0x1008e3d8
push eax
push dword [ebp - 0x270]
call fcn.10005d97
mov ebx, eax
test ebx, ebx
je 0x100182af
push dword [ebp + 0x18]
lea eax, [ebp - 0x64]
push 0x28
push eax
push edi
call fcn.1000cc72
add esp, 0x10
test eax, eax
je 0x100182af
push 0x20
push dword [ebp - 0x278]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
and esi, eax
test esi, esi
je 0x100182be
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
jmp 0x100182c4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x26c]
push eax
call edi
mov eax, esi
call fcn.1002f26e
ret 0x14

Function at 0x10018310
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x10067d63
call fcn.1002f27f
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 7
push str.http:__
push edi
call esi
test eax, eax
je 0x10018358
push 8
push str.https:__
push edi
call esi
test eax, eax
je 0x10018358
push edi
push str.__DownloadFileByNetUL_url_s_check_fail
call fcn.1001e3a3
pop ecx
pop ecx
xor eax, eax
jmp 0x100183ea
call fcn.1000678d
push eax
lea ecx, [ebp - 0x14]
call fcn.100062ac
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.100062d5
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.100062d5
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax + 0x2c]
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10017bd9
mov ecx, dword [ebp + 8]
add esp, 0x14
add ecx, 0xfffffff0
mov esi, eax
call fcn.100057c1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.100057c1
test esi, esi
jne 0x100183da
push edi
push str.__DownloadFileByNetUL_url_s_download_fail
call fcn.1001e3a3
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100183dd
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100057c1
mov eax, ebx
call fcn.1002f248
ret 8
Function at 0x1001854a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066c30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1008b548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x68], 0
mov dword [edi], vtable.CRemoteConfig.0
je 0x100185a1
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.10006625
pop ecx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
je 0x10018599
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.100057c1
lea ecx, [edi + 4]
call fcn.100184d1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1001ba71
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x1001badc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1001baf0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x1001badc
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x1001baee
cmp dword [edi + 4], ebx
je 0x1001baee
cmp dword [edi + 0xc], ebx
je 0x1001baee
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1001baf6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008b548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.10038c20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001bb60
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esi, 1
jne 0x1001bb4e
push str.NetBridge.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001bbaa
lea eax, [ebp - 0x20c]
push eax
call fcn.1000a9c2
mov ecx, eax
call fcn.1000540f
test eax, eax
je 0x1001bbaa
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.1001ba71
jmp 0x1001bbac
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f237
leave
ret 4
Function at 0x1001c54b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x41c
mov eax, 0x10068066
call fcn.1002f2b3
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x414], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push eax
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x1001c5ba
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1001c5ba
call fcn.1000a888
mov esi, eax
jmp 0x1001c662
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001c5da
call fcn.1000a888
jmp 0x1001c655
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1001c5d3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001c600
mov esi, 0x8007000e
jmp 0x1001c657
push eax
lea ecx, [ebp - 0x414]
call fcn.1001a7fb
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
je 0x1001c5f9
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1001c5d3
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.1001c412
mov esi, eax
test edi, edi
je 0x1001c662
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1001c67b
lea ecx, [ebp - 0x414]
call fcn.1001b5c1
mov eax, esi
call fcn.1002f25d
ret 0x10
Function at 0x1001d673
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008b548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
mov ecx, 0x1008ef58
call fcn.1001c6b3
mov esi, eax
test esi, esi
js 0x1001d6e4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1008fcc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.1003d0a0
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push dword [0x1008b3ac]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.1001a3ff
mov ecx, dword [ebp - 4]
mov eax, esi
and dword [section..IShareO], 0
xor ecx, ebp
pop esi
call fcn.1002f237
leave
ret
Function at 0x1002040b
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xd0
mov eax, 0x1006819b
call fcn.1002f2b3
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x10020544
lea ecx, [edi + 0x2c]
mov dword [ebx + 0x58], edi
call fcn.100105cd
lea esi, [ebx + 0x5c]
push edi
mov ecx, esi
call fcn.10018ff4
call fcn.1000678d
push eax
lea ecx, [ebp - 0x44]
call fcn.100062ac
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x44]
and dword [ebp - 4], 0
push eax
mov ecx, dword [ecx + 0x54]
call fcn.10010afc
push dword [ebp - 0x44]
mov ecx, ebx
push esi
call fcn.10017a4e
call fcn.1002e280
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x10020504
push str.d:_buildcore_lib_v3_update_safeliveupdateclass.cpp
lea ecx, [ebp - 0x40]
call fcn.10009b68
push 0x1006cc08
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10009b68
mov byte [ebp - 4], 2
call fcn.1002e280
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0xaa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10009c28
mov esi, eax
push str.StartUpdate
push esi
mov byte [ebp - 4], 3
call fcn.1000a451
push dword [ebp - 0x44]
push esi
call fcn.1001e195
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.1000a5bb
lea ecx, [ebp - 0x28]
call fcn.1000ba5a
lea ecx, [ebp - 0x40]
call fcn.1000ba5a
push 0
push 4
push ebx
push 0x100231c6
push 0
push 0
call fcn.100415f7
add esp, 0x18
mov dword [ebx + 0xd8], eax
test eax, eax
je 0x10020539
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebx + 0xd8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.100057c1
call fcn.1002f25d
ret 4
Function at 0x100226f1
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x100688a9
call fcn.1002f27f
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 0x10]
call fcn.10005561
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x5c]
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.10018ae6
test eax, eax
je 0x1002281c
mov eax, dword [edi + 0x2c]
cmp dword [eax - 0xc], 0
je 0x1002274f
push esi
push dword [ebx + 0x58]
lea ecx, [ebp + 0xf]
push ecx
push eax
call fcn.10008161
add esp, 0x10
test eax, eax
je 0x1002281c
cmp byte [ebp + 0xf], 0
je 0x1002281c
test byte [edi + 0x28], 0x10
jne 0x10022771
test dword [edi + 0x28], 0x800
jne 0x10022771
push dword [edi + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10022771
inc eax
jmp 0x1002281e
mov esi, dword [edi + 0x28]
xor ebx, ebx
shr esi, 0xb
inc ebx
and esi, ebx
call fcn.1000678d
push eax
lea ecx, [ebp - 0x14]
call fcn.100062ac
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x58]
push 0
push eax
push esi
mov ecx, dword [ecx + 0x54]
push edi
call fcn.1001081d
test eax, eax
je 0x1002280d
push dword [edi + 4]
push dword [esi]
call fcn.1000ceac
pop ecx
pop ecx
test eax, eax
jns 0x1002280b
test dword [edi + 0x28], 0x200
je 0x1002280d
call fcn.1000678d
push eax
lea ecx, [ebp + 0x10]
call fcn.100062ac
push dword [esi]
lea eax, [ebp + 0x10]
mov byte [ebp - 4], bl
push dword [ebp + 8]
push str._s:_s_
push eax
call fcn.1000d09a
mov esi, dword [ebp + 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push dword [esi - 0xc]
lea ecx, [ecx + 0xf8]
push esi
call fcn.10015193
lea ecx, [esi - 0x10]
call fcn.100057c1
jmp 0x1002280d
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100057c1
mov eax, ebx
jmp 0x1002281e
xor eax, eax
call fcn.1002f248
ret 0xc
Function at 0x1002338d
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023401
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
test eax, eax
je 0x100233ce
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10023401
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, edi
call fcn.100236c6
test eax, eax
je 0x10023401
lea ebx, [edi + 0xc8]
push esi
mov ecx, edi
call fcn.10023217
test eax, eax
je 0x1002341d
push 3
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.100134c8
test eax, eax
je 0x1002341d
push 2
pop eax
jmp 0x100233c7
push 3
push esi
push dword [ebp + 0xc]
lea ebx, [edi + 0xc8]
mov ecx, ebx
call fcn.100134c8
test eax, eax
je 0x100233df
xor eax, eax
inc eax
jmp 0x100233c7
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call fcn.10023433
test eax, eax
je 0x100233c5
push 3
jmp 0x100233fe

Function at 0x10023433
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1008b548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x418], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.1000b08e
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1002351e
lea eax, [ebp - 0x414]
push eax
call fcn.1000dc3f
pop ecx
test eax, eax
je 0x1002351e
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x1006ffbc
push eax
call fcn.1000dd17
add esp, 0xc
test eax, eax
je 0x1002351e
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
lea ecx, [edi + 0xc8]
call fcn.1001349a
test eax, eax
je 0x1002351e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 5
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0xc8]
call fcn.100134c8
test eax, eax
lea eax, [ebp - 0x20c]
push eax
je 0x10023518
call fcn.1003d0a0
pop ecx
mov ecx, dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10005920
xor eax, eax
inc eax
jmp 0x10023520
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f237
leave
ret 0xc
Function at 0x10023531
Capabilities:
Copy file

Disassembly:
push 0x218
mov eax, 0x10068a01
call fcn.1002f2b3
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
call fcn.1000678d
push eax
lea ecx, [ebp - 0x21c]
call fcn.100062ac
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x21c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov ecx, dword [ecx + 0x54]
call fcn.10010afc
test eax, eax
je 0x100235e7
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x100235e4
lea eax, [ebp - 0x218]
push eax
push 0x10070050
push dword [ebp - 0x21c]
call fcn.1000dd17
add esp, 0xc
test eax, eax
je 0x100235e7
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100235e7
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x218]
push esi
push dword [ebp - 0x220]
mov ecx, dword [ecx + 0x54]
push eax
push dword [ebp - 0x224]
call fcn.10010d56
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.100057c1
mov eax, esi
call fcn.1002f25d
ret 0xc
Function at 0x1002567e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1008b548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x88], ecx
mov ebx, esi
push edi
mov edi, esi
test eax, eax
je 0x10025816
test ecx, ecx
je 0x10025816
cmp dword [ebp + 0x10], 0x10
jl 0x10025816
push dword [ebp + 0x10]
push esi
push ecx
call fcn.10038c20
add esp, 0xc
push esi
push 1
push 3
push esi
push 1
push 1
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x10025816
cmp eax, 0xffffffff
je 0x1002580f
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.10024dd8
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1002580c
mov eax, dword [ebp - 0x7c]
or eax, dword [ebp - 0x78]
je 0x100257d3
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x80], edi
test edi, edi
je 0x1002580c
mov eax, dword [ebp - 0x78]
mov edx, esi
mov dword [ebp - 0x74], edx
mov ecx, esi
mov dword [ebp - 0x84], ecx
cmp edx, eax
jg 0x100257d3
mov edi, dword [ebp - 0x7c]
jl 0x10025763
cmp ecx, edi
jae 0x100257d0
sub edi, ecx
sbb eax, edx
js 0x10025778
jg 0x10025773
cmp edi, 0x400000
jb 0x10025778
mov edi, 0x400000
push edi
push ecx
push edx
push 4
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x100257d0
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.10024e16
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x84]
mov ebx, esi
mov edx, dword [ebp - 0x74]
add ecx, 0x400000
mov eax, dword [ebp - 0x78]
adc edx, esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x74], edx
cmp edx, eax
jge 0x100257c9
mov edi, dword [ebp - 0x7c]
jmp 0x10025763
jg 0x100257d0
mov edi, dword [ebp - 0x7c]
jmp 0x1002575f
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
call fcn.10024d1c
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.10005c9e
xor esi, esi
add esp, 0x14
inc esi
test ebx, ebx
je 0x10025801
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
je 0x1002580c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f237
leave
ret
Function at 0x10025895
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x10068bab
call fcn.1002f27f
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x10025a33
push esi
call fcn.1002f940
mov edi, eax
pop ecx
test edi, edi
je 0x10025a33
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10025a2c
call fcn.10025c5b
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x100259e0
call fcn.10025be1
test eax, eax
jne 0x100259e0
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100259e0
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x100259e0
call fcn.1000678d
push eax
lea ecx, [ebp - 0x18]
call fcn.100062ac
mov ecx, dword [ebp - 0x28]
and dword [ebp - 4], 0
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.1000d09a
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100259a4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.100057c1
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x10025936
jmp 0x100259e0
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.10005920
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.10025d38
push 0x20
mov ecx, ebx
call fcn.10025cb8
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.100057c1
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x10025a29
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1006d9fc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10025a29
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.1000d09a
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x10025a2c
mov ebx, dword [ebp - 0x10]
push edi
call fcn.1002f949
pop ecx
mov eax, ebx
call fcn.1002f248
ret