joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b5b
Capabilities:
Check os version
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42c50b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push esi
mov esi, ecx
push edi
push 0x43cbe8
lea ecx, [esp + 0xc]
call fcn.00420e11
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x1b4], 0
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x9c
call edi
test eax, eax
jne 0x404c88
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
test eax, eax
jne 0x404c88
mov eax, dword [0x43ccb4]
test eax, eax
je 0x404c5b
push 0x7d1
lea ecx, [esp + 0xc]
call fcn.0042189d
mov eax, dword [0x43ccb0]
lea edx, [esp + 0xa8]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push 0
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xa8]
test al, al
jne 0x404c4a
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0xac]
push 0x10
push ecx
call fcn.00427e64
lea ecx, [esp + 8]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.00420da3
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
add esp, 0x1b0
ret
mov eax, dword [esp + 0x1c]
mov edi, 1
cmp eax, 2
jne 0x404cab
mov eax, dword [esp + 0x10]
cmp eax, 5
jne 0x404ca4
mov dword [esi + 8], edi
jmp 0x404cc8
jbe 0x404cc8
mov dword [esi + 0xc], edi
jmp 0x404cc8
cmp eax, edi
jne 0x404cc8
cmp dword [esp + 0x10], 4
jne 0x404cc8
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x404cc8
mov dword [esi + 8], 0
mov dword [esi + 0x10], edi
lea ecx, [esp + 8]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1b0
ret
Function at 0x405310
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42c52b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x31], bl
push ecx
lea ecx, [esp + 0x10]
call fcn.00420e11
mov eax, dword [ebp + 8]
mov dword [esp + 0x13c], ebx
cmp eax, ebx
jne 0x40537f
cmp dword [ebp + 0xc], ebx
je 0x40541f
or ecx, 0xffffffff
mov edi, str.:Program_Files
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
mov ebp, dword [ebp + 0x60]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4380c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00420f2c
push ebx
lea ecx, [esp + 0x14]
call fcn.004210be
pop esi
call fcn.00421948
cmp eax, ebx
je 0x405431
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x405433
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], 0x410
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
call fcn.00428c2b
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2e], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x134]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x40568b
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c5d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x438c50]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov ecx, dword [0x438c50]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], ecx
mov edx, dword [0x438c50]
mov dword [esi + 0xc], edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call fcn.00420426
mov eax, dword [0x438c50]
mov dword [esi + 0x24], eax
mov ecx, dword [0x438c50]
mov dword [esi + 0x28], ecx
mov edx, dword [0x438c50]
mov dword [esi + 0x2c], edx
mov eax, dword [0x438c50]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x42e5c4
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [0x438c50]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], 0x42e5c0
call fcn.00405840
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x405740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c64b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x42e5c0
lea ecx, [edi + 0x80]
mov dword [esp + 0x1c], 8
call fcn.00420da3
lea ebx, [edi + 0x34]
mov dword [esp + 0x10], ebx
mov dword [ebx], 0x42e5c4
mov esi, dword [ebx + 4]
mov byte [esp + 0x1c], 9
test esi, esi
je 0x4057bc
mov eax, dword [ebx + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4057b0
push ebp
lea ebp, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebp
jne 0x4057a1
pop ebp
mov ebx, dword [ebx + 4]
push ebx
call fcn.00421268
add esp, 4
lea ecx, [edi + 0x30]
mov byte [esp + 0x1c], 6
call fcn.00420da3
lea ecx, [edi + 0x2c]
mov byte [esp + 0x1c], 5
call fcn.00420da3
lea ecx, [edi + 0x28]
mov byte [esp + 0x1c], 4
call fcn.00420da3
lea ecx, [edi + 0x24]
mov byte [esp + 0x1c], 3
call fcn.00420da3
lea ecx, [edi + 0x10]
mov byte [esp + 0x1c], 2
call fcn.00420459
lea ecx, [edi + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00420da3
lea ecx, [edi + 8]
mov byte [esp + 0x1c], 0
call fcn.00420da3
lea ecx, [edi + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x406fa0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42c9c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x38]
push 0x5c
push ecx
call fcn.0041202a
mov byte [eax], 0
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea ebp, [ebx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.M65Lang.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00409bd8
push 0x43cbe8
lea ecx, [esp + 0x14]
mov dword [esp + 0x24c], 0
call fcn.00420e11
push 0
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 1
call fcn.00409c9b
test eax, eax
je 0x407092
mov esi, 1
jmp 0x4070b6
push ebp
lea eax, [esp + 0x14]
push str.Default_language_file__s_not_found.__n
push eax
call fcn.004200fb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call fcn.004078d0
mov esi, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00409c51
test esi, esi
je 0x40715f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push 0x43cbe8
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00420e11
and esi, 0xffff
add ebx, 0x1d4
push esi
push str.0x_04x
push ebx
mov byte [esp + 0x254], 2
call fcn.004200fb
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x149]
mov byte [esp + 0x148], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea edx, [esp + 0x13c]
stosw word es:[edi], ax
push ebp
push 0x104
stosb byte es:[edi], al
mov eax, dword [ebx]
push edx
push 0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x13c]
test al, al
jne 0x40714c
push str.0x0409
mov ecx, ebx
call fcn.00420f2c
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 1
call fcn.00420da3
jmp 0x40716f
push str.0x0409
lea ecx, [ebx + 0x1d4]
call fcn.00420f2c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 0
call fcn.00420da3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x248], 0xffffffff
call fcn.00409c15
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret
Function at 0x407930
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42ca3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x438c50]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x54]
mov dword [ecx], eax
xor edi, edi
push 0x43cbe8
mov dword [esp + 0x18], edi
mov dword [esi], 0x42e8d8
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00420f2c
mov dword [esi + 0x50], edi
lea edi, [esi + 0x10]
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x30]
mov ecx, 8
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408050
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4080f5
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4080d0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00408050
mov esi, eax
add esp, 8
test esi, esi
jne 0x408102
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4080a0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
mov dword [esp + 0x10], 0
jne 0x4080f5
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408220
Capabilities:
Read .ini file
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x42ca66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x73c
mov eax, dword [0x438c50]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov ecx, dword [0x4389f8]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x74c], ebx
je 0x40836a
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x12c]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x754], 1
call fcn.00408460
cmp dword [esi + 4], ebx
jne 0x408317
cmp dword [esi + 8], ebx
jne 0x408317
push edi
push 0x7d2
lea ecx, [esp + 0x10]
call fcn.0042189d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x2c]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push ebx
push str.IDS_SETUP_ERRMSG_DETECTINGOS
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], bl
jne 0x408307
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x30]
push 0x10
push ecx
call fcn.00427e64
pop edi
jmp 0x408352
mov ecx, esi
call fcn.00409740
mov ecx, esi
call fcn.004098d0
mov ecx, esi
call fcn.004099b0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.004087b0
mov ecx, esi
call fcn.00408ae0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00408bb0
mov ecx, esi
call fcn.00407a10
lea ecx, [esp + 0xc]
mov dword [0x4389f8], ebx
mov byte [esp + 0x74c], bl
call fcn.00420da3
jmp 0x408380
push str.SeShutdownPrivilege
mov ecx, esi
call fcn.004083b0
push 0xffffffffffffffff
push 3
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 8]
mov dword [esp + 0x74c], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x744]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x748
ret
Function at 0x4087b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42cadd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push esi
push edi
lea ecx, [esp + 0x54]
call fcn.00401000
push 0
push 0x4089e0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x190], 0
call fcn.004019b0
mov eax, dword [0x438c50]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 3
call fcn.004016b0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x7c]
push 0x104
push eax
mov byte [esp + 0x190], 4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.inf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x190]
cmp dword [esi], 0
je 0x408974
mov edi, esi
mov ebp, 1
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call fcn.00420f2c
push str..inf
lea ecx, [esp + 0x14]
push str._s
push ecx
call fcn.004200fb
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
or ecx, 0x927
add esp, 0xc
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi]
or al, 0x10
push ecx
or al, 0x20
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
call fcn.00420f2c
lea ecx, [esp + 0x54]
call fcn.00401990
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.00401110
lea ecx, [esp + 0x54]
call fcn.004019d0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call fcn.00420f2c
push str..pnf
lea ecx, [esp + 0x14]
push str._s
push ecx
call fcn.004200fb
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
mov edi, dword [edi]
add esp, 0xc
or al, 0x10
or edx, 0x927
or al, 0x20
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
call fcn.00420f2c
lea ecx, [esp + 0x54]
call fcn.00401990
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.00401110
lea ecx, [esp + 0x54]
call fcn.004019d0
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
mov edi, esi
jne 0x408886
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 6
call fcn.00420da3
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 5
call fcn.00420da3
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 0
call fcn.00420da3
lea ecx, [esp + 0x54]
mov dword [esp + 0x188], 0xffffffff
call fcn.00401050
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret 4
Function at 0x408ae0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esi + 4]
or ecx, 0xffffffff
test eax, eax
mov edi, 0x4380c4
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.System32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.M65Lang.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x409740
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42cb5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x31], bl
push ecx
lea ecx, [esp + 0x10]
call fcn.00420e11
mov eax, dword [ebp + 4]
mov dword [esp + 0x13c], ebx
cmp eax, ebx
jne 0x4097af
cmp dword [ebp + 8], ebx
je 0x40984f
or ecx, 0xffffffff
mov edi, str.:Program_Files
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
mov ebp, dword [ebp + 0x54]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4380c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00420f2c
push ebx
lea ecx, [esp + 0x14]
call fcn.004210be
pop esi
call fcn.00421948
cmp eax, ebx
je 0x409861
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x409863
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], 0x410
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
call fcn.00428c2b
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2e], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x134]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x4098d0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4098fb
mov eax, dword [ebx + 8]
test eax, eax
je 0x409985
push ebp
push esi
push edi
or ecx, 0xffffffff
mov edi, 0x4380c4
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._PciUninst.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
add esp, 0x104
ret