joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f440
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], eax
cmp eax, ebx
je 0x46f5c4
cmp edi, ebx
je 0x46f5c4
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.004b4620
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004b4620
add esp, 0x18
push edi
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.0043e258
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x418]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x46f5c4
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46f54c
push edi
call esi
test eax, eax
jne 0x46f54c
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x501174
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x46f54c
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46f5d7
mov ecx, dword [ebp - 0x41c]
push edi
push dword [ebp - 0x418]
call fcn.004931a4
test eax, eax
jne 0x46f5d7
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x501174
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call esi
cmp byte [ebp + 0x10], bl
je 0x46f5c4
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46f5c4
push 5
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret 0xc
xor eax, eax
inc eax
jmp 0x46f5c6
Function at 0x46f5dc
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46f6c3
lea eax, [esi + 0x9c4]
mov dword [ebp - 0x62c], eax
lea eax, [esi + 0x5b4]
mov dword [ebp - 0x628], eax
lea eax, [esi + 0x7bc]
add esi, 0xdca
push edi
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x624], eax
xor edi, edi
mov esi, 0x410
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.004b4620
push esi
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004b4620
push dword [ebp + edi*4 - 0x62c]
lea eax, [ebp - 0x20c]
push eax
push 0x4fba40
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00411380
add esp, 0x2c
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, 4
jb 0x46f662
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b46ff
leave
ret
Function at 0x46f74e
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa7c], esi
mov dword [ebp - 0xa78], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f935
push ebx
push edi
mov edi, 0x208
push edi
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
push 0x501184
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call esi
push 0x250
lea eax, [ebp - 0xa74]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa80], eax
cmp eax, 0xffffffff
je 0x46f931
test byte [ebp - 0xa74], 0x10
je 0x46f89d
lea eax, [ebp - 0xa48]
push 0x4fbb78
push eax
call fcn.004b55d7
pop ecx
pop ecx
test eax, eax
je 0x46f905
lea eax, [ebp - 0xa48]
push 0x50117c
push eax
call fcn.004b55d7
pop ecx
pop ecx
test eax, eax
je 0x46f905
push edi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa7c]
lea eax, [ebp - 0x61c]
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa78]
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0xa84]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0046f74e
jmp 0x46f905
push edi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa7c]
lea eax, [ebp - 0x824]
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa78]
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0xa84]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0046f440
lea eax, [ebp - 0xa74]
push eax
push dword [ebp - 0xa80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46f7f0
push dword [ebp - 0xa80]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x46f933
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b46ff
leave
ret 0xc
Function at 0x471e67
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 4
mov eax, 0x4e21e1
call fcn.004b51ee
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
je 0x471e8e
xor eax, eax
inc eax
jmp 0x471f47
and dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x471ee6
test al, 0x10
je 0x471ee6
push esi
mov dword [ebp + 8], 1
call edi
test eax, eax
jne 0x471e86
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x471ed3
cmp dword [ebp + 8], 0
push esi
jne 0x471eeb
call ebx
test eax, eax
jne 0x471e86
cmp byte [ebp + 0xc], 0
je 0x471eef
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x471f45
push esi
call ebx
jmp 0x471eb2
call edi
jmp 0x471ecf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x471f16
push str..lnk
push eax
call fcn.004b571f
pop ecx
pop ecx
test eax, eax
jne 0x471f16
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x471f45
push esi
lea ecx, [ebp + 0xc]
call fcn.0044bc85
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.0045af0d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d610
mov dword [esi + 0x1c], 1
xor eax, eax
call fcn.004b52c6
ret 8
Function at 0x472107
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x4e2243
call fcn.004b5257
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test byte [0x53fd70], 1
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x248], ebx
mov esi, 0x53fd50
jne 0x47215e
or dword [0x53fd70], 1
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00471ab8
push 0x4ef4bd
call fcn.004b7700
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [0x53fd6c], ebx
je 0x472186
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x53fd4c]
sub ecx, eax
cmp ecx, 0x1388
ja 0x472186
cmp dword [ebp + 0x10], 1
jne 0x472268
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472268
mov ecx, esi
call fcn.00470c48
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x23c], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x472253
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.0044bc85
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.0044644e
mov ecx, eax
call fcn.00444d1f
lea ecx, [ebp - 0x244]
call fcn.00445121
lea eax, [ebp - 0x244]
push eax
mov ecx, esi
call fcn.0047158d
mov ecx, dword [ebp - 0x234]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004b4620
add esp, 0xc
mov dword [ebp - 0x23c], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040d610
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4721d3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x254]
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x240]
call fcn.0044bc85
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00445121
push esi
push dword [0x53fd68]
lea ecx, [ebp - 0x250]
call fcn.004424c1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
call fcn.0046fdc4
mov ecx, eax
call fcn.004833f7
test al, al
je 0x4722e4
test edi, edi
je 0x4722da
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0047158d
mov eax, dword [eax]
mov dword [edi], eax
mov dword [ebp - 0x248], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0040d610
mov eax, dword [ebp - 0x248]
call fcn.004b52da
ret
Function at 0x473bcd
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x4e24e1
call fcn.004b5257
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
inc ebx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], edi
mov esi, 0x53fd7c
test byte [0x53fd78], bl
jne 0x473c25
or dword [0x53fd78], ebx
mov dword [ebp - 4], edi
mov ecx, esi
call fcn.0045acde
push 0x4ef4c7
call fcn.004b7700
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [0x53fd98], edi
je 0x473c4c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x53fd74]
sub ecx, eax
cmp ecx, 0x1388
ja 0x473c4c
cmp dword [ebp + 0x10], ebx
jne 0x473d3c
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
cmp eax, 0xffffffff
je 0x473d3c
mov ecx, esi
call fcn.00451d1c
push 0x228
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x24c]
mov edi, 0x22c
mov dword [ebp - 0x23c], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x473d28
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.0044bc85
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x244]
call fcn.0044644e
mov ecx, eax
call fcn.00444d1f
lea ecx, [ebp - 0x244]
call fcn.00445121
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x244]
push eax
mov ecx, esi
call fcn.0045f777
mov ecx, eax
call fcn.0045932c
push edi
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004b4620
add esp, 0xc
mov dword [ebp - 0x23c], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040d610
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x24c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x473ca1
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x258]
lea ecx, [ebp - 0x240]
call fcn.0044bc85
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00445121
push esi
push dword [0x53fd94]
lea ecx, [ebp - 0x25c]
call fcn.004424c1
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
mov ecx, esi
call fcn.004462c2
mov ecx, eax
call fcn.004833f7
test al, al
je 0x473dd4
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0045f777
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x473dd4
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0045f777
mov ecx, dword [ebp - 0x254]
push eax
call fcn.0045613a
mov dword [ebp - 0x248], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0040d610
mov eax, dword [ebp - 0x248]
call fcn.004b52da
ret
Function at 0x475cc6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x128
mov eax, 0x4e29d5
call fcn.004b5257
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x128], ebx
call fcn.0040c7d0
mov dword [ebp - 4], ebx
push 0x103
xor esi, esi
lea eax, [ebp - 0x113]
push ebx
inc esi
push eax
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x114], bl
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x501624
push 0x5015fc
push 0x80000002
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x120], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x475e05
lea eax, [ebp - 0x114]
push eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x118], ebx
call fcn.004b5e30
pop ecx
test eax, eax
jbe 0x475dcb
mov eax, dword [ebp - 0x118]
movsx eax, byte [ebp + eax - 0x114]
push ebx
sub eax, 0x30
cdq
push 0xa
push edi
mov ecx, edx
push esi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x130], ecx
call fcn.004b6210
mov ecx, dword [ebp - 0x124]
add ecx, eax
mov eax, dword [ebp - 0x130]
adc eax, edx
inc dword [ebp - 0x118]
mov edi, eax
lea eax, [ebp - 0x114]
push eax
mov esi, ecx
call fcn.004b5e30
pop ecx
cmp dword [ebp - 0x118], eax
jb 0x475d72
push ebx
call fcn.004b5d2c
sub eax, esi
sbb edx, edi
cmp edx, ebx
pop ecx
jg 0x475de8
jl 0x475de0
cmp eax, ebx
jae 0x475de8
xor eax, eax
mov dword [ebp - 0x130], ebx
xor edx, edx
mov ecx, 0x15180
div ecx
push eax
push 0x4f8f00
push dword [ebp - 0x11c]
call fcn.0040e3f0
add esp, 0xc
mov eax, dword [ebp - 0x11c]
call fcn.004b52da
ret 4

