joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0711
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x519ef6
call fcn.004db4c3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x533e68
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x4a0751
or esi, eax
jmp 0x4a078f
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], 0xfeff
push eax
push 2
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a078f
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a078f
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x533e68
test esi, esi
je 0x4a07a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov al, bl
call fcn.004db48c
ret 8

Function at 0x4a07b3
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x519f21
call fcn.004db4c3
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], 0x533e68
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x4a086c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4a086a
xor esi, esi
mov dword [ebp + 8], esi
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00494ecb
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0859
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.004d5c40
cmp eax, 4
jne 0x4a0845
lea eax, [ebx - 2]
shr eax, 1
push eax
lea eax, [esi + 2]
push eax
jmp 0x4a084e
cmp eax, 5
jne 0x4a0859
shr ebx, 1
push ebx
push esi
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0040d8ae
xor ebx, ebx
push esi
mov byte [ebp - 4], bl
call fcn.004db00c
pop ecx
mov dword [ebp + 8], ebx
jmp 0x4a086c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e68
test edi, edi
je 0x4a0885
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
call fcn.004db48c
ret 4
Function at 0x4a088d
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x519ef6
call fcn.004db4c3
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x533e68
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x4a08d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or esi, esi
jmp 0x4a08f4
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a08f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4a08f4
mov edi, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x533e68
test esi, esi
je 0x4a090d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
mov eax, edi
call fcn.004db48c
ret 4

Function at 0x4a0917
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x519f4c
call fcn.004db4c3
mov ebx, ecx
lea ecx, [ebp - 0x14]
call fcn.0040ce82
and dword [ebp - 4], 0
mov edi, 0x100
push 0x200
call fcn.004db011
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x4a09b9
push esi
add edi, edi
mov byte [ebp - 4], 0
call fcn.004db00c
and dword [ebp - 0x10], 0
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004db011
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx + 4]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x4a0969
test esi, esi
jne 0x4a09c1
xor eax, eax
jmp 0x4a09c8
push esi
call fcn.004e09b6
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0040d8ae
push esi
mov byte [ebp - 4], 0
call fcn.004db00c
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0040d148
call fcn.004db48c
ret 0xc
Function at 0x4a09f5
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x519f77
call fcn.004db4c3
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.004db011
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x4a0a7c
or dword [ebp - 4], 0xffffffff
add esi, esi
push edi
call fcn.004db00c
and dword [ebp - 0x14], 0
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004db011
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x4a0a34
mov ecx, dword [ebp + 8]
call fcn.004571e0
lea ecx, [ebp - 0x10]
call fcn.0040ce82
mov byte [ebp - 4], 1
xor esi, esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x4a0aa6
push eax
lea ecx, [ebp - 0x10]
call fcn.00476cc0
jmp 0x4a0ac3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4a0abb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00470330
lea ecx, [ebp - 0x10]
call fcn.0040d610
inc esi
cmp esi, ebx
jbe 0x4a0a92
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004db00c
and dword [ebp - 0x14], 0
pop ecx
call fcn.004db48c
ret 4

Function at 0x4a0be2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5172dc
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
mov dword [esi], 0x5448c0
cmp dword [eax - 0xc], 0
je 0x4a0c1e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x34]
call fcn.0040d148
lea ecx, [esi + 0x30]
call fcn.0040d148
lea ecx, [esi + 0x28]
call fcn.0040d148
lea ecx, [esi + 0x24]
call fcn.0040d148
lea ecx, [esi + 0x20]
call fcn.0040d148
lea ecx, [esi + 8]
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4a0d46
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x51a04a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x5445ac
lea ecx, [ebp - 0x10]
call fcn.0040d92c
and dword [ebp - 4], 0
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x10]
call fcn.00479910
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
lea ebx, [esi + 8]
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.00498deb
mov dword [ebp - 4], 1
lea edi, [esi + 0x20]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a0de2
push 0
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
jmp 0x4a0ea0
push 0x57ce30
push esi
lea ecx, [ebp]
call fcn.0049d500
push edi
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0049dbf1
mov ecx, dword [esi + 4]
mov edi, eax
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x4a0e11
xor bl, bl
jmp 0x4a0e94
test edi, edi
je 0x4a0e91
cmp byte [0x57f574], 0
je 0x4a0e8f
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00476780
pop ecx
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040ce82
mov ebx, str.Downloading_of_updates_failed._Error:
mov byte [ebp - 4], 4
mov esi, dword [esi]
push ebx
call fcn.004e09b6
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.00410f3f
test esi, esi
je 0x4a0e69
push esi
call fcn.004e09b6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f3f
lea eax, [ebp - 0x10]
mov ecx, 0x57f540
push eax
call fcn.004a1cdb
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040d148
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040d148
test edi, edi
sete bl
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0048cf03
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d148
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 + 0x9c]
xor ecx, ebp
call fcn.004da8b4
add ebp, 0xa0
leave
ret
Function at 0x4a1e0b
Capabilities:
Write file on windows

