joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ab4f
mov eax, dword fs:[0]
push eax
sub esp, 0xb88
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb90], ecx
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x62c]
push ecx
call fcn.004456d0
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0x93c], ax
push 0x206
push 0
lea ecx, [ebp - 0x93a]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00488f20
add esp, 0xc
lea ecx, [ebp - 0x62c]
push ecx
push 0x5594d4
lea edx, [ebp - 0x93c]
push edx
call fcn.00488dd2
add esp, 0xc
lea eax, [ebp - 0x93c]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x5594f0
push 0x5594f8
push 0x55950c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov word [ebp - 0xb4c], dx
push 0x206
push 0
lea eax, [ebp - 0xb4a]
push eax
call fcn.00488f20
add esp, 0xc
mov byte [ebp - 0x734], 0
push 0x103
push 0
lea ecx, [ebp - 0x733]
push ecx
call fcn.00488f20
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x55951c
push 0x559524
push 0x55952c
push 0x559540
lea eax, [ebp - 0xb4c]
push eax
call fcn.00488dd2
add esp, 0x18
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0xb4c]
push edx
call fcn.0040cee0
add esp, 8
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0x20
call fcn.00466e37
add esp, 4
mov dword [ebp - 0xb54], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xb54], 0
je 0x404042
mov ecx, dword [ebp - 0xb54]
call fcn.00406290
mov dword [ebp - 0xb94], eax
jmp 0x40404c
mov dword [ebp - 0xb94], 0
mov edx, dword [ebp - 0xb94]
mov dword [ebp - 0xb50], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb50]
mov dword [ebp - 0x940], eax
cmp dword [ebp - 0x940], 0
jne 0x40407b
xor eax, eax
jmp 0x404128
push 0x559558
lea ecx, [ebp - 0x62c]
push ecx
push 0x559578
lea edx, [ebp - 0x424]
push edx
call fcn.00488dd2
add esp, 0x10
push 0x559584
lea ecx, [ebp - 0xb70]
call fcn.004075e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.004024d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb70]
push ecx
lea edx, [ebp - 0xb8c]
push edx
mov ecx, dword [ebp - 0x940]
call fcn.00405fd0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8c]
call fcn.00402510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb70]
call fcn.00407660
cmp dword [ebp - 0x10], 0
jne 0x40410f
xor eax, eax
jmp 0x404128
lea eax, [ebp - 0x734]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x405180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54acd3
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
push str.RunByWindowsStart
lea ecx, [ebp - 0x42c]
call fcn.0040caf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.0040cba0
test eax, eax
jne 0x4051fe
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040cb30
mov eax, dword [ebp - 0x438]
jmp 0x4053ad
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00488f20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x424]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x424]
push edx
push str.__s__RunDateByStartAuto
lea eax, [ebp - 0x21c]
push eax
call fcn.00488dd2
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
push 0x559b80
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4052b1
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040cb30
mov eax, dword [ebp - 0x43c]
jmp 0x4053ad
lea edx, [ebp - 0x430]
push edx
push 0xf003f
push 0
push 0x559bd4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4052ff
push 0
lea ecx, [ebp - 0x430]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x559b7c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40538b
push str.hhrlRunByWindowsStart
lea ecx, [ebp - 0x434]
call fcn.00407520
lea eax, [ebp - 0x21c]
push eax
call fcn.00488ea9
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 1
push 0
lea ecx, [ebp - 0x434]
call fcn.00407f80
push eax
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x440], 1
lea ecx, [ebp - 0x434]
call fcn.004075a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040cb30
mov eax, dword [ebp - 0x440]
jmp 0x4053ad
mov dword [ebp - 0x444], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040cb30
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x4053d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x559c08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40545f
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push 0x559c5c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40543c
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x559c64
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40544b
push 0x559c68
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40a360
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40a493
lea eax, [ebp - 0xc]
push eax
push 0x5718b8
push 1
push 0
push 0x571928
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40a48d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x50]
call edx
cmp dword [ebp + 0x10], 0
je 0x40a3d4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
cmp dword [ebp + 0x14], 0
je 0x40a3ec
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x3c]
call eax
movzx ecx, word [ebp + 0x18]
test ecx, ecx
je 0x40a407
movzx edx, word [ebp + 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x34]
call eax
cmp dword [ebp + 0x1c], 0
je 0x40a41f
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x24]
call edx
cmp dword [ebp + 0x20], 0
je 0x40a437
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
lea edx, [ebp - 0x10]
push edx
push 0x5718e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40a47f
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40a5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b0e1
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x644], ecx
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x634], ax
push 0x206
push 0
lea ecx, [ebp - 0x632]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00488f20
add esp, 0xc
push 0x55a860
lea ecx, [ebp - 0x63c]
call fcn.00407520
mov dword [ebp - 4], 0
push 0x55a864
lea ecx, [ebp - 0x638]
call fcn.00407520
mov byte [ebp - 4], 1
push 0x55a868
lea ecx, [ebp - 0x224]
call fcn.00407520
mov byte [ebp - 4], 2
xor ecx, ecx
mov word [ebp - 0x42c], cx
push 0x206
push 0
lea edx, [ebp - 0x42a]
push edx
call fcn.00488f20
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40a6eb
push 0
push 0x17
lea eax, [ebp - 0x634]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40a6e9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.004075a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.004075a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.004075a0
jmp 0x40a7a5
jmp 0x40a734
push 0
push 2
lea ecx, [ebp - 0x634]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40a734
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.004075a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.004075a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.004075a0
jmp 0x40a7a5
lea edx, [ebp - 0x634]
push edx
push 0x55a86c
lea eax, [ebp - 0x21c]
push eax
call fcn.00488dd2
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x640], esp
lea edx, [ebp - 0x21c]
push edx
call fcn.00407520
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x644]
call fcn.0040a7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.004075a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.004075a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.004075a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret 4
Function at 0x40a7c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b127
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x55a880
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00488dd2
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0xffffffff
je 0x40a9a5
lea ecx, [ebp - 0x474]
push ecx
mov edx, dword [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x40a85f
jmp 0x40a9a5
movzx eax, word [ebp - 0x448]
cmp eax, 0x2e
jne 0x40a86d
jmp 0x40a82a
movzx ecx, word [ebp - 0x446]
test ecx, ecx
jne 0x40a87a
jmp 0x40a82a
movzx edx, word [ebp - 0x446]
cmp edx, 0x2e
jne 0x40a893
movzx eax, word [ebp - 0x444]
test eax, eax
jne 0x40a893
jmp 0x40a82a
lea ecx, [ebp - 0x47c]
call fcn.0040acc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
push ecx
push 0x55a88c
lea edx, [ebp - 0x47c]
push edx
call fcn.0040a4a0
add esp, 0xc
mov eax, dword [ebp - 0x474]
and eax, 0x10
je 0x40a92e
xor ecx, ecx
mov word [ebp - 0x684], cx
push 0x206
push 0
lea edx, [ebp - 0x682]
push edx
call fcn.00488f20
add esp, 0xc
mov eax, dword [ebp - 0x47c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x55a894
lea edx, [ebp - 0x684]
push edx
call fcn.00488dd2
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x684]
push eax
call fcn.00407520
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040a7c0
jmp 0x40a991
lea ecx, [ebp - 0x688]
call fcn.0040acc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x55a8a0
lea eax, [ebp - 0x688]
push eax
call fcn.0040a4a0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x690], esp
lea edx, [ebp - 0x688]
push edx
call fcn.0040ace0
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040aa20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x688]
call fcn.004075a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x47c]
call fcn.004075a0
jmp 0x40a82a
mov eax, dword [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.00407f80
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40a9d8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
jmp 0x40a9fa
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00407f80
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b157
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5be094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40aa82
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
mov eax, dword [ebp - 0x14]
jmp 0x40aaac
lea ecx, [ebp + 8]
call fcn.0040ac80
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040aac0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aac0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x220], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00488f20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ab10
jmp 0x40ac33
mov eax, dword [ebp + 8]
push eax
push 0x55a8ac
lea ecx, [ebp - 0x210]
push ecx
call fcn.00488dd2
add esp, 0xc
push 0x55a8b4
lea edx, [ebp - 0x210]
push edx
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40ab5e
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40ac33
mov dword [ebp - 0x218], 0
mov ecx, 1
test ecx, ecx
je 0x40ac33
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x218], 0
jne 0x40aba2
mov edx, dword [ebp + 8]
push edx
push 0x55a8c0
lea eax, [ebp - 0x210]
push eax
call fcn.00488dd2
add esp, 0xc
jmp 0x40abc1
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x55a8d0
lea eax, [ebp - 0x210]
push eax
call fcn.00488dd2
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40abe5
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40ac14
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048b631
add esp, 8
push 5
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40ac33
cmp dword [ebp - 0x218], 0xa
jle 0x40ac1f
jmp 0x40ac33
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x40ab68
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret 4
Function at 0x40aea0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe44
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe44], ecx
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x418]
push ecx
call fcn.004456d0
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0xa30], ax
push 0x206
push 0
lea ecx, [ebp - 0xa2e]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x620], dx
push 0x206
push 0
lea eax, [ebp - 0x61e]
push eax
call fcn.00488f20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x828], cx
push 0x206
push 0
lea edx, [ebp - 0x826]
push edx
call fcn.00488f20
add esp, 0xc
xor eax, eax
mov word [ebp - 0xc38], ax
push 0x206
push 0
lea ecx, [ebp - 0xc36]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0xe40], dx
push 0x206
push 0
lea eax, [ebp - 0xe3e]
push eax
call fcn.00488f20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00488f20
add esp, 0xc
push 0
push 0x2b
lea eax, [ebp - 0xa30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x55a8e4
lea ecx, [ebp - 0xa30]
push ecx
call fcn.00488ed2
add esp, 8
push 0x55a8e8
lea edx, [ebp - 0xa30]
push edx
call fcn.00488ed2
add esp, 8
push 0x55a8f4
lea eax, [ebp - 0xa30]
push eax
call fcn.00488ed2
add esp, 8
lea ecx, [ebp - 0xa30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b00d
push 0
lea edx, [ebp - 0xa30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x55a8f8
lea eax, [ebp - 0xa30]
push eax
call fcn.00488ed2
add esp, 8
push str..ini
lea ecx, [ebp - 0xa30]
push ecx
call fcn.00488ed2
add esp, 8
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0x418]
push eax
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret

Function at 0x40bf90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bfd1
push 0x55aaf8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov esp, ebp
pop ebp
ret
Function at 0x40bff0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b2f4
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00488dd2
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0xffffffff
je 0x40c1d5
lea ecx, [ebp - 0x474]
push ecx
mov edx, dword [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x40c08f
jmp 0x40c1d5
movzx eax, word [ebp - 0x448]
cmp eax, 0x2e
jne 0x40c09d
jmp 0x40c05a
movzx ecx, word [ebp - 0x446]
test ecx, ecx
jne 0x40c0aa
jmp 0x40c05a
movzx edx, word [ebp - 0x446]
cmp edx, 0x2e
jne 0x40c0c3
movzx eax, word [ebp - 0x444]
test eax, eax
jne 0x40c0c3
jmp 0x40c05a
lea ecx, [ebp - 0x47c]
call fcn.0040acc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
push ecx
push 0x55ab10
lea edx, [ebp - 0x47c]
push edx
call fcn.0040a4a0
add esp, 0xc
mov eax, dword [ebp - 0x474]
and eax, 0x10
je 0x40c15e
xor ecx, ecx
mov word [ebp - 0x684], cx
push 0x206
push 0
lea edx, [ebp - 0x682]
push edx
call fcn.00488f20
add esp, 0xc
mov eax, dword [ebp - 0x47c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_
lea edx, [ebp - 0x684]
push edx
call fcn.00488dd2
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x684]
push eax
call fcn.00407520
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040bff0
jmp 0x40c1c1
lea ecx, [ebp - 0x688]
call fcn.0040acc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x55ab24
lea eax, [ebp - 0x688]
push eax
call fcn.0040a4a0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x690], esp
lea edx, [ebp - 0x688]
push edx
call fcn.0040ace0
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040c250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x688]
call fcn.004075a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x47c]
call fcn.004075a0
jmp 0x40c05a
mov eax, dword [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.00407f80
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40c208
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
jmp 0x40c22a
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00407f80
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret 4