joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fd4f
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x508d64
call fcn.004cc2a7
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], ebx
je 0x48fd77
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x48fd99
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x48fe4c
mov esi, ebx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48fdec
call ebx
cmp eax, 0x7a
jne 0x48fe39
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00489bf4
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x48fe39
cmp dword [ebp - 0x1c], 0
je 0x48fe39
xor ecx, ecx
mov word [ebp - 0x14], 0x500
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x48fe3b
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x48fe3d
call ebx
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004cbcfc
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x48fe63
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004cc251
ret

Function at 0x48fe6b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x48fed1
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x48fec5
cmp dword [ebp - 0x218], ebx
je 0x48fecb
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x48feaf
jmp 0x48fed1
mov esi, dword [ebp - 0x228]
test edi, edi
je 0x48fedc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb6da
mov esp, ebp
pop ebp
ret
Function at 0x49016c
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x508dff
call fcn.004cc273
mov edi, edx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4901e0
cmp eax, 0x400
jae 0x49025e
mov byte [ebp + eax], 0
mov ecx, edi
lea eax, [ebp]
push eax
call fcn.00475e50
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4901c3
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x490228
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00447ac6
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00446083
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49023b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.004cbef6
int3

Function at 0x490540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x56f5e0
call fcn.0044d90b
cmp byte [0x56f5e8], 0
je 0x490567
push dword [0x56f5e0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x490597
cmp dword [0x56f5e0], 0
je 0x490597
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x56f5dc
push 0x4905b9
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x56f5ec
call fcn.00425081
pop ebp
ret 4

Function at 0x490698
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x508e58
call fcn.004cc273
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 - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x4906e3
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 0x4906ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4906ef
mov edi, ebx
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x490701
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
mov eax, edi
call fcn.004cc23c
ret 4
Function at 0x49070b
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x508e83
call fcn.004cc273
mov ebx, ecx
lea ecx, [ebp - 0x14]
call fcn.00406bcb
and dword [ebp - 4], 0
xor ecx, ecx
push 2
mov edi, 0x100
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbc0c
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 0x4907b9
push esi
add edi, edi
mov byte [ebp - 4], 0
call fcn.004cbcfc
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.004cbc0c
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 0x490769
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00409a14
push esi
mov byte [ebp - 4], 0
call fcn.004cbcfc
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004068bc
call fcn.004cc23c
ret 0xc

Function at 0x4907e5
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x508eae
call fcn.004cc273
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor ecx, ecx
mov esi, 0x100
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbc0c
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 0x490878
or dword [ebp - 4], 0xffffffff
add esi, esi
push edi
call fcn.004cbcfc
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.004cbc0c
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 0x490830
mov ecx, dword [ebp + 8]
call fcn.00454743
lea ecx, [ebp - 0x10]
call fcn.00406bcb
mov byte [ebp - 4], 1
xor esi, esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x4908a2
push eax
lea ecx, [ebp - 0x10]
call fcn.004719e0
jmp 0x4908bf
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4908b7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004717c0
lea ecx, [ebp - 0x10]
call fcn.00409920
inc esi
cmp esi, ebx
jbe 0x49088e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004cbcfc
and dword [ebp - 0x14], 0
pop ecx
call fcn.004cc23c
ret 4
Function at 0x490a1f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508f3a
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x569078]
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], 0x531730
cmp dword [eax - 0xc], 0
je 0x490a5b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x34]
call fcn.004068bc
lea ecx, [esi + 0x30]
call fcn.004068bc
lea ecx, [esi + 0x28]
call fcn.004068bc
lea ecx, [esi + 0x24]
call fcn.004068bc
lea ecx, [esi + 0x20]
call fcn.004068bc
lea ecx, [esi + 8]
call fcn.004068bc
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
mov dword [esi], 0x521f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x490b86
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x508fb6
call fcn.004cc273
mov esi, ecx
push 0x531424
lea ecx, [ebp - 0x10]
call fcn.00409a3c
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.00474150
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
lea ebx, [esi + 8]
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.0048cdd0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x490c0c
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 0x490caf
push 0x569f80
push esi
lea ecx, [ebp]
call fcn.00497758
push edi
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00497d44
mov ecx, dword [esi + 4]
mov edi, eax
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x490c38
xor bl, bl
jmp 0x490ca3
test edi, edi
je 0x490ca0
cmp byte [0x56f62c], 0
je 0x490c9e
push ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00471300
pop ecx
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406bcb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov esi, dword [esi]
push str.Downloading_of_updates_failed._Error:
call fcn.0040706a
push esi
lea ecx, [ebp - 0x10]
call fcn.0048ada7
push eax
mov ecx, 0x56f5fc
call fcn.0049190a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004068bc
test edi, edi
sete bl
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00490ce0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068bc
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.004cb6da
lea esp, [ebp + 0xa0]
pop ebp
ret
Function at 0x491a31
Capabilities:
Write file on windows

