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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a249
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004011a0
mov ecx, eax
test ecx, ecx
jne 0x402dfc
push 0x80004005
call fcn.00401520
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00406ee0
push ecx
mov byte [ebp - 4], 2
mov ecx, esi
push dword [eax]
call fcn.00402a40
mov byte [ebp - 4], 1
mov edi, eax
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x402e61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jns 0x402e6b
push edi
call fcn.00401520
lea edx, [ebp - 0x24]
mov ecx, 0x65
call fcn.004072f0
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x20]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402ea0
call fcn.00401770
test eax, eax
jns 0x402ea0
push eax
call fcn.00401520
test edi, edi
je 0x402ead
push edi
call fcn.0040d63d
add esp, 4
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
Function at 0x404830
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402da0
add esp, 4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00402b80
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40488c
call fcn.00401770
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4048a3
push eax
call edi
mov dword [ebp - 0x28], 0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x14]
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4048dd
call fcn.00401770
test eax, eax
jns 0x4048e2
push eax
call fcn.00401520
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov ecx, esi
call fcn.00404160
test ebx, ebx
je 0x4048f0
push ebx
call edi
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40491e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x404945
push eax
call edi
push dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
call ebx
test eax, eax
jne 0x404945
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40495d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x404967
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405940
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov ebx, eax
test ebx, ebx
je 0x4059c6
mov ecx, dword [ebp - 8]
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], ebx
test ecx, ecx
je 0x4059ba
push edi
xor edi, edi
mov eax, dword [ebp - 4]
cmp dword [edi + eax + 8], 0
jne 0x4059ae
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x19
push dword [edi + eax]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x4059ab
mov eax, dword [ebp - 0xc]
push eax
mov bl, byte [eax + 0x10]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
and bl, 1
je 0x4059ce
mov ecx, dword [ebp - 8]
inc esi
add edi, 0xc
cmp esi, ecx
jb 0x405976
mov ebx, dword [ebp - 0x14]
pop edi
push dword [ebp - 4]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
test ebx, ebx
setne al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
lea ecx, [esi + esi*2]
mov ebx, 1
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x4059b9
Function at 0x405b30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a6d1
mov eax, dword fs:[0]
push eax
sub esp, 0xa20
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0xa28], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa2c], 0
mov dword [ebp - 0xa24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 0xa20], 0
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push str.SELECT__Value__FROM__Property__WHERE__Property__s
push eax
mov dword [ebp - 0xa28], 0x400
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xa24]
add esp, 0xc
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x405bd1
push eax
call esi
lea eax, [ebp - 0xa24]
mov dword [ebp - 0xa24], 0
push eax
push 0
push ebx
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
je 0x405bff
jle 0x405bf9
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.00401520
mov eax, dword [ebp - 0xa1c]
test eax, eax
je 0x405c0c
push eax
call esi
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa1c], 0
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa24]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
je 0x405c44
jle 0x405c3e
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.00401520
push 0
push dword [ebp - 0xa1c]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
je 0x405c66
jle 0x405c60
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.00401520
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x405c73
push eax
call esi
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa20], 0
push eax
push dword [ebp - 0xa1c]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
je 0x405ca4
jle 0x405c9e
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.00401520
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa18]
push eax
push 1
push dword [ebp - 0xa20]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
test eax, eax
je 0x405cd4
jle 0x405cce
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.00401520
lea eax, [ebp - 0xa18]
mov ecx, edi
push eax
call fcn.00405080
mov eax, dword [ebp - 0xa20]
test eax, eax
je 0x405cef
push eax
call esi
mov eax, dword [ebp - 0xa1c]
test eax, eax
je 0x405cfc
push eax
call esi
mov ecx, dword [ebp - 0xa24]
test ecx, ecx
je 0x405d09
push ecx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f33
mov esp, ebp
pop ebp
ret
Function at 0x4062b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a7f2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.004011a0
mov ecx, eax
test ecx, ecx
jne 0x406310
push 0x80004005
call fcn.00401520
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40637c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406350
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004054a0
push 0xe
push str.CGA_Installer
mov ecx, esi
call fcn.00405680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f33
mov esp, ebp
pop ebp
ret
Function at 0x406d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a978
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0040b350
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x68], 0x44
add esp, 0xc
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x406dbf
push 0x80070057
call fcn.00401520
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x406ddc
push esi
lea ecx, [ebp + 8]
call fcn.00405430
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x406e36
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406e58
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a9c2
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], 0
call fcn.004011a0
mov ecx, eax
test ecx, ecx
jne 0x406f40
push 0x80004005
call fcn.00401520
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x214], 1
call fcn.0040b350
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f90
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004054a0
push 0x5c
mov ecx, esi
call fcn.00404ee0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f33
mov esp, ebp
pop ebp
ret
Function at 0x406fe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi*2 + 4]
call fcn.00419380
mov ebx, esp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
xorps xmm0, xmm0
mov word [ebx + edi*2 + 2], ax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov eax, 0x414
movq qword [ebp - 0x14], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
push eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f33
mov esp, ebp
pop ebp
ret
Function at 0x407140
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa28
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], 0
call fcn.004011a0
mov ecx, eax
test ecx, ecx
jne 0x4071a2
push 0x80004005
call fcn.00401520
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
call fcn.00406ee0
mov dword [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x407225
cmp dword [edi + 0xc], 0
jl 0x40721a
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40721a
call fcn.004053d0
mov dword [ebp - 0x224], eax
lea ecx, [edi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40720d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
add eax, 0x10
mov dword [esi], eax
jmp 0x407225
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004054a0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407246
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x421764
push dword [esi]
call edi
test eax, eax
je 0x407271
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4072c7
lea ecx, [ebp - 0x21c]
call fcn.00407070
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404ff0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4072aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x421764
push dword [esi]
call edi
test eax, eax
jne 0x407262
mov ecx, esi
call fcn.00405140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f33
mov esp, ebp
pop ebp
ret
Function at 0x4072f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, cx
push ebx
push esi
push edi
push 0xa
push eax
push 0
mov esi, edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4073b9
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4073be
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4073c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4073c8
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], eax
jbe 0x4073b2
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x407397
mov edx, dword [esi]
cmp ebx, edx
jb 0x40736d
lea eax, [edx + ecx]
cmp ebx, eax
jb 0x4073cd
mov eax, dword [ebp - 4]
test ecx, ecx
jne 0x407376
lea edi, [ecx + 1]
jmp 0x407382
add edi, edi
js 0x4073a8
cmp edi, 0x7fffffff
ja 0x4073a8
push 1
push edi
push edx
call fcn.0040ec26
add esp, 0xc
test eax, eax
je 0x4073a5
mov dword [esi + 8], edi
mov dword [esi], eax
mov ecx, dword [esi]
add ecx, dword [esi + 4]
je 0x4073a2
mov al, byte [ebx]
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [ebp - 4]
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 8]
jb 0x407353
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401540
call fcn.00401540
call fcn.00401540
call fcn.00401540
push 0x80004005
call fcn.00401520
int3