Function at 0x475e78
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x4dfe4c
call fcn.004b51ee
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x475ef9
cmp dword [ebp + 8], esi
je 0x475ef9
cmp dword [ebp + 0xc], esi
je 0x475ef9
lea ecx, [ebp - 0x10]
call fcn.004413bb
mov dword [ebp - 4], esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
push str._s_s
push eax
call fcn.00461c09
add esp, 0x10
push 4
mov dword [ebp - 0x14], esi
pop esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov bl, 1
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x475ee7
cmp dword [ebp - 0x14], esi
je 0x475ee9
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044209e
mov al, bl
jmp 0x475efb
xor al, al
call fcn.004b52c6
ret

Function at 0x477d24
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x477d76
cmp dword [ebp - 0x114], 6
jb 0x477d76
xor eax, eax
inc eax
jmp 0x477d78
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b46ff
leave
ret
Function at 0x47b45a
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x47c875
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
cmp eax, 0xffffffff
je 0x47c921
or dword [esi + 0x48], 0xffffffff
push edi
lea ecx, [eax + 1]
push ecx
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
call fcn.0047b1e0
add eax, 4
push eax
mov ecx, esi
call fcn.0047649c
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x47c920
push eax
mov ecx, edi
call fcn.0047b1e0
add eax, 0x1c
mov edi, dword [eax]
push 7
push 0x502198
push edi
call fcn.004b6581
add esp, 0xc
test eax, eax
jne 0x47c90d
add edi, 0xe
cmp word [edi], 0x30
jne 0x47c8f0
movzx eax, word [edi + 2]
cmp ax, 0x78
je 0x47c8e9
cmp ax, 0x58
jne 0x47c8f0
push 0x10
add edi, 4
jmp 0x47c8f2
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call fcn.004b848b
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
add esp, 0xc
push eax
push 0
push esi
call dword [edx + 0x14]
jmp 0x47c920
push 5
xor eax, eax
push eax
push eax
push edi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
leave
ret

