joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4478c6
Capabilities:
Check if file exists

Disassembly:
push 0
mov eax, 0x4fdd9b
call fcn.004cc273
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4478e4
xor al, al
jmp 0x44799f
mov eax, dword [0x56f55c]
mov ecx, esi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00447ac6
and dword [ebp - 4], 0
mov ecx, 0x56f55c
push dword [eax]
call fcn.00447dcd
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406ba9
add bl, 1
je 0x447964
mov eax, dword [0x56f55c]
mov ecx, esi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00447b6f
mov dword [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4479a7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4479a7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406ba9
push 1
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00447b17
mov dword [ebp - 4], 6
mov ecx, eax
push 0x5293b8
call fcn.00447dcd
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406ba9
add bl, 1
sete al
call fcn.004cc23c
ret 4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00406ba9
jmp 0x4478dd
Function at 0x45113c
Capabilities:
Get disk information

Disassembly:
push 0x1c
mov eax, 0x4ff9ea
call fcn.004cc2a7
mov ebx, ecx
push dword [ebx + 4]
push dword [ebx]
call fcn.004094a3
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
lea ecx, [ebp - 0x28]
push 0
push esi
call fcn.00451425
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4511a4
xor bl, bl
jmp 0x4511c8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
mov edx, eax
call fcn.004682f0
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
pop ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040487e
mov al, bl
call fcn.004cc251
ret
Function at 0x452ead
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fffb9
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x48]
call fcn.00453018
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x3c]
call fcn.00454578
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x34]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 9
lea ecx, [esi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 8
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 7
lea ecx, [esi + 0x24]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 6
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 5
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 3
lea ecx, [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
sub ecx, edi
call fcn.00406ba9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x453ce6
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50066f
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xf
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xf
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x44]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x38]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x34]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 9
lea ecx, [esi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 8
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 7
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 6
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 4
lea ecx, [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 3
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406ba9
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
sub ecx, edi
call fcn.00406ba9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4568ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x500c5c
call fcn.004cc2de
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x456970
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x456970
call fcn.0044c696
mov edi, eax
jmp 0x456a59
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45698d
call fcn.0044c696
jmp 0x456a4c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x456983
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4569ba
mov edi, 0x8007000e
jmp 0x456a4e
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, ebx
ja 0x4569f2
cmp eax, 0xffffffff
ja 0x4569f2
cmp eax, 0x400
jbe 0x4569e3
push eax
lea ecx, [ebp]
call fcn.0044621b
jmp 0x4569e9
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x456a11
push 0x80070216
call fcn.00406c36
mov eax, 0x456a02
ret
cmp dword [ebp], 0
je 0x4569b0
push edi
push dword [ebp]
push edi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x456983
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.004567a1
mov edi, eax
test esi, esi
je 0x456a59
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x456a6c
lea ecx, [ebp]
call fcn.00446212
or dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x465e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502d89
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.00467360
mov dword [ebp - 4], 1
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call edi
inc eax
lea ecx, [ebp - 0x24]
push eax
call fcn.00467250
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
sub esi, eax
push eax
sar esi, 1
push esi
call edi
cmp eax, esi
jbe 0x465e97
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov byte [ebp - 4], 1
jmp 0x465edb
mov edi, dword [ebp - 0x24]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [edi], ax
je 0x465ec3
push edi
call fcn.004d163d
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.00407b30
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004656c0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004677d0
mov eax, ebx
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 0x465f10
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502e09
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x254], edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x250], 0
call fcn.00465e10
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00467040
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x465f87
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x465f8f
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x466006
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x7fffffff
jbe 0x465fc2
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x465ffd
test byte [ebp - 0x24c], 0x1f
je 0x465fd9
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x465fe5
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x465ff1
call fcn.004d1161
cmp ecx, 0x23
jbe 0x465ffb
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp byte [ebp + 8], al
je 0x466035
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
xor eax, eax
mov esi, esp
mov dword [ebp - 0x254], esp
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x21c], ax
je 0x46606b
lea eax, [ebp - 0x21c]
push eax
call fcn.004d163d
add esp, 4
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00407b30
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.004656c0
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x4660fc
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x7fffffff
jbe 0x4660b8
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x4660f3
test byte [ebp - 0x234], 0x1f
je 0x4660cf
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4660db
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x4660e7
call fcn.004d1161
cmp ecx, 0x23
jbe 0x4660f1
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cb6da
mov esp, ebp
pop ebp
ret
Function at 0x46dff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503edb
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x46e053
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x448]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46e23d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x458], 4
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x448]
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x44c], 0
jne 0x46e138
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x448]
call esi
mov dx, word [ebp - 0x30]
lea eax, [ebp - 0x30]
xor ecx, ecx
test dx, dx
je 0x46e138
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x46e110
cmp ecx, 3
jne 0x46e138
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x44c], eax
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x44c]
mov dword [0x56fa70], eax
mov eax, dword [ebp - 0x450]
mov dword [0x56fa74], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x45c], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x46e1a0
push 0xa
lea edx, [ebp - 0x454]
mov dword [ebp - 0x454], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0047b110
add esp, 4
mov dword [0x56fa78], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x46e22e
mov di, word [ebp - 0x238]
mov ecx, 0x56fa80
test di, di
je 0x46e202
lea esi, [ebp - 0x238]
movzx edx, di
sub esi, ecx
nop dword [eax]
movzx eax, word [esi + ecx + 2]
mov word [ecx], dx
add ecx, 2
mov edx, eax
test ax, ax
jne 0x46e1f0
xor eax, eax
mov word [ecx], ax
xor ecx, ecx
lea eax, [ebp - 0x238]
test di, di
je 0x46e21e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x46e214
movzx eax, word [ebp + ecx*2 - 0x23a]
sub eax, 0x30
mov dword [0x56fa7c], eax
call fcn.0047b2a0
mov byte [0x56fb85], al
call fcn.0046e280
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x46e25f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb6da
mov esp, ebp
pop ebp
ret
Function at 0x46f7d0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], ecx
push eax
push 0x46f800
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x46fa90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504181
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0x2a
push eax
call fcn.00414ec9
cmp eax, 0xffffffff
jne 0x46faf3
cmp dword [esi + 0x14], 8
jb 0x46fae7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46fbfd
lea ecx, [ebp - 0x478]
call fcn.0046fc20
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46fb0d
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.0047bbd0
test eax, eax
je 0x46fbeb
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
cmp dword [ebp - 0x18], 0
je 0x46fb6e
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x46fb6a
cmp word [ebp - 0x44c], 0x2e
jne 0x46fb6a
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46fbc9
cmp cx, 0x2e
jne 0x46fb6a
cmp word [ebp - 0x448], 0
je 0x46fbc9
test eax, eax
jne 0x46fbc9
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.0047c000
mov byte [ebp - 4], 1
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46fbc9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x46fbc5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x46fbc9
mov ecx, edx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46fbeb
cmp dword [ebp - 0x18], 0
je 0x46fbeb
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46fb30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046fcd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb6da
mov esp, ebp
pop ebp
ret
Function at 0x46fe90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5c78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x46ff5a
nop dword [eax + eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.00467040
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x46feed
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46ff3e
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x46ff95
add eax, eax
cmp eax, 0x1000
jb 0x46ff35
test cl, 0x1f
jne 0x46ff95
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46ff95
sub ecx, eax
cmp ecx, 4
jb 0x46ff95
cmp ecx, 0x23
ja 0x46ff95
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x46fed0
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
cmp esi, edi
je 0x46ff73
push ecx
mov ecx, esi
call fcn.00470850
add esi, 0x18
cmp esi, edi
jne 0x46ff64
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb6da
mov esp, ebp
pop ebp
ret
call fcn.004d1161
int3

Function at 0x471a40
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x569078]
xor eax, esp
mov dword [esp + 0x2bc], eax
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x10]
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x52dbb0
mov esi, ecx
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [esp + 0x14]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [esp + 0x18]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
lea eax, [esp + 8]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x471b06
push 0x4009
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x471b0d
mov ecx, dword [esp + 0xc]
push dword [esp + 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x471b0d
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004cb6da
add esp, 0x2c0
ret