joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47afb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515a68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57c080]
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 - 0x14], 0x533e68
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x47b012
or esi, eax
xor bl, bl
jmp 0x47b028
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47b024
xor bl, bl
jmp 0x47b028
mov dword [edi], eax
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e68
test esi, esi
je 0x47b048
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 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 0x47b060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515aa0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.0047b110
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 0x47b0ef
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x534850
jne 0x47b102
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 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
jmp 0x47b0ef
Function at 0x47b9e0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0
push 0
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x47ba8f
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
je 0x47ba2c
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x47ba34
cmp dword [eax - 8], 0
jl 0x47baee
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47ba61
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47baf8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x534850
jne 0x47bb01
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
ret 4
add eax, 0x10
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
ret 4
js 0x47baee
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x47baae
push edi
mov ecx, esi
call fcn.0040d70c
mov edx, dword [esi]
push edi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x47bac1
xor ecx, ecx
jmp 0x47bad3
push dword [eax - 8]
push eax
call fcn.004e3907
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x47baee
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x47baee
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov word [eax + ecx*2], dx
lea eax, [edx + 1]
ret 4
push 0x80070057
call fcn.0040d86a
mov ecx, edx
call ebx
jmp 0x47ba61
mov ecx, edi
call dword [eax + 0xc]
jmp 0x47ba82
Function at 0x48914a
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x516db4
call fcn.004db733
mov bl, dl
mov edi, ecx
cmp byte [0x57f574], 0
je 0x4891a7
lea ecx, [ebp - 0x10]
call fcn.0040ce82
and dword [ebp - 4], 0
mov esi, dword [edi]
test esi, esi
je 0x489186
push esi
call fcn.004e0c26
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f3f
lea eax, [ebp - 0x10]
mov ecx, 0x57f540
push eax
call fcn.004a1ec6
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
cmp byte [0x57cb1c], 0
push dword [edi]
je 0x489204
lea ecx, [ebp - 0x10]
call fcn.0040d92c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.0040ce82
movzx ecx, bl
shl ecx, 0x12
add ecx, 0x10
mov byte [ebp - 4], 3
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.00475bf0
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
jmp 0x48920a
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004db6fc
ret
Function at 0x48b2bf
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x517307
call fcn.004db733
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], ebx
je 0x48b2e3
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 1
mov dword [ebp - 0x18], ebx
push dword [eax]
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
jne 0x48b453
lea ecx, [ebp - 0x1c]
call fcn.0040ce82
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x1c]
push str.SELECT__Value__FROM__Property__WHERE_Property_s
push eax
call fcn.00411724
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], 0
je 0x48b333
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.msi.dll_MsiEnumClientsA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x48b438
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x48b438
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], eax
je 0x48b373
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
setne bl
cmp dword [ebp - 0x10], 0
mov byte [ebp + 0xb], bl
je 0x48b399
push dword [ebp - 0x10]
call esi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, str.INSERT_INTO__Property____Property____Value___VALUES_______
test bl, bl
mov eax, str.UPDATE__Property__SET__Property_._Value___WHERE_Property_
cmove eax, ecx
push eax
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x48b427
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x48b3cf
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x48b427
mov eax, dword [ebp + 0xc]
test bl, bl
mov ebx, dword [ebp + 0x10]
cmovne eax, ebx
push dword [eax]
push 1
push edi
mov edi, dword [sym.imp.msi.dll_MsiReinstallFeatureW]
call edi
test eax, eax
jne 0x48b427
cmp byte [ebp + 0xb], al
cmovne ebx, dword [ebp + 0xc]
push dword [ebx]
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x48b427
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x48b427
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x48b427
mov bl, 1
jmp 0x48b429
xor bl, bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x48b438
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x48b447
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x48b462
push dword [ebp - 0x18]
call esi
mov al, bl
call fcn.004db6fc
ret 0xc
Function at 0x48bc4f
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x5174e3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x20c]
push dword [ebx + 4]
call fcn.004db27c
and dword [ebx + 4], 0
lea eax, [ebp]
and dword [ebx], 0
push esi
push str.SELECT__Text__FROM__UIText__WHERE__Key____s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [ebp - 0x14], 0
add esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
je 0x48bcce
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
lea ecx, [ebp]
call fcn.0048bec2
pop ecx
test eax, eax
jns 0x48bcec
xor bl, bl
jmp 0x48bd97
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x48bcff
push dword [ebp - 0x10]
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], eax
je 0x48bd3a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x48bd35
cmp esi, 0x80070103
je 0x48bd35
call fcn.0048bf9d
mov eax, dword [ebp - 0x10]
jmp 0x48bd3f
mov esi, 0x80070057
test esi, esi
jns 0x48bd47
xor bl, bl
jmp 0x48bd88
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov esi, dword [sym.imp.msi.dll_MsiRecordSetStreamA]
push ecx
push 0x534080
push 1
push eax
call esi
cmp eax, 0xea
jne 0x48bd83
mov eax, dword [ebp - 0x18]
mov ecx, ebx
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.00484130
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x48bd97
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x48bda6
push dword [ebp - 0x14]
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x204
leave
ret
Function at 0x48c278
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x517561
call fcn.004db733
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp + 0xc]
shl eax, 8
inc eax
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
pop edi
push edi
mov esi, eax
mov dword [ebp - 0x18], 1
call fcn.004db281
or dword [ebp - 0x34], 0xffffffff
mov ebx, eax
mov dword [ebp - 0x30], ebx
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x10], edi
call fcn.004db281
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp + 0xc], edi
call fcn.004db27c
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
push edi
call fcn.004db281
or dword [ebp - 0x2c], 0xffffffff
mov edi, eax
xor eax, eax
mov dword [ebp - 0x28], edi
add esp, 0x10
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x48c3bc
mov esi, str.AI_InstallLanguage
lea ecx, [ebp + 0xc]
push ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x24], eax
cmp eax, 0xea
jne 0x48c384
push ebx
call fcn.004db27c
push dword [ebp - 0x10]
and dword [ebp - 0x30], 0
and dword [ebp - 0x34], 0
call fcn.004db281
or dword [ebp - 0x34], 0xffffffff
mov ebx, eax
push edi
mov dword [ebp - 0x30], ebx
call fcn.004db27c
push dword [ebp + 0xc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
call fcn.004db281
or dword [ebp - 0x2c], 0xffffffff
add esp, 0x10
mov edi, eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], edi
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, ebx
lea eax, [esi - 1]
sub ecx, str.AI_InstallLanguage
mov dword [ebp - 0x20], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x48c3ab
jg 0x48c3ab
test cl, cl
je 0x48c3ec
test dl, dl
je 0x48c3ec
mov ecx, dword [ebp - 0x20]
jmp 0x48c392
mov eax, dword [ebp - 0x14]
inc eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
je 0x48c303
xor esi, esi
push edi
mov byte [ebp - 4], 0
call fcn.004db27c
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.004db27c
and dword [ebp - 0x30], 0
mov eax, esi
and dword [ebp - 0x34], 0
pop ecx
pop ecx
call fcn.004db6fc
ret
or dword [ebp - 0x24], 0xffffffff
lea edx, [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00484320
pop ecx
mov esi, eax
jmp 0x48c3be
Function at 0x48cb78
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x517721
call fcn.004db767
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
call fcn.0040ce82
and dword [ebp - 4], 0
mov eax, dword [esi]
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x48cba5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040d92c
mov byte [ebp - 4], 1
mov eax, dword [esi]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x48cbbf
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d92c
push 0x534080
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040d92c
mov byte [ebp - 4], 3
mov eax, dword [esi]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x48cbea
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d92c
mov byte [ebp - 4], 4
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x48cc01
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d92c
mov byte [ebp - 4], 5
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x48cc18
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d92c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.00473140
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.0049d1ee
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040d148
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040d148
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040d148
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040d148
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040d148
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040d148
test esi, esi
jne 0x48ccbc
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ccbc
mov eax, dword [edi + 4]
push ebx
mov byte [eax], 1
mov ecx, dword [edi + 8]
call fcn.00405726
jmp 0x48ccc2
mov eax, dword [edi + 4]
mov byte [eax], 0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
mov bl, byte [eax]
or dword [ebp - 4], 0xffffffff
call fcn.0040d148
mov al, bl
call fcn.004db711
ret 8
Function at 0x48faf6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x48fb81
test dword [ecx + 0x74], 0x2000
jne 0x48fb81
call fcn.00490401
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x48fb81
xor esi, esi
mov ecx, edi
push esi
call fcn.00473c50
push 0x5c
pop ebx
cmp ax, bx
jne 0x48fb55
push 1
mov ecx, edi
call fcn.00473c50
cmp ax, bx
jne 0x48fb55
push 2
mov ecx, edi
call fcn.00473c50
cmp ax, bx
jne 0x48fb81
push esi
mov ecx, edi
call fcn.00473c50
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x48fb55
xor ecx, ecx
mov word [ebp - 6], cx
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x48fb81
mov al, 1
jmp 0x48fb83
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dab24
leave
ret

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

Disassembly:
push 0x10
mov eax, 0x517f36
call fcn.004db733
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.00490401
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004783c0
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004dee27
pop ecx
pop ecx
test eax, eax
jne 0x48fbca
or eax, 0xffffffff
jmp 0x48fbce
sub eax, dword [edi]
sar eax, 1
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406e54
xor ebx, ebx
lea ecx, [ebp - 0x10]
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00410f3f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d148
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fc17
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48fc30
mov dword [esi + 0x14], ebx
jmp 0x48fcb4
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.0049b5eb
lea ecx, [ebp - 0x14]
call fcn.0040ce82
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x1c]
call fcn.0049b6fc
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x542020
push eax
call fcn.00411724
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040d148
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x184]
call fcn.00495e42
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0049c347
add esp, 0xc
test al, al
jne 0x48fca6
mov dword [esi + 0x14], ebx
jmp 0x48fca8
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov eax, ebx
call fcn.004db6fc
ret
Function at 0x490c55
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x5181ef
call fcn.004db733
mov esi, ecx
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x490d92
cmp eax, 0xffffffff
je 0x490d92
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x490d92
lea ecx, [ebp - 0x3c]
call fcn.004a3bcc
xor ebx, ebx
lea ecx, [ebp - 0x18]
push str.Advinst_Estimate_
mov dword [ebp - 4], ebx
call fcn.0040d92c
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00490401
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.00483fe0
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0047b860
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.00489087
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00473850
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004a3c0a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040d148
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040d148
push 0x544bc0
lea ecx, [ebp - 0x10]
call fcn.0040d92c
mov byte [ebp - 4], 6
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push ebx
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040d148
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d148
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call fcn.004db27c
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], bl
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004a3ce3
call fcn.004db6fc
ret
Function at 0x491b2a
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x518427
call fcn.004db733
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x491ca9
cmp byte [edi + 0xd8], 0
jne 0x491ca9
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x491b82
call fcn.00493a99
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x491b82
cmp eax, ebx
je 0x491b82
test byte [edi + 0x44], 0x48
je 0x491b82
mov ecx, edi
call fcn.004926bb
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], bl
mov ebx, ecx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x491bf0
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.004125d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x491be5
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004125d0
push eax
lea ecx, [ebp - 0x30]
call fcn.00470350
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x491bb7
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
sub ebx, 1
mov dword [ebp - 0x18], eax
js 0x491c3b
mov edi, eax
push ebx
mov ecx, edi
call fcn.004125d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x491c33
push ebx
mov ecx, edi
call fcn.004125d0
push eax
lea ecx, [ebp - 0x24]
call fcn.00470350
sub ebx, 1
jns 0x491c06
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.004952d6
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.004571eb
mov esi, dword [ebp - 0x20]
jmp 0x491c6d
push esi
lea ecx, [ebp - 0x24]
call fcn.004125d0
push eax
mov ecx, ebx
call fcn.00470350
sub esi, 1
jns 0x491c5c
cmp dword [edi + 0xa8], 0
jne 0x491c89
cmp dword [edi + 0xb4], 0
jne 0x491c89
xor eax, eax
inc eax
jmp 0x491c8b
xor al, al
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004571eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004571eb
call fcn.004db6fc
ret
Function at 0x493a99
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x5188a0
call fcn.004db733
mov esi, ecx
test byte [esi + 0x44], 1
je 0x493ab7
test byte [esi + 0x44], 0x40
je 0x493c00
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x493c00
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.0049516c
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x493bf3
cmp dword [ebx], 1
je 0x493b10
cmp dword [ebx], 3
je 0x493b10
cmp dword [ebx], 7
je 0x493b10
cmp dword [ebx], 8
je 0x493b10
cmp dword [ebx], 0x64
jb 0x493b37
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x493bf3
cmp eax, 5
jne 0x493b37
jmp 0x493bf3
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x493b37
cmp eax, 2
je 0x493bf3
cmp eax, 1
je 0x493bf3
test byte [ebx + 8], 1
jne 0x493bf3
push dword [ebx + 4]
mov ecx, esi
call fcn.00494993
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040713a
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00410f3f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x493b77
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d65d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x493bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x493bc2
lea ecx, [ebp - 0x2c]
call fcn.0040ce82
lea ecx, [ebp - 0x28]
call fcn.0040ce82
xor eax, eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048c97f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004553f8
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00478b50
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00479c90
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x493aca
call fcn.004db6fc
ret