joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b98
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esi], eax
xor eax, eax
lea edi, [esi + 0x18]
mov dword [esi + 0x14], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
mov ebx, 0x412310
push 0
mov dword [edi], ebx
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
mov eax, dword [ebp + 0x18]
mov dword [edi], ebx
and dword [esi + 0x50], 0
lea edi, [esi + 0x58]
mov dword [esi + 0x54], eax
push 0
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
mov dword [edi], ebx
xor eax, eax
and byte [esi + 0x80], al
lea edi, [esi + 0x88]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], eax
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
lea ecx, [esi + 0xa8]
push 1
mov dword [edi], ebx
call fcn.00403f93
push 1
lea ecx, [esi + 0xc4]
call fcn.00403f93
lea eax, [esi + 0x34]
push 0x104
push eax
lea ecx, [ebp - 0x10]
call fcn.00403b6b
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004029af
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.00402988
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x34]
push eax
call fcn.004042cb
push eax
lea ecx, [esi + 0x34]
call fcn.00401bcb
lea ecx, [ebp - 0x28]
call fcn.00401b39
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00403ff1
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00401bcb
lea ecx, [ebp - 0x1c]
call fcn.00401b39
push str.issetup
mov ecx, edi
call fcn.004049b4
push edi
mov ecx, edi
call fcn.004045e8
mov ecx, edi
call fcn.00401f9d
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x44]
push dword [ebp + 0x10]
mov dword [ebp - 0x38], 0x412314
mov dword [ebp - 0x30], 0x41231c
call fcn.00403a6c
mov dword [ebp - 0x44], ebx
mov ebx, str.setup.ini
push ebx
lea ecx, [ebp - 0x44]
call fcn.004049b4
lea ecx, [ebp - 0x6c]
call fcn.00402dc3
push 0
lea eax, [ebp - 0x44]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
lea ecx, [ebp - 0x6c]
call fcn.00402dfa
test al, al
je 0x402d77
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404e5d
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x1c]
call fcn.00401b39
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00403363
push 0x204
call fcn.0040cf6a
test eax, eax
pop ecx
je 0x402d96
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
push dword [ebp + 0xc]
call fcn.0040105a
jmp 0x402d98
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [esi + 4], eax
mov dword [ebp - 0x6c], 0x412354
call fcn.004032f3
lea ecx, [ebp - 0x64]
call fcn.00401b39
lea ecx, [ebp - 0x44]
call fcn.00401b39
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x403363
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov dword [ebp - 4], ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402dc3
push 2
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.00403fc0
lea ecx, [ebp - 0x2c]
call fcn.00403428
test al, al
jne 0x4033af
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x412354
call fcn.004032f3
lea ecx, [ebp - 0x24]
call fcn.00401b39
xor al, al
jmp 0x403421
mov esi, 0x1400
push esi
call fcn.0040cf6a
mov ebx, eax
push esi
push 0
push ebx
call fcn.004108c0
add esp, 0x10
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.00403516
mov edi, eax
test edi, edi
je 0x4033fc
cmp edi, 0xffffffff
je 0x4033fc
lea eax, [ebp + 8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push ebx
call fcn.004108c0
add esp, 0xc
jmp 0x4033c8
lea ecx, [ebp - 0x2c]
call fcn.004032f3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x412354
call fcn.004032f3
lea ecx, [ebp - 0x24]
call fcn.00401b39
cmp edi, 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40367e
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40369d
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x4036a4
xor eax, eax
jmp 0x4037af
push ebx
push edi
push 0x41418c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00404e5d
mov edi, eax
add esp, 0xc
mov ecx, edi
call fcn.00401f9d
mov edi, dword [edi + 4]
lea eax, [ebp - 0x178]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00401b39
cmp ebx, 0xffffffff
je 0x403788
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x14c]
push 0x414188
push eax
call edi
test eax, eax
je 0x403771
lea eax, [ebp - 0x14c]
push 0x414184
push eax
call edi
test eax, eax
je 0x403771
test byte [ebp - 0x178], 0x10
jne 0x403771
lea eax, [ebp - 0x14c]
push 0
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x412314
mov dword [ebp - 8], 0x41231c
call fcn.00403a6c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412310
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00404ce8
mov edi, eax
add esp, 0xc
mov ecx, edi
call fcn.00401f9d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call fcn.00401b39
lea ecx, [ebp - 0x1c]
call fcn.00401b39
lea eax, [ebp - 0x178]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4036e5
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call edi
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp ebx, 0xffffffff
mov esi, eax
je 0x4037ab
push ebx
call edi
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x4037fc
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
push ebx
push 0x104
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp byte [eax + esi + 7], 0x5c
jne 0x403835
push ebx
call edi
and byte [eax + esi + 7], 0
lea edi, [esi + 0x10c]
push ebx
push str._s_isdelet.ini
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x403ff1
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
and byte [ebp - 0x1fc], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, 0x412314
mov edi, 0x41231c
mov esi, 0x412310
je 0x404141
cmp dword [ebp - 0xe8], 1
jne 0x404141
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403a6c
push str.123.tmp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.004049b4
lea ecx, [ebp - 0x20]
call fcn.00401f9d
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x404121
lea eax, [ebp - 0x64]
push 0
push eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004041db
pop ecx
pop ecx
mov ecx, eax
call fcn.00404416
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bcb
lea ecx, [ebp - 0x64]
call fcn.00401b39
lea ecx, [ebp - 0x3c]
call fcn.00401b39
push 0x4141a8
lea ecx, [ebp - 0x20]
call fcn.004049b4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403adb
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [edi], esi
jmp 0x4041cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00401f9d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00401b39
cmp byte [ebp - 0x1fc], 0
je 0x40417a
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.00403a6c
push 0x4141a4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.004049b4
jmp 0x40419e
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403a6c
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403adb
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4041c6
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00401b39
test byte [ebp - 4], 1
je 0x4041d4
lea ecx, [ebp - 0x3c]
call fcn.00401b39
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4041db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x40425a
lea eax, [ebp - 0x140]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x412314
mov dword [ebp - 0xc], edi
call fcn.00403a6c
mov esi, 0x412310
push 0x4141a4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004049b4
jmp 0x40428b
lea eax, [ebp - 0x140]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x412314
mov dword [ebp - 0x28], edi
call fcn.00403a6c
mov esi, 0x412310
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x412314
mov dword [ecx + 0x14], edi
call fcn.00403adb
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4042b7
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00401b39
test byte [ebp - 4], 1
je 0x4042c5
lea ecx, [ebp - 0x20]
call fcn.00401b39
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4045e8
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], esi
call fcn.00404887
mov edi, eax
mov ecx, edi
call fcn.00401f9d
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.004047b1
mov edi, eax
mov ecx, edi
call fcn.00401f9d
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.004029af
push eax
push 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
inc bl
call fcn.00401b39
lea ecx, [ebp - 0x50]
call fcn.00401b39
lea ecx, [ebp - 0x14]
call fcn.00402988
test bl, bl
jne 0x4046ef
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x404753
cmp word [ebp - 4], 3
jge 0x4046ef
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
and byte [ebp - 0x10], bl
and dword [ebp - 8], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push eax
mov dword [ebp - 0xc], esi
call fcn.00404887
mov ebx, eax
mov ecx, ebx
call fcn.00401f9d
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004047b1
mov ebx, eax
mov ecx, ebx
call fcn.00401f9d
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.004029af
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x40464f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp - 0x154], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401f9d
push ebx
lea eax, [ebp - 0x154]
push dword [edi + 4]
push str._s_d.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40470e
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.0040476c
jmp 0x404763
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4
Function at 0x405196
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push dword [0x41421c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x10]
push 0x2710
push eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
mov dword [ebp - 4], ebx
inc al
mov byte [ebp - 0xc], al
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
test eax, eax
jl 0x4051ec
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x4051fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.0040566e
lea ecx, [ebp - 0x10]
call fcn.00405ee6
leave
ret