Function at 0x4075e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aad0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40764a
call fcn.00401770
mov ebx, eax
test ebx, ebx
js 0x40767f
jmp 0x40764f
mov esi, eax
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x20]
mov ecx, 0x67
call fcn.004072f0
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40767d
call fcn.00401770
mov ebx, eax
jmp 0x40767f
xor ebx, ebx
shr ebx, 0x1f
xor bl, 1
test edi, edi
je 0x407692
push edi
call fcn.0040d63d
add esp, 4
test esi, esi
je 0x40769d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407bb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x42500c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x228
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x22c
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.0040b350
add esp, 0xc
mov dword [esi + 8], 2
xorps xmm0, xmm0
movsd qword [esi], xmm0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x407cc1
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x407c49
nop
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x407c49
push str.smss.exe
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete bl
test bl, bl
je 0x407c20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x407cc1
push dword [esp + 0x40]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407cc1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x407cba
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
push eax
movsd qword [esp + 0x10], xmm0
call fcn.004077a0
movq xmm0, qword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movq qword [esi], xmm0
mov dword [esi + 8], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408f33
mov esp, ebp
pop ebp
ret
Function at 0x4084b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ac20
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.00407ce0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x408517
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x421830
xor esi, esi
push 0x420a48
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x408555
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x408555
cmp dword [ebp - 0x10], esi
mov eax, 0x100
cmovne esi, eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
or esi, 0x20006
push esi
push 0
push 0x4217e4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x40860b
mov edi, dword [ebp - 0x14]
and esi, 0x300
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
test ebx, ebx
jne 0x40860b
sub esp, 8
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004078b0
mov byte [ebp - 4], 1
mov edx, dword [eax]
test edx, edx
jne 0x4085b9
push 0x80004005
call fcn.00401520
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4085c0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.LastBootupTime
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
mov ebx, eax
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x408609
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
sete bl
test edi, edi
je 0x408619
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret