joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea4d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5655cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x4ea561
cmp dword [ecx], edi
jne 0x4ea559
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4ea569
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4ea569
cmp dword [ecx], edi
jne 0x4ea569
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [ebx + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
add ecx, 4
call fcn.00424d00
push 0x18
push edi
call fcn.00520c13
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4eab60
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4eab9c
mov al, 1
jmp 0x4eac50
mov al, byte [ebp + 8]
mov byte [esi + 0x1d], al
lea eax, [esi + 0x20]
cmp eax, ecx
je 0x4eabbd
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
jb 0x4eabb4
mov ecx, dword [ecx]
push edx
push ecx
mov ecx, eax
call fcn.004079c0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004eb3b0
mov dword [ebp - 4], 0
mov al, byte [esi + 0x1d]
test al, al
je 0x4eac0c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x1388
push 0x400
push 0x400
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x4eac39
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
jne 0x4eac39
xor bl, bl
jmp 0x4eac3f
mov byte [esi + 0x1c], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 8
Function at 0x4eafa0
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5657d1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [ebx + 0x10]
xor edx, edx
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], 0
test al, al
jne 0x4eb022
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4eb00f
mov edx, 1
jmp 0x4eb01f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x217
sete dl
mov al, byte [ebx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
test edx, edx
jne 0x4eb078
test al, al
jne 0x4eb078
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], al
jmp 0x4eb18a
xor eax, eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], eax
add esi, 0x3c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4eb091
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x40]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4eb0bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4eb16d
mov ecx, dword [ebp - 0x40]
mov eax, esi
add dword [ebp - 0x34], ecx
cmp dword [esi + 0x14], 8
jb 0x4eb0cc
mov eax, dword [esi]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4eb0de
mov edx, dword [esi]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x44], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb0e6
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00419f20
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x30]
ja 0x4eb087
cmp dword [ebp - 0x48], 0
je 0x4eb16d
cmp dword [ebp - 0x34], 0
je 0x4eb16d
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], al
jmp 0x4eb18a
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2c]
call fcn.00407c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4eb1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544b59
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4eb229
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4eb239
mov ecx, dword [ecx]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4eb27f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 1
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004eafa0
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 esp, ebp
pop ebp
ret 0xc

Function at 0x4eb2b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x4eb2c4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
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
ret 4

