joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49feb4
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x14
mov eax, 0x50e065
call fcn.004d0cf3
mov edi, ecx
call fcn.00406cde
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x8c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
add ecx, 4
push dword [eax + 0x10]
call fcn.0047fd28
add eax, 0x24
lea ecx, [ebp - 0x14]
push eax
call fcn.004073ac
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a005c
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.004a00bc
mov edx, 0x8a
lea ecx, [ebp - 0x1c]
call fcn.00495030
mov ecx, dword [ebp + 8]
push ebx
sub esp, 0xc
push dword [ebp - 0x1c]
push 1
push 2
push dword [edi + 0x100]
call fcn.0043f568
mov edx, dword [ebp - 0x14]
lea esi, [edi + 0x1c4]
mov ecx, dword [esi]
push ebx
call fcn.0049532c
mov byte [ebp - 0xd], al
pop ecx
test al, al
jne 0x49ffd8
cmp byte [0x5706cc], bl
je 0x49ff95
call fcn.00406cde
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
push str.MD5_of_downloaded_file_is_invalid.
call fcn.004072a1
lea eax, [ebp - 0x18]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [esi]
call fcn.004d3931
pop ecx
pop ecx
test eax, eax
jne 0x49ffb1
or eax, 0xffffffff
jmp 0x49ffb5
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004450c5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
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 - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp byte [ebp - 0xd], 0
jne 0x4a005c
inc dword [edi + 0x1d0]
call fcn.00406cde
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov edx, 0x8b
lea ecx, [ebp - 0x18]
call fcn.00495030
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push ebx
sub esp, 0xc
push esi
push 1
push 2
push dword [edi + 0x100]
call fcn.0043f568
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
jmp 0x4a0082
push dword [edi + 0x100]
mov ecx, dword [ebp + 8]
call fcn.0043f5c4
mov ecx, dword [edi + 0x8c]
push eax
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.0047fd28
mov bl, 1
mov byte [eax + 0x6c], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a0094
push 1
mov ecx, edi
call fcn.004a00bc
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 - 0x20]
add ecx, 0xfffffff0
call fcn.00406dd3
mov al, bl
call fcn.004d0cbc
ret 8
Function at 0x4a1905
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x509f99
call fcn.004d0cf3
mov ebx, ecx
mov ecx, dword [ebx + 0x80]
call fcn.00491c80
mov ecx, dword [ebx + 0x80]
push 0
push 0x3025
call fcn.00491d5f
mov ecx, dword [ebx + 0x80]
xor edi, edi
push edi
push 0x3023
call fcn.00491d5f
mov ecx, dword [ebx + 0x80]
push edi
push 0x3024
call fcn.00491d5f
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [ebx + 4]
call esi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f04
mov ecx, ebx
call fcn.004a1cf7
mov ecx, ebx
call fcn.004a1a41
mov ecx, dword [ebx + 0x8c]
push edi
mov dword [ebx + 0x94], edi
call fcn.00490be9
test eax, eax
jne 0x4a1a06
mov esi, dword [ebx + 0x8c]
lea ecx, [ebx + 0x88]
add esi, 0x48
mov word [esi + 0x18], di
mov dword [esi + 0x10], ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push esi
push 0x49adf3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xae
lea ecx, [ebp - 0x10]
call fcn.00495030
mov ecx, eax
call fcn.004a215f
mov dword [ebx + 0xa0], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push edi
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4a1a39
mov eax, dword [ebx + 0x80]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x99], 1
push dword [ebx + 4]
call edi
push 2
push eax
call esi
push dword [ebx + 4]
mov esi, eax
call edi
push esi
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
call fcn.004d0cbc
ret
Function at 0x4a2f59
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x50e2ff
call fcn.004d0cf3
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor esi, esi
cmp byte [edi + 0x2a], 0
jne 0x4a2f7b
cmp word [edi + 0x1a], si
jbe 0x4a2fc4
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
call fcn.0046e2a0
mov esi, eax
test esi, esi
je 0x4a2f9b
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004a341f
jmp 0x4a30b7
lea esi, [edi + 0x2c]
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4a2fb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4a2f8c
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
test eax, eax
je 0x4a2fad
xor esi, esi
lea eax, [edi + 0x1a]
cmp word [eax], si
jbe 0x4a2ff3
lea ecx, [ebp - 0x20]
push ecx
push eax
call ebx
test eax, eax
je 0x4a2fad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x4a2ff3
mov eax, 0xe0000013
jmp 0x4a30b9
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ebx
call fcn.004073ac
push str..part
lea ecx, [ebp - 0x10]
call fcn.004072a1
push esi
xor dl, dl
lea ecx, [ebp - 0x10]
call fcn.00471b90
mov esi, eax
pop ecx
test esi, esi
jne 0x4a3084
cmp byte [edi + 0x18], al
je 0x4a303f
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a303f
lea eax, [ebp - 0x10]
push eax
call fcn.004a3150
mov esi, eax
test esi, esi
jne 0x4a3084
push 2
pop ecx
xor eax, eax
cmp byte [edi + 0x3c], al
cmovne eax, ecx
push eax
mov eax, dword [ebp + 8]
push 0
push edi
push 0x4a30c1
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x4a307c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4a3090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004a341f
jmp 0x4a30a8
cmp byte [edi + 4], 0
je 0x4a30a6
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a30a6
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
mov eax, esi
call fcn.004d0cbc
ret 8
Function at 0x4a32cf
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4a32e3
xor al, al
jmp 0x4a3354
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ebp, [eax + eax]
lea eax, [ebp + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esi], edi
test edi, edi
jne 0x4a330f
xor al, al
jmp 0x4a3352
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x4a3321
xor al, al
jmp 0x4a3351
mov eax, dword [esp + 0x14]
push ebp
push dword [eax]
push ebx
call fcn.004d1470
add esp, 0xc
xor eax, eax
mov word [ebx + ebp], ax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop ebx
pop edi
pop ebp
pop esi
ret 4

