joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40607f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a3f90
push esi
call fcn.004066a8
push esi
call fcn.00406022
mov edi, eax
test edi, edi
jne 0x4060a0
xor eax, eax
jmp 0x4060f8
push edi
call fcn.00406956
test byte [0x7a82b8], 0x80
je 0x4060bd
mov ax, word [edi]
test ax, ax
je 0x40609c
cmp ax, 0x5c
je 0x40609c
sub edi, esi
sar edi, 1
jmp 0x4060d7
call fcn.00406a05
test eax, eax
je 0x4060d1
test byte [eax], 0x10
je 0x40609c
push esi
call fcn.00405fc3
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060c3
call fcn.00405f77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406173
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406192
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406198
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4061c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406217
test edi, edi
jne 0x4061d4
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406211
Function at 0x4062ee
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a4e28], 0x55004e
mov dword [0x7a4e2c], 0x4c
mov edi, 0x400
mov ebp, 0x7a4e28
je 0x406344
push 1
push 0
push esi
call fcn.00406198
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406463
cmp eax, edi
jg 0x406463
mov esi, 0x7a5628
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406463
cmp eax, edi
jg 0x406463
push esi
push ebp
push str._ls_ls_r_n
push 0x7a4a28
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a82b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066e5
push 4
push 0xc0000000
push esi
call fcn.00406198
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406463
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40645c
push edi
push esi
push ebp
call fcn.0040621b
test eax, eax
je 0x40645c
push str._Rename__r_n
push esi
call fcn.004060fd
test eax, eax
jne 0x4063fa
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40642f
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060fd
mov ebp, eax
test ebp, ebp
je 0x40642b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40641c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406416
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406431
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a4a28
push eax
call fcn.00406153
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040624a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406468
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40648b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062ee
pop ecx
pop ecx
inc dword [0x7a8330]
ret 8
Function at 0x406576
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406515
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065e6
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4065e6
cmp dword [ebp + 0xc], 1
je 0x4065ea
cmp dword [ebp + 0xc], 2
je 0x4065ea
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406a2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a50
xor eax, eax
test eax, eax
je 0x406a63
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a63
xor ecx, ecx
jmp 0x406a66
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b89
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5e2c], 0
push esi
jne 0x406bc0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b9a
mov dword [ecx*4 + 0x7a5e28], eax
inc ecx
cmp ecx, 0x100
jl 0x406b95
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bf1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5e28]
xor eax, esi
inc ecx
dec edx
jne 0x406bd3
pop edi
not eax
pop esi
ret 0xc
Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403150
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403166
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x403181
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x238d6402
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x591131e8
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x4e3211
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [fcn.0040302c]
test eax, eax
je 0x4e3250
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e3250
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e3250
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e3250
cmp dword [ecx + 0x74], 0xe
jbe 0x4e3250
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402800
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x128]
mov dword [ebp - 8], 0
call fcn.00405e60
mov edi, dword [0x46ec84]
test byte [edi], 1
je 0x40286f
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
nop dword [eax]
test eax, eax
je 0x402851
lock dec dword [esi + 8]
add eax, 8
mov byte [eax + 2], 2
jmp 0x402883
mov eax, dword [esi + 0x10]
add eax, 8
push eax
push 4
push dword [0x46eca4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
add eax, 8
mov byte [eax + 2], 2
jmp 0x402883
push 0x78
push 4
push dword [0x46eca4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov byte [eax + 2], 0
lock inc dword ds:[edi + 4]
push 0x70
mov dword [eax + 4], 1
lea esi, [eax + 8]
movzx ecx, byte [edi + 2]
push 0
push esi
mov word [eax], cx
call fcn.00422df0
mov eax, dword fs:[0x18]
add esp, 0xc
mov eax, dword [eax + 0x30]
push esi
sub esp, 0xc
mov ecx, dword [eax + 0x10]
movzx eax, word [ecx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x44]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
call fcn.00412780
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4028d9
cmp dword [eax], 0
jne 0x4028e1
call fcn.00403e20
mov dword [esi + 0x18], eax
cmp dword [esi + 0x14], 1
jne 0x4028fd
push esi
call fcn.00403120
test eax, eax
js 0x4029ea
lfence
jmp 0x4029e3
test byte [esi + 0x10], 2
je 0x40297c
push 0x5c
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x60
push 0
push eax
call fcn.00422df0
mov eax, dword [0x46eca0]
add esp, 0xc
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x17c], 8
mov dword [ebp - 0x178], 1
push 0
push 0
push eax
lea eax, [ebp - 0x188]
mov dword [ebp - 0x170], 0xfffd
push eax
mov dword [ebp - 0x16c], str.Hey_there__before_we_continue...
mov dword [ebp - 0x168], str.__Process_Hacker_was_renamed_System_Informer._n__Process_Hacker_does_not_support_Windows_10_or_11._n__Process_Hacker_will_not_be_updated._n__Process_Hacker_will_not_be_uninstalled._n_nThis_update_will_now_install_System_Informer._n_nPlease_remember_to_uninstall_Process_Hacker._Thanks__3
mov dword [ebp - 0x12c], 0xc8
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
push 0x60
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.00422df0
mov eax, dword [0x46ec9c]
add esp, 0xc
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x1e8], 0x60
mov dword [ebp - 0x1dc], 0x8008
push eax
push 0
push 0
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x1c8], str.Initializing...
push eax
mov dword [ebp - 0x194], 0x4025e0
mov dword [ebp - 0x190], esi
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
cmp dword [ebp - 8], 0
je 0x4029ea
mov ecx, esi
call fcn.00404ba0
lea ecx, [ebp - 0x128]
call fcn.00405f40
mov ecx, dword ds:[ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421141
mov esp, ebp
pop ebp
ret
Function at 0x402fe0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 8]
push esi
call fcn.0040e320
nop dword [eax]
test eax, eax
js 0x4030ee
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4030ee
mov eax, dword fs:[0x18]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 1
mov edx, 2
mov dword [esp + 0x40], 0x1c
mov dword [esp + 0x44], str.SiSetupMutant_
mov eax, dword [eax + 0x20]
push 0x10
mov dword [esp + 0x4c], 8
mov dword [esp + 0x5c], eax
call fcn.00407960
mov esi, eax
movzx ecx, word [esi]
mov word [esp + 0x28], cx
movzx ecx, word [esi]
add cx, 2
mov word [esp + 0x2a], cx
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], 0x18
call fcn.00412a60
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 1
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x40
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ntdll.dll_NtCreateMutant]
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4030d0
call fcn.00405dc0
call fcn.004137a0
call fcn.00402800
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00421141
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x64]
mov eax, 1
pop esi
xor ecx, esp
call fcn.00421141
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0xc
mov esi, ecx
push 0x46dab8
push ecx
lea ecx, [ebp - 0x10]
call fcn.004102a0
mov edi, eax
test edi, edi
js 0x403df1
mov ecx, dword [esi + 0x18]
mov edx, str._systeminformer.exe_0
call fcn.00405240
mov dword ds:[ebp - 0x18], 0x180016
mov dword [ebp - 0x14], str.DisplayIcon
mov ecx, dword [eax]
add ecx, 2
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x18]
push 1
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 0x20
push str.System_Informer
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x180016
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], str.DisplayName
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 8
push 0x465ff0
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x1e001c
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], str.DisplayVersion
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 0x4e
push str.https:__systeminformer.sourceforge.io_
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x120010
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], str.HelpLink
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov ecx, dword [esi + 0x18]
mov edx, 0x46542c
call fcn.00405240
mov dword [ebp - 0x18], 0x20001e
mov dword [ebp - 0x14], str.InstallLocation
mov ecx, dword [eax]
add ecx, 2
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x18]
push 1
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 0x20
push str.System_Informer
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x140012
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], str.Publisher
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov ecx, dword ds:[esi + 0x18]
mov edx, str._systeminformer_setup.exe
call fcn.00405240
mov ebx, eax
test ebx, ebx
je 0x403d52
push dword [ebx + 4]
push str.__s___uninstall
call fcn.00406ed0
mov esi, eax
lea ecx, [ebx - 8]
add esp, 8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x403d63
call fcn.00405dc0
jmp 0x403d63
push 0
push str.__s___uninstall
call fcn.00406ed0
add esp, 8
mov esi, eax
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], 0x20001e
push ecx
push dword [esi + 4]
mov dword [ebp - 0x14], str.UninstallString
push 1
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x120010
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], str.NoModify
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 4
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x120010
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], str.NoRepair
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421141
mov esp, ebp
pop ebp
ret
Function at 0x403e20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00404fa0
mov edi, eax
test edi, edi
je 0x403e42
cmp dword [edi], 0
jne 0x403eb5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word ds:[ebp - 0x28], 9
mov eax, 0x46dcdc
mov ecx, 0x46dcd4
cmovne ecx, eax
call fcn.00411780
mov edi, eax
test edi, edi
je 0x403e70
cmp dword [edi], 0
jne 0x403eb5
mov ecx, str.C:Program_FilesSystemInformer_
call fcn.00406640
mov edx, dword [0x46ec98]
mov esi, eax
add esi, esi
lea ecx, [esi + 0xa]
call fcn.00405ce0
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
push esi
push str.C:Program_FilesSystemInformer_
mov dword [edi + 4], ecx
mov dword [edi], esi
mov word [ecx + esi], ax
push dword [edi + 4]
call fcn.00422f50
add esp, 0xc
test edi, edi
je 0x403f3a
mov ecx, dword [edi]
test ecx, ecx
je 0x403f3a
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0x465468
cmp ecx, 2
jb 0x403ef1
mov eax, dword [edi + 4]
lea edx, [ebp - 0x38]
add ecx, 0xfffffffe
mov dword [ebp - 0x30], 2
add eax, ecx
lea ecx, [ebp - 0x30]
push 1
mov dword [ebp - 0x2c], eax
call fcn.00406740
test al, al
jne 0x403f3a
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 2
mov ecx, edi
mov dword [ebp - 0x2c], 0x465468
call fcn.00406d20
mov esi, eax
test esi, esi
je 0x403f13
lock inc dword [esi - 4]
lea ecx, ds:[edi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x403f28
call fcn.00405dc0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421141
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00421141
mov esp, ebp
pop ebp
ret
Function at 0x404200
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov dword [ebp - 0x50], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40422e
cmp dword [eax], 0
je 0x40422e
mov eax, dword [eax + 4]
jmp 0x404233
mov eax, str.KSystemInformer
push eax
mov edx, 0x24
lea ecx, [ebp - 0x48]
call fcn.00414c00
test eax, eax
js 0x404326
mov esi, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414ca0
nop word [eax + eax]
test eax, eax
js 0x40431b
cmp dword [ebp - 0x24], 1
je 0x40431b
mov edi, 0x3c
lea eax, ds:[ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404299
cmp dword [0x46dac0], 0xffffffff
jb 0x404299
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, ds:[ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4042f3
cmp dword [0x46dac0], 0xffffffff
jae 0x4042e2
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x48]
mov eax, dword [eax + 0x34]
jmp 0x4042e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414640
test eax, eax
js 0x4042f9
cmp dword [ebp - 0x24], 1
je 0x404318
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0xff676980
mov dword [ebp - 0x54], 0xffffffff
call fcn.00412d20
sub edi, 1
jne 0x404277
mov edi, dword [ebp - 0x50]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x404337
cmp dword [eax], 0
je 0x404337
mov eax, dword [eax + 4]
jmp 0x40433c
mov eax, str.KSystemInformer
push eax
mov edx, 0x10000
lea ecx, [ebp - 0x48]
call fcn.00414c00
test eax, eax
js 0x4043b2
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4043ab
cmp dword [0x46dac0], 0xffffffff
jae 0x404373
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x48]
mov eax, dword [eax + 0x34]
jmp 0x404379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414640
mov ecx, eax
test ecx, ecx
jns 0x4043ab
and eax, 0xfff0000
xor bl, bl
cmp eax, 0x70000
jne 0x40439e
movzx eax, cx
jmp 0x4043a8
push ecx
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
mov dword [edi + 0x28], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword ds:[ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421141
mov esp, ebp
pop ebp
ret
Function at 0x4043e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0xc
mov esi, ecx
push 0x46daa8
push ecx
lea ecx, [ebp - 8]
call fcn.004102a0
test eax, eax
js 0x40445a
mov ecx, dword [esi + 0x18]
mov edx, str.SystemInformer.exe
call fcn.00405240
mov esi, eax
test esi, esi
je 0x404451
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
add ecx, 2
xorps xmm0, xmm0
push ecx
push dword [esi + 4]
movlpd qword [ebp - 0x10], xmm0
push 1
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x404451
call fcn.00405dc0
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421141
mov esp, ebp
pop ebp
ret