joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406760
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x55348c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x406786
xor eax, eax
jmp 0x40684c
push str.GetNativeSystemInfo
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.IsWow64Process
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.Wow64DisableWow64FsRedirection
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0x5534ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push str.GetSystemWow64DirectoryW
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x406817
xor eax, eax
jmp 0x40684c
push 0x553544
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
push str.Wow64RevertWow64FsRedirection
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x406c10
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfac
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xfac], ecx
push 0x7d0
lea eax, [ebp - 0xfa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x553674
lea ecx, [ebp - 0xfa8]
push ecx
call fcn.004b7b6c
add esp, 8
lea edx, [ebp - 0xfa8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406c64
xor eax, eax
jmp 0x406c69
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x407710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545d00
mov eax, dword fs:[0]
push eax
sub esp, 0xb88
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb90], ecx
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x62c]
push ecx
call fcn.00401d20
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0x93c], ax
push 0x206
push 0
lea ecx, [ebp - 0x93a]
push ecx
call fcn.004b7bc0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b7bc0
add esp, 0xc
lea ecx, [ebp - 0x62c]
push ecx
push 0x553acc
lea edx, [ebp - 0x93c]
push edx
call fcn.004b7a6c
add esp, 0xc
lea eax, [ebp - 0x93c]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x553ae8
push 0x553af0
push 0x553b04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov word [ebp - 0xb4c], dx
push 0x206
push 0
lea eax, [ebp - 0xb4a]
push eax
call fcn.004b7bc0
add esp, 0xc
mov byte [ebp - 0x734], 0
push 0x103
push 0
lea ecx, [ebp - 0x733]
push ecx
call fcn.004b7bc0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x553b14
push 0x553b1c
push 0x553b24
push 0x553b2c
lea eax, [ebp - 0xb4c]
push eax
call fcn.004b7a6c
add esp, 0x18
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0xb4c]
push edx
call fcn.0040fb80
add esp, 8
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.004b7bc0
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0x20
call fcn.00493c8f
add esp, 4
mov dword [ebp - 0xb54], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xb54], 0
je 0x4078c2
mov ecx, dword [ebp - 0xb54]
call fcn.0040a470
mov dword [ebp - 0xb94], eax
jmp 0x4078cc
mov dword [ebp - 0xb94], 0
mov edx, dword [ebp - 0xb94]
mov dword [ebp - 0xb50], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb50]
mov dword [ebp - 0x940], eax
cmp dword [ebp - 0x940], 0
jne 0x4078fb
xor eax, eax
jmp 0x4079a8
push 0x553b4c
lea ecx, [ebp - 0x62c]
push ecx
push 0x553b6c
lea edx, [ebp - 0x424]
push edx
call fcn.004b7a6c
add esp, 0x10
push 0x553b78
lea ecx, [ebp - 0xb70]
call fcn.004049f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.00406520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb70]
push ecx
lea edx, [ebp - 0xb8c]
push edx
mov ecx, dword [ebp - 0x940]
call fcn.0040a190
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8c]
call fcn.004029d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb70]
call fcn.00404a70
cmp dword [ebp - 0x10], 0
jne 0x40798f
xor eax, eax
jmp 0x4079a8
lea eax, [ebp - 0x734]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x4079d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545d4c
mov eax, dword fs:[0]
push eax
sub esp, 0xb88
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb90], ecx
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x62c]
push ecx
call fcn.00401d20
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0x93c], ax
push 0x206
push 0
lea ecx, [ebp - 0x93a]
push ecx
call fcn.004b7bc0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b7bc0
add esp, 0xc
lea ecx, [ebp - 0x62c]
push ecx
push 0x553b8c
lea edx, [ebp - 0x93c]
push edx
call fcn.004b7a6c
add esp, 0xc
lea eax, [ebp - 0x93c]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x553ba8
push 0x553bb0
push 0x553bc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov word [ebp - 0xb4c], dx
push 0x206
push 0
lea eax, [ebp - 0xb4a]
push eax
call fcn.004b7bc0
add esp, 0xc
mov byte [ebp - 0x734], 0
push 0x103
push 0
lea ecx, [ebp - 0x733]
push ecx
call fcn.004b7bc0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x553bd4
push 0x553bdc
push 0x553be4
push 0x553bec
lea eax, [ebp - 0xb4c]
push eax
call fcn.004b7a6c
add esp, 0x18
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0xb4c]
push edx
call fcn.0040fb80
add esp, 8
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.004b7bc0
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0x20
call fcn.00493c8f
add esp, 4
mov dword [ebp - 0xb54], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xb54], 0
je 0x407b82
mov ecx, dword [ebp - 0xb54]
call fcn.0040a470
mov dword [ebp - 0xb94], eax
jmp 0x407b8c
mov dword [ebp - 0xb94], 0
mov edx, dword [ebp - 0xb94]
mov dword [ebp - 0xb50], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb50]
mov dword [ebp - 0x940], eax
cmp dword [ebp - 0x940], 0
jne 0x407bbb
xor eax, eax
jmp 0x407c68
push 0x553c04
lea ecx, [ebp - 0x62c]
push ecx
push 0x553c24
lea edx, [ebp - 0x424]
push edx
call fcn.004b7a6c
add esp, 0x10
push 0x553c30
lea ecx, [ebp - 0xb70]
call fcn.004049f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.00406520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb70]
push ecx
lea edx, [ebp - 0xb8c]
push edx
mov ecx, dword [ebp - 0x940]
call fcn.0040a190
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8c]
call fcn.004029d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb70]
call fcn.00404a70
cmp dword [ebp - 0x10], 0
jne 0x407c4f
xor eax, eax
jmp 0x407c68
lea eax, [ebp - 0x734]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x407c90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545d98
mov eax, dword fs:[0]
push eax
sub esp, 0xb88
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb90], ecx
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x62c]
push ecx
call fcn.00401d20
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0x93c], ax
push 0x206
push 0
lea ecx, [ebp - 0x93a]
push ecx
call fcn.004b7bc0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b7bc0
add esp, 0xc
lea ecx, [ebp - 0x62c]
push ecx
push 0x553c44
lea edx, [ebp - 0x93c]
push edx
call fcn.004b7a6c
add esp, 0xc
lea eax, [ebp - 0x93c]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x553c60
push 0x553c68
push 0x553c7c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov word [ebp - 0xb4c], dx
push 0x206
push 0
lea eax, [ebp - 0xb4a]
push eax
call fcn.004b7bc0
add esp, 0xc
mov byte [ebp - 0x734], 0
push 0x103
push 0
lea ecx, [ebp - 0x733]
push ecx
call fcn.004b7bc0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x553c8c
push 0x553c94
push 0x553c9c
push 0x553ca4
lea eax, [ebp - 0xb4c]
push eax
call fcn.004b7a6c
add esp, 0x18
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0xb4c]
push edx
call fcn.0040fb80
add esp, 8
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.004b7bc0
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0x20
call fcn.00493c8f
add esp, 4
mov dword [ebp - 0xb54], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xb54], 0
je 0x407e42
mov ecx, dword [ebp - 0xb54]
call fcn.0040a470
mov dword [ebp - 0xb94], eax
jmp 0x407e4c
mov dword [ebp - 0xb94], 0
mov edx, dword [ebp - 0xb94]
mov dword [ebp - 0xb50], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb50]
mov dword [ebp - 0x940], eax
cmp dword [ebp - 0x940], 0
jne 0x407e7b
xor eax, eax
jmp 0x407f28
push 0x553cbc
lea ecx, [ebp - 0x62c]
push ecx
push 0x553cdc
lea edx, [ebp - 0x424]
push edx
call fcn.004b7a6c
add esp, 0x10
push 0x553ce8
lea ecx, [ebp - 0xb70]
call fcn.004049f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.00406520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb70]
push ecx
lea edx, [ebp - 0xb8c]
push edx
mov ecx, dword [ebp - 0x940]
call fcn.0040a190
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8c]
call fcn.004029d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb70]
call fcn.00404a70
cmp dword [ebp - 0x10], 0
jne 0x407f0f
xor eax, eax
jmp 0x407f28
lea eax, [ebp - 0x734]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x408f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545f1c
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
push str.RunByWindowsStart
lea ecx, [ebp - 0x42c]
call fcn.0040f920
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.0040fa20
test eax, eax
jne 0x408ffe
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040f990
mov eax, dword [ebp - 0x438]
jmp 0x4091ad
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.004b7bc0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b7bc0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x424]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x424]
push edx
push str.__s__RunDateByStartAuto
lea eax, [ebp - 0x21c]
push eax
call fcn.004b7a6c
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
push 0x5542d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4090b1
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040f990
mov eax, dword [ebp - 0x43c]
jmp 0x4091ad
lea edx, [ebp - 0x430]
push edx
push 0xf003f
push 0
push 0x55432c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4090ff
push 0
lea ecx, [ebp - 0x430]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5542d4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40918b
push str.rlbRunByWindowsStart
lea ecx, [ebp - 0x434]
call fcn.004048c0
lea eax, [ebp - 0x21c]
push eax
call fcn.004b7b43
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 1
push 0
lea ecx, [ebp - 0x434]
call fcn.004049e0
push eax
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x440], 1
lea ecx, [ebp - 0x434]
call fcn.00404940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040f990
mov eax, dword [ebp - 0x440]
jmp 0x4091ad
mov dword [ebp - 0x444], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040f990
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x4091d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4091fc
xor eax, eax
jmp 0x409268
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push 0x5543b4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409240
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5543bc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409263
push 0x5543c0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40d1c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40d2f3
lea eax, [ebp - 0xc]
push eax
push 0x56e518
push 1
push 0
push 0x56e588
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40d2ed
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x50]
call edx
cmp dword [ebp + 0x10], 0
je 0x40d234
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
cmp dword [ebp + 0x14], 0
je 0x40d24c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x3c]
call eax
movzx ecx, word [ebp + 0x18]
test ecx, ecx
je 0x40d267
movzx edx, word [ebp + 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x34]
call eax
cmp dword [ebp + 0x1c], 0
je 0x40d27f
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x24]
call edx
cmp dword [ebp + 0x20], 0
je 0x40d297
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
lea edx, [ebp - 0x10]
push edx
push 0x56e548
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x40d2df
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40d420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5463c1
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x644], ecx
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x634], ax
push 0x206
push 0
lea ecx, [ebp - 0x632]
push ecx
call fcn.004b7bc0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004b7bc0
add esp, 0xc
push 0x555124
lea ecx, [ebp - 0x63c]
call fcn.004048c0
mov dword [ebp - 4], 0
push 0x555128
lea ecx, [ebp - 0x638]
call fcn.004048c0
mov byte [ebp - 4], 1
push 0x55512c
lea ecx, [ebp - 0x224]
call fcn.004048c0
mov byte [ebp - 4], 2
xor ecx, ecx
mov word [ebp - 0x42c], cx
push 0x206
push 0
lea edx, [ebp - 0x42a]
push edx
call fcn.004b7bc0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40d54b
push 0
push 0x17
lea eax, [ebp - 0x634]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d549
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00404940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.00404940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.00404940
jmp 0x40d60a
jmp 0x40d594
push 0
push 2
lea ecx, [ebp - 0x634]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d594
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00404940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.00404940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.00404940
jmp 0x40d60a
push 0x555130
lea edx, [ebp - 0x634]
push edx
push 0x555138
lea eax, [ebp - 0x21c]
push eax
call fcn.004b7a6c
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x640], esp
lea edx, [ebp - 0x21c]
push edx
call fcn.004048c0
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x644]
call fcn.0040d630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00404940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.00404940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.00404940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret 4
Function at 0x40d630
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546407
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x555148
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004b7a6c
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0xffffffff
je 0x40d815
lea ecx, [ebp - 0x474]
push ecx
mov edx, dword [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x40d6cf
jmp 0x40d815
movzx eax, word [ebp - 0x448]
cmp eax, 0x2e
jne 0x40d6dd
jmp 0x40d69a
movzx ecx, word [ebp - 0x446]
test ecx, ecx
jne 0x40d6ea
jmp 0x40d69a
movzx edx, word [ebp - 0x446]
cmp edx, 0x2e
jne 0x40d703
movzx eax, word [ebp - 0x444]
test eax, eax
jne 0x40d703
jmp 0x40d69a
lea ecx, [ebp - 0x47c]
call fcn.0040db30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
push ecx
push 0x555154
lea edx, [ebp - 0x47c]
push edx
call fcn.0040d300
add esp, 0xc
mov eax, dword [ebp - 0x474]
and eax, 0x10
je 0x40d79e
xor ecx, ecx
mov word [ebp - 0x684], cx
push 0x206
push 0
lea edx, [ebp - 0x682]
push edx
call fcn.004b7bc0
add esp, 0xc
mov eax, dword [ebp - 0x47c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x55515c
lea edx, [ebp - 0x684]
push edx
call fcn.004b7a6c
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x684]
push eax
call fcn.004048c0
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040d630
jmp 0x40d801
lea ecx, [ebp - 0x688]
call fcn.0040db30
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x555168
lea eax, [ebp - 0x688]
push eax
call fcn.0040d300
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x690], esp
lea edx, [ebp - 0x688]
push edx
call fcn.004048a0
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040d890
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x688]
call fcn.00404940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x47c]
call fcn.00404940
jmp 0x40d69a
mov eax, dword [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.004049e0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d848
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404940
jmp 0x40d86a
push 4
push 0
lea ecx, [ebp + 8]
call fcn.004049e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret 4