Function at 0x406726
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x406745
xor al, al
jmp 0x406768
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40676c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x90], eax
mov al, cl
pop edi
pop esi
pop ecx
ret

Function at 0x406896
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x4068ca
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x4068ed
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x4068f8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x406c1d
Capabilities:
Delete directory
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x18]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x154]
mov ebx, 0x4155f0
push dword [ebp + 8]
mov esi, str.Files
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x406cd5
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406ca6
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406ca6
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406ca6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406c6f
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
jmp 0x406c69
push dword [ebp + 8]
push 0
push str.FolderCount
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
mov dword [ebp - 4], eax
js 0x406d4a
jmp 0x406cf1
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push str.Folder_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x406d4a
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406d45
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406d45
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406d1f
dec dword [ebp - 4]
jns 0x406cee
push dword [ebp + 8]
lea eax, [ebp - 0x154]
push 0x104
push eax
push ebx
push str.EngineDir
push esi
call edi
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], 0x412314
mov dword [ebp - 0x20], 0x41231c
call fcn.00403a6c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x412310
push eax
call fcn.00406df8
pop ecx
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
push ebx
push str.MediaEngineDir
push esi
call edi
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0x412314
mov dword [ebp - 0x3c], 0x41231c
call fcn.00403a6c
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x412310
push eax
call fcn.00406df8
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x50]
call fcn.00401b39
lea ecx, [ebp - 0x34]
call fcn.00401b39
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406df8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x406fa6
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x406fa6
push ebx
mov ecx, edi
call fcn.0040c652
mov ebx, 0x41231c
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x412314
mov dword [ebp - 0xc], ebx
call fcn.00403adb
and byte [ebp + 0xb], 0
xor eax, eax
cmp dword [ebp - 0x10], eax
mov edi, 0x412310
mov dword [ebp - 0x20], edi
je 0x406e5c
push dword [ebp - 0x10]
call esi
cmp dword [0x4123d0], eax
je 0x406f9d
jmp 0x406e6d
mov eax, dword [ebp - 4]
cmp byte [ebp + 0xb], 0
jne 0x406f9d
push eax
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00404839
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bcb
lea ecx, [ebp - 0x74]
call fcn.00401b39
push dword [0x4123d0]
lea ecx, [ebp - 0x58]
push 1
push 0x4141a4
call fcn.00403a00
push eax
lea ecx, [ebp - 0x20]
call fcn.00404354
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00401b39
push dword [0x4123d0]
lea eax, [esi + 1]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00404839
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x412314
mov dword [ebp - 0x28], ebx
call fcn.00403adb
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], edi
call fcn.00401b39
lea ecx, [ebp - 0x2c]
call fcn.00406faa
cmp word [str.INSTAL], 0
mov eax, 0x41459e
je 0x406f1f
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406f15
mov ecx, str.INSTAL
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004043ac
cmp eax, dword [0x4123d0]
jne 0x406f74
cmp word [str.INSTALLSHIELD], 0
mov eax, 0x414582
je 0x406f56
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406f4c
mov ecx, str.INSTALLSHIELD
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004043ac
cmp eax, dword [0x4123d0]
je 0x406f78
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x20]
call fcn.00401f9d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x3c]
call fcn.00401b39
cmp dword [0x4123d0], esi
jne 0x406e6a
lea ecx, [ebp - 0x20]
call fcn.00401b39
pop ebx
pop edi
pop esi
leave
ret
Function at 0x407145
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
push esi
jne 0x40715b
cmp dword [ebp + 0x24], ebx
je 0x40716a
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00401b39
mov al, bl
jmp 0x4071f6
lea eax, [ebp - 0x28]
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.00404416
mov esi, eax
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00401b39
cmp esi, 2
je 0x4071ec
cmp esi, 5
je 0x4071ec
cmp esi, 3
je 0x40715b
cmp esi, 4
je 0x40715b
cmp esi, 6
je 0x40715b
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x412314
mov dword [esi + 0x14], 0x41231c
call fcn.00403adb
mov dword [esi], 0x412310
call fcn.00407029
add esp, 0x1c
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401b39
cmp si, 1
setne al
jmp 0x4071f6
lea ecx, [ebp + 8]
call fcn.00401b39
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x4079b5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x407a3a
xor eax, eax
cmp dword [ebp - 4], esi
je 0x4079f6
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x407a3a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.00406896
cmp dword [ebp - 4], esi
je 0x407a36
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x407a58
cmp eax, esi
push ebx
jle 0x407a49
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x407a55
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x407b38
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.00406858
mov edi, eax
cmp edi, esi
je 0x407b78
cmp dword [ebp - 4], esi
je 0x407b71
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x407c15
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x407be9
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.00407b38
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x407bd6
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x407b9b
cmp dword [ebp - 4], esi
je 0x407be4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x407c15
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407bfc
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x407c13
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4