joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d680
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push 1
mov esi, ecx
pop edi
push dword [esp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x40d6ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d6ab
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40d6c9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov edi, eax
push 0x4280b4
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40d734
mov dword [ebp - 4], 3
jmp 0x40d769
push 0x427ea0
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40d762
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x4280a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402b7f
add esp, 0xc
test eax, eax
je 0x40d769
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40d770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
cmp ebx, esi
je 0x40d7fb
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x4280cc
push ebx
mov dword [ebp - 4], esi
call fcn.00402b7f
add esp, 0xc
test eax, eax
jne 0x40d7f8
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.00410999
mov ecx, eax
call fcn.0041281d
test eax, eax
je 0x40d7fb
cmp dword [ebp - 4], esi
je 0x40d7fb
push 1
pop esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d802
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40d8ac
cmp dword [ebp + 0xc], ebx
je 0x40d8ac
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push 0x427eb8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
je 0x40d8a8
lea eax, [ebp - 0x208]
push eax
push 0x4260b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
mov eax, ebx
jmp 0x40d8ae
xor eax, eax
pop ebx
leave
ret 8

Function at 0x40d8b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40d932
cmp dword [ebp + 0xc], esi
je 0x40d932
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
pop edi
je 0x40d92e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x427ea0
lea eax, [ebp - 0x208]
push 0x4280f4
push eax
push 0x4280e0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
push 1
pop esi
mov eax, esi
jmp 0x40d934
xor eax, eax
pop esi
leave
ret 8
Function at 0x40dd05
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40dd8c
cmp dword [ebp + 0xc], esi
je 0x40dd8c
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x42817c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402ad1
add esp, 0x10
test eax, eax
pop edi
je 0x40dd88
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dd88
lea eax, [ebp - 0x208]
push eax
push 0x4260b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop esi
mov eax, esi
jmp 0x40dd8e
xor eax, eax
pop esi
leave
ret 8

Function at 0x40de81
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 1
lea eax, [ebp - 4]
pop esi
push eax
push 0x427f28
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402b7f
add esp, 0xc
test eax, eax
je 0x40deab
xor esi, esi
mov eax, esi
pop esi
leave
ret

Function at 0x40deb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 0x40dee0
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x40ded4
push 1
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x40ff29
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
je 0x41005d
cmp dword [ebp + 0xc], esi
je 0x41005d
push ebx
push edi
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x8e]
mov word [ebp - 0x90], si
cmp dword [ebp + 0x10], esi
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 1
stosw word es:[edi], ax
pop edi
mov dword [ebp - 4], 0x7e
mov dword [ebp - 8], edi
jne 0x40ffab
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 8]
push eax
push 0x42a2b0
push 0x42799c
push SysReAllocString
call ebx
test eax, eax
jne 0x40ffab
cmp word [ebp - 0x90], si
jne 0x410038
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x10], eax
push ecx
push esi
push eax
push 0x40feb3
push esi
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x493e0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x410026
push 0x80
lea eax, [ebp - 0x90]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x7e
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 8]
push eax
push 0x42a2b0
push 0x42799c
push SysReAllocString
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x90], si
je 0x410056
lea eax, [ebp - 0x90]
push eax
push 0x4260b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
jmp 0x41005f
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x410064
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push 1
xor eax, eax
cmp dword [ebp + 8], eax
pop edx
mov dword [ebp - 0xc], edx
je 0x41014f
cmp dword [ebp + 0xc], eax
je 0x41014f
push ebx
push esi
push edi
push 0x1f
pop ecx
lea edi, [ebp - 0x8a]
mov word [ebp - 0x8c], ax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov ebx, 0x428e88
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 4]
push eax
mov edi, 0x42799c
push ebx
push edi
push SysReAllocString
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0x7e
call esi
test eax, eax
jne 0x4100dd
cmp word [ebp - 0x8c], ax
jne 0x41012c
push 0x80
lea eax, [ebp - 0x8c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x7e
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x410126
cmp word [ebp - 0x8c], ax
jne 0x41012c
and dword [ebp - 0xc], 0
jmp 0x410147
lea eax, [ebp - 0x8c]
push eax
push 0x4260b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
jmp 0x410151
mov eax, edx
leave
ret 8
Function at 0x410155
Capabilities:
Accept command line arguments
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
and dword [ebp - 0x80], 0
and dword [ebp - 0x6c], 0
and byte [ebp - 1], 0
mov ecx, 0x42920c
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x70], ecx
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x4291ec
push esi
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x42916c
mov byte [ebp - 0x7c], 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0x4290f0
mov byte [ebp - 0x68], 1
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x429078
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0x429060
mov byte [ebp - 0x54], 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x428fec
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0x428fd4
mov byte [ebp - 0x40], 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x428f60
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0x428f48
mov byte [ebp - 0x2c], 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x428ea8
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0x428e90
mov byte [ebp - 0x18], 8
lea esi, [ebp - 0x88]
mov dword [ebp - 0xc], 6
and word [ebp - 0x298], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x296]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 1
push dword [esi + 4]
push dword [esi]
push dword [esi - 4]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4102f0
cmp word [ebp - 0x298], ax
je 0x4102f0
cmp word [ebp - 0x298], 0x22
jne 0x4102b7
and dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x4102b7
cmp dword [ebp - 8], 0
je 0x4102b0
push dword [edi]
lea eax, [ebp - 0x298]
push 0x4260b8
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esi + 8]
test edi, edi
je 0x4102d9
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x298]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4102f0
mov al, byte [esi + 0xc]
or byte [ebp - 1], al
add esi, 0x14
dec dword [ebp - 0xc]
jne 0x410213
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret
Function at 0x410303
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x46
pop ecx
xor eax, eax
lea edi, [ebp - 0x13c]
mov dword [ebp - 0x140], 0x11c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x140]
push eax
call esi
test eax, eax
jne 0x410353
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x114
push eax
call esi
test eax, eax
je 0x4103ec
mov eax, dword [ebp - 0x130]
xor ecx, ecx
sub eax, ecx
je 0x4103ec
dec eax
je 0x4103ec
dec eax
jne 0x4103ec
cmp dword [ebp - 0x13c], 6
jne 0x410397
mov eax, dword [ebp - 0x138]
cmp eax, 2
je 0x410386
cmp eax, 3
jne 0x41038a
mov al, 3
jmp 0x4103ee
cmp eax, 1
je 0x410393
cmp eax, ecx
jne 0x4103ec
mov al, 2
jmp 0x4103ee
cmp dword [ebp - 0x13c], 5
jne 0x4103ec
cmp dword [ebp - 0x138], 2
jne 0x4103e1
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], 0x24
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4103ec
cmp byte [ebp - 0x26], 1
jne 0x4103ec
cmp word [ebp - 0x24], 9
jne 0x4103ec
mov al, 1
jmp 0x4103ee
cmp dword [ebp - 0x138], 1
mov al, 1
je 0x4103ee
mov al, 4
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
and word [ebp - 0x294], 0
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x292]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 4]
push eax
push 0x42a2b0
push 0x429218
push SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x410551
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410551
and word [ebp - 0x88], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x86]
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00401120
add esp, 0xc
test eax, eax
je 0x410551
mov esi, dword [sym.imp.MSVCRT.dll_wcschr]
lea eax, [ebp - 0x88]
push 0x2e
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410551
add eax, 2
push 0x2e
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x410551
and word [eax], 0
lea eax, [ebp - 0x88]
push eax
push 0x4260b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
jmp 0x410553
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x411473
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x6c]
cmp eax, edi
jne 0x411485
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41149b
mov ecx, esi
call fcn.00411575
test eax, eax
je 0x4114c7
mov ecx, esi
call fcn.004116ff
test eax, eax
je 0x4114de
mov ecx, esi
call fcn.00412185
cmp dword [esi + 0x2c], edi
je 0x4114b9
mov ecx, esi
call fcn.004130c0
push 3
mov ecx, esi
call fcn.0041137f
push 1
pop edi
jmp 0x4114f3
push 1
mov ecx, esi
call fcn.0041137f
call fcn.0040e21d
mov dword [eax + 0xc], 0x68
jmp 0x4114e7
push 2
mov ecx, esi
call fcn.0041137f
call fcn.00413cfe
mov ecx, eax
call fcn.00413e8e
mov eax, edi
pop edi
pop esi
ret
Function at 0x411575
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
and word [ebp - 0x694], 0
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, 0x81
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x692]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x694]
mov esi, 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4116fa
and word [ebp - 0x284], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x282]
rep stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x411626
and word [ebp - 0x7c], ax
push 0x18
pop ecx
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push 0x32
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x411646
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x694]
push 0x426174
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x284]
push eax
call fcn.004014a3
test eax, eax
pop ecx
je 0x4116f7
and word [ebp - 0x48c], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x48a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x284]
push eax
push 0x4295a4
lea eax, [ebp - 0x48c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x84
lea eax, [ebp - 0x48c]
push 0x42959c
push eax
call fcn.00402990
add esp, 0x1c
test eax, eax
je 0x4116f7
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x48c]
push eax
call fcn.00402d59
pop ecx
test eax, eax
pop ecx
je 0x4116f7
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x68]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411d93
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 8], ebx
cmp dword [edi + 0x18], ebx
jne 0x411e3f
call fcn.0040cdc4
cmp dword [eax + 8], 3
je 0x411e3f
push esi
mov esi, dword [esp + 0x14]
push esi
push 2
push 0x421730
mov ecx, edi
call fcn.00411e47
mov ecx, dword [esi + 4]
mov edi, 0x420
cmp ecx, ebx
je 0x411dec
mov eax, dword [esi + 8]
sub eax, ecx
mov ecx, edi
cdq
idiv ecx
test eax, eax
je 0x411dec
mov dword [esp + 0xc], 1
push ebp
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411e23
mov eax, dword [esi + 8]
mov ebp, edi
sub eax, ecx
cdq
idiv ebp
cmp dword [esp + 0x18], eax
jae 0x411e23
lea eax, [ebx + ecx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411e1e
inc dword [esp + 0x18]
add ebx, edi
jmp 0x411df1
and dword [esp + 0x10], 0
cmp dword [esp + 0x10], 0
pop ebp
jne 0x411e38
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.00413738
mov eax, dword [esp + 0xc]
pop esi
jmp 0x411e41
xor eax, eax
pop edi
pop ebx
pop ecx
ret 4
Function at 0x412185
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
call fcn.0041335f
mov eax, dword [esi + 0x18]
push 4
test eax, eax
pop edi
je 0x412240
cmp eax, edi
je 0x412240
lea eax, [ebp - 0x18]
and dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
mov esi, 0x42799c
push 0x42965c
mov ebx, SysReAllocString
push esi
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4121f9
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push edi
push eax
push edi
push 0x42965c
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 8]
and dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x429648
push esi
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x41232a
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push 0x429648
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x41232a
lea eax, [ebp - 0x10]
push edi
push eax
push edi
mov esi, 0x42799c
push 0x42965c
mov ebx, SysReAllocString
push esi
push ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and word [ebp - 0x224], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x224]
push 0x103
push eax
call fcn.0040383d
pop ecx
test eax, eax
pop ecx
je 0x4122e6
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
push 1
push 0x429628
push esi
push ebx
call edi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
push 1
push 0x429628
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
jmp 0x4122ec
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 8]
xor eax, eax
push 4
cmp dword [ecx + 0x18], eax
sete al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0x429648
push esi
push ebx
call edi
call fcn.0040cdc4
mov eax, dword [eax + 0xc]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0x429618
push esi
push ebx
call edi
push 4
pop edi
call fcn.0040e21d
mov ecx, eax
call fcn.0040ee6b
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push edi
push eax
push edi
push 0x4295fc
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412572
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
xor edx, edx
cmp esi, edx
je 0x4125e1
cmp word [esi], dx
je 0x4125e1
cmp dword [ecx + 0x14], 8
jge 0x4125e1
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x28
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
jmp 0x4125e4
push 1
pop eax
pop esi
leave
ret 4

Function at 0x412955
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp ecx, esi
je 0x4129d2
cmp word [ecx], si
je 0x4129d2
push edi
xor eax, eax
lea edi, [ebp - 0x22]
mov word [ebp - 0x24], si
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 3
lea eax, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
lea edi, [ebp - 4]
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x4129ce
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push 0x14
pop ecx
call fcn.0041f920
cmp eax, dword [ebp + 0xc]
jbe 0x4129ce
push 1
pop esi
mov eax, esi
jmp 0x4129d4
xor eax, eax
pop esi
leave
ret 8