joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0794
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x51a1f4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x214]
mov ebx, 0x104
mov esi, dword [ebp + 0x21c]
mov edi, dword [ebp + 0x218]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4a08d5
mov edx, dword [edi]
xor ecx, ecx
inc ecx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x4a0818
push ebx
mov ecx, edi
call fcn.0040d70c
mov edx, dword [edi]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
push edx
push ebx
push dword [eax]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4a08d5
push 0xffffffffffffffff
mov ecx, edi
call fcn.00410c99
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2e
push dword [edi]
call fcn.004dee27
pop ecx
pop ecx
test eax, eax
je 0x4a08bb
sub eax, dword [edi]
sar eax, 1
js 0x4a08bb
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406d83
mov dword [ebp - 4], ebx
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x14], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x4a08af
cmp dword [ecx + 0xc], ebx
jl 0x4a08a4
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4a08a4
mov ecx, dword [ebp - 0x10]
call fcn.004070e1
mov ecx, dword [ebp - 0x14]
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [edi], eax
jmp 0x4a08af
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0040d8ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040d148
test esi, esi
je 0x4a08c8
push esi
call fcn.004e0c26
pop ecx
mov ebx, eax
push ebx
push esi
mov ecx, edi
call fcn.00410f3f
mov al, 1
jmp 0x4a08d7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x20c
leave
ret 0xc
Function at 0x4a08fc
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x51a224
call fcn.004db733
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 0x4a093c
or esi, eax
jmp 0x4a097a
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 0x4a097a
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 0x4a097a
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x533e68
test esi, esi
je 0x4a0994
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov al, bl
call fcn.004db6fc
ret 8

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

Disassembly:
push 0x10
mov eax, 0x51a24f
call fcn.004db733
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 0x4a0a57
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4a0a55
xor esi, esi
mov dword [ebp + 8], esi
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004950b5
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 0x4a0a44
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.004d5ed0
cmp eax, 4
jne 0x4a0a30
lea eax, [ebx - 2]
shr eax, 1
push eax
lea eax, [esi + 2]
push eax
jmp 0x4a0a39
cmp eax, 5
jne 0x4a0a44
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.004db27c
pop ecx
mov dword [ebp + 8], ebx
jmp 0x4a0a57
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e68
test edi, edi
je 0x4a0a70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
call fcn.004db6fc
ret 4
Function at 0x4a0a78
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x51a224
call fcn.004db733
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 0x4a0abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or esi, esi
jmp 0x4a0adf
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 0x4a0add
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4a0adf
mov edi, ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x533e68
test esi, esi
je 0x4a0af8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
mov eax, edi
call fcn.004db6fc
ret 4

Function at 0x4a0b02
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x51a27a
call fcn.004db733
mov ebx, ecx
lea ecx, [ebp - 0x14]
call fcn.0040ce82
and dword [ebp - 4], 0
mov edi, 0x100
push 0x200
call fcn.004db281
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 0x4a0ba4
push esi
add edi, edi
mov byte [ebp - 4], 0
call fcn.004db27c
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.004db281
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 0x4a0b54
test esi, esi
jne 0x4a0bac
xor eax, eax
jmp 0x4a0bb3
push esi
call fcn.004e0c26
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0040d8ae
push esi
mov byte [ebp - 4], 0
call fcn.004db27c
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0040d148
call fcn.004db6fc
ret 0xc
Function at 0x4a0be0
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x51a2a5
call fcn.004db733
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.004db281
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 0x4a0c67
or dword [ebp - 4], 0xffffffff
add esi, esi
push edi
call fcn.004db27c
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.004db281
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 0x4a0c1f
mov ecx, dword [ebp + 8]
call fcn.004571eb
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 0x4a0c91
push eax
lea ecx, [ebp - 0x10]
call fcn.00476ce0
jmp 0x4a0cae
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4a0ca6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00470350
lea ecx, [ebp - 0x10]
call fcn.0040d610
inc esi
cmp esi, ebx
jbe 0x4a0c7d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004db27c
and dword [ebp - 0x14], 0
pop ecx
call fcn.004db6fc
ret 4

Function at 0x4a0dcd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51757c
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], 0x5448f0
cmp dword [eax - 0xc], 0
je 0x4a0e09
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 0x4a0f31
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x51a378
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 0x5445dc
lea ecx, [ebp - 0x10]
call fcn.0040d92c
and dword [ebp - 4], 0
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x10]
call fcn.00479930
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.00498fd5
mov dword [ebp - 4], 1
lea edi, [esi + 0x20]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a0fcd
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 0x4a108b
push 0x57ce30
push esi
lea ecx, [ebp]
call fcn.0049d6eb
push edi
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0049dddc
mov ecx, dword [esi + 4]
mov edi, eax
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x4a0ffc
xor bl, bl
jmp 0x4a107f
test edi, edi
je 0x4a107c
cmp byte [0x57f574], 0
je 0x4a107a
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004767a0
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.004e0c26
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.00410f3f
test esi, esi
je 0x4a1054
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 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.0048d087
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.004dab24
add ebp, 0xa0
leave
ret
Function at 0x4a1ff6
Capabilities:
Write file on windows

