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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4643e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x40fa81
lea ecx, [ebp - 0x14]
push ecx
call fcn.00419b90
push 0x46aa0c
push eax
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], 0
call fcn.0040f8b0
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fa53
mov edi, dword [ebp - 0x10]
push edi
call fcn.0040f4f0
add esp, 4
test eax, eax
je 0x40fa53
push edi
call fcn.0040f110
test eax, eax
je 0x40fa53
push 0x46a9fc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fa53
call eax
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
je 0x40fa98
push 1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x40fa81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40fab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413bba
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x413ba7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test edi, 0x100
ja 0x413b97
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0x27
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x413f50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464438
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413f97
and al, 0x10
xor cl, cl
cmp cl, al
sbb edx, edx
neg edx
jne 0x414058
push ebx
lea ecx, [ebp - 0x14]
call fcn.00413e70
mov esi, dword [ebp - 0x14]
mov eax, esi
mov dword [ebp - 4], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413fb0
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x413fd3
cmp word [esi + eax*2 - 2], 0x5c
jne 0x413fd3
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0x5c
push esi
call fcn.00449224
add esp, 8
push esi
test eax, eax
jne 0x414002
call fcn.00448a60
add esp, 4
mov eax, 0xf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov word [eax], dx
call fcn.00413f50
mov edi, eax
add esp, 4
test edi, edi
je 0x414032
push esi
call fcn.00448a60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41404f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x414015
push esi
call fcn.00448a60
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.0044a152
add esp, 0xc
pop ebp
ret 0xc

