joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408312
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x154], 0x64
mov dword [esi + 0x158], 1
jle 0x40836b
push edi
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x30]
call edi
push 0
push dword [esi + 0x58]
call edi
push 5
push dword [esi + 0x80]
call edi
push 5
push dword [esi + 0x160]
call edi
pop edi
xor eax, eax
pop esi
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push 0x417570
push 0x41faa4
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4092d4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x212]
lea edx, [ebp - 0x210]
xor ecx, ecx
cmp eax, edx
je 0x4092d4
cmp ecx, 3
je 0x40929a
cmp word [eax], 0x5c
jne 0x409289
inc ecx
dec eax
lea edx, [ebp - 0x210]
dec eax
cmp eax, edx
jne 0x40927d
cmp ecx, 3
jne 0x4092d4
cmp dword [ebp + 8], 0
je 0x4092d4
and word [eax + 2], 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x41fa80
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4092d4
push 1
pop eax
jmp 0x4092d6
xor eax, eax
leave
ret 8

Function at 0x4092da
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, ecx
call fcn.0040950a
mov ecx, esi
call fcn.0040ab17
mov ecx, esi
call fcn.00409fdf
mov ecx, esi
call fcn.0040a115
mov ecx, esi
call fcn.00409d19
mov ecx, esi
call fcn.0040a510
call fcn.0040b07f
cmp eax, 0xa
jne 0x409361
and word [ebp - 0x410], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x210]
push eax
push 0x41f9c4
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x410]
push eax
push 0
call fcn.0040c31d
add esp, 0x18
mov ecx, esi
call fcn.0040a613
and word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x208]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push 0x41fb40
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 0x4093c6
lea eax, [ebp - 0x208]
push eax
call fcn.0040bf9f
pop ecx
call fcn.00401c38
mov ecx, eax
call fcn.00401cda
call fcn.0040bc55
leave
ret 4
Function at 0x4093db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
add ecx, 0x210
push eax
lea eax, [ebp - 8]
push ecx
push eax
push 0x4161a0
push 0x41fb58
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x409427
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
lea esi, [ecx + 0x210]
push 0x1388
push esi
mov dword [ebp - 4], esi
call fcn.0040b3c3
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x41f9c4
lea eax, [ebp - 0x20c]
push 0x103
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
push 0x1f4
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4094fc
push 0x35
push dword [0x422110]
push 0x41fbd4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
jne 0x409501
and word [ebp - 0x20c], 0
push dword [ebp - 4]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
push 0x41f9c4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call esi
add esp, 0x10
push 0x1f4
jmp 0x409488
push 1
pop eax
jmp 0x409503
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40950a
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push edi
xor ebp, ebp
mov edi, 0x41fc2c
push ebp
push edi
call esi
xor ebx, ebx
cmp eax, ebp
je 0x4095c4
push ebp
push 1
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push edi
call esi
inc ebx
cmp ebx, 0x1e
jl 0x409524
cmp eax, ebp
je 0x4095c4
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0x14]
push 0x20000000
mov dword [esp + 0x14], ebp
push ebp
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x4095c4
mov esi, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x20
push 0x41fc1c
push ebp
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4095a0
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push 0x20
push 0x41fc0c
push ebp
call esi
mov esi, eax
test esi, esi
je 0x4095c1
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push ebp
call ebx
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x409687
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409769
mov ebx, 0x103
lea eax, [ebp - 0x210]
push ebx
push 0x41fcf8
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
and word [ebp - 0x418], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41fcd0
push 0x41fcb0
lea eax, [ebp - 0x418]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20a
mov dword [ebp - 8], 1
push eax
lea eax, [esi + 0x848]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push 0x41fca8
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x210]
push eax
push 0
push 0x41fc98
push 0x41fc88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0xa54], eax
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], bx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x210]
mov edi, 0x104
push eax
push 0x41f9c4
lea eax, [ebp - 0x624]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esi + 0x434]
push edi
push eax
call fcn.0040be40
lea eax, [esi + 0x63e]
push edi
push eax
call fcn.0040befc
lea eax, [esi + 0xa64]
push eax
lea eax, [esi + 0xa60]
push eax
lea eax, [esi + 0xa5c]
push eax
lea eax, [esi + 0xa58]
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.0040bd7a
add esp, 0x34
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41fc68
push 0x41fc88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409977
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22ec
call fcn.00412450
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x409a90
cmp word [ebx], si
je 0x409a90
mov ax, word [0x422128]
push edi
mov word [ebp - 0x25c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x25c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x12a2]
mov word [ebp - 0x12a4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x417568
lea eax, [ebp - 0x12a4]
push 0x823
push eax
call ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x22ea]
mov word [ebp - 0x22ec], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x25c]
push 0x4177e0
push eax
push 0x41ff0c
lea eax, [ebp - 0x22ec]
push 0x823
push eax
call ebx
add esp, 0x28
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], esi
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], si
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22ec]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x409a90
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret 4
Function at 0x409b3b
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
and word [ebp - 0x210], 0
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov dword [ebp - 4], edx
stosw word es:[edi], ax
add edx, 0x210
mov edi, 0x41f9c4
push edx
mov ebx, 0x103
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409caf
mov eax, dword [ebp - 4]
add eax, 8
push eax
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
and word [ebp - 0x418], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
push 0x41ffa0
lea eax, [ebp - 0x418]
push ebx
push eax
call esi
and word [ebp - 0x620], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x61e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41ff8c
push 0x41ff60
lea eax, [ebp - 0x620]
push 0x104
push eax
call esi
and word [ebp - 0x828], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x826]
rep stosd dword es:[edi], eax
add esp, 0x30
mov dword [ebp - 8], 1
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov edi, SysReAllocString
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x620]
push 0x422128
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x828], 0
je 0x409c82
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x409caf
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x418]
push eax
push 1
lea eax, [ebp - 0x620]
push 0x422128
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and word [ebp - 0xa30], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov eax, 0x41ff48
cmp dword [ebp + 8], edi
jne 0x409cd9
mov eax, 0x41ff30
push eax
lea eax, [ebp - 0x210]
push eax
push 0x41ff20
lea eax, [ebp - 0xa30]
push ebx
push eax
call esi
add esp, 0x14
cmp dword [ebp + 0xc], edi
push edi
je 0x409d00
push 0x2710
jmp 0x409d02
push 0xffffffffffffffff
lea eax, [ebp - 0xa30]
push edi
push eax
call fcn.0040b723
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409fdf
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], si
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a10d
mov edx, 0x82
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], si
mov word [ebp - 0x418], si
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, edx
lea edi, [ebp - 0x416]
add ebx, 0x210
rep stosd dword es:[edi], eax
push ebx
mov edi, 0x104
push 0x420020
lea eax, [ebp - 0x624]
push edi
push eax
call esi
push 0x42001c
push ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x18
test eax, eax
je 0x40a10d
add eax, 2
push eax
push 0x417568
lea eax, [ebp - 0x418]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.MSVCRT.dll_wcsncat]
dec edi
push edi
lea eax, [ebp - 0x20c]
push 0x41fff0
push eax
call esi
lea eax, [ebp - 0x418]
add esp, 0xc
test eax, eax
je 0x40a10d
cmp word [ebp - 0x418], 0
je 0x40a10d
lea eax, [ebp - 0x418]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a10d
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], 1
push eax
call fcn.0040bf9f
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a115
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
lea eax, [ecx + 0x210]
xor edx, edx
mov dword [ebp - 8], eax
cmp word [eax], dx
jne 0x40a132
xor eax, eax
leave
ret
push ebx
push esi
mov ebx, 0x81
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x210]
push 0x1a
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push 0x420068
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
test eax, eax
je 0x40a213
lea eax, [ebp - 0x210]
push 0x1388
push eax
call fcn.0040b230
and word [ebp - 0x418], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
push 0x42003c
lea eax, [ebp - 0x418]
push 0x104
push eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0xbb8
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0040b723
add esp, 0x28
test eax, eax
je 0x40a213
cmp dword [ebp - 4], 0
jne 0x40a213
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call fcn.0040bf9f
pop ecx
mov dword [ebp - 4], 0x419990
mov ebx, 0x103
xor eax, eax
cmp dword [ebp - 4], eax
je 0x40a32f
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x208], eax
je 0x40a2f3
push dword [ebp - 4]
mov ecx, 0x81
lea edi, [ebp - 0x416]
mov word [ebp - 0x418], ax
push dword [ebp - 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x417590
lea eax, [ebp - 0x418]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a32f
and word [ebp - 0x620], ax
push dword [ebp - 4]
mov ecx, 0x81
lea edi, [ebp - 0x61e]
push dword [ebp - 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x420028
lea eax, [ebp - 0x620]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a2c8
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a32f
push 4
lea eax, [ebp - 0x620]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40a32f
push dword [ebp - 4]
mov word [ebp - 0x828], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp - 8]
lea edi, [ebp - 0x826]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x417590
lea eax, [ebp - 0x828]
push ebx
push eax
call esi
lea eax, [ebp - 0x828]
push eax
call fcn.0040bf9f
add esp, 0x18
add dword [ebp - 4], 0x20c
cmp dword [ebp - 4], 0x41f9c4
jl 0x40a21f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a354
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a4e1
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
mov edi, 0x104
push eax
push 0x420140
lea eax, [ebp - 0x410]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a404
lea eax, [ebp - 0x208]
push eax
push 0x420124
lea eax, [ebp - 0x410]
push edi
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call fcn.0040bf9f
add esp, 0x14
mov ebx, 0x103
lea eax, [ebp - 0x208]
push ebx
push 0x420114
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
and word [ebp - 0xa28], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x4200ec
push eax
push 0x417590
lea eax, [ebp - 0xa28]
push ebx
push eax
call esi
and word [ebp - 0x820], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x81e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x4200c8
push eax
push 0x417590
lea eax, [ebp - 0x820]
push ebx
push eax
call esi
and word [ebp - 0x618], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x4200a4
push eax
push 0x417590
lea eax, [ebp - 0x618]
push ebx
push eax
call esi
add esp, 0x48
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040c129
add esp, 0x10
jmp 0x40a4e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a55a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], esi
cmp word [esi + 0x210], bx
jne 0x40a57c
xor eax, eax
jmp 0x40a60f
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x412]
mov word [ebp - 0x414], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esi, 8
mov ebx, 0x41f9c4
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, 0x103
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call esi
mov eax, dword [ebp - 4]
add eax, 0x210
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call fcn.00409ae8
test eax, eax
pop edi
je 0x40a60c
lea eax, [ebp - 0x414]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x40a613
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebx + 8]
push eax
push 0x41f9c4
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
lea eax, [ebp - 0x208]
push 0
push eax
call esi
push 4
add ebx, 0x210
push 0
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a6eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
cmp word [ecx + 0x210], 0
push esi
lea esi, [ecx + 0x210]
push edi
je 0x40a7b0
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push 0x422128
push 0x420424
push SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x210], 0
je 0x40a7b0
and word [ebp - 0x418], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x4203f8
lea eax, [ebp - 0x418]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40a7b0
push 1
pop eax
jmp 0x40a7b2
xor eax, eax
pop edi
pop esi
leave
ret