Disassembly:
push 0x214
mov eax, 0x51a5f9
call fcn.004db767
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x4a217d
lea edi, [esi + 0x24]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x4a20ae
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4a2057
add eax, eax
cmp eax, 0x208
jae 0x4a2183
xor ecx, ecx
lea ebx, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
jmp 0x4a205c
mov ebx, str.Logger
push ebx
call fcn.004e0c26
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.0040d8ae
push 0x2e
push dword [edi]
call fcn.004dee27
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4a2095
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x4a2095
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
mov ecx, edi
call fcn.00473ae0
mov ebx, str..log
push ebx
call fcn.004e0c26
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 0x4a2174
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a20fe
cmp dword [esi + 0x30], 0
je 0x4a217d
push 2
push ebx
push ebx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4a213c
test eax, eax
jne 0x4a2174
cmp dword [esi + 0x30], eax
je 0x4a2174
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 0x4a217d
lea eax, [esi + 0x28]
mov ecx, esi
push eax
call fcn.004a2189
lea ecx, [ebp - 0x21c]
call fcn.004a21b8
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004a2189
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d148
jmp 0x4a217d
push ebx
lea ecx, [esi + 0x2c]
call fcn.0040e086
call fcn.004db711
ret
call fcn.004db3ad
int3

Function at 0x4a2189
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 0x4a331f
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 0x51a850
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 0x4a3388
xor al, al
jmp 0x4a34cb
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x4a339b
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 0x4a33c9
cmp dword [ebp - 0x18], 0xc8
jbe 0x4a34bd
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 0x4a3427
push 0
mov ecx, esi
call fcn.00473c50
push 0x22
pop ecx
cmp ax, cx
je 0x4a3427
push 0
push ebx
mov ecx, esi
call fcn.00476c60
cmp eax, 0xffffffff
je 0x4a3427
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00476ce0
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.00476ce0
jmp 0x4a3467
mov edx, dword [esi]
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4a3464
cmp dword [ebx + 0xc], 0
jl 0x4a3458
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4a3458
call fcn.004070e1
mov ecx, ebx
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4a3464
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 0x4a3489
push 0
mov ecx, esi
call fcn.00473c50
cmp ax, bx
je 0x4a3489
push ebx
lea ecx, [ebp - 0x10]
call fcn.00476ce0
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.004dab24
add ebp, 0x194
leave
ret
Function at 0x4a35c0
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 0x4a35ee
xor al, al
jmp 0x4a3644
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x4a3601
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 0x4a362a
cmp esi, 0xea
jne 0x4a3636
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 0x4a36b6
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x51a8ef
call fcn.004db733
mov edi, ecx
cmp dword [edi], 0
jne 0x4a36d0
xor al, al
jmp 0x4a378d
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 0x4a370a
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 0x4a3770
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4a3770
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x4a373f
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 0x4a3761
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.004a38c0
mov bl, al
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x4a3770
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x4a377f
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d148
mov al, bl
call fcn.004db6fc
ret 8
Function at 0x4a3c0a
Capabilities:
Create pipe

Disassembly:
push 4
mov eax, 0x517679
call fcn.004db733
mov edi, ecx
cmp byte [edi], 0
je 0x4a3c24
mov al, 1
jmp 0x4a3cdb
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 0x4a3c6b
cmp dword [ebx + 0xc], 0
jl 0x4a3c62
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x4a3c62
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 0x4a3c6b
push dword [edx - 0xc]
push edx
call fcn.0040d8ae
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004a40c9
xor ecx, ecx
mov dword [ebp - 4], ecx
mov al, byte [edi + 1]
test al, al
je 0x4a3cad
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 0x4a3cc4
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.004db6fc
ret 8

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

Disassembly:
push 4
mov eax, 0x516a24
call fcn.004db733
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x4a3ff5
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4a3ff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4a3ff5
cmp byte [esi + 0x11], 0
je 0x4a4047
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 0x4a4047
cmp dword [ebp + 0x10], edi
je 0x4a4047
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 0x4a404f
mov ecx, dword [ebp + 8]
call fcn.0040ce82
mov eax, dword [ebp + 8]
call fcn.004db6fc
ret 0xc

Function at 0x4a405a
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x50291c
call fcn.004db733
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4a407d
mov ecx, dword [ebp + 8]
call fcn.0040ce82
jmp 0x4a40b4
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 0x4a40a5
mov ecx, dword [ebp + 8]
call fcn.0040ce82
jmp 0x4a40b4
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004a3fbf
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004db6fc
ret 0xc