joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5bfb20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push edi
mov eax, dword [0x62ece4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [esp + 0x20], eax
add eax, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0xc]
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], eax
call fcn.00486667
push ebp
push 1
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], 0
call fcn.0048661e
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x48], 1
call fcn.0048654a
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov edi, eax
call fcn.0048654a
push 2
mov ecx, esi
mov ebp, eax
call fcn.00485941
mov ecx, dword [esi + 4]
push 3
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
push edi
mov ecx, esi
call fcn.0048654a
push ebp
mov ecx, esi
call fcn.0048654a
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CPen.0
call fcn.00407390
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CBrush.0
call fcn.00407390
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x3c
ret
Function at 0x40b2b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x4b8
mov eax, dword [0x62ece4]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
mov eax, 0x64
cmp dword [0x635324], eax
push ebp
push edi
jle 0x40b2d9
mov dword [0x635324], eax
xor ebx, ebx
push 0x2d
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], 0x12
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esi + 0x60], eax
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
lea eax, [esp + 0x1a8]
push eax
mov dword [esi + 0x13c], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0x140], ebx
mov dword [esp + 0x1ac], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x1b8], 2
jne 0x40b356
mov eax, dword [esp + 0x1ac]
cmp eax, 5
ja 0x40b34f
jne 0x40b356
cmp dword [esp + 0x1b0], 1
jb 0x40b356
mov eax, 1
jmp 0x40b358
xor eax, eax
mov ebp, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea ecx, [esi + 0x148]
mov dword [esi + 0x144], eax
mov dword [ecx], ebx
cmp eax, ebx
je 0x40b37a
push ebx
push ecx
push ebx
push 0x1022
call ebp
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 4
call edi
push 0xd
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], eax
cmp dword [esi + 0x144], ebx
je 0x40b3ac
push 0x1d
call edi
mov dword [esi + 0x154], eax
push 0xe
call edi
push 7
mov dword [esi + 0x158], eax
call edi
movzx ecx, byte [esi + 0x14e]
imul ecx, ecx, 0xcf
mov dword [esi + 0x15c], eax
movzx eax, byte [esi + 0x152]
lea edx, [eax + eax*2]
movzx eax, byte [esi + 0x151]
shl edx, 4
add ecx, edx
movzx edx, byte [esi + 0x14d]
imul edx, edx, 0xcf
lea eax, [eax + eax*2]
sar ecx, 8
shl eax, 4
add edx, eax
movzx eax, byte [esi + 0x150]
movzx ecx, cl
sar edx, 8
movzx edx, dl
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0x14c]
imul edx, edx, 0xcf
lea eax, [eax + eax*2]
shl eax, 4
add edx, eax
mov eax, dword [esi + 0x60]
sar edx, 8
shl ecx, 8
movzx edx, dl
or ecx, edx
mov dword [esi + 0x160], ecx
mov ecx, dword [esi + 0x5c]
add eax, eax
sub ecx, eax
sub ecx, 2
cmp ecx, 5
jge 0x40b44e
add eax, 7
mov dword [esi + 0x5c], eax
push ebx
lea edx, [esp + 0x2c4]
push edx
push 0x1f4
push 0x29
mov dword [esp + 0x2d0], 0x1f4
call ebp
lea eax, [esp + 0x458]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esi + 0xb4]
call fcn.0048640f
mov edi, dword [0x635324]
cmp edi, ebx
mov ecx, 0x300
mov word [esp + 0x10], cx
mov word [esp + 0x12], di
jle 0x40b4d4
mov ecx, 0x63a328
lea eax, [esp + 0x15]
jmp 0x40b4b0
movzx edx, byte [ecx]
mov byte [eax - 1], dl
movzx edx, byte [ecx + 1]
mov byte [eax], dl
movzx edx, byte [ecx + 2]
mov byte [eax + 1], dl
mov byte [eax + 2], bl
add ecx, 0x204
add eax, 4
sub edi, 1
jne 0x40b4b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esi + 0xbc]
call fcn.0048640f
mov ecx, dword [esp + 0x4bc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00499aa8
add esp, 0x4b8
ret
Function at 0x40db4b
Capabilities:
Delete file
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.0043a84c
test eax, eax
je 0x40db65
xor eax, eax
inc eax
jmp 0x40dbee
push ebx
push edi
push 2
pop edi
call fcn.0040d7ea
xor ebx, ebx
test eax, eax
je 0x40dba4
mov edi, 0x102
cmp byte [0x643648], bl
je 0x40dba4
mov eax, dword [0x643644]
cmp eax, ebx
je 0x40dba4
push str.This_is_X64_Value
push 0x149
push str.CAutoRunItemInfo::Delete
push ebx
push eax
call fcn.00402740
add esp, 0x14
mov eax, dword [esi + 0x1c]
sub eax, ebx
je 0x40dca3
dec eax
je 0x40dc66
dec eax
je 0x40dc2d
dec eax
je 0x40dbf1
dec eax
je 0x40dbc2
dec eax
jne 0x40dbea
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0040da19
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407130
cmp esi, ebx
jne 0x40dcf9
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 4]
push eax
push edi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce_
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
je 0x40dbea
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.0041689f
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0xc]
jmp 0x40dcde
lea eax, [ebp - 4]
push eax
push edi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
je 0x40dbea
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0041689f
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x10]
jmp 0x40dcde
lea eax, [ebp - 4]
push eax
push edi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
je 0x40dbea
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0041689f
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x14]
jmp 0x40dcde
lea eax, [ebp - 4]
push eax
push edi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
je 0x40dbea
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0041689f
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407130
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40dbea
xor eax, eax
inc eax
jmp 0x40dbec
Function at 0x40e242
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x5ad509
call fcn.00499ab7
mov esi, dword [ebp + 0x214]
mov eax, ecx
add eax, 8
xor ebx, ebx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
call fcn.00408810
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.0041ce88
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x40e2bb
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00408810
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
jmp 0x40e3c2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jge 0x40e2cd
push 0x80070057
call fcn.004072a0
movzx eax, word [eax]
cmp ax, 0x22
je 0x40e325
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5c5fa4
call fcn.00408c50
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 1
call fcn.00408810
mov byte [ebp - 4], bl
call fcn.0041e377
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40e325
push 0x22
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d90f
push 0x22
add esi, 5
push esi
lea ecx, [ebp - 0x10]
call fcn.0040d90f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40e3a7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push esi
call edi
push esi
test eax, eax
jne 0x40e3ac
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40e3a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push 0x104
push ebx
push esi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x40e3a0
lea eax, [ebp]
push eax
jmp 0x40e3ac
push esi
call fcn.0047b2f7
pop ecx
push 0x60584c
mov ecx, dword [ebp - 0x14]
call fcn.00408c50
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407130
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 + 0x208]
xor ecx, ebp
call fcn.00499aa8
add ebp, 0x20c
leave
ret 4
Function at 0x40e3e7
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x5ad541
call fcn.00499ab7
mov edi, ecx
lea esi, [edi + 0x14]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40e47b
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.rundll32
call fcn.00408c50
and dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push esi
call fcn.00408810
or dword [ebp - 4], 0xffffffff
call fcn.0041e377
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40e468
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.0041d89c
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x40e45d
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x38]
call fcn.00408700
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407130
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [edi + 0x34], eax
jmp 0x40e47f
and dword [edi + 0x34], 0
call fcn.00499b8f
ret
Function at 0x41104a
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x14
mov eax, 0x5adadc
call fcn.00499ab7
xor ebx, ebx
push ebx
push 2
mov edi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x4111a7
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x411196
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408c50
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004097e0
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x14], ebx
sar eax, 2
test eax, eax
jbe 0x41117b
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0041b184
mov esi, dword [eax]
cmp esi, ebx
je 0x411166
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0040d8d9
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00410745
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004097e0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00409980
test eax, eax
jne 0x41114d
mov ecx, esi
call fcn.0040d7da
cmp byte [0x643648], bl
je 0x41114d
mov eax, dword [0x643644]
cmp eax, ebx
je 0x41114d
push dword [ebp - 0x20]
push str.Item__s_is_running
push 0x15a
push str.CAutoRunItemsRegLoader::DetermineItemsStatus
push ebx
push eax
call fcn.00402740
add esp, 0x18
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00407130
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc dword [ebp - 0x14]
sar eax, 2
cmp dword [ebp - 0x14], eax
jb 0x4110c9
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00407130
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41109e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00499aa8
add ebp, 0x230
leave
ret
Function at 0x416180
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4161b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x4162a8
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
jmp 0x4162c0
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
inc ecx
inc ecx
cmp ecx, dword [esp + 8]
jne 0x4162b3
ret