Disassembly:
push 0x214
mov eax, 0x51a2cb
call fcn.004db4f7
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x4a1f92
lea edi, [esi + 0x24]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x4a1ec3
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4a1e6c
add eax, eax
cmp eax, 0x208
jae 0x4a1f98
xor ecx, ecx
lea ebx, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
jmp 0x4a1e71
mov ebx, str.Logger
push ebx
call fcn.004e09b6
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.0040d8ae
push 0x2e
push dword [edi]
call fcn.004debb7
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4a1eaa
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x4a1eaa
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
mov ecx, edi
call fcn.00473ac0
mov ebx, str..log
push ebx
call fcn.004e09b6
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.00410f3f
mov eax, dword [edi]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esi + 0x2c]
call fcn.0040e086
cmp dword [esi + 0x30], 0xffffffff
je 0x4a1f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a1f13
cmp dword [esi + 0x30], 0
je 0x4a1f92
push 2
push ebx
push ebx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4a1f51
test eax, eax
jne 0x4a1f89
cmp dword [esi + 0x30], eax
je 0x4a1f89
push 2
pop ecx
push ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0xfeff
push eax
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esi + 0x30], 0
je 0x4a1f92
lea eax, [esi + 0x28]
mov ecx, esi
push eax
call fcn.004a1f9e
lea ecx, [ebp - 0x21c]
call fcn.004a1fcd
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004a1f9e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d148
jmp 0x4a1f92
push ebx
lea ecx, [esi + 0x2c]
call fcn.0040e086
call fcn.004db4a1
ret
call fcn.004db13d
int3

Function at 0x4a1f9e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
mov edx, dword [eax]
lea eax, [ebp + 8]
push eax
mov eax, dword [edx - 0xc]
add eax, eax
push eax
push edx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4
Function at 0x4a3134
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x51a522
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4a319d
xor al, al
jmp 0x4a32e0
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x4a31b0
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc8
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4a31de
cmp dword [ebp - 0x18], 0xc8
jbe 0x4a32d2
lea ecx, [ebp - 0x10]
call fcn.0040ce82
mov eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0
push 0x20
pop ebx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4a323c
push 0
mov ecx, esi
call fcn.00473c30
push 0x22
pop ecx
cmp ax, cx
je 0x4a323c
push 0
push ebx
mov ecx, esi
call fcn.00476c40
cmp eax, 0xffffffff
je 0x4a323c
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00476cc0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00410f3f
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00476cc0
jmp 0x4a327c
mov edx, dword [esi]
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4a3279
cmp dword [ebx + 0xc], 0
jl 0x4a326d
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4a326d
call fcn.004070e1
mov ecx, ebx
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4a3279
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d8ae
push 0x20
pop ebx
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4a329e
push 0
mov ecx, esi
call fcn.00473c30
cmp ax, bx
je 0x4a329e
push ebx
lea ecx, [ebp - 0x10]
call fcn.00476cc0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00410f3f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040d148
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004da8b4
add ebp, 0x194
leave
ret
Function at 0x4a33d5
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0xf003f
xor esi, esi
mov edi, ecx
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a3403
xor al, al
jmp 0x4a3459
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x4a3416
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4a343f
cmp esi, 0xea
jne 0x4a344b
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x4a34cb
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x51a5c1
call fcn.004db4c3
mov edi, ecx
cmp dword [edi], 0
jne 0x4a34e5
xor al, al
jmp 0x4a35a2
lea ecx, [ebp - 0x18]
call fcn.0040ce82
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp - 0x18]
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], 1
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x10], ebx
je 0x4a351f
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x4a3585
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a3585
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x4a3554
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]
test eax, eax
jne 0x4a3576
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.004a36d5
mov bl, al
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x4a3585
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x4a3594
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d148
mov al, bl
call fcn.004db48c
ret 8
Function at 0x4a3a1f
Capabilities:
Create pipe