Function at 0x4eb2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 5
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push 0x590028
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004079c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
push 0
push edx
lea ecx, [eax + eax]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret
Function at 0x4f05d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x24], ebp
mov edx, dword [ebp + 0x60]
lea eax, [ebp + 0x64]
mov ecx, dword [ebp + 0x50]
dec edx
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
je 0x4f05f9
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f05f9
mov eax, dword [ecx]
add edx, dword [ebp + 0x5c]
test eax, eax
je 0x4f0610
mov eax, dword [eax]
test eax, eax
je 0x4f0610
mov eax, dword [eax]
test eax, eax
je 0x4f0610
mov eax, dword [eax]
jmp 0x4f0612
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov ebx, dword [eax + ecx*4]
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x10], eax
jb 0x4f062f
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4f0651
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f0640
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
and eax, edx
mov ebp, dword [ebp + 0x68]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [esp + 0x14], edx
mov esi, edx
mov dword [esp + 0x18], eax
cmp edx, ebp
jne 0x4f067a
mov eax, ebp
jmp 0x4f067e
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4f06ea
cmp dword [ebx + 0x14], 8
lea edi, [esi + 8]
mov edx, ebx
jb 0x4f068f
mov edx, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
jb 0x4f06a0
mov ecx, dword [edi]
cmp eax, dword [esp + 0x10]
jne 0x4f06b3
push eax
call fcn.00406f00
add esp, 4
test eax, eax
je 0x4f06bf
mov esi, dword [esi]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4f0672
cmp dword [edi + 0x14], 8
jb 0x4f06c7
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4f06cf
mov ebx, dword [ebx]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jne 0x4f06ea
push eax
mov edx, edi
mov ecx, ebx
call fcn.00406f00
add esp, 4
test eax, eax
je 0x4f06ec
mov esi, ebp
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00443130
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
dec eax
add ecx, eax
mov eax, dword [esi + 0x58]
dec eax
and ecx, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + ecx*4]
call fcn.00407c80
add dword [esi + 0x60], 0xffffffff
jne 0x4f0726
mov dword [esi + 0x5c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4f0730
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 8
mov ebp, ecx
mov eax, dword [ebx + 0x10]
mov esi, ebx
mov dword [esp + 0x20], eax
jb 0x4f074e
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4f0771
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f0760
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
and eax, edx
mov ebp, dword [ebp + 0x68]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [esp + 0x10], edx
mov esi, edx
mov dword [esp + 0x14], eax
cmp edx, ebp
jne 0x4f079a
mov eax, ebp
jmp 0x4f079e
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4f080a
cmp dword [ebx + 0x14], 8
lea edi, [esi + 8]
mov edx, ebx
jb 0x4f07af
mov edx, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], eax
jb 0x4f07c0
mov ecx, dword [edi]
cmp eax, dword [esp + 0x20]
jne 0x4f07d3
push eax
call fcn.00406f00
add esp, 4
test eax, eax
je 0x4f07df
mov esi, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x4f0792
cmp dword [edi + 0x14], 8
jb 0x4f07e7
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4f07ef
mov ebx, dword [ebx]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
jne 0x4f080a
push eax
mov edx, edi
mov ecx, ebx
call fcn.00406f00
add esp, 4
test eax, eax
je 0x4f080c
mov esi, ebp
cmp esi, ebp
je 0x4f081d
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x4f0e00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566a01
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
sub esp, 0x18
xor edi, edi
add esi, 4
mov dword [ebp - 0x5c], edi
mov ecx, esp
mov dword [ebp - 0x64], esp
push esi
mov dword [ebp - 0x60], esi
call fcn.00406d00
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00484e80
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], edi
je 0x4f0f15
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00485a90
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4f0e80
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00407c80
test esi, esi
jne 0x4f0f55
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
or edi, 1
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x5c], edi
call fcn.00484a90
lea ecx, [ebp - 0x40]
call fcn.00407c80
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
and edi, 0xfffffffe
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00407c80
cmp dword [ebp - 0x30], esi
jne 0x4f0e68
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407c80
cmp dword [esi + 0x14], 8
jb 0x4f0f2c
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407c80
mov al, 1
jmp 0x4f0f38
Function at 0x4f3340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567019
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 0x1c], 0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], eax
jb 0x4f3385
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4f33a4
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f3393
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0xb0]
mov edi, dword [ecx + 0xa4]
and eax, edx
mov ecx, dword [ecx + 0x9c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ecx
mov edx, dword [edi + eax*8]
lea eax, [eax*8 + 4]
mov dword [ebp - 0x20], edx
mov esi, edx
mov dword [ebp - 0x28], eax
cmp edx, ecx
jne 0x4f33db
mov eax, ecx
jmp 0x4f33e0
mov eax, dword [eax + edi]
mov eax, dword [eax]
cmp esi, eax
je 0x4f3461
cmp dword [ebx + 0x14], 8
lea edi, [esi + 8]
mov edx, ebx
jb 0x4f33f1
mov edx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edi
jb 0x4f340b
mov ebx, dword [edi]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x18]
jne 0x4f3423
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00406f00
add esp, 4
test eax, eax
je 0x4f3430
mov ecx, dword [ebp - 0x10]
mov esi, dword [esi]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
jmp 0x4f33d3
cmp dword [edi + 0x14], 8
jb 0x4f3438
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4f3440
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jne 0x4f345e
push eax
mov edx, edi
mov ecx, ebx
call fcn.00406f00
add esp, 4
test eax, eax
jne 0x4f345e
mov ecx, dword [ebp - 0x10]
jmp 0x4f3463
mov ecx, dword [ebp - 0x10]
mov esi, ecx
cmp esi, ecx
je 0x4f3498
mov ecx, dword [ebp + 8]
add esi, 0x20
push esi
call fcn.00406d00
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f3be0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5672f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ebx, [edi + 4]
mov dword [edi], 0x592bb8
mov dword [ebx], 0x592bec
mov dword [edi + 0x58], 0x592bb0
mov dword [ebp - 4], 7
lea ecx, [edi + 0x13c]
call fcn.00407c80
mov byte [ebp - 4], 6
lea ecx, [edi + 0x124]
call fcn.00407c80
mov byte [ebp - 4], 5
lea esi, [edi + 0xf8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 9
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3c5e
call eax
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4f3c6a
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x10]
call fcn.00407c80
mov byte [ebp - 4], 4
lea ecx, [edi + 0xd8]
call fcn.00407c80
mov byte [ebp - 4], 3
mov esi, dword [edi + 0xcc]
test esi, esi
je 0x4f3d23
mov ebx, dword [edi + 0xd0]
cmp esi, ebx
je 0x4f3cbc
mov ecx, esi
call fcn.004066b0
add esi, 0xc
cmp esi, ebx
jne 0x4f3ca8
mov esi, dword [edi + 0xcc]
mov ecx, dword [edi + 0xd4]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 2
cmp ecx, 0x1000
jb 0x4f3cf8
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4f3db2
mov esi, edx
push ecx
push esi
call fcn.00520c13
add esp, 8
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
lea ebx, [edi + 4]
mov dword [edi + 0xd4], 0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x9c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.00422530
mov byte [ebp - 4], 1
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.00422530
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4f3d5e
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xd
lea ecx, [ebx + 0x34]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xd
call fcn.00422530
mov byte [ebp - 4], 0xc
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xc
call fcn.004e55b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 8]
call fcn.004066b0
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 fcn.00526089
int3
Function at 0x4f58b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567858
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, str.AI_InstallPrerequisite
mov eax, dword [ebp + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f590b
test dx, dx
je 0x4f5907
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f590b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f58e5
xor eax, eax
jmp 0x4f5910
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f591b
xor al, al
jmp 0x4f5a1b
push 0
push 0
mov edx, str.prereq
lea ecx, [ebp - 0x44]
call fcn.00408440
add esp, 8
mov dword [ebp - 4], 0
xor eax, eax
push 0x37
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004079c0
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.004de1f0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407c80
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push 0x5c
cmovae esi, dword [ebp - 0x44]
push esi
call fcn.00522329
add esp, 8
test eax, eax
je 0x4f59b6
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x50]
push dword [ebp - 0x48]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
call fcn.004faf30
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4f59fc
push str.InstallPrereq
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f59fc
push dword [ebp + 0xc]
call eax
mov dword [ebx], eax
mov bl, 1
jmp 0x4f59fe
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004fac20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 0xc