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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x55dffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x55e035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0055de00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x55dfc5
mov edi, 0x5788b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x55e035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0055de00
add edi, 4
add esp, 0xc
cmp edi, 0x5788c0
jb 0x55e000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x55e070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00564082
mov esi, eax
add esp, 8
test esi, esi
je 0x55e107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x55e102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00563946
add esp, 8
test eax, eax
je 0x55e0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x55e0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00563946
add esp, 8
test eax, eax
jne 0x55e0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x55e102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x55ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5739fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x55f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00562dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x55f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0055a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0056320b
push 0x10
call fcn.005631d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x55efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0054f1c0
jmp 0x55efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0055eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x55eff0
mov ecx, edi
call fcn.0054f2c0
push edi
call fcn.005631c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x55f021
inc ebx
cmp ebx, 0x20
jb 0x55ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x560250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574808
push 0x564288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x560329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x560329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005631d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x560329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x560329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x56032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00560351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x560d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x560d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x560d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x560d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x560d94
push eax
push esi
call fcn.0056320b
add esp, 8
pop esi
ret 0x10

Function at 0x560da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x560e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x560e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x579320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00562dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x560dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x560e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x560ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x560eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x579320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00562dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x560eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x560e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x561000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x561131
push esi
call fcn.00564145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00553080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x561131
push 0
push ebp
call fcn.005533a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00553260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x56108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005532f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x561121
push 0x579918
push edi
call fcn.005623f0
push eax
push ebx
push esi
call fcn.00560f60
push 0x5798f8
push edi
call fcn.005623f0
push eax
push ebx
push esi
call fcn.00560f60
push 0x5798d8
push edi
call fcn.005623f0
push eax
push ebx
push esi
call fcn.00560f60
push 0x5798c0
push edi
call fcn.005623f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00560f60
push 0x5798a0
push edi
call fcn.005623f0
push eax
push ebx
push esi
call fcn.00560f60
push 0x579888
push edi
call fcn.005623f0
push eax
push ebx
push esi
call fcn.00560f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5621b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00562140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00562140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00562140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00562140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x562bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x562c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x57487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x562c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x562c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4040f0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00413be0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44e698]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44e69c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004040e0
mov ecx, dword [0x44e6a0]
mov edx, dword [0x44e6a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404160
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x455e24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40418c
mov dword [0x455e20], 0xedeb2e40
jmp 0x4041a7
cmp eax, 0x3eb
jne 0x4041a7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4558b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x455e24], 0x9e6
mov dword [0x455e1c], 0xf4ea3dee
jne 0x4041e2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x455e24], 0x213
jne 0x404282
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, dword [ebp - 4]
cmp dword [0x455e24], 0xc
jne 0x404296
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404160
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4042f0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413be0
mov eax, dword [0x455e24]
mov ecx, dword [0x4558b4]
shr eax, 3
test eax, eax
jbe 0x404410
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x455e24], 0x959
jne 0x4043f6
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004040f0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d5b0]
jne 0x4088c0
repz ret
jmp fcn.0040d1c5

Function at 0x40c9fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004082c2
and dword [ebp - 4], 0
cmp dword [0x45389c], 0
mov ebx, eax
jne 0x40caaf
push 0x40355c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cb60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403550
push edi
call esi
test eax, eax
je 0x40cb60
push eax
call fcn.00408250
mov dword [esp], 0x403540
push edi
mov dword [0x45389c], eax
call esi
push eax
call fcn.00408250
mov dword [esp], 0x40352c
push edi
mov dword [0x4538a0], eax
call esi
push eax
call fcn.00408250
mov dword [esp], 0x403510
push edi
mov dword [0x4538a4], eax
call esi
push eax
call fcn.00408250
pop ecx
mov dword [0x4538ac], eax
test eax, eax
je 0x40caaf
push 0x4034f8
push edi
call esi
push eax
call fcn.00408250
pop ecx
mov dword [0x4538a8], eax
mov eax, dword [0x4538a8]
cmp eax, ebx
je 0x40cb07
cmp dword [0x4538ac], ebx
je 0x40cb07
push eax
call fcn.004082cb
push dword [0x4538ac]
mov esi, eax
call fcn.004082cb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cb07
test edi, edi
je 0x40cb07
call esi
test eax, eax
je 0x40cafe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cafe
test byte [ebp - 0xc], 1
jne 0x40cb07
or dword [ebp + 0x10], 0x200000
jmp 0x40cb40
mov eax, dword [0x4538a0]
cmp eax, ebx
je 0x40cb40
push eax
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb40
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb40
mov eax, dword [0x4538a4]
cmp eax, ebx
je 0x40cb40
push eax
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb40
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45389c]
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cb62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x264], ecx
call fcn.00405080
mov edi, eax
pop ecx
lea ecx, [edi - 1]
cmp ecx, 0x100
ja 0x4011ea
push 0x5c
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x40104f
mov word [esi + edi*2], ax
inc edi
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x268], eax
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x401111
test byte [ebp - 0x258], 0x10
je 0x4010ee
lea eax, [ebp - 0x22c]
push 0x41a698
push eax
call fcn.0040509b
pop ecx
pop ecx
test eax, eax
je 0x4010e8
lea eax, [ebp - 0x22c]
push 0x41a69c
push eax
call fcn.0040509b
pop ecx
pop ecx
test eax, eax
je 0x4010e8
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00404fa7
mov edx, dword [ebp - 0x260]
add esp, 0xc
mov ecx, dword [ebp - 0x264]
push ebx
push esi
call section..text
pop ecx
pop ecx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x401081
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x4011c1
test byte [ebp - 0x258], 0x10
jne 0x4011a2
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00404fa7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401186
cmp dword [ebp - 0x264], eax
jne 0x401186
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40119c
test eax, eax
jne 0x40119c
cmp dword [ebp - 0x260], eax
je 0x40119c
push 4
push eax
push esi
call ebx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x40113d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4011ea
test ebx, ebx
je 0x4011ea
cmp dword [ebp - 0x260], eax
je 0x4011ea
push 4
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004037ca
mov esp, ebp
pop ebp
ret
Function at 0x401265
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExW
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4012ad
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4012ad
test edi, edi
je 0x4012ad
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x4012b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.00413ad0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call fcn.00404620
add esp, 0xc
mov dword [ebp - 0x8a1c], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a18], esi
mov dword [ebp - 0x8a10], esi
mov dword [ebp - 0x8a14], 0x3fff
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a18]
push eax
push esi
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x40141b
xor eax, eax
mov dword [ebp - 0x8a14], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a14]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40140e
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00404391
pop ecx
pop ecx
test eax, eax
jne 0x40142e
push 0x800
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0x8a24], 1
push eax
call fcn.00404620
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40140e
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00404391
pop ecx
pop ecx
test eax, eax
jne 0x40142e
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x401361
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004037ca
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x40141d