Function at 0x4a5dcc
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x50ecb4
call fcn.004d0cf3
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a5df5
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.00422d68
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.0046eeb0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4a5e6d
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4a5e36
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0046ef50
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a5e92
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004d0cbc
ret
Function at 0x4acb38
Capabilities:
Create pipe

Disassembly:
push 0x1c
mov eax, 0x4fa508
call fcn.004d0d27
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4acb56
mov al, 1
jmp 0x4acbe7
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.0040424c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ad07a
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x4acbaa
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x400
push 0x1388
push ecx
push ecx
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
cmp byte [esi + 0x1d], bl
jne 0x4acbcf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x4acbd5
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00404a7e
mov al, bl
call fcn.004d0cd1
ret 8
Function at 0x4acdca
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x510279
call fcn.004d0d27
mov edi, ecx
mov bl, byte [ebp + 0x10]
xor edx, edx
mov esi, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
test bl, bl
jne 0x4ace18
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4ace03
xor eax, eax
inc eax
jmp 0x4ace13
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
xor edx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
inc edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4ace56
test bl, bl
jne 0x4ace56
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov word [esi], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], cl
push ecx
push edx
jmp 0x4acf36
xor ebx, ebx
mov dword [ebp - 0x34], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
jb 0x4ace68
mov eax, dword [edi]
jmp 0x4ace6a
mov eax, edi
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4ace95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4acf1c
mov ecx, dword [ebp - 0x3c]
add ebx, ecx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], ebx
jb 0x4acea7
mov eax, dword [edi]
jmp 0x4acea9
mov eax, edi
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [edi + 0x14], 8
jb 0x4acebb
mov ebx, dword [edi]
jmp 0x4acebd
mov ebx, edi
xor eax, eax
cmp word [ebx], ax
je 0x4acecb
push ebx
call fcn.004d635d
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040cfdb
lea eax, [ebp - 0x34]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x34], 0
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
ja 0x4ace5e
cmp dword [ebp - 0x40], 0
je 0x4acf1c
test ebx, ebx
je 0x4acf1c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040eeea
xor ecx, ecx
inc ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], al
push eax
push ecx
jmp 0x4acf36
xor ecx, ecx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [esi], ax
inc eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], cl
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a7e
mov eax, esi
call fcn.004d0cd1
ret 0xc
Function at 0x4acf48
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x5102b7
call fcn.004d0cf3
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4acf7f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x4acfd3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4acf8f
mov ecx, dword [ecx]
push ebx
lea edx, [ebp + 0x10]
push edx
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4acfb7
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
jmp 0x4acf73
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004acdca
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004d0cbc
ret 0xc

Function at 0x4acfdd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x4acff3
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4

