joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a139
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 0x40a164
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a164
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40a182
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 0x422c0c
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40a1ed
mov dword [ebp - 4], 3
jmp 0x40a222
push 0x4229c0
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40a21b
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x422bf8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402a90
add esp, 0xc
test eax, eax
je 0x40a222
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40a229
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 0x40a2b4
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 0x422c24
push ebx
mov dword [ebp - 4], esi
call fcn.00402a90
add esp, 0xc
test eax, eax
jne 0x40a2b1
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.0040cd00
mov ecx, eax
call fcn.0040e8a0
test eax, eax
je 0x40a2b4
cmp dword [ebp - 4], esi
je 0x40a2b4
push 1
pop esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a2bb
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 0x40a365
cmp dword [ebp + 0xc], ebx
je 0x40a365
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 0x4229d8
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 0x40a361
lea eax, [ebp - 0x208]
push eax
push 0x4220a0
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 0x40a367
xor eax, eax
pop ebx
leave
ret 8

Function at 0x40a36c
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 0x40a3eb
cmp dword [ebp + 0xc], esi
je 0x40a3eb
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 0x40a3e7
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4229c0
lea eax, [ebp - 0x208]
push 0x422c4c
push eax
push 0x422c38
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 0x40a3ed
xor eax, eax
pop esi
leave
ret 8
Function at 0x40a7bc
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 0x40a843
cmp dword [ebp + 0xc], esi
je 0x40a843
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 0x422cc8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004029e2
add esp, 0x10
test eax, eax
pop edi
je 0x40a83f
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a83f
lea eax, [ebp - 0x208]
push eax
push 0x4220a0
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 0x40a845
xor eax, eax
pop esi
leave
ret 8

Function at 0x40a8a6
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 0x422a48
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402a90
add esp, 0xc
test eax, eax
je 0x40a8d0
xor esi, esi
mov eax, esi
pop esi
leave
ret

Function at 0x40a8d5
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 0x40a905
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x40a8f9
push 1
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x40b277
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 0x40
lea eax, [esi + 0x10]
push eax
call fcn.0040c4e6
lea eax, [ebp - 4]
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [esi + 0x90]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov ebx, SysReAllocString
push 0x422bc0
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x7e
call edi
lea eax, [ebp - 4]
add esi, 0x110
push eax
lea eax, [ebp - 8]
push esi
push eax
push 0x42305c
push 0x422bc0
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x7e
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c3ab
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 0x40c4df
cmp dword [ebp + 0xc], esi
je 0x40c4df
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 0x40c42d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 8]
push eax
push 0x42483c
push 0x422bc0
push SysReAllocString
call ebx
test eax, eax
jne 0x40c42d
cmp word [ebp - 0x90], si
jne 0x40c4ba
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 0x40c335
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 0x40c4a8
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 0x42483c
push 0x422bc0
push SysReAllocString
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x90], si
je 0x40c4d8
lea eax, [ebp - 0x90]
push eax
push 0x4220a0
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 0x40c4e1
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x40c4e6
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 0x40c5d1
cmp dword [ebp + 0xc], eax
je 0x40c5d1
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, 0x4237ac
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 4]
push eax
mov edi, 0x422bc0
push ebx
push edi
push SysReAllocString
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0x7e
call esi
test eax, eax
jne 0x40c55f
cmp word [ebp - 0x8c], ax
jne 0x40c5ae
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 0x40c5a8
cmp word [ebp - 0x8c], ax
jne 0x40c5ae
and dword [ebp - 0xc], 0
jmp 0x40c5c9
lea eax, [ebp - 0x8c]
push eax
push 0x4220a0
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 0x40c5d3
mov eax, edx
leave
ret 8
Function at 0x40c5d7
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov ecx, 0x423aa4
push ebx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x58], ecx
mov eax, reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov ecx, 0x423a84
push esi
push edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0x423a04
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x64], 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0x423988
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x50], 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x423910
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0x4238f8
mov byte [ebp - 0x3c], 2
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x423884
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0x42386c
mov byte [ebp - 0x28], 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x4237cc
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0x4237b4
mov byte [ebp - 0x14], 8
mov byte [ebp - 1], bl
lea esi, [ebp - 0x70]
mov dword [ebp - 8], 5
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x27e]
mov word [ebp - 0x280], bx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 1
push dword [esi + 4]
push dword [esi]
push dword [esi - 4]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c6f8
cmp word [ebp - 0x280], bx
je 0x40c6f8
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40c6e1
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x280]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c6f8
mov al, byte [esi + 0xc]
or byte [ebp - 1], al
add esi, 0x14
dec dword [ebp - 8]
jne 0x40c671
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c70c
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 0x40c75c
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x114
push eax
call esi
test eax, eax
je 0x40c7f5
mov eax, dword [ebp - 0x130]
xor ecx, ecx
sub eax, ecx
je 0x40c7f5
dec eax
je 0x40c7f5
dec eax
jne 0x40c7f5
cmp dword [ebp - 0x13c], 6
jne 0x40c7a0
mov eax, dword [ebp - 0x138]
cmp eax, 2
je 0x40c78f
cmp eax, 3
jne 0x40c793
mov al, 3
jmp 0x40c7f7
cmp eax, 1
je 0x40c79c
cmp eax, ecx
jne 0x40c7f5
mov al, 2
jmp 0x40c7f7
cmp dword [ebp - 0x13c], 5
jne 0x40c7f5
cmp dword [ebp - 0x138], 2
jne 0x40c7ea
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 0x40c7f5
cmp byte [ebp - 0x26], 1
jne 0x40c7f5
cmp word [ebp - 0x24], 9
jne 0x40c7f5
mov al, 1
jmp 0x40c7f7
cmp dword [ebp - 0x138], 1
mov al, 1
je 0x40c7f7
mov al, 4
pop edi
pop esi
leave
ret