Disassembly:
push 0x214
mov eax, 0x50925c
call fcn.004cc2a7
mov ebx, ecx
lea esi, [ebx + 0x28]
cmp dword [esi], 0
jne 0x491ba8
lea edi, [ebx + 0x20]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x491ad6
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, eax
cmp eax, 0x208
jae 0x491b27
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
call fcn.004d163d
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004099a1
push 0x2e
push dword [edi]
call fcn.004cf115
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x491ab6
or ecx, 0xffffffff
jmp 0x491aba
sub ecx, dword [edi]
sar ecx, 1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
mov ecx, edi
call fcn.0046a060
push str..log
mov ecx, edi
call fcn.0040706a
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.00425081
cmp dword [esi], 0xffffffff
je 0x491b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x491b2c
cmp dword [esi], 0
je 0x491ba8
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x491b67
call fcn.004cbef6
test eax, eax
jne 0x491b9f
cmp dword [esi], eax
je 0x491b9f
push 2
pop ecx
push eax
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]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esi], 0
je 0x491ba8
lea eax, [ebx + 0x24]
mov ecx, ebx
push eax
call fcn.00491bae
lea ecx, [ebp - 0x21c]
call fcn.00491bdd
and dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.00491bae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004068bc
jmp 0x491ba8
push 0
mov ecx, esi
call fcn.00425081
call fcn.004cc251
ret

Function at 0x491bae
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 + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4
Function at 0x492618
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x509431
call fcn.004cc273
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x9c], 0x531934
mov dword [ebp + 0xa0], str.http:__www.yahoo.com
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.00406bcb
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
mov dword [ebp - 4], ebx
call fcn.00409a3c
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00474150
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004068bc
push esi
push edi
lea ecx, [ebp]
call fcn.00497758
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp + 0x78], ebx
push dword [ebp + edi*4 + 0x9c]
lea ecx, [ebp - 0x10]
call fcn.00409a3c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00497d44
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.004068bc
test esi, esi
je 0x4926e2
inc edi
cmp edi, 3
jl 0x4926a5
jmp 0x4926e4
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.00490ce0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068bc
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 + 0xa8]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0xac]
pop ebp
ret
Function at 0x492a61
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x10
mov eax, 0x509510
call fcn.004cc273
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 0x492ab5
xor al, al
jmp 0x492bbf
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x492ac8
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 0x492af6
cmp dword [ebp - 0x18], 0xc8
jbe 0x492bb1
lea ecx, [ebp - 0x10]
call fcn.00406bcb
mov ebx, dword [ebp - 0x1c]
and dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x492b52
push 0
mov ecx, esi
call fcn.0046a1e0
push 0x22
pop ecx
cmp ax, cx
je 0x492b52
push 0
push 0x20
mov ecx, esi
call fcn.00452be1
cmp eax, 0xffffffff
je 0x492b52
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004719e0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00407092
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004719e0
jmp 0x492b5b
push esi
lea ecx, [ebp - 0x10]
call fcn.00446083
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x492b7d
push 0
mov ecx, ebx
call fcn.0046a1e0
push 0x20
pop ecx
cmp ax, cx
je 0x492b7d
push ecx
lea ecx, [ebp - 0x10]
call fcn.004719e0
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00407092
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.004068bc
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.004cb6da
lea esp, [ebp + 0x194]
pop ebp
ret
Function at 0x492cab
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 edi, edi
mov esi, ecx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x492cd9
xor al, al
jmp 0x492d2f
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x492cec
lea esi, [esi + eax*2]
add esi, 0xffffff62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x492d15
cmp edi, 0xea
jne 0x492d21
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x492da3
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x5095af
call fcn.004cc273
mov edi, ecx
cmp dword [edi], 0
jne 0x492dbd
xor al, al
jmp 0x492e7a
lea ecx, [ebp - 0x18]
call fcn.00406bcb
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.00407a35
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 0x492df7
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 0x492e5d
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x492e5d
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x492e2c
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 0x492e4e
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.00492f78
mov bl, al
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x492e5d
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x492e6c
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004068bc
mov al, bl
call fcn.004cc23c
ret 8
Function at 0x4932ce
Capabilities:
Create pipe

Disassembly:
push 0
mov eax, 0x505c7b
call fcn.004cc273
mov esi, ecx
cmp byte [esi], 0
je 0x4932e5
mov al, 1
jmp 0x493363
mov al, byte [ebp + 8]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
mov byte [esi], 1
mov byte [esi + 1], al
call fcn.00446083
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0049372a
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [esi + 1], 0
je 0x493337
push edi
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]
cmp byte [esi + 1], 0
mov dword [esi + 8], eax
jne 0x49334e
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
or dword [ebp - 4], 0xffffffff
call fcn.004068bc
mov al, bl
call fcn.004cc23c
ret 8

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

Disassembly:
push 0xc
mov eax, 0x506bf9
call fcn.004cc273
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0x10], bl
jne 0x493657
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x493657
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
add eax, 1
jne 0x493657
cmp byte [esi + 0x11], bl
je 0x4936a8
push ebx
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 0x4936a8
cmp dword [ebp + 0x10], ebx
je 0x4936a8
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00409a3c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.00407175
lea ecx, [ebp - 0x10]
call fcn.004068bc
jmp 0x4936b0
mov ecx, dword [ebp + 8]
call fcn.00406bcb
mov eax, dword [ebp + 8]
call fcn.004cc23c
ret 0xc

Function at 0x4936bb
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4fdea2
call fcn.004cc273
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4936de
mov ecx, dword [ebp + 8]
call fcn.00406bcb
jmp 0x493715
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 0x493706
mov ecx, dword [ebp + 8]
call fcn.00406bcb
jmp 0x493715
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00493618
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004cc23c
ret 0xc