Function at 0x4aff41
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x510bdb
call fcn.004d0d27
mov edi, dword [ebp + 8]
sub esp, 0x18
add edi, 4
mov dword [ebp - 0x5c], esp
mov ecx, esp
push edi
call fcn.00409d72
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004632d0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4affd2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00464c00
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4aff91
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], bl
push 0
push ebx
lea ecx, [ebp - 0x40]
call fcn.00404a7e
test esi, esi
jne 0x4b0004
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00465040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00465250
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
push esi
push ebx
call fcn.00404a7e
cmp dword [ebp - 0x18], 0
jne 0x4aff79
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.00404a7e
cmp dword [edi + 0x14], 8
jb 0x4affef
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.004d0cd1
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.00404a7e
mov al, bl
jmp 0x4afffc
Function at 0x4b2738
Capabilities:
Parse credit card information

Disassembly:
push 0x64
mov eax, 0x511330
call fcn.004d0d27
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov edi, str.PIDTemplate
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004087b1
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x40]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a7e
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jb 0x4b2904
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x3c
jne 0x4b2904
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3e
jne 0x4b2904
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.004172dd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push eax
call fcn.0040c6f8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00404a7e
xor eax, eax
mov dword [ebp - 0x30], ebx
mov edi, str.PIDKEY
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004087b1
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a7e
mov ebx, dword [ebp - 0x48]
cmp ebx, dword [ebp - 0x18]
jne 0x4b28f2
xor esi, esi
test ebx, ebx
je 0x4b28ee
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + esi*2]
cmp eax, 0x3d
jg 0x4b28b0
je 0x4b28e5
sub eax, 0x23
je 0x4b288d
dec eax
sub eax, 1
je 0x4b288d
sub eax, 1
jmp 0x4b28c2
cmp edx, 8
lea eax, [ebp - 0x58]
cmovae eax, edi
movzx eax, word [eax + esi*2]
push eax
call fcn.004da2fd
pop ecx
test eax, eax
je 0x4b28f2
mov edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x58]
jmp 0x4b28e2
cmp eax, 0x3f
jl 0x4b28c4
cmp eax, 0x40
jle 0x4b28e5
cmp eax, 0x5e
je 0x4b28e5
cmp eax, 0x60
je 0x4b28e5
cmp edx, 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x28]
cmovae eax, edi
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
mov ax, word [eax + esi*2]
cmp ax, word [ecx + esi*2]
jne 0x4b28f2
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, ebx
jb 0x4b2868
mov bl, 1
jmp 0x4b28f4
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00404a7e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00404a7e
mov al, bl
call fcn.004d0cd1
ret
Function at 0x4b458e
Capabilities:
Reference sql statements

Disassembly:
push 0x68
mov eax, 0x511a6b
call fcn.004d0d27
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, str.prereq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004d635d
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004087b1
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0044eda0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00404a7e
mov dword [ebp - 0x34], ebx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov ebx, str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
push ebx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004d635d
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.004087b1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.004a5d26
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
push 0
push 1
call fcn.00404a7e
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
call fcn.00412eb4
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x68]
push dword [ebp - 0x60]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x64], eax
call fcn.004b82d9
pop ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x60], 0
je 0x4b4695
push str.InstallPrereq
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b4695
push esi
call eax
mov dword [edi], eax
mov bl, 1
jmp 0x4b4697
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.004b7e40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
push 0
push 1
call fcn.00404a7e
mov al, bl
call fcn.004d0cd1
ret 4
Function at 0x4b70b4
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x220
lea ebp, [esp - 4]
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0x220], eax
push 0xc
mov eax, 0x512254
call fcn.004d0cf3
and dword [ebp - 4], 0
lea eax, [ebp + 0x18]
mov esi, dword [ebp + 0x22c]
and dword [ebp - 0x10], 0
push 0x104
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add eax, eax
cmp eax, 0x208
jae 0x4b71a8
sub esp, 0x18
xor ecx, ecx
mov word [ebp + eax + 0x18], cx
mov ecx, esp
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], esp
push eax
call fcn.00408844
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004632d0
xor eax, eax
mov dword [ebp - 4], eax
mov edi, str.msiexec.exe
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], eax
mov word [ebp], ax
call fcn.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp]
call fcn.004087b1
mov dword [ebp - 4], 2
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004238fd
mov byte [ebp - 4], 0
lea ecx, [ebp]
push 0
push ebx
call fcn.00404a7e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.004d014c
lea esp, [ebp + 0x224]
pop ebp
ret 4
call fcn.004d096b
int3