Disassembly:
push 4
mov eax, 0x5173d9
call fcn.004db4c3
mov edi, ecx
cmp byte [edi], 0
je 0x4a3a39
mov al, 1
jmp 0x4a3af0
mov al, byte [ebp + 8]
lea ecx, [edi + 4]
mov byte [edi + 1], al
mov eax, dword [ebp + 0xc]
mov ebx, dword [ecx]
sub ebx, 0x10
mov edx, dword [eax]
lea esi, [edx - 0x10]
cmp esi, ebx
je 0x4a3a80
cmp dword [ebx + 0xc], 0
jl 0x4a3a77
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x4a3a77
mov ecx, esi
call fcn.004070e1
mov ecx, ebx
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov dword [edi + 4], eax
jmp 0x4a3a80
push dword [edx - 0xc]
push edx
call fcn.0040d8ae
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004a3ede
xor ecx, ecx
mov dword [ebp - 4], ecx
mov al, byte [edi + 1]
test al, al
je 0x4a3ac2
push ecx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 8], eax
xor ecx, ecx
mov al, byte [edi + 1]
test al, al
jne 0x4a3ad9
push ecx
push ecx
push 3
push ecx
push ecx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
or dword [ebp - 4], 0xffffffff
mov byte [edi], bl
call fcn.0040d148
mov al, bl
call fcn.004db48c
ret 8

Function at 0x4a3dd4
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 4
mov eax, 0x516784
call fcn.004db4c3
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x4a3e0a
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4a3e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4a3e0a
cmp byte [esi + 0x11], 0
je 0x4a3e5c
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
shr ecx, 1
mov word [edx + ecx*2], di
test eax, eax
je 0x4a3e5c
cmp dword [ebp + 0x10], edi
je 0x4a3e5c
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d92c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
and dword [ebp - 4], edi
push eax
call fcn.0040713a
lea ecx, [ebp - 0x10]
call fcn.0040d148
jmp 0x4a3e64
mov ecx, dword [ebp + 8]
call fcn.0040ce82
mov eax, dword [ebp + 8]
call fcn.004db48c
ret 0xc

Function at 0x4a3e6f
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x5026bc
call fcn.004db4c3
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4a3e92
mov ecx, dword [ebp + 8]
call fcn.0040ce82
jmp 0x4a3ec9
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a3eba
mov ecx, dword [ebp + 8]
call fcn.0040ce82
jmp 0x4a3ec9
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004a3dd4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004db48c
ret 0xc
Function at 0x4a41a3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x51a761
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x20], eax
xor edx, edx
push edx
push 0x80
push 3
push edx
push 3
push 0x80000000
push ecx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], 0x533e68
mov dword [ebp - 0x24], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4a42cf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a42cf
cmp edi, dword [ebp + 0x78]
jbe 0x4a42cf
sub edi, dword [ebp + 0x78]
and dword [ebp - 0x1c], 0
push 0x10000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00494ecb
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x4a42be
and dword [ebp - 0x18], 0
lea ecx, [ebp]
and dword [ebp - 0x14], 0
call fcn.004d5f70
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a42a8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a42a8
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x4a428f
mov ecx, edi
mov byte [ebp - 0xd], 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.004d5d70
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
je 0x4a425c
lea ecx, [ebp]
call fcn.004d5e40
push dword [ebp - 0x20]
lea ecx, [ebp]
call fcn.004d5f10
mov byte [ebp - 0xd], al
push esi
mov byte [ebp - 4], 0
call fcn.004db00c
and dword [ebp - 0x1c], 0
pop ecx
jmp 0x4a42d3
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x533e68
test ebx, ebx
je 0x4a42ed
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004da8b4
add ebp, 0x70
leave
ret

Function at 0x4a44d2
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x517de0
call fcn.004db4c3
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040ce82
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
xor esi, esi
mov ecx, edi
push ebx
mov dword [ebp - 4], esi
call fcn.004a4657
test eax, eax
jne 0x4a4505
push 3
pop esi
jmp 0x4a452e
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push 1
push esi
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov eax, esi
call fcn.004db48c
ret 8