Function at 0x40c871
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 0x42483c
push 0x423ab0
push SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c95a
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c95a
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 0x40c95a
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 0x40c95a
add eax, 2
push 0x2e
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x40c95a
and word [eax], 0
lea eax, [ebp - 0x88]
push eax
push 0x4220a0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
jmp 0x40c95c
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40d750
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x64]
cmp eax, edi
jne 0x40d762
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 0x40d778
mov ecx, esi
call fcn.0040d84b
test eax, eax
je 0x40d7a4
mov ecx, esi
call fcn.0040d9d5
test eax, eax
je 0x40d7bb
mov ecx, esi
call fcn.0040e254
cmp dword [esi + 0x28], edi
je 0x40d796
mov ecx, esi
call fcn.0040f137
push 3
mov ecx, esi
call fcn.004107c1
push 1
pop edi
jmp 0x40d7d0
push 1
mov ecx, esi
call fcn.004107c1
call fcn.0040ac30
mov dword [eax + 0xc], 0x68
jmp 0x40d7c4
push 2
mov ecx, esi
call fcn.004107c1
call fcn.0040f72f
mov ecx, eax
call fcn.0040f8bf
mov eax, edi
pop edi
pop esi
ret
Function at 0x40d84b
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 0x40d9d0
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 0x40d8fc
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 0x40d91c
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x694]
push 0x42215c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x284]
push eax
call fcn.004014a3
test eax, eax
pop ecx
je 0x40d9cd
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 0x423de4
lea eax, [ebp - 0x48c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x84
lea eax, [ebp - 0x48c]
push 0x423ddc
push eax
call fcn.004028a4
add esp, 0x1c
test eax, eax
je 0x40d9cd
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x48c]
push eax
call fcn.00402c6a
pop ecx
test eax, eax
pop ecx
je 0x40d9cd
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 + 0x60]
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 0x40e254
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
call fcn.0040f198
mov eax, dword [esi + 0x14]
push 4
test eax, eax
pop edi
je 0x40e30f
cmp eax, edi
je 0x40e30f
lea eax, [ebp - 0x10]
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov esi, 0x422bc0
push 0x423e80
mov ebx, SysReAllocString
push esi
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40e2c8
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push edi
push eax
push edi
push 0x423e80
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0xc]
and dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423e6c
push esi
push ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40e3f6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push edi
push eax
push edi
push 0x423e6c
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x40e3f6
lea eax, [ebp - 0x14]
push edi
push eax
push edi
mov esi, 0x422bc0
push 0x423e80
mov ebx, SysReAllocString
push esi
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and word [ebp - 0x220], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push 0x103
push eax
call fcn.00403713
pop ecx
test eax, eax
pop ecx
je 0x40e3b5
lea eax, [ebp - 0x220]
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 - 0x220]
push eax
push 1
push 0x423e4c
push esi
push ebx
call edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push 0x423e4c
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
jmp 0x40e3bb
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0xc]
xor eax, eax
push 4
cmp dword [ecx + 0x14], eax
sete al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0x423e6c
push esi
push ebx
call edi
call fcn.0040993f
mov eax, dword [eax + 0xc]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push 0x423e3c
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e5f5
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 0x40e664
cmp word [esi], dx
je 0x40e664
cmp dword [ecx + 0x10], 8
jge 0x40e664
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 0x40e667
push 1
pop eax
pop esi
leave
ret 4

Function at 0x40e9d8
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 0x40ea55
cmp word [ecx], si
je 0x40ea55
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 0x40ea51
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push 0x14
pop ecx
call fcn.0041b440
cmp eax, dword [ebp + 0xc]
jbe 0x40ea51
push 1
pop esi
mov eax, esi
jmp 0x40ea57
xor eax, eax
pop esi
leave
ret 8