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

Disassembly:
push ecx
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
push esi
push 0x4370a8
add ecx, 0x14
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00406000
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push eax
call esi
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
push 0x43709c
add ecx, 0x14
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00406000
mov eax, dword [eax]
push 4
push 0
push eax
call esi
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x4085ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ecx
ret
Function at 0x409bb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x46c
mov eax, dword [0x445164]
mov dword [esp + 0x468], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x474]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x50]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
push 0x43759c
push ecx
mov dword [esp + 0x2c], 0x44
call fcn.00419260
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x27c]
push 0x437588
push eax
call fcn.00419260
add esp, 0x20
lea ecx, [esp + 0x264]
push ecx
mov ecx, dword [0x4460e8]
call fcn.00402130
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x409c8c
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x264]
push 0x437570
push eax
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x260]
push ecx
mov ecx, dword [0x4460e8]
call fcn.00402130
mov edx, dword [esp]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x46c]
pop esi
call fcn.0041923c
add esp, 0x46c
ret 4
Function at 0x409ce0
Capabilities:
Delete directory
Delete file
Delete registry key

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x4375f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409d1b
mov ecx, dword [esp]
push 0x436f64
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
push esi
push 0x4375d8
add ecx, 0x14
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00406000
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
push 0x4375c0
add ecx, 0x14
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00406000
mov eax, dword [eax]
push eax
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
push 0x4375ac
add ecx, 0x14
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00406000
mov eax, dword [eax]
push eax
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x409ddd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
add esp, 8
ret
Function at 0x40ada0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4342c8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00430945
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x436be0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40adee
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00430945
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00430945
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0042c5f2
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x40ae69
mov dword [esp + 0x20], 0xffffffff
call fcn.0042c202
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.0042bf16
lea ecx, [esp + 8]
call fcn.0042c161
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042c202
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40c020
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x445164]
push esi
mov dword [esp + 0x20c], eax
lea eax, [esp + 4]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 4]
push 0x437ce0
push ecx
call fcn.004197cd
add esp, 8
push 0x89
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040ada0
test eax, eax
jne 0x40c080
pop esi
mov ecx, dword [esp + 0x208]
call fcn.0041923c
add esp, 0x20c
ret
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0040b390
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
mov eax, 1
pop esi
call fcn.0041923c
add esp, 0x20c
ret

