joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1007e3d0], 0
jne 0x1004b804
push esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push 0x1006af5c
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1004b803
push str.GetLocaleInfoEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push esi
sbb eax, eax
add eax, 2
mov dword [0x1007e3d0], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x1007e3d0], 1
sete al
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1004b820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fa50
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1007b00c]
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
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push 0x10067498
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10002e00
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.1003ef10
test eax, eax
je 0x1004b9f0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push str.iexplore.exe
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1004b9f0
push 0x10067498
lea ecx, [ebp - 0x28]
call fcn.10002d00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1003e890
test eax, eax
je 0x1004b9e8
push 0x40
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004b8f0
mov esi, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
add esi, 4
add esi, ecx
mov edx, 2
xor ecx, ecx
mov dword [ebp - 0x9c], esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004b9dc
push 0x1006a988
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push ebx
call esi
add esp, 0xc
push 0x1006a208
push dword [ebp - 0x9c]
push ebx
call esi
add esp, 0xc
push edi
push dword [ebp - 0x9c]
push ebx
call esi
add esp, 0xc
lea ecx, [ebp - 0x98]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
je 0x1004b9dc
push dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x94]
call esi
lea ecx, [ebp - 0x28]
mov esi, 1
call fcn.10002cc0
jmp 0x1004ba0f
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.10002cc0
jmp 0x1004ba0f
lea ecx, [ebp - 0x28]
call fcn.10002cc0
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x1004ba21
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.10003020
mov eax, esi
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.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1004bd90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x1004bdc5
call fcn.1003dc90
test eax, eax
jne 0x1004bdc5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x1004bde9
mov ecx, esi
call fcn.1004bb30
test eax, eax
je 0x1004bde9
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], esi
jmp 0x1004be0c
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x1004bd10
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], edi
je 0x1004be39
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004be39
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp - 0xc], eax
jne 0x1004be39
mov edi, 1
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push str.GlobalDetectFullScreenDF7B9CDF_77D9_4b42_9F09_97CF0056C883
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x1004be6b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov ecx, 1
push esi
cmove edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
xor ecx, ebp
pop edi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x1004be80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], ecx
push 0
push eax
mov esi, edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xa
push str.user32.dll
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x1004bf11
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push edi
push str.ChangeWindowMessageFilter
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004bf36
neg esi
sbb esi, esi
add esi, 2
push esi
push dword [ebp - 0x214]
call eax
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1004c4e0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 4
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004c516
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1004c54a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Thread32Next]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.1000f070
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x1004c533
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
sar eax, 2
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x1004c570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x41c]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
push esi
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1004c665
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Psapi.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1004c653
push str.GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004c653
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push ebx
call eax
test eax, eax
je 0x1004c653
lea eax, [ebp - 0x41c]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea eax, [ebp - 0x41c]
push str.explorer.exe
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 0x10
mov ecx, 1
test eax, eax
cmovne edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1004c665
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1004d2a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100738b8
push 0x1005c7db
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x1007b00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
push 0x105
push 0
lea eax, [ebp - 0x124]
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, 1
mov dword [ebp - 0x364], esi
add esp, 8
lea ecx, [ebp - 0x330]
call fcn.1004d4c0
mov dword [ebp - 0x128], 0
push 0xffffffffffffffff
push str.6BE417DD_264A_4678_A036_74D2173ECCEB
push 0x104
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
cmp dword [ebp - 0x128], 0
jne 0x1004d35a
lea eax, [ebp - 0x330]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x128], eax
test eax, eax
je 0x1004d35a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x30
push 0
lea eax, [ebp - 0x360]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x360]
push eax
push 0
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
je 0x1004d482
mov dword [ebp - 4], 0
cmp byte [ebp - 0x33f], 0
jne 0x1004d456
mov ecx, dword [ebp - 0x354]
movzx eax, word [ecx + 0x18]
mov edx, 0x10b
cmp ax, dx
jne 0x1004d3dc
add ecx, 0x98
jmp 0x1004d3ec
mov edx, 0x20b
cmp ax, dx
jne 0x1004d456
add ecx, 0xa8
mov ebx, dword [ebp - 0x334]
mov edi, dword [ebp - 0x358]
add edi, ebx
lea eax, [ecx + 8]
cmp eax, edi
ja 0x1004d44e
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
lea eax, [ecx + edx]
cmp eax, ebx
ja 0x1004d44e
test ecx, ecx
je 0x1004d44e
test edx, edx
je 0x1004d44e
add ecx, dword [ebp - 0x358]
lea ebx, [edx + ecx]
mov edx, 0x100
mov dword [ebp - 0x368], edx
cmp ecx, ebx
jae 0x1004d456
test edx, edx
jle 0x1004d456
lea eax, [ecx + 0xc]
cmp eax, edi
ja 0x1004d44e
mov eax, dword [ecx]
test eax, eax
je 0x1004d44e
cmp eax, 0xffffffff
je 0x1004d44e
add ecx, 7
add ecx, eax
and ecx, 0xfffffff8
dec edx
jmp 0x1004d423
xor esi, esi
mov dword [ebp - 0x364], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004d475
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x1004d49f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1004eee0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x412
mov ebx, ecx
mov dword [ebp - 0x420], 0
push 0
push eax
mov dword [ebp - 0x41c], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.1004ed50
test esi, esi
je 0x1004ef50
xor eax, eax
cmp ax, word [esi]
je 0x1004ef50
push 0x208
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
cmp ax, word [ebp - 0x418]
jne 0x1004ef64
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea edi, [ebp - 0x418]
mov eax, edi
push eax
call esi
mov ebx, edi
lea ebx, [ebx + eax*2]
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, edi
je 0x1004efaf
push eax
call esi
mov ecx, dword [ebp - 0x41c]
push eax
mov eax, edi
push eax
call fcn.1004ee00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
cmp eax, ebx
jae 0x1004f09b
mov ecx, 0x20
lea edx, [ecx + 2]
nop
cmp cx, word [edi]
jne 0x1004efcd
add edi, 2
cmp cx, word [edi]
je 0x1004efc5
mov esi, edi
cmp edi, ebx
jae 0x1004f09b
movzx eax, word [esi]
cmp dx, ax
jne 0x1004f01a
cmp dword [ebp - 0x420], 0
jne 0x1004eff0
mov dword [ebp - 0x420], esi
jmp 0x1004f060
cmp esi, ebx
je 0x1004effa
cmp cx, word [esi + 2]
jne 0x1004f060
mov ecx, dword [ebp - 0x41c]
mov eax, esi
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
call fcn.1004ee00
mov dword [ebp - 0x420], 0
jmp 0x1004f086
cmp cx, ax
jne 0x1004f060
xor eax, eax
mov word [esi], ax
cmp dword [ebp - 0x420], eax
jne 0x1004f05d
lea eax, [edi + 2]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1004f06f
lea eax, [esi + 2]
push 0x10067494
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1004f06f
mov ecx, 0x20
lea edx, [ecx + 2]
mov word [esi], cx
add esi, 2
cmp esi, ebx
je 0x1004f073
jb 0x1004efd7
jmp 0x1004f08e
mov eax, esi
jmp 0x1004f075
mov eax, ebx
mov ecx, dword [ebp - 0x41c]
sub eax, edi
sar eax, 1
push eax
push edi
call fcn.1004ee00
lea edi, [esi + 2]
mov ecx, 0x20
mov edx, 0x22
cmp edi, ebx
jb 0x1004efc0
mov ecx, dword [ebp - 0x41c]
xor eax, eax
pop edi
pop esi
pop ebx
cmp dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
Function at 0x1004f160
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004f170
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jbe 0x1004f1e6
push str.__
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1004f1e6
add esi, 5
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005be1c
push str.__
mov edi, eax
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push ebx
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x1c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov esi, eax
call fcn.1005be17
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
pop ebx
ret
Function at 0x10050a60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x10050ae8
xor eax, eax
cmp ax, word [esi]
je 0x10050ae8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10050ae8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x10050ae8
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str..exe
push esi
call ebx
add esp, 8
test eax, eax
jne 0x10050aac
mov eax, dword [0x1007de3c]
test eax, eax
jne 0x10050adc
push str..dll
push esi
call ebx
add esp, 8
test eax, eax
jne 0x10050ac4
mov eax, dword [0x1007de38]
test eax, eax
jne 0x10050adc
push str..lnk
push esi
call ebx
add esp, 8
test eax, eax
jne 0x10050ae7
mov eax, dword [0x1007de40]
test eax, eax
je 0x10050ae7
push eax
push 0
call dword [sym.imp.SHELL32.dll_DuplicateIcon]
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x100514c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x100514df
push eax
call fcn.1005be17
add esp, 4
mov dword [edi + 4], 0
push 0x250
lea esi, [edi + 0xc]
mov dword [edi + 8], 0
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea ebx, [edi + 0x260]
mov dword [edi + 0x25c], 0
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [edi + 0x46a]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [edi + 0x674]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [edi + 0x87e]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1005157d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10051574
mov dword [edi + 0x25c], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
mov ecx, edi
mov dword [edi + 0x25c], 1
call fcn.10051700
push 0x104
lea eax, [edi + 0x87e]
push eax
push 0x104
lea eax, [edi + 0x674]
push eax
push 0x104
lea eax, [edi + 0x46a]
push eax
push 0x104
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10051700
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x1005171e
push eax
call fcn.1005be17
add esp, 4
mov dword [esi + 4], 0
mov edi, dword [ebp + 8]
mov dword [esi + 8], 0
test edi, edi
je 0x100517b5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100517b5
cmp eax, 0x104
ja 0x100517b5
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [esi + 8], eax
test eax, eax
je 0x100517b5
inc eax
xor ecx, ecx
mov dword [esi + 8], eax
mov edx, 2
mul edx
push 0x1007da74
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005be25
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x100517ae
push dword [esi + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esi + 4]
push dword [esi + 8]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x100517bd
push dword [esi + 4]
call fcn.1005be17
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x100530f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
je 0x1005313f
cmp word [esi], 0
jne 0x1005311f
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.10002e00
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10053124
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.10002e00
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x10053150
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1006b8dc
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10053225
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
je 0x10053227
cmp word [ebp - 0x210], 0
jne 0x100531ea
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push eax
mov ecx, edi
call fcn.10002e00
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100531f3
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002e00
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
Function at 0x10053240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1006aa2c
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100533dd
push edi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
cmp ax, word [esi]
je 0x10053326
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov ebx, 0x20
movzx eax, word [esi]
cmp bx, ax
je 0x100532e7
nop dword [eax]
xor ecx, ecx
cmp cx, ax
je 0x100532e7
push 1
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call edi
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x10
cmp bx, ax
jne 0x100532c0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test ebx, ebx
jne 0x10053369
cmp ax, word [esi]
je 0x10053316
push 1
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call edi
add esp, 0x10
add esi, 2
xor eax, eax
lea ebx, [eax + 0x20]
cmp ax, word [esi]
jne 0x100532b4
mov ebx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
je 0x10053354
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.1000c1b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
cmp word [ebp - 0x210], 0
jne 0x1005339d
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
push eax
call fcn.10002e00
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100533a6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x214]
push eax
call fcn.10002e00
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8