joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b2af
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x517067
call fcn.004db4c3
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 0x48b2d3
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 0x48b443
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 0x48b323
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 0x48b428
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x48b428
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], eax
je 0x48b363
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 0x48b389
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 0x48b417
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x48b3bf
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x48b417
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 0x48b417
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 0x48b417
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x48b417
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x48b417
mov bl, 1
jmp 0x48b419
xor bl, bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x48b428
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x48b437
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 0x48b452
push dword [ebp - 0x18]
call esi
mov al, bl
call fcn.004db48c
ret 0xc
Function at 0x48bc3f
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x517243
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.004db00c
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 0x48bcbe
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
lea ecx, [ebp]
call fcn.0048beb2
pop ecx
test eax, eax
jns 0x48bcdc
xor bl, bl
jmp 0x48bd87
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x48bcef
push dword [ebp - 0x10]
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], eax
je 0x48bd2a
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 0x48bd25
cmp esi, 0x80070103
je 0x48bd25
call fcn.0048bf8d
mov eax, dword [ebp - 0x10]
jmp 0x48bd2f
mov esi, 0x80070057
test esi, esi
jns 0x48bd37
xor bl, bl
jmp 0x48bd78
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 0x48bd73
mov eax, dword [ebp - 0x18]
mov ecx, ebx
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.00484120
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 0x48bd87
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x48bd96
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.004da8b4
add ebp, 0x204
leave
ret
Function at 0x48c268
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x5172c1
call fcn.004db4c3
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.004db011
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.004db011
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp + 0xc], edi
call fcn.004db00c
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
push edi
call fcn.004db011
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 0x48c3ac
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 0x48c374
push ebx
call fcn.004db00c
push dword [ebp - 0x10]
and dword [ebp - 0x30], 0
and dword [ebp - 0x34], 0
call fcn.004db011
or dword [ebp - 0x34], 0xffffffff
mov ebx, eax
push edi
mov dword [ebp - 0x30], ebx
call fcn.004db00c
push dword [ebp + 0xc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
call fcn.004db011
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 0x48c39b
jg 0x48c39b
test cl, cl
je 0x48c3dc
test dl, dl
je 0x48c3dc
mov ecx, dword [ebp - 0x20]
jmp 0x48c382
mov eax, dword [ebp - 0x14]
inc eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
je 0x48c2f3
xor esi, esi
push edi
mov byte [ebp - 4], 0
call fcn.004db00c
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.004db00c
and dword [ebp - 0x30], 0
mov eax, esi
and dword [ebp - 0x34], 0
pop ecx
pop ecx
call fcn.004db48c
ret
or dword [ebp - 0x24], 0xffffffff
lea edx, [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00484310
pop ecx
mov esi, eax
jmp 0x48c3ae
Function at 0x48f90e
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 0x48f999
test dword [ecx + 0x74], 0x2000
jne 0x48f999
call fcn.00490219
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x48f999
xor esi, esi
mov ecx, edi
push esi
call fcn.00473c30
push 0x5c
pop ebx
cmp ax, bx
jne 0x48f96d
push 1
mov ecx, edi
call fcn.00473c30
cmp ax, bx
jne 0x48f96d
push 2
mov ecx, edi
call fcn.00473c30
cmp ax, bx
jne 0x48f999
push esi
mov ecx, edi
call fcn.00473c30
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x48f96d
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 0x48f999
mov al, 1
jmp 0x48f99b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da8b4
leave
ret

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

Disassembly:
push 0x10
mov eax, 0x517c08
call fcn.004db4c3
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.00490219
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004783a0
and dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004debb7
pop ecx
pop ecx
test eax, eax
jne 0x48f9e2
or eax, 0xffffffff
jmp 0x48f9e6
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 0x48fa2f
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 0x48fa48
mov dword [esi + 0x14], ebx
jmp 0x48facc
push edi
push 3
lea ecx, [esi + 0x1c]
call fcn.0049b401
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.0049b512
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x541ff0
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.00495c58
push 0
push 0x20
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0049c15c
add esp, 0xc
test al, al
jne 0x48fabe
mov dword [esi + 0x14], ebx
jmp 0x48fac0
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.004db48c
ret
Function at 0x490a6d
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x517ec1
call fcn.004db4c3
mov esi, ecx
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x490baa
cmp eax, 0xffffffff
je 0x490baa
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x490baa
lea ecx, [ebp - 0x3c]
call fcn.004a39e1
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.00490219
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.00483fd0
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0047b850
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.00489077
push eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00473830
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004a3a1f
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 0x544b90
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.004db00c
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.004a3af8
call fcn.004db48c
ret
Function at 0x491940
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x5180f9
call fcn.004db4c3
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x491abf
cmp byte [edi + 0xd8], 0
jne 0x491abf
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x491998
call fcn.004938af
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x491998
cmp eax, ebx
je 0x491998
test byte [edi + 0x44], 0x48
je 0x491998
mov ecx, edi
call fcn.004924d1
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 0x491a06
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 0x4919fb
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004125d0
push eax
lea ecx, [ebp - 0x30]
call fcn.00470330
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x4919cd
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
sub ebx, 1
mov dword [ebp - 0x18], eax
js 0x491a51
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 0x491a49
push ebx
mov ecx, edi
call fcn.004125d0
push eax
lea ecx, [ebp - 0x24]
call fcn.00470330
sub ebx, 1
jns 0x491a1c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.004950ec
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.004571e0
mov esi, dword [ebp - 0x20]
jmp 0x491a83
push esi
lea ecx, [ebp - 0x24]
call fcn.004125d0
push eax
mov ecx, ebx
call fcn.00470330
sub esi, 1
jns 0x491a72
cmp dword [edi + 0xa8], 0
jne 0x491a9f
cmp dword [edi + 0xb4], 0
jne 0x491a9f
xor eax, eax
inc eax
jmp 0x491aa1
xor al, al
mov byte [edi + 0xd8], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004571e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004571e0
call fcn.004db48c
ret
Function at 0x4938af
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x518572
call fcn.004db4c3
mov esi, ecx
test byte [esi + 0x44], 1
je 0x4938cd
test byte [esi + 0x44], 0x40
je 0x493a16
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x493a16
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.00494f82
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x493a09
cmp dword [ebx], 1
je 0x493926
cmp dword [ebx], 3
je 0x493926
cmp dword [ebx], 7
je 0x493926
cmp dword [ebx], 8
je 0x493926
cmp dword [ebx], 0x64
jb 0x49394d
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x493a09
cmp eax, 5
jne 0x49394d
jmp 0x493a09
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x49394d
cmp eax, 2
je 0x493a09
cmp eax, 1
je 0x493a09
test byte [ebx + 8], 1
jne 0x493a09
push dword [ebx + 4]
mov ecx, esi
call fcn.004947a9
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 0x49398d
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 0x4939d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4939d8
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.0048c96f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004553ed
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00478b30
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00479c70
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 0x4938e0
call fcn.004db48c
ret
Function at 0x493a1c
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x51859d
call fcn.004db4c3
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x493b9d
mov ecx, dword [ebx + 0x1c]
add ecx, dword [ebx + 0x58]
mov dword [ebp - 0x20], ecx
adc eax, dword [ebx + 0x5c]
xor esi, esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x493a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00494733
push 2
pop eax
jmp 0x493b9d
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], esi
call fcn.0040ce82
mov byte [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x10], esi
jbe 0x493b77
xor edi, edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493bc3
cmp dword [ebp - 0x14], 0
je 0x493bc3
test edi, edi
je 0x493aef
push esi
call fcn.004db00c
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048ba0c
mov esi, dword [ebp - 0x10]
test al, al
je 0x493bbf
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push esi
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493ba3
cmp dword [ebp - 0x14], 0
je 0x493ba3
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x78]
call fcn.00494fa4
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.00494f82
mov edi, eax
test esi, esi
jne 0x493b54
xor eax, eax
jmp 0x493b5b
push esi
call fcn.004e09b6
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040d8ae
mov eax, dword [ebp - 0x18]
mov edi, esi
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x493ab6
xor edi, edi
push esi
mov byte [ebp - 4], 1
call fcn.004db00c
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 6
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004db48c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00494733
push 2
pop edi
jmp 0x493b79
push 3
jmp 0x493bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00494733
push 2
pop eax
mov dword [ebp - 0x18], eax
mov edi, eax
jmp 0x493b79
Function at 0x493bec
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x5185c8
call fcn.004db4c3
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x493da9
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x34], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x493c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00494733
push 2
pop eax
jmp 0x493da9
mov esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], ebx
jbe 0x493d98
push 2
mov dword [ebp - 0x1c], ebx
pop ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493d81
cmp dword [ebp - 0x14], 0
je 0x493d81
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ce82
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x493cc0
push esi
call fcn.004db00c
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048ba0c
mov esi, dword [ebp - 0x10]
test al, al
je 0x493d6c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493d53
cmp dword [ebp - 0x14], 0
je 0x493d53
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x493d0c
xor eax, eax
jmp 0x493d13
push esi
call fcn.004e09b6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d8ae
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x98]
call fcn.00494ee9
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d148
mov eax, dword [ebp - 0x18]
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
cmp eax, dword [edi + 8]
jb 0x493c70
xor ebx, ebx
jmp 0x493d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00494733
jmp 0x493d6f
push 3
pop ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d148
mov byte [ebp - 4], 0
jmp 0x493d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00494733
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db00c
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004db48c
ret

Function at 0x494e93
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
lea edi, [ebx + 0xe0]
cmp dword [ebx + 0xe4], esi
jle 0x494ec1
push esi
mov ecx, edi
call fcn.004125d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x494ea8
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004571e0