Function at 0x40cd00
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40cd20
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push 0x438260
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40cd1a
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x40cd80
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x4460e8]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + 0x60]
push ebp
push edi
mov edi, dword [eax + 0x5c]
mov ebp, ecx
xor ecx, ecx
cmp edi, edx
je 0x40ce0a
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
je 0x40cde5
add eax, 4
push eax
add ecx, 0x50
push ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.004043f0
mov eax, dword [eax]
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cde1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x40cdff
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x60]
add edi, 4
cmp edi, eax
jne 0x40cda1
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
pop ecx
ret
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
pop ecx
ret
pop edi
mov eax, ecx
pop ebp
pop ecx
ret
Function at 0x40ce10
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040dd60
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x24]
push esi
call fcn.0040d9a0
push 0x436846
lea ecx, [esi + 0x10]
push ecx
call fcn.0040b330
test al, al
je 0x40ce87
mov edx, dword [0x4460e8]
mov ecx, dword [edx + 0x2c]
push esi
call fcn.00408e60
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
cmp esi, dword [ecx + 0x34]
jne 0x40cee1
mov ecx, dword [eax + 0x2c]
call fcn.00408560
pop esi
ret 4
mov ecx, esi
call fcn.0040da20
mov eax, dword [esi + 0x34]
test eax, eax
je 0x40cea4
mov edx, dword [0x4460e8]
mov ecx, dword [edx + 0x28]
push esi
call fcn.00409bb0
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x2c]
push esi
call fcn.00408e60
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push 0x4375f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cee1
mov edx, dword [esi + 8]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
ret 4
Function at 0x40d170
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x445164]
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov dword [esp + 0x214], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 2
lea eax, [esp + 0x10]
push eax
push 0
call esi
test eax, eax
je 0x40d1d4
lea ecx, [esp + 8]
push 0x4382e8
push ecx
call fcn.004197cd
add esp, 8
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0x17
lea eax, [esp + 0x10]
push eax
push 0
call esi
test eax, eax
je 0x40d218
lea ecx, [esp + 8]
push 0x4382e8
push ecx
call fcn.004197cd
add esp, 8
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x214]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d230
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x445164]
push ebx
push esi
push edi
mov dword [esp + 0x424], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40d275
push 0x16
lea eax, [esp + 0x18]
push eax
jmp 0x40d27c
push 0xb
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d29d
mov ecx, dword [esp + 0x424]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov esi, dword [eax + 0x68]
cmp esi, dword [eax + 0x6c]
je 0x40d2f0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push 0x4382f4
push eax
call fcn.00419260
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x228]
push edx
call fcn.004197cd
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call edi
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x6c]
add esi, 4
cmp esi, eax
jne 0x40d2b0
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d310
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x445164]
push ebx
push esi
push edi
mov dword [esp + 0x424], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40d355
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x40d35c
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d37d
mov ecx, dword [esp + 0x424]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov esi, dword [eax + 0x78]
cmp esi, dword [eax + 0x7c]
je 0x40d3d0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push 0x4382f4
push eax
call fcn.00419260
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x228]
push edx
call fcn.004197cd
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call edi
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x7c]
add esi, 4
cmp esi, eax
jne 0x40d390
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d3f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x445164]
push ebx
push esi
push edi
mov dword [esp + 0x424], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40d435
push 0x19
lea eax, [esp + 0x18]
push eax
jmp 0x40d43c
push 0x10
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d45d
mov ecx, dword [esp + 0x424]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov esi, dword [eax + 0x98]
cmp esi, dword [eax + 0x9c]
je 0x40d4b6
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push 0x4382f4
push eax
call fcn.00419260
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x228]
push edx
call fcn.004197cd
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call edi
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x9c]
add esi, 4
cmp esi, eax
jne 0x40d473
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d4d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x445164]
push ebx
push esi
push edi
mov dword [esp + 0x424], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40d515
push 0x23
lea eax, [esp + 0x18]
push eax
jmp 0x40d51c
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d53d
mov ecx, dword [esp + 0x424]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x10]
push 0x438300
push edx
call fcn.004197cd
mov eax, dword [ebx]
mov esi, dword [eax + 0xa8]
mov ecx, dword [eax + 0xac]
add esp, 8
cmp esi, ecx
je 0x40d5b3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d570
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x21c]
push 0x4382f4
push ecx
call fcn.00419260
mov edx, dword [esi]
push edx
lea eax, [esp + 0x228]
push eax
call fcn.004197cd
add esp, 0x14
lea ecx, [esp + 0x218]
push ecx
call edi
mov edx, dword [ebx]
mov eax, dword [edx + 0xac]
add esi, 4
cmp esi, eax
jne 0x40d570
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d8a0
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x445164]
push ebx
push esi
push edi
mov dword [esp + 0x424], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40d8e5
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x40d8ec
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d90d
mov ecx, dword [esp + 0x424]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov esi, dword [eax + 0x88]
cmp esi, dword [eax + 0x8c]
je 0x40d980
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push 0x4382f4
push eax
call fcn.00419260
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x228]
push edx
call fcn.004197cd
add esp, 0x10
lea eax, [esp + 0x21c]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00401920
mov ecx, ebx
call fcn.0040d5d0
lea ecx, [esp + 0x218]
push ecx
call edi
mov edx, dword [ebx]
mov eax, dword [edx + 0x8c]
add esi, 4
cmp esi, eax
jne 0x40d923
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40da20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [0x445164]
push ebx
push esi
push edi
mov dword [esp + 0xf4], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x438378
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40db4b
mov edx, dword [esp + 0x10]
mov word [esp + 0x20], si
mov ecx, 0x18
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x88], si
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0x8a]
rep stosd dword es:[edi], eax
push 0x32
lea ecx, [esp + 0x8c]
push ecx
push esi
push edx
stosw word es:[edi], ax
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40db4b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [esp]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40db24
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x438360
push edx
mov dword [esp + 0x34], 0x32
call esi
mov eax, dword [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call fcn.004192cf
mov eax, dword [ebx + 0x10]
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00419cde
add esp, 0xc
test eax, eax
je 0x40db60
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x32
lea ecx, [esp + 0x8c]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40dac0
xor eax, eax
mov ecx, dword [esp + 0xf4]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xf4]
mov eax, 1
mov dword [ebx + 0x34], eax
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40db80
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x414
mov eax, dword [0x445164]
push esi
mov dword [esp + 0x414], eax
push 0x104
lea eax, [esp + 0x210]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x20c]
push ecx
lea edx, [esp + 8]
push 0x4382f4
push edx
call fcn.00419260
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004197cd
mov eax, dword [esi + 0x28]
add esp, 0x14
test eax, eax
pop esi
je 0x40dbfa
push 5
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x410]
call fcn.0041923c
add esp, 0x414
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x410]
call fcn.0041923c
add esp, 0x414
ret
Function at 0x40dc20
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dc75
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40dc6e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4
Function at 0x40e0a0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x445164]
mov edx, dword [0x4460e8]
push esi
mov esi, ecx
mov dword [esp + 0x414], eax
mov eax, dword [esi + 0xc]
push eax
mov ecx, eax
mov eax, dword [edx + 0x1c]
push ecx
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [esp + 0x218]
push 0x438410
push edx
call fcn.00419260
add esp, 0x14
lea eax, [esp + 0x20c]
push eax
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0x436670
push 0x43721c
push 0x437000
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 4]
push 0x436670
push edx
call fcn.00419cde
add esp, 8
test eax, eax
je 0x40e1a9
lea eax, [esp + 4]
push eax
call fcn.0041924a
add esp, 4
cmp word [esp + eax*2 + 2], 0x5c
jne 0x40e148
lea ecx, [esp + 4]
push ecx
call fcn.0041924a
add esp, 4
mov word [esp + eax*2 + 2], 0
lea edx, [esp + 4]
push 0x5c
push edx
call fcn.00419d10
mov word [eax + 2], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x50]
push 0x4365fc
push ecx
call fcn.004018c0
mov edx, dword [esi + 4]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004197cd
add esp, 0x1c
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e1a9
mov eax, 1
mov dword [esi + 0x30], eax
pop esi
mov ecx, dword [esp + 0x410]
call fcn.0041923c
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
xor eax, eax
pop esi
call fcn.0041923c
add esp, 0x414
ret