Function at 0x47ce4b
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x4e345d
call fcn.004b5257
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x220], esi
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 0x224], edi
call fcn.004b4620
add esp, 0xc
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
push esi
lea eax, [ebp - 0x21c]
je 0x47cea0
push 0x2a
jmp 0x47cea2
push 0x26
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360Total_Security
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.0044bc85
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], 1
mov eax, edi
call fcn.004b52da
ret
Function at 0x47f1a7
Capabilities:
Get disk size

Disassembly:
push 0x1c
mov eax, 0x4e3811
call fcn.004b5257
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x140], ebx
mov eax, dword [0x50248c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x502490]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x144]
cmp dword [eax - 0xc], ebx
jge 0x47f1e2
push 0x80070057
call fcn.0040b600
mov ax, word [eax]
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.004a46cd
pop ecx
cmp eax, 1
je 0x47f201
mov dword [esi + 0x140], 2
lea edi, [esi + 0x150]
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x140], ebx
jne 0x47f260
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0x158]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x47f254
mov ecx, esi
call fcn.0047d6cb
cmp dword [edi + 4], ebx
ja 0x47f254
jb 0x47f24a
cmp dword [edi], 0x11e1a300
ja 0x47f254
mov dword [esi + 0x140], 1
cmp dword [esi + 0x140], ebx
je 0x47f310
cmp dword [ebp + 8], ebx
je 0x47f30a
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x140]
cmp eax, 2
jne 0x47f29c
push str.ERROR_NOUDISK
lea eax, [ebp - 0x1c]
mov ebx, 0x53fda0
push eax
mov ecx, ebx
call fcn.0047d67a
xor ecx, ecx
mov dword [ebp - 4], ecx
push ecx
push ecx
jmp 0x47f2c1
cmp eax, 1
jne 0x47f2eb
push str.ERROR_NODISKSPACE
lea eax, [ebp - 0x1c]
mov ebx, 0x53fda0
push eax
mov ecx, ebx
call fcn.0047d67a
mov dword [ebp - 4], 1
push 0
push 0
mov eax, dword [eax]
push eax
push 0x50243c
mov ecx, ebx
call fcn.0047d611
push eax
push dword [0x540378]
call fcn.0047f037
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040d610
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov ecx, esi
mov dword [edi + 4], eax
call fcn.0047d6cb
jmp 0x47f310
mov dword [esi + 0x140], ebx
call fcn.004b52da
ret 4
Function at 0x48105c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x481069
xor al, al
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x481065
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x48107e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
ret