Function at 0x417954
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call fcn.00417826
xor ebx, ebx
mov dword [ebp + 8], eax
mov esi, str.WizardFileSystem::CFolder::Delete
cmp byte [0x643648], bl
je 0x417995
mov eax, dword [0x643644]
cmp eax, ebx
je 0x417995
push dword [edi + 4]
push 0x28e
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x14
cmp dword [ebp + 8], ebx
je 0x417a21
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4179e2
cmp byte [0x643648], bl
je 0x4179d1
mov eax, dword [0x643644]
cmp eax, ebx
je 0x4179d1
push 0x5c8d94
push 0x29e
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x14
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4179dd
call fcn.0041bf27
xor eax, eax
inc eax
jmp 0x417a49
cmp byte [0x643648], bl
je 0x417a13
cmp dword [0x643644], ebx
je 0x417a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemoveDirectory_failed:_error__d
push 0x2a7
push esi
push ebx
push dword [0x643644]
call fcn.00402740
add esp, 0x18
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x417a47
call fcn.0041bf09
jmp 0x417a47
cmp byte [0x643648], bl
je 0x417a47
mov eax, dword [0x643644]
cmp eax, ebx
je 0x417a47
push 0x5c8fbc
push 0x2af
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4191dc
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419211
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x419d7f
Capabilities:
Check if file exists

