joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ff30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x508d51
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0x410], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x46ffc7
call fcn.00406cde
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46ffa6
push 0x80004005
call fcn.00406e60
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x46ffbb
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46ffbd
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
jmp 0x4700a2
lea eax, [ebp + 0x208]
push eax
push 0
push 0x530730
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x470022
call fcn.00406cde
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46ffff
push 0x80004005
call fcn.00406e60
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x470014
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x470018
mov ecx, edx
call edi
add eax, 0x10
mov dword [esi], eax
jmp 0x4700a2
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406cde
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47004b
push 0x80004005
call fcn.00406e60
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x470060
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x470064
mov ecx, edx
call edi
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 3
lea eax, [ebp + 0x208]
test eax, 0xffff0000
jne 0x47008a
movzx eax, ax
mov ecx, esi
push eax
call fcn.00409267
jmp 0x4700a2
push eax
call fcn.004d635d
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.0040935b
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004d014c
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4708c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6d48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x4709da
call fcn.00471570
test al, al
jne 0x4709da
call fcn.00406cde
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x470920
push 0x80004005
call fcn.00406e60
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x470935
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x470939
mov ecx, edx
call edi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x524284
test eax, 0xffff0000
jne 0x470960
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.00409267
jmp 0x47097b
push 0x524284
call fcn.004d635d
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x524284
call fcn.0040935b
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004072c9
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4709e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x4709d6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4709e8
call edx
jmp 0x4709e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4709f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470a10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6d48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x470b2a
call fcn.00471570
test al, al
jne 0x470b2a
call fcn.00406cde
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x470a70
push 0x80004005
call fcn.00406e60
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x470a85
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x470a89
mov ecx, edx
call edi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x524284
test eax, 0xffff0000
jne 0x470ab0
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.00409267
jmp 0x470acb
push 0x524284
call fcn.004d635d
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x524284
call fcn.0040935b
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004072c9
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x470b38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x470b26
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x470b38
call edx
jmp 0x470b38
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x470b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470b60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508e98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00406cde
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x470ba8
push 0x80004005
call fcn.00406e60
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x523a98
jne 0x470bbd
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x470bbf
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00470cc0
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x470be4
xor bl, bl
jmp 0x470c60
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x470c5b
cmp dword [edi + 0xc], 0
jl 0x470c50
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x470c50
call fcn.00407359
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470c46
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x523a98
jne 0x470c42
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x470c5b
mov ecx, edx
call eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x470c5b
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.0040935b
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x470ca7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x470ca5
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470cc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x56a078]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
lea eax, [esp + 0x210]
mov edi, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x470d0a
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004d014c
add esp, 0x414
ret
lea eax, [esp + 8]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x470cf1
lea eax, [esp + 8]
push eax
call fcn.004d635d
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0040935b
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004d014c
add esp, 0x414
ret
Function at 0x471f20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509108
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x471f90
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x471f90
mov dword [edi], eax
mov bl, 1
jmp 0x471f92
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x471fab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508fd0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.00472070
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x472053
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x523a98
jne 0x47204f
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472640
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x4726f2
mov eax, dword [esi]
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], ebx
je 0x47274c
cmp dword [ecx + 0xc], ebx
lea edx, [ecx + 0xc]
jge 0x472695
cmp dword [eax - 8], ebx
jl 0x472755
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax], cx
mov eax, ebx
pop ebx
ret 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4726c2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebp, dword [eax + 4]
cmp eax, 0x523a98
jne 0x47275f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x523a98
jne 0x472768
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
js 0x472772
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x47270f
push edi
mov ecx, esi
call fcn.004069d7
push edi
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x472723
xor ecx, ecx
jmp 0x472735
push dword [eax - 8]
push eax
call fcn.004d60a2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x472755
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x472755
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00406e60
mov ecx, edx
call ebp
jmp 0x4726c2
mov ecx, edi
call dword [eax + 0xc]
jmp 0x4726e4
push 0x80070057
call fcn.00406e60
int3
Function at 0x47a9c9
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x101
push edi
inc ebx
cmp byte [esp + 0x44], 0
mov eax, ebx
cmovne eax, esi
lea esi, [esp + 0x1c]
push esi
push eax
xor edi, edi
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or dword [esp + 0x30], 0xffffffff
mov esi, eax
push 0x14
mov dword [esp + 0x1c], ebx
pop ebx
push ebx
call fcn.004d0681
or dword [esp + 0x2c], 0xffffffff
mov ebp, eax
push ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebx
call fcn.004d0681
pop ecx
pop ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ebx
call fcn.00476750
or dword [esp + 0x28], 0xffffffff
push ebx
call fcn.004d0681
mov ebx, eax
mov eax, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], eax
pop ecx
test esi, esi
jne 0x47ab2a
mov esi, str.AI_InstallLanguage
lea ecx, [esp + 0x44]
push ecx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esp + 0x24], eax
cmp eax, 0xea
jne 0x47aad8
lea ecx, [esp + 0x30]
call fcn.00476750
push dword [esp + 0x10]
or dword [esp + 0x34], 0xffffffff
call fcn.004d0681
pop ecx
mov ebp, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], ebp
call fcn.00476750
push dword [esp + 0x44]
or dword [esp + 0x2c], 0xffffffff
call fcn.004d0681
pop ecx
mov ebx, eax
lea eax, [esp + 0x44]
push eax
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x34], ebx
push eax
push edi
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, ebp
lea eax, [esi - 1]
sub ecx, str.AI_InstallLanguage
mov dword [esp + 0x20], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x47ab01
jg 0x47ab01
test cl, cl
je 0x47ab16
test dl, dl
je 0x47ab16
mov ecx, dword [esp + 0x20]
jmp 0x47aae7
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], edi
je 0x47aa54
jmp 0x47ab2a
or dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.00476910
pop ecx
mov edi, eax
lea ecx, [esp + 0x28]
call fcn.00476750
lea ecx, [esp + 0x30]
call fcn.00476750
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x47e08b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x6c], 1
push ebx
push esi
push edi
je 0x47e119
test dword [ecx + 0x6c], 0x2000
jne 0x47e119
call fcn.0047efbe
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x47e119
xor esi, esi
mov ecx, edi
push esi
call fcn.0046e610
push 0x5c
pop ebx
cmp ax, bx
jne 0x47e0ea
push 1
mov ecx, edi
call fcn.0046e610
cmp ax, bx
jne 0x47e0ea
push 2
mov ecx, edi
call fcn.0046e610
cmp ax, bx
jne 0x47e119
test esi, esi
js 0x47e12c
push esi
mov ecx, edi
call fcn.00472b70
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x47e0ea
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x47e11b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d014c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00406e60
int3

