joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa94
mov eax, dword [0x10010400]
xor eax, esp
mov dword [esp + 0xa90], eax
mov eax, dword [esp + 0xa98]
lea ecx, [esp + 0x48]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [esp + 0xaa4]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000567a
push str.Error_opening_Steam_key_n
jmp 0x10005731
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x208
push eax
lea eax, [esp + 0x94]
push eax
push 0
push 0
push str.SteamExe
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000572c
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jb 0x1000572c
shr ecx, 1
mov eax, esi
je 0x100056dc
lea edx, [esi + 0x5c]
cmp word [esp + eax*2 + 0x90], 0x2f
jne 0x100056d7
mov word [esp + eax*2 + 0x90], dx
inc eax
cmp eax, ecx
jb 0x100056c4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push str.__s__steam:__rungameid__s
lea eax, [esp + 0x2a4]
push 0x800
push eax
call fcn.10005500
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.10005230
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [esp + 0xa90]
xor ecx, esp
call fcn.10009d81
add esp, 0xa94
ret
push str.Error_reading_SteamExe_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10005770
mov ecx, dword [esp + 0xaa0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.10009d81
add esp, 0xa94
ret
Function at 0x100057e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x34
mov eax, dword [0x10010400]
xor eax, esp
mov dword [esp + 0x30], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x1000c4d8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
push 0
push 0
mov dword [esp + 0x40], eax
mov esi, ecx
mov ax, word [0x1000c4dc]
push 3
movups xmmword [esp + 0x1c], xmm0
push 0
movups xmm0, xmmword [0x1000c4c0]
mov word [esp + 0x4c], ax
mov eax, 0x30
push 0
mov word [esp + 0x4e], ax
lea eax, [esp + 0x24]
movups xmmword [esp + 0x34], xmm0
push 0xc0000000
movq xmm0, qword [0x1000c4d0]
push eax
movq qword [esp + 0x4c], xmm0
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100058b8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10005883
mov ax, word [esp + 0x3a]
cmp ax, 0x39
jae 0x100058d0
inc ax
mov word [esp + 0x3a], ax
jmp 0x1000589a
cmp eax, 0xe7
jne 0x100058d0
push 0x2710
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
je 0x100058d0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10005868
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10009d81
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10009d81
add esp, 0x34
ret

Function at 0x10005990
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x1000599f
mov al, 1
pop esi
ret 8
test ecx, ecx
je 0x100059d6
mov ecx, dword [ecx + 4]
cmp ecx, 0xffffffff
je 0x100059d6
mov eax, dword [esp + 8]
test eax, eax
je 0x100059d6
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100059d6
cmp dword [esp + 0xc], esi
je 0x10005999
xor al, al
pop esi
ret 8
Function at 0x10046b10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aabc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10206f54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x10046b59
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
cmp dword [0x1020154c], 0
jne 0x10046b70
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x10046bbd
mov eax, dword [esi]
test eax, eax
je 0x10046b42
cmp dword [esi + 4], 0
je 0x10046b42
push eax
call fcn.100f40d0
add esp, 4
push dword [esi + 4]
call fcn.100f40d0
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x10046bae
push eax
call fcn.100f40d0
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10046bf5
push eax
call fcn.100f40d0
jmp 0x10046bf2
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
call fcn.100f40d0
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
call fcn.100f40d0
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
call fcn.100f40d0
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.100f40d0
add esp, 4
push 8
call fcn.100f40d0
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10046c30
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100f40d0
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100e9a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ac81e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10206f54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call sym.AIDE.dll_public:_void___thiscall_AIDE::PaletteInfo::constructor_void_
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.100eb170
mov dword [esi], eax
lea ecx, [edi + 0x28]
mov dword [esi + 4], 3
mov dword [esi + 8], 0
mov dword [ecx], 8
mov dword [edi + 0x30], 8
mov dword [edi + 0x2c], 8
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov ecx, dword [edi + 0x14]
call fcn.100eb150
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100ee6f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aca6d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10206f54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov ecx, esi
call sym.AIDE.dll_public:_void___thiscall_AIDE::AIDEDimension::constructor_void_
lea ebx, [esi + 8]
mov dword [ebp - 4], 0
mov ecx, ebx
call sym.AIDE.dll_public:_void___thiscall_AIDE::AIDEDimension::constructor_void_
mov eax, dword [edi + 0x14]
mov dword [esi], eax
mov eax, dword [edi + 0x30]
mov edi, dword [edi + 0x2c]
mov esi, dword [ebp - 0x10]
lea ecx, [edi + eax]
mov edx, dword [esi + 0x18]
sub edx, eax
cmp ecx, dword [esi + 0x18]
mov eax, dword [ebp + 8]
mov ecx, esi
cmova edi, edx
mov dword [ebx], 0
mov dword [eax + 4], edi
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100f40d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x100f40df
pop dword [ebp - 0x1c]
mov eax, 0x3c5bcace
add eax, 0xd3b37611
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x1177a4e2
add dword [ebp - 0x2c], 0x3cdaa069
mov dword [ebp - 0x28], 0xe5aa4efb
sub dword [ebp - 0x28], 0xb37702b6
mov dword [ebp - 0x24], 0x9560d80
add dword [ebp - 0x24], 0x42f636ae
mov dword [ebp - 0x20], 0xe0479d79
sub dword [ebp - 0x20], 0xe0479d79
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x43e2a92a
sub dword [ebp - 0x2c], 0xcf703fd4
mov dword [ebp - 0x28], 0xe8623b70
sub dword [ebp - 0x28], 0xa6f5d9fb
mov dword [ebp - 0x24], 0x85f0930f
sub dword [ebp - 0x24], 0x228126a3
mov dword [ebp - 0x20], 0x8f40a6ea
sub dword [ebp - 0x20], 0x8f40a6ea
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x6c549
push 0
call eax
mov ecx, 0x5284e58a
sub ecx, 0x528493e3
xor ebx, ebx
add ebx, eax
mov esi, 0xcf5ff01f
sub esi, 0xbf3d7c1f
add esi, dword [ebp - 0x1c]
mov edi, 0xcb21dc97
add edi, 0xc74e7657
sub dword [ebp - 0x18], 0x4c317aa5
mov edx, dword [esi]
sub dword [ebp - 0xc], 0x16e25796
sub edx, edi
mov dword [ebp - 8], 0xc8130be2
mov dword [ebx], edx
xor dword [ebp - 8], 0x5adf7ac0
add ebx, 4
add esi, 0xe74b650e
sub esi, 0xe74b650a
loop 0x100f41f9
add eax, 0x1396f
mov ebx, eax
add eax, 0xb724ec94
sub eax, 0xb724ec8f
mov ecx, 0x1e2c448b
add ecx, 0xf1d3bb75
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x101656b0
Capabilities:
Terminate process

Disassembly:
cmp dword [str._AdobeIP0000539_], 0
jne 0x101656c1
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x101a8720
movss xmm5, dword [0x101ef754]
movss xmm4, dword [0x101ef75c]
movss xmm6, dword [0x101ef750]
movss xmm7, dword [0x101ef748]
movss xmm3, dword [0x101b35f8]
push esi
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub esp, 8
addsd xmm0, qword [eax*8 + 0x101f2780]
cvtpd2ps xmm2, xmm0
movaps xmm0, xmm4
movaps xmm1, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, xmm7
add ecx, eax
mov dword [esi*4 + 0x10214870], ecx
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
mov edx, eax
mulss xmm0, dword [0x101ef758]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x101ef740]
add eax, edx
mov dword [esi*4 + 0x10215070], eax
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, dword [0x101ef74c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x101ef744]
add eax, ecx
mov dword [esi*4 + 0x10214c70], eax
mulss xmm0, xmm3
subss xmm0, xmm4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
mov dword [esi*4 + 0x10215470], eax
mulss xmm0, dword [0x101ef764]
mov dword [esi*4 + 0x10215c70], edx
mov dword [esi*4 + 0x10215870], ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
mov dword [esi*4 + 0x10216070], eax
mulss xmm0, dword [0x101ef768]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
movaps xmm0, xmm2
mov dword [esi*4 + 0x10216470], eax
mulss xmm0, dword [0x101ef76c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100f40d0
mov dword [esi*4 + 0x10216870], eax
mulss xmm2, dword [0x101ef760]
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
call fcn.100f40d0
mov dword [esi*4 + 0x10216c70], eax
add esp, 8
inc esi
cmp esi, 0x100
jb 0x101a8750
pop esi
ret
Function at 0x458d1f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
and dword [ecx + 0x294], 0
lea edx, [ecx + 0x2a8]
movzx eax, word [edx]
test ax, ax
je 0x458d4f
movzx eax, ax
push esi
movzx eax, ax
xor dword [ecx + 0x294], eax
inc edx
inc edx
movzx esi, word [edx]
test si, si
movzx eax, si
jne 0x458d38
pop esi
ret

Function at 0x45d8b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x402840]
jne 0x45e289
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4ac040], eax
mov dword [0x4ac03c], ecx
mov dword [0x4ac038], edx
mov dword [0x4ac034], ebx
mov dword [0x4ac030], esi
mov dword [0x4ac02c], edi
mov word [0x4ac058], ss
mov word [0x4ac04c], cs
mov word [0x4ac028], ds
mov word [0x4ac024], es
mov word [0x4ac020], fs
mov word [0x4ac01c], gs
pushfd
pop dword [0x4ac050]
mov eax, dword [ebp]
mov dword [0x4ac044], eax
mov eax, dword [ebp + 4]
mov dword [0x4ac048], eax
lea eax, [ebp + 8]
mov dword [0x4ac054], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4abf90], 0x10001
mov eax, dword [0x4ac048]
mov dword [0x4abf44], eax
mov dword [0x4abf38], 0xc0000409
mov dword [0x4abf3c], 1
mov eax, dword [0x402840]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4aa714]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4abf88], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x402bc4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4abf88], 0
jne 0x45e379
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x4699b1
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4699cf
mov ecx, dword [ecx + 8]
cmp eax, ecx
jb 0x4699cf
cmp edx, ecx
jb 0x4699cf
add ecx, 0x10000
cmp ecx, eax
jae 0x4699ee
mov eax, dword [0x4aad6c]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.kernel32.dll_RaiseException]
ret
Function at 0x4a5d4b
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push 0x43c
mov eax, 0x4a7491
call fcn.0045e22d
mov eax, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x43d]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x431], 0
call fcn.004a49ea
mov eax, dword [ebx]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x430]
push ecx
push ebx
call dword [eax + 0x1c]
test eax, eax
mov dword [ebp - 0x438], eax
jl 0x4a5fc4
push 4
pop ecx
mov edi, 0x454f70
lea esi, [ebp - 0x430]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4a5db9
mov dword [ebp - 0x438], 1
jmp 0x4a5fc4
mov eax, dword [ebx + 0x218]
test eax, eax
je 0x4a5fba
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 0x444], eax
je 0x4a5fba
mov ecx, dword [ebp + 0x10]
dec ecx
cmp ecx, 1
ja 0x4a5f62
lea edi, [ebx + 8]
mov dword [ebp - 0x448], edi
mov ecx, dword [ebp - 0x444]
mov esi, 0x104
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x43c]
call fcn.004a1a12
test al, al
je 0x4a5fa8
lea eax, [ebx + 0x210]
push eax
push esi
push edi
call fcn.004a1a12
test eax, eax
jl 0x4a5fa8
mov eax, dword [ebx + 0x218]
mov ecx, dword [eax]
push 1
push esi
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 8]
test eax, eax
mov dword [ebp - 0x438], eax
jl 0x4a5f0a
push 0x402730
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.004a1a12
test eax, eax
jl 0x4a5f01
push edi
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.004a1a12
test eax, eax
jl 0x4a5f01
cmp dword [ebp + 0x10], 1
jne 0x4a5e9d
push 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x43c]
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x4a5f0f
cmp dword [ebp + 0x10], 2
jne 0x4a5eba
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x43c]
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
jne 0x4a5f0f
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jg 0x4a5ecc
mov dword [ebp - 0x438], eax
jmp 0x4a5ee0
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x438], ecx
cmp eax, 0xb7
je 0x4a5df1
cmp eax, 0x50
je 0x4a5df1
mov ebx, dword [ebx + 0x218]
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0x1c]
and word [edi], 0
jmp 0x4a5fa8
movzx eax, ax
jmp 0x4a5ef4
push 0x80
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 0x431], 1
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push 4
pop ecx
mov edi, 0x454f10
lea esi, [ebp - 0x430]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4a5fa8
mov ebx, dword [ebx + 0x218]
mov eax, dword [ebx]
push 1
push 0x30
push 0x30
push dword [ebp - 0x448]
lea ecx, [ebp - 0x420]
push 0x104
push ecx
push ebx
call dword [eax + 0xc]
jmp 0x4a5fa8
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp - 0x43c]
call fcn.004a1a12
test al, al
je 0x4a5fa8
push dword [ebp - 0x43c]
mov esi, 0x104
push esi
lea edi, [ebx + 8]
push edi
call fcn.004a1a12
test eax, eax
jl 0x4a5fa8
add ebx, 0x210
push ebx
push esi
push edi
call fcn.004a1a12
test eax, eax
jl 0x4a5fa8
mov byte [ebp - 0x431], 1
cmp dword [ebp - 0x438], 0
jl 0x4a5fc4
cmp byte [ebp - 0x431], 0
jne 0x4a5fc4
mov dword [ebp - 0x438], 0x80004005
call fcn.004a4a27
mov eax, dword [ebp - 0x438]
call fcn.0045e277
ret 0xc
Function at 0x402300
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x41c]
push edi
push str.SETUPAPI.DLL
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x402371
push str.SetupUninstallOEMInfA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x40236a
mov eax, dword [esp + 0x424]
push 0
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call ebp
test eax, eax
je 0x40235e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4023fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
je 0x4023fc
push 0x100
lea ecx, [esp + 0x31c]
push ecx
push 0x100
lea edx, [esp + 0x224]
push edx
push 0x100
lea eax, [esp + 0x28]
push eax
push 3
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00440e1b
push str..PNF
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
push str._s_s_s_s
lea edx, [esp + 0x14c]
push 0x104
push edx
call fcn.00408310
add esp, 0x40
lea eax, [esp + 0x114]
push eax
call edi
test eax, eax
je 0x4023fc
mov bl, 1
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.00440494
add esp, 0x40c
ret
Function at 0x4061b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
mov esi, dword [esp + 0x358]
push edi
mov edi, dword [esp + 0x360]
push esi
push str._s.INF
lea eax, [esp + 0x258]
push 0x104
push eax
call fcn.00408310
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406269
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x3c]
push eax
push esi
push str._s_s
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.00408310
lea edx, [esp + 0x164]
push edi
push edx
call fcn.00405a00
add esp, 0x1c
test al, al
je 0x406255
lea eax, [esp + 0x150]
push 1
push eax
call fcn.00402300
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push ebx
call ebp
test eax, eax
jne 0x406211
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00440494
add esp, 0x34c
ret

