joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c49e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0xbf00
mov word [ebp - 0x18], ax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x16], eax
mov byte [ebp - 0x12], 0x54
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x4f
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], 4
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
cmp dword [ebp + 8], eax
je 0x40c6a3
cmp dword [ebp + 0xc], eax
je 0x40c6a3
cmp dword [ebp + 0x10], eax
je 0x40c6a3
push 2
push 3
push 0x40000000
push dword [ebp + 8]
mov eax, ebx
call fcn.00401897
test al, al
je 0x40c6a3
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c513
sub eax, edx
mov esi, eax
mov eax, str.uniq
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c526
sub eax, ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c537
add esi, ecx
sub eax, edi
lea eax, [esi + eax + 0x14]
movzx eax, ax
mov edx, eax
mov esi, eax
mov ecx, 0xff00
and edx, ecx
shl esi, 0x10
add edx, esi
mov esi, eax
shl edx, 8
sar esi, 8
and esi, ecx
sar eax, 0x18
add edx, esi
add edx, eax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
mov dword [ebp - 0x16], edx
call fcn.0040a8f7
cmp eax, 0x10
jne 0x40c693
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c589
and dword [ebp - 8], 0
sub eax, ecx
movzx edi, ax
mov eax, edi
shl eax, 8
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a8f7
cmp eax, 2
jne 0x40c693
movzx esi, di
push esi
push dword [ebp + 0xc]
mov eax, ebx
call fcn.0040a8f7
cmp eax, esi
jne 0x40c693
push 3
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040a8f7
cmp eax, 3
jne 0x40c693
mov eax, str.uniq
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c5ee
sub eax, edx
movzx edi, ax
mov eax, edi
shl eax, 9
add eax, 0x103
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a8f7
cmp eax, 2
jne 0x40c693
movzx esi, di
push esi
push str.uniq
mov eax, ebx
call fcn.0040a8f7
cmp eax, esi
jne 0x40c693
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c636
sub eax, edx
movzx edi, ax
mov eax, edi
shl eax, 9
add eax, 0x106
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a8f7
cmp eax, 2
jne 0x40c693
movzx esi, di
push esi
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0040a8f7
cmp eax, esi
jne 0x40c693
push 1
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040a8f7
cmp eax, 1
jne 0x40c693
mov esi, ebx
call fcn.004019af
mov al, 1
jmp 0x40c6a5
mov esi, ebx
call fcn.004019af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor al, al
pop edi
pop esi
leave
ret 0xc
Function at 0x40c6ab
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x874], ax
xor esi, esi
lea eax, [ebp - 0x872]
push esi
push eax
call fcn.00423fe0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40c803
cmp dword [ebp + 0x10], esi
je 0x40c803
lea eax, [ebp - 0x874]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40c803
lea ebx, [ebp - 0x874]
call fcn.0040cb90
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov eax, ebx
push eax
call esi
cmp eax, 0xffffffff
je 0x40c803
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x258]
push ebx
push eax
mov dword [ebp - 0x25c], ebx
call fcn.00423fe0
add esp, 0xc
lea eax, [ebp - 0x874]
mov byte [ebp - 5], bl
push eax
mov ebx, 0x103
push 0x435d30
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040cb04
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40c803
test byte [ebp - 0x25c], 2
jne 0x40c7cd
test byte [ebp - 0x25c], 0x10
je 0x40c7cd
cmp word [ebp - 0x230], 0x2e
je 0x40c7cd
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp - 0x874]
push eax
push str._s_s_s_s.sol
lea edi, [ebp - 0x464]
call fcn.0040cb04
add esp, 0x14
mov eax, edi
push eax
call esi
cmp eax, 0xffffffff
jne 0x40c7e3
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c77e
jmp 0x40c7f5
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
call fcn.0040c80c
mov byte [ebp - 5], al
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [ebp - 5]
jmp 0x40c805
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ca64
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
test ebx, ebx
jne 0x40ca75
xor al, al
jmp 0x40cafd
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push ebx
call edi
cmp eax, 0xffffffff
je 0x40ca88
mov al, 1
jmp 0x40cafc
push ebp
push esi
push SysReAllocString
mov eax, ebx
mov ecx, 0x103
lea edx, [esp + 0x10]
call fcn.0040cb51
cmp word [esp + 0xc], 0
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea esi, [esp + 0xc]
je 0x40cae3
cmp word [esi], 0x5c
jne 0x40cadb
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0xc]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40cad5
push 0
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40caf4
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40cab1
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40caf8
push 0
push ebx
call ebp
test eax, eax
jne 0x40caf8
xor al, al
jmp 0x40cafa
mov al, 1
pop esi
pop ebp
pop edi
add esp, 0x208
ret
Function at 0x40cbd5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
lea ecx, [eax + 2]
xor ebx, ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40cbe3
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
cmp dword [ebp + 8], ebx
je 0x40cc50
cmp dword [ebp + 0xc], ebx
je 0x40cc50
cmp dword [ebp + 0x10], ebx
je 0x40cc50
cmp dword [ebp + 0x14], ebx
je 0x40cc50
cmp esi, ebx
je 0x40cc50
lea eax, [ebp - 4]
push eax
push 0x20106
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cc4c
push esi
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40cc43
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40cc52
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x40ccab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x40cd11
cmp dword [ebp + 0x10], ebx
je 0x40cd11
cmp esi, ebx
je 0x40cd11
cmp dword [ebp + 0x14], ebx
je 0x40cd11
lea eax, [ebp - 4]
push eax
push 0x20119
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cd0d
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cd04
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40cd13
xor al, al
pop ebx
leave
ret

Function at 0x40cd68
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d557
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp esi, ecx
je 0x40d583
xor eax, eax
cmp dword [esp + 4], ecx
jbe 0x40d583
push edi
mov edi, dword [esp + 0xc]
mov edx, eax
and edx, 0xf
mov dl, byte [edi + edx*4]
add dl, cl
xor byte [eax + esi], dl
movsx ecx, byte [eax + esi]
inc eax
cmp eax, dword [esp + 8]
jb 0x40d566
pop edi
ret

Function at 0x40d584
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x40d5bc
cmp dword [ebp + 8], eax
jbe 0x40d5bc
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov cl, byte [eax + edi]
mov edx, eax
and edx, 0xf
mov dl, byte [ebx + edx*4]
add dl, byte [ebp - 4]
movsx esi, cl
xor dl, cl
mov byte [eax + edi], dl
inc eax
mov dword [ebp - 4], esi
cmp eax, dword [ebp + 8]
jb 0x40d598
pop esi
pop ebx
leave
ret
Function at 0x40d611
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40d62c
xor eax, eax
jmp 0x40d6ba
push esi
push edi
push ebx
mov eax, 0x410
lea edx, [ebp - 0x414]
call fcn.0040dfbd
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea eax, [ebp + eax*2 - 0x416]
jmp 0x40d669
cmp word [eax], 0x5c
je 0x40d675
dec eax
dec eax
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x40d661
jmp 0x40d6a6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40d6a6
push 0
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x40d6a6
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0040d611
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40d6b5
push 0
push ebx
call edi
jmp 0x40d6b8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.00423fe0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40d76b
mov eax, dword [ebp + 0xc]
call fcn.0040ae2b
cmp eax, 1
jb 0x40d76b
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40d76b
push ebx
mov esi, 0x208
push 0x435dec
mov eax, esi
lea ebx, [ebp - 0x208]
call fcn.0040df5c
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040df5c
push 1
push 1
push 0x435dd8
mov eax, ebx
push eax
mov ecx, 0x43f570
call fcn.0040dcb7
pop ebx
pop esi
leave
ret 8
Function at 0x40d7ba
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x428], ax
xor esi, esi
lea eax, [ebp - 0x426]
push esi
push eax
call fcn.00423fe0
add esp, 0xc
xor bl, bl
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
je 0x40d8f1
cmp dword [ebp + 0x10], esi
je 0x40d8f1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40d8f1
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40d8c5
mov esi, 0x208
push 0x435dec
mov eax, esi
lea ebx, [ebp - 0x428]
call fcn.0040df5c
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040df5c
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d8af
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov word [ebp - 0x210], ax
mov eax, ebx
push eax
lea esi, [ebp - 0x220]
mov dword [ebp - 0x220], 0x435580
mov dword [ebp - 0x214], 0x104
call fcn.0040add8
mov eax, esi
mov dword [ebp - 0x220], 0x435580
call fcn.0040dea9
mov bl, al
jmp 0x40d8b1
mov bl, 1
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp + 0x14]
add eax, eax
call fcn.0040dfbd
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40d8e8
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
test bl, bl
setne al
jmp 0x40d8f3
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40d95e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.00423fe0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40da03
cmp dword [ebp + 0x10], esi
je 0x40da03
cmp dword [ebp + 0x18], esi
je 0x40da03
cmp edi, esi
je 0x40da03
cmp ebx, esi
je 0x40da03
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40da03
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40da03
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi - 1]
mov edi, dword [ebp + 0x18]
push str._s_s.lnk
call fcn.0040cb04
add esp, 0xc
cmp word [ebx], si
jne 0x40d9f3
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040da0c
jmp 0x40da05
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40da0c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00423fe0
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x40db40
cmp dword [ebp + 0x10], edi
je 0x40db40
lea eax, [ebp - 4]
push eax
push 0x4305b8
push 1
push edi
push 0x4305e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40db40
cmp dword [ebp + 0x18], edi
mov dword [ebp - 8], edi
jge 0x40da85
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call fcn.0040db47
mov ecx, dword [ebp + 0x14]
cmp word [ebp - 0x20c], di
je 0x40da97
lea ecx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push esi
push dword [ebp + 0x18]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push 0x100
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov esi, 0x435280
push esi
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4305f8
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40db2d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
setge al
pop esi
jmp 0x40db42
xor eax, eax
pop edi
leave
ret 0x14
Function at 0x40db47
Capabilities:
Get file system object information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push esi
xor esi, esi
push 0x2b0
lea eax, [ebp - 0x2b4]
push esi
push eax
mov dword [ebp - 0x2b8], esi
call fcn.00423fe0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40dcb2
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x40dcb1
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40dcb0
push 0x1000
xor eax, eax
mov word [ebx], ax
or dword [edi], 0xffffffff
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [ebp - 0x2ac]
push eax
call esi
test eax, eax
jle 0x40dbe4
lea eax, [ebp - 0x2ac]
push eax
push ebx
call esi
dec eax
mov edx, ebx
call fcn.0040dfbd
mov eax, dword [ebp - 0x2b4]
mov dword [edi], eax
jmp 0x40dcb0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6b8]
push eax
push dword [ebp + 8]
mov ebx, 0x200
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push eax
push SysReAllocStringLen
call edi
mov eax, ebx
push str.DefaultIcon
lea ebx, [ebp - 0x6b8]
call fcn.0040df5c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4b8]
push eax
mov eax, ebx
push eax
push SysReAllocStringLen
mov dword [ebp - 4], 0x104
call edi
lea eax, [ebp - 0x4b8]
push 0x435dd4
push eax
call fcn.00421fc2
pop ecx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x40dcb0
push eax
call esi
xor edi, edi
inc edi
sub edi, eax
lea eax, [ebp - 0x4b8]
push eax
call esi
mov ebx, eax
add ebx, edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ecx, eax
shr ecx, 1
je 0x40dc9e
cmp ecx, 0x7fffffff
ja 0x40dc9e
shr ebx, 1
cmp ebx, 0x7ffffffe
jbe 0x40dc90
xor eax, eax
mov word [edi], ax
jmp 0x40dc9e
push ebx
lea eax, [ebp - 0x4b8]
mov edx, edi
call fcn.0040cb51
mov eax, dword [ebp + 8]
add eax, 2
push eax
call fcn.00422202
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40dcb7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push esi
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
call fcn.00423fe0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40de9e
cmp dword [ebp + 0xc], esi
je 0x40de9e
push dword [ebp + 0xc]
mov ebx, str._s_s
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040cb04
add esp, 0xc
lea eax, [esp + 0x220]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40de42
test byte [esp + 0x220], 0x10
je 0x40ddb3
cmp byte [ebp + 0x10], 0
je 0x40ddb3
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push 0x435de0
lea eax, [esp + 0x250]
push eax
call esi
test eax, eax
je 0x40de1e
push 0x435de4
lea eax, [esp + 0x250]
push eax
call esi
test eax, eax
je 0x40de1e
lea eax, [esp + 0x24c]
push eax
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040cb04
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push dword [ebp + 0x10]
mov eax, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040dcb7
add dword [esp + 0xc], eax
jmp 0x40de1e
lea eax, [esp + 0x24c]
push eax
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040cb04
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x40de1a
mov eax, edi
call fcn.0040ae2b
cmp eax, dword [0x43f318]
jae 0x40de1a
mov esi, dword [0x43f314]
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, eax
add ecx, ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40de1a
push 4
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
inc dword [esp + 0xc]
lea eax, [esp + 0x220]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40dd37
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x40de98
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40de5b
inc dword [esp + 0xc]
jmp 0x40de98
mov eax, dword [ebp + 8]
call fcn.0040ae2b
cmp eax, dword [0x43f318]
jae 0x40de98
mov edi, dword [ebp + 8]
mov esi, dword [0x43f314]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, eax
add ecx, ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40de98
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
mov eax, dword [esp + 0xc]
jmp 0x40dea0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dea9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, eax
push dword [esi + 4]
call edi
cmp eax, 0xffffffff
je 0x40ded0
shr al, 4
and al, 1
jmp 0x40df58
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040a95b
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
add esp, 0xc
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
je 0x40df34
cmp word [esi], 0x5c
jne 0x40df2c
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40df26
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x40df51
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40defe
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40df55
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x40df55
xor al, al
jmp 0x40df57
mov al, 1
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40e9d8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
xor eax, eax
push edi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40e9fa
xor eax, eax
xor edx, edx
jmp 0x40ea1d
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40ea17
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x40e9f4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x412e28
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x228]
call fcn.00406522
xor eax, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], eax
je 0x412e86
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], eax
je 0x412e86
push eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x412e86
lea eax, [ebp - 0x458]
push eax
push esi
mov dword [ebp - 0x458], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
jne 0x412e8f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x450]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x412eec
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
test eax, eax
je 0x412ee1
lea esi, [ebp - 0x228]
call fcn.00406508
push dword [ebp + 0xc]
mov edi, esi
call fcn.0041309a
test eax, eax
setge byte [ebp - 1]
push dword [ebp - 0xc]
call ebx
cmp byte [ebp - 1], 0
jne 0x412eff
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x412e95
push dword [ebp - 8]
call ebx
mov al, byte [ebp - 1]
jmp 0x412e88