Function at 0x47e137
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0x14
mov eax, 0x50a79c
call fcn.004d0cf3
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.0047efbe
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046fbf0
push 0x5c
push dword [ebx]
call fcn.004d3931
pop ecx
pop ecx
test eax, eax
jne 0x47e16b
or eax, 0xffffffff
jmp 0x47e16f
sub eax, dword [ebx]
sar eax, 1
inc eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00445170
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004072c9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47e1b5
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47e1d0
inc edi
mov dword [esi + 0x10], edi
jmp 0x47e258
push ebx
push 3
lea ecx, [esi + 0x18]
call fcn.00489e7b
call fcn.00406cde
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [esi + 0x18]
call fcn.00489f20
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x5312bc
push eax
call fcn.004575ca
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x178]
call fcn.00484ff8
push edi
push 0x20
push edi
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00485ff8
add esp, 0xc
test al, al
jne 0x47e249
xor edi, edi
inc edi
mov dword [esi + 0x10], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
mov eax, edi
call fcn.004d0cbc
ret
Function at 0x47f7c3
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x50ab0e
call fcn.004d0cf3
mov esi, ecx
mov eax, dword [esi + 0x1cc]
test eax, eax
je 0x47f8e3
or ebx, 0xffffffff
cmp eax, ebx
je 0x47f8e3
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x20], 0x103
jne 0x47f8e3
lea ecx, [ebp - 0x40]
call fcn.00494905
push str.Advinst_Estimate_
lea ecx, [ebp - 0x1c]
call fcn.004093f6
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.0047efbe
push ecx
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.004765e0
pop ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00472570
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00480431
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.0047fc19
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.0049492f
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push str.CLOSE
lea ecx, [ebp - 0x14]
call fcn.004093f6
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edi
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea ecx, [ebp - 0x2c]
call fcn.00476750
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea ecx, [ebp - 0x40]
call fcn.004949e0
call fcn.004d0cbc
ret
Function at 0x481647
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x24
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
cmp byte [edi + 0xc0], 0
je 0x4817c3
cmp byte [edi + 0xd8], 0
jne 0x4817c3
cmp dword [edi + 0x90], 3
je 0x481696
call fcn.00482de0
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x481696
cmp eax, 1
je 0x481696
test byte [edi + 0x44], 0x48
je 0x481696
mov ecx, edi
call fcn.00481e5a
mov eax, dword [edi + 0xa8]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
push ebx
mov ebx, ecx
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], ebp
push esi
test eax, eax
jle 0x48170c
mov ebp, dword [esp + 0x10]
lea eax, [edi + 0xa4]
mov edi, eax
push ebx
mov ecx, edi
call fcn.00406740
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4816ff
push ebx
mov ecx, edi
call fcn.00406740
push eax
lea ecx, [esp + 0x2c]
call fcn.0046e350
inc ebx
cmp ebx, ebp
jl 0x4816d1
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [edi + 0xb4]
sub ebx, 1
js 0x481754
lea ebp, [edi + 0xb0]
push ebx
mov ecx, ebp
call fcn.00406740
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x48174b
push ebx
mov ecx, ebp
call fcn.00406740
push eax
lea ecx, [esp + 0x20]
call fcn.0046e350
sub ebx, 1
jns 0x48171d
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0xa4]
call fcn.0048436c
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00452170
lea esi, [ebp - 1]
test esi, esi
js 0x48178f
push esi
lea ecx, [esp + 0x20]
call fcn.00406740
push eax
mov ecx, ebx
call fcn.0046e350
sub esi, 1
jns 0x481778
cmp dword [edi + 0xa8], 0
pop esi
pop ebp
pop ebx
jne 0x4817a9
cmp dword [edi + 0xb4], 0
jne 0x4817a9
xor eax, eax
inc eax
jmp 0x4817ab
xor eax, eax
lea ecx, [esp + 0x10]
mov byte [edi + 0xd8], al
call fcn.00452170
lea ecx, [esp + 0x1c]
call fcn.00452170
pop edi
add esp, 0x24
ret
Function at 0x482de0
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x50b05c
call fcn.004d0cf3
mov esi, ecx
test byte [esi + 0x44], 1
je 0x482dfe
test byte [esi + 0x44], 0x40
je 0x482f3a
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x482f3a
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.004842b2
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x482f2d
cmp dword [ebx], 1
je 0x482e57
cmp dword [ebx], 3
je 0x482e57
cmp dword [ebx], 7
je 0x482e57
cmp dword [ebx], 8
je 0x482e57
cmp dword [ebx], 0x64
jb 0x482e7e
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x482f2d
cmp eax, 5
jne 0x482e7e
jmp 0x482f2d
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x482e7e
cmp eax, 2
je 0x482f2d
cmp eax, 1
je 0x482f2d
test byte [ebx + 8], 1
jne 0x482f2d
push dword [ebx + 4]
mov ecx, esi
call fcn.00483adc
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004073ac
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004072c9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x482eba
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406931
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x482efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x482efa
lea ecx, [ebp - 0x28]
call fcn.00406df5
lea ecx, [ebp - 0x24]
call fcn.00406df5
lea eax, [ebp - 0x10]
mov word [ebp - 0x20], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0047af99
lea ecx, [ebp - 0x28]
call fcn.0045076f
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.004700e0
mov edx, dword [ebp - 0x14]
mov ecx, eax
call fcn.00470d60
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x482e11
call fcn.004d0cbc
ret