Disassembly:
push 0
mov eax, 0x5ad428
call fcn.00499ab7
mov esi, ecx
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419de6
lea eax, [ebp + 8]
push eax
call fcn.0041d134
lea ecx, [ebp + 8]
mov dword [esp], 0x5c709c
call fcn.0040d0c0
push 0
push 1
push esi
push 0x419d07
push dword [ebp + 8]
call fcn.0041caa3
add esp, 0x14
test eax, eax
jne 0x419de6
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
call fcn.00499b8f
ret 4
xor esi, esi
inc esi
jmp 0x419dd1
Function at 0x41c998
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x41ca0e
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00499aa8
leave
ret

Function at 0x41ca1e
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00499d16
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0049b9e6
add esp, 0x10
lea eax, [esi + edi*2]
xor ecx, ecx
mov word [eax], cx
mov word [eax + 2], cx
push 0x14
pop eax
xor edi, edi
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xe], edi
mov dword [ebp - 6], edi
mov dword [ebp - 0xa], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
mov ebx, eax
call fcn.0047b2f7
pop ecx
xor eax, eax
cmp ebx, edi
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x41caa3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7fc]
sub esp, 0x87c
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x7f8], eax
mov eax, dword [ebp + 0x808]
and dword [ebp - 0x70], 0
push ebx
push esi
mov esi, dword [ebp + 0x804]
push edi
push 0x24c
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 0x80], esi
call fcn.0049af70
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1e0]
push eax
mov ebx, 0x104
push ebx
push esi
call edi
test eax, eax
je 0x41cc66
push dword [ebp - 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x3e8]
push eax
call esi
push 0x5c91dc
push dword [ebp - 0x74]
call esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1e0]
push eax
mov dword [ebp - 0x70], 0x10
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x41cc66
lea eax, [ebp - 0x44]
push 0x6040a0
push eax
call fcn.0049abd8
pop ecx
pop ecx
test eax, eax
je 0x41cc48
lea eax, [ebp - 0x44]
push 0x5ca064
push eax
call fcn.0049abd8
pop ecx
pop ecx
test eax, eax
je 0x41cc48
test byte [ebp - 0x70], 0x10
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x5f0]
push eax
push ebx
push dword [ebp - 0x80]
je 0x41cc1f
call edi
test eax, eax
je 0x41cc48
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
call esi
push 0x60409c
lea eax, [ebp + 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp + 0x814], 0
je 0x41cbe0
push dword [ebp + 0x80c]
lea eax, [ebp + 0x5f0]
push 0
push eax
call dword [ebp - 0x7c]
add esp, 0xc
test eax, eax
je 0x41cc81
cmp dword [ebp + 0x810], 0
je 0x41cc48
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp + 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 1
push dword [ebp + 0x80c]
lea eax, [ebp + 0x5f0]
push dword [ebp - 0x7c]
push eax
call fcn.0041caa3
add esp, 0x14
test eax, eax
je 0x41cc8a
jmp 0x41cc48
call edi
test eax, eax
je 0x41cc48
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
call esi
push dword [ebp + 0x80c]
lea eax, [ebp + 0x5f0]
push dword [ebp - 0x50]
push eax
call dword [ebp - 0x7c]
add esp, 0xc
test eax, eax
je 0x41cc81
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41cb4c
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x7f8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499aa8
add ebp, 0x7fc
leave
ret
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41cc69

Function at 0x41cc8e
Capabilities:
Check if file exists

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407130
mov eax, esi
pop esi
ret
Function at 0x41ccab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x5ca0b4
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
ja 0x41cdc9
lea eax, [ebp - 0x414]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.0041c998
add esp, 0xc
test eax, eax
jne 0x41cdc9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
push eax
push edi
call fcn.0041c998
add esp, 0xc
test eax, eax
jne 0x41cdc9
lea eax, [ebp - 0x414]
push 0x5ca074
push eax
call fcn.0049ac0f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41cd7a
lea eax, [ebp - 0x414]
push 0x5ca06c
push eax
call fcn.0049ac0f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41cd7a
lea eax, [ebp - 0x414]
push eax
call ebx
lea edi, [ebp + eax*2 - 0x416]
jmp 0x41cd7f
xor eax, eax
mov word [edi], ax
push 0x604820
push edi
call esi
push dword [ebp + 8]
push edi
call esi
lea eax, [ebp - 0x414]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x41cda2
xor eax, eax
jmp 0x41cdbe
lea esi, [eax + eax]
mov eax, esi
call fcn.0049b020
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
call fcn.00413dcc
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, ebx
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499aa8
leave
ret

Function at 0x41d635
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x5af1dd
call fcn.00499ab7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d715
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00408c50
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410745
push 0x60409c
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00409980
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 0
call fcn.00407130
test bl, bl
je 0x41d6ca
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cf80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00408700
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00407130
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004143d2
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cf80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00408700
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00407130
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0041d635
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407130
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00499b8f
ret