Function at 0x414fc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, 0x100
je 0x414fdf
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0044ad18
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x416190
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x416263
test esi, esi
je 0x416263
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x80
jl 0x416263
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00448540
add esp, 0xc
lea ecx, [ebp - 0x404]
push ecx
push 0x200
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x416263
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x408]
push eax
push 0x4753cc
lea ecx, [ebp - 0x404]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x416263
push ebx
push 0
push esi
call fcn.00448540
mov eax, dword [ebp - 0x408]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x46c768
push esi
call fcn.00410240
add esp, 0x24
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x416430
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x4164aa
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416481
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46c7a8
call fcn.00426d30
add esp, 8
pop esi
mov eax, edi
pop edi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41649e
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
test esi, esi
je 0x4164a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4164c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x416523
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x76
push edi
call ebx
push 8
mov esi, eax
push edi
imul esi, esi, 0x64
call ebx
mov ecx, eax
mov eax, esi
cdq
idiv ecx
push 0x58
push edi
mov esi, eax
call ebx
mov ecx, eax
imul ecx, ecx, 0x64
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
pop ebx
cmp esi, 0x64
je 0x4165a2
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push 0x46c7f8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416596
mov eax, 4
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46c7e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x416580
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jbe 0x416596
imul ecx, ecx, 0x64
mov eax, 0xaaaaaaab
mul ecx
mov esi, edx
shr esi, 6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4165b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4165e1
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea ecx, [ebp - 0x1c]
push ecx
push 0x46c840
push edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 4]
push edi
push edi
push edi
lea edx, [ebp - 0x20]
push edx
push edi
push eax
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov esi, eax
call ebx
cmp esi, edi
jne 0x41665a
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, edi
je 0x41665a
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x41665a
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x416663
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4166c8
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 1
push 2
push 0
push 0x18b
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4166c8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4166c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4166c8
mov edi, 1
mov edx, dword [ebp - 8]
push edx
call ebx
mov eax, dword [ebp - 0xc]
push eax
call ebx
push esi
call ebx
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416e40
push 0x3c
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00448540
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], 0x475804
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], 0x1040
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x416e40
mov edi, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4177e0
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x430], 0x46ca40
mov dword [ebp - 0x42c], 0x46c9c0
mov dword [ebp - 0x428], 0x46c940
mov dword [ebp - 0x424], 0x46c8c0
xor esi, esi
jmp 0x417830
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x420], 0x410
call fcn.00448540
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp + esi*4 - 0x430]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0x475810
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4178d7
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4178d7
call fcn.0040f410
test eax, eax
je 0x4178d7
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x4804f8
mov dword [ebp - 0x418], 0xffffffff
call fcn.004406f0
test eax, eax
je 0x4178d7
mov eax, dword [ebp - 0x418]
cmp eax, 3
je 0x4178d7
cmp eax, 0xffffffff
jne 0x4178f3
inc esi
cmp esi, 4
jb 0x417830
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x46c88c
lea edx, [ebp - 0x414]
push edx
push 0x475804
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x417930
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x430], 0x46ca40
mov dword [ebp - 0x42c], 0x46c9c0
mov dword [ebp - 0x428], 0x46c940
mov dword [ebp - 0x424], 0x46c8c0
xor esi, esi
jmp 0x417980
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x420], 0x410
call fcn.00448540
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp + esi*4 - 0x430]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0x475810
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x417a27
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417a27
call fcn.0040f410
test eax, eax
je 0x417a27
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x4804f8
mov dword [ebp - 0x418], 0xffffffff
call fcn.004406f0
test eax, eax
je 0x417a27
mov eax, dword [ebp - 0x418]
cmp eax, 3
je 0x417a27
cmp eax, 0xffffffff
jne 0x417a43
inc esi
cmp esi, 4
jb 0x417980
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x417d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00449830
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00448540
add esp, 0xc
push 0x475790
push 0x800
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00417290
push esi
push 0x800
lea edx, [ebp - 0x1004]
push edx
call fcn.00417290
push 0x475798
push 0x800
lea eax, [ebp - 0x1004]
push eax
call fcn.00417290
push esi
push 0x800
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00417290
push 0x4757c4
push 0x800
lea edx, [ebp - 0x1004]
push edx
call fcn.00417290
mov eax, dword [ebp + 8]
push eax
push 0x800
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00417290
push 0x46cac0
push 0x800
lea edx, [ebp - 0x1004]
push edx
call fcn.00417290
push 0x14
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x417e69
push 0xc8
push 0x475698
push 0x47f248
call fcn.00448c6a
add esp, 0xc
test eax, eax
jne 0x417e51
call fcn.00408400
test eax, eax
je 0x417e51
push 5
push 0
push 0
push 0x47f3e0
jmp 0x417e5c
push 5
push 0
push 0
push 0x47f248
push 0x475804
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x417e76
push 0
call fcn.0044bc95
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x417e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040f4f0
add esp, 4
push esi
test eax, eax
jne 0x417ec4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417ebf
push 1
push 0x47f0b0
push esi
call fcn.00417d40
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
ret
Function at 0x417ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4837dc]
test eax, eax
je 0x417ef9
cmp dword [0x4837d8], 0
jne 0x417fd2
mov ecx, dword [0x4837d4]
push esi
push edi
push 0x400
lea eax, [ebp - 0x804]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x804]
push edx
call edi
xor esi, esi
cmp dword [0x4837d0], esi
jle 0x417f42
lea ecx, [ecx]
lea eax, [ebp - 0x804]
push eax
call edi
inc esi
cmp esi, dword [0x4837d0]
jl 0x417f30
push 0x46caec
lea ecx, [ebp - 0x804]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
call fcn.0040f4f0
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x417f97
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417f93
push 1
lea edx, [ebp - 0x804]
push 0x47f0b0
push edx
call fcn.00417d40
add esp, 0xc
xor eax, eax
jmp 0x417fa4
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4837d8], eax
test eax, eax
jne 0x417fbd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
push 0x46cae0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4837dc], eax
test eax, eax
je 0x417fad
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x4193c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x410
push eax
lea ecx, [ebp - 0x416]
push ecx
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x418], ax
call fcn.00448540
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x46cb24
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
push ecx
mov ecx, esi
call fcn.0040fbe0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x419450
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x410
push eax
lea ecx, [ebp - 0x416]
push ecx
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x418], ax
call fcn.00448540
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x418]
push eax
mov ecx, esi
call fcn.0040fbe0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x4194d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x410
push eax
lea ecx, [ebp - 0x416]
push ecx
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x418], ax
call fcn.00448540
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x418]
push eax
mov ecx, esi
call fcn.0040fbe0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret

Function at 0x419550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x410
push eax
lea ecx, [ebp - 0x416]
push ecx
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x418], ax
call fcn.00448540
add esp, 0xc
push 0
push 6
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x418]
push eax
mov ecx, esi
call fcn.0040fbe0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x4195d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464818
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4196fb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41961e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp + 8]
call fcn.0040fbe0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
mov dword [ebp - 4], 0
jle 0x419646
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.0040f210
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00449ab1
add esp, 8
test eax, eax
jl 0x41970d
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x41970d
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 8]
push eax
call fcn.004195d0
add esp, 4
test eax, eax
je 0x4196d5
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, eax
mov eax, dword [ebp + 8]
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4196c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4196fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403dd0
int3