Function at 0x481125
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x481149
xor eax, eax
jmp 0x481285
push esi
push edi
mov esi, str._pid_clean
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edi, eax
cmp edi, ebx
je 0x481281
push esi
call fcn.004b5d07
lea eax, [edi + eax*2]
pop ecx
cmp eax, ebx
je 0x481281
cmp word [eax], bx
je 0x481281
push 0xa
push ebx
push eax
call fcn.004b84b6
add esp, 0xc
cmp eax, ebx
je 0x481281
push eax
push ebx
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x48127c
push 0x800
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
push str.QueryFullProcessImageNameW
mov edi, 0x400
push str.Kernel32.dll
mov dword [ebp - 0x80c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4811f9
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push ebx
push esi
call eax
test eax, eax
jne 0x481233
lea eax, [ebp - 0x810]
push eax
push 4
lea eax, [ebp - 0x808]
push eax
push esi
mov dword [ebp - 0x808], ebx
mov dword [ebp - 0x810], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x481233
push edi
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x481275
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.0044e746
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x481283
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x48133e
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x48], eax
cmp dword [0x54025c], ebx
jne 0x481378
push 0x114
push 0x540148
push eax
call fcn.004b4a20
add esp, 0xc
jmp 0x48149b
push esi
push edi
mov esi, 0x540148
mov edi, 0x114
push esi
mov dword [0x54025c], ebx
mov dword [0x540148], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x481442
push 0x3f
push eax
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x43]
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x481407
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [0x54014c], eax
lea eax, [ebp - 0x42]
push eax
mov dword [0x540158], 2
call fcn.004badf2
pop ecx
mov dword [0x540150], eax
jmp 0x481442
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
shr edx, 8
movzx edx, dl
movzx ecx, al
mov dword [0x540150], edx
xor edx, edx
cmp ecx, 4
seta dl
mov dword [0x54014c], ecx
inc edx
mov dword [0x540158], edx
cmp eax, 0x80000000
jae 0x481442
shr eax, 0x10
mov dword [0x540154], eax
push edi
push esi
push dword [ebp - 0x48]
call fcn.004b4a20
mov eax, dword [0x54014c]
add esp, 0xc
cmp eax, 6
ja 0x481464
jne 0x481499
cmp dword [0x540150], 2
jb 0x481499
push str.RtlGetVersion
push str.ntdll.dll
mov dword [0x540148], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x481499
push esi
call eax
test eax, eax
jne 0x481499
push edi
push esi
push dword [ebp - 0x48]
call fcn.004b4a20
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret