joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bf0
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xffffffffffffffff
push 0x41fba0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x318]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp], bl
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp + 0x208], bl
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [ebp + 0x208], bl
jne 0x408c83
mov eax, dword [str.Unknown]
mov dword [ebp + 0x208], eax
mov ecx, dword [0x4294c8]
mov dword [ebp + 0x20c], ecx
mov byte [ebp + 0x104], bl
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [ebp + 0x104], bl
jne 0x408cbd
mov ecx, dword [str.Default]
mov dword [ebp + 0x104], ecx
mov edx, dword [0x421a64]
mov dword [ebp + 0x108], edx
mov ecx, edi
call fcn.00402e50
lea eax, [ebp]
push eax
push str._systemroot_
mov ecx, edi
call fcn.00402fe0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x310
mov esp, ebp
pop ebp
ret
Function at 0x40be40
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x41fff0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x110]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00401810
add esp, 8
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp]
push ecx
call fcn.0040e2c0
add esp, 4
mov eax, str.msocxushell.dll
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40bec0
sub eax, ecx
mov esi, ecx
lea edi, [ebp]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40bed3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp], 0
je 0x40bf19
lea edx, [ebp]
push edx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40bf19
push 0
lea eax, [ebp]
push eax
call fcn.0040f500
add esp, 8
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x108
mov esp, ebp
pop ebp
ret
Function at 0x40bf70
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420020
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
mov ecx, ebx
lea edx, [ebp - 0x118]
nop
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x40bfc0
lea ecx, [ebp - 0x118]
push ecx
call fcn.0040e2c0
add esp, 4
lea edi, [ebp - 0x118]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40bfe6
mov dx, word [0x435078]
mov word [edi], dx
lea edi, [ebp - 0x118]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c003
mov ax, word [0x435074]
mov word [edi], ax
mov eax, esi
mov ecx, esi
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c020
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x118]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40c036
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
push ecx
call fcn.0040f000
push 0
mov edx, dword [ebp - 0x220]
push edx
call fcn.0040f500
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x435070
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40c0a9
push 0
push ebx
call fcn.0040f500
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fe67
mov esp, ebp
pop ebp
ret
Function at 0x40c100
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x420050
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 4]
lea esi, [eax + 0x2d0c]
cmp byte [esi], 0
je 0x40c20f
push 0x44
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.0040feb0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp], al
push 0x103
push edi
lea ecx, [ebp + 1]
push ecx
call fcn.0040feb0
push esi
push str._s__u
lea edx, [ebp]
push edx
call fcn.00410020
add esp, 0x24
cmp dword [ebx + 0xc], edi
je 0x40c1b4
lea edi, [ebp]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c1a1
mov ax, word [0x435090]
mov word [edi], ax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c1fc
push 0x2710
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c1fc
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 1
push 0
mov eax, dword [ebx + 4]
add eax, 0x2d0c
push eax
call fcn.0040f500
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x108
mov esp, ebp
pop ebp
ret

Function at 0x40c400
Capabilities:
Delete service

Disassembly:
push ebp
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40c465
push edi
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40c460
mov eax, dword [esp + 0xc]
push ebx
push esi
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40c456
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40c453
mov ebp, 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
ret
pop edi
mov eax, ebp
pop ebp
ret
mov eax, ebp
pop ebp
ret
Function at 0x40e330
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40e3a2
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40e3b1
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
push esi
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
push 1
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
pop esi
add esp, 0x14
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x40e4e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x43f7ac]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x128]
test edi, edi
mov dword [esp + 0x10], esi
je 0x40e5f5
cmp byte [edi], 0
je 0x40e5f5
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5b9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call ebx
test eax, eax
jne 0x40e5a5
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0040e4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e5d0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x100
call ebx
test eax, eax
je 0x40e563
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040fe67
add esp, 0x118
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040fe67
add esp, 0x118
ret
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
mov eax, 0x32
call fcn.0040fe67
add esp, 0x118
ret
Function at 0x40e860
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420360
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2058
call fcn.00411860
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 0x2068], ebx
mov dword [ebp - 4], 0
test edi, edi
jne 0x40e8b5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40e8ce
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
mov byte [ebp - 0x64], 0
jmp 0x40e8db
push 0x50
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
jne 0x40e90b
push 0x2000
lea edx, [ebp - 0x2064]
push edx
movzx eax, ax
push eax
mov ecx, dword [0x441430]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x2064]
mov dword [ebp + 0x10], edx
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40e954
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push esi
call fcn.00410df1
add esp, 0xc
mov edx, dword [ebp + 0xc]
or edx, 0x10000
push edx
lea eax, [ebp - 0x64]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x2068], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40e95a
mov dword [ebp - 0x2068], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2068]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fe67
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4203c0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40eea0
sub eax, edx
je 0x40eef3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
lea edx, [ebp - 0x118]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x40eec0
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.0040fe80
add esp, 8
test eax, eax
je 0x40eef3
mov byte [eax], 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fe67
mov esp, ebp
pop ebp
ret

Function at 0x40f000
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x34c]
sub esp, 0x34c
push 0xffffffffffffffff
push 0x420410
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x348], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x354]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, esi
lea edx, [ebp + 0x244]
mov ebx, 1
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebx
add edx, ebx
test al, al
jne 0x40f060
push 0x5c
lea eax, [ebp + 0x244]
push eax
call fcn.0040fe80
add esp, 8
test eax, eax
je 0x40f084
mov byte [eax], 0
lea ecx, [ebp + 0x140]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp + 0x244]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f0e7
jmp 0x40f0c0
lea ecx, [ebp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40f0d1
mov dword [ebp - 0x14], ebx
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f0c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp + 0x140]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x348]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x34c
mov esp, ebp
pop ebp
ret
Function at 0x40f140
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x34c]
sub esp, 0x34c
push 0xffffffffffffffff
push 0x420440
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x348], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x354]
mov dword [ebp - 0x18], edi
mov esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test edi, edi
je 0x40f34a
cmp byte [edi], 0
je 0x40f34a
push edi
call fcn.0040e3c0
add esp, 4
test eax, eax
jne 0x40f1b9
mov eax, esi
jmp 0x40f325
mov ecx, edi
lea edx, [ebp + 0x140]
mov al, byte [ecx]
mov byte [edx], al
add ecx, esi
add edx, esi
test al, al
jne 0x40f1c1
lea eax, [ebp + 0x140]
push eax
call fcn.0040e2c0
add esp, 4
lea edi, [ebp + 0x140]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40f1e5
mov ecx, dword [0x435c40]
mov dword [edi], ecx
lea edx, [ebp]
push edx
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f311
test esi, esi
je 0x40f30a
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + 0x244]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x40f224
lea ecx, [ebp + 0x244]
push ecx
call fcn.0040e2c0
add esp, 4
lea eax, [ebp + 0x2c]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f246
sub eax, edx
lea edi, [ebp + 0x244]
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40f260
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebp], 0x10
je 0x40f2c9
mov edi, 0x435074
lea esi, [ebp + 0x2c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40f298
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f2eb
mov edi, 0x435c3c
lea esi, [ebp + 0x2c]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40f2b4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f2eb
lea edx, [ebp + 0x244]
push edx
call fcn.0040f140
add esp, 4
jmp 0x40f2e8
push 0x80
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40f303
lea edx, [ebp]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x40f213
xor esi, esi
jmp 0x40f213
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x348]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x34c
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x40f325
Function at 0x40f560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x43f7ac]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x120]
push esi
lea eax, [esp + 0x10]
push eax
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40f6bc
push edi
lea ecx, [esp + 0x10]
push ecx
push 2
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40f61e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x40f60d
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e2c0
mov eax, ebp
add esp, 4
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f5d2
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40f5e4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040f140
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
lea ecx, [esp + 0x10]
push ecx
push 0x17
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40f6a1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x40f690
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e2c0
mov eax, ebp
add esp, 4
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f655
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40f667
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040f140
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040fe67
add esp, 0x110
ret
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fe67
add esp, 0x110
ret
Function at 0x40f6e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4204c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43f7ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x40f71f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40f72f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 8]
cmp eax, edi
je 0x40f73f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x40f74f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40f75f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x40f76f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x40f77f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x40f78f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x40f79f
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x40f7af
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x40f7bf
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x40f7cf
push eax
call fcn.0040dbc0
add esp, 4
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x40f7df
push eax
call fcn.0040dbc0
add esp, 4
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [ebp - 4], 0xffffffff
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 0x40fe67
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f7ac]
jne 0x40fe71
repz ret
jmp fcn.0041390c