Function at 0x406290
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2b0
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x2ac], eax
mov eax, dword [str.INFOTHER]
mov ecx, dword [0x462998]
mov dx, word [0x46299c]
push esi
mov esi, dword [esp + 0x2b8]
mov dword [esp + 0x9c], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x464e49
mov dword [esp + 0xa4], ecx
mov word [esp + 0xa8], dx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40630b
xor al, al
pop esi
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.00440494
add esp, 0x2b0
ret
push 0x104
lea ecx, [esp + 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x4063db
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x1b0]
push eax
push str._s_s
lea ecx, [esp + 0xb4]
push 0x104
push ecx
call fcn.00408310
lea edx, [esp + 0xbc]
push esi
push edx
call fcn.004061b0
add esp, 0x1c
test al, al
je 0x4062f3
cmp dword [esp + 0x18], 1
jne 0x4063db
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x1b0]
push ecx
push str._s_s
lea edx, [esp + 0xb4]
push 0x104
push edx
call fcn.00408310
lea eax, [esp + 0xbc]
push esi
push eax
call fcn.004061b0
add esp, 0x1c
test al, al
je 0x4062f3
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x1b0]
push edx
push str._s_sDRVIDX.BIN
lea eax, [esp + 0xb4]
push 0x104
push eax
call fcn.00408310
add esp, 0x14
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x2b0]
pop esi
xor ecx, esp
mov al, 1
call fcn.00440494
add esp, 0x2b0
ret
Function at 0x406b10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45c241
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x6c]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x68]
push ecx
call edi
lea eax, [esp + 0x68]
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406b74
sub eax, ebp
push eax
lea edx, [esp + 0x6c]
push edx
lea ecx, [esi + 0xf4]
call fcn.00402de0
lea eax, [esp + 0x16c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x16c]
push ecx
call edi
mov ebp, 0xf
lea eax, [esp + 0x16c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406bc8
sub eax, edi
push eax
lea edx, [esp + 0x170]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402de0
push 0x462a84
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x288], ebx
call fcn.00406a50
push str._ESINST_TEMP
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x294], 1
call fcn.00406a50
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x110]
mov byte [esp + 0x288], 2
call fcn.00402d00
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x406c4a
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x406c69
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x406c88
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f837
add esp, 4
cmp dword [esi + 0x108], ebx
je 0x406c9c
cmp dword [esi + 0x124], ebx
je 0x406c9c
mov al, 1
jmp 0x406c9e
xor al, al
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00440494
add esp, 0x26c
ret