joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d24
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d45
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d5f
inc edi
cmp edi, 0x3330601
jl 0x401d30
cmp dword [0x2079874], 0x400
jne 0x401d93
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call fcn.00404491
push esi
push esi
call fcn.00404958
push esi
call fcn.004049ca
add esp, 0x10
xor edi, edi
cmp edi, 0x16c76
jge 0x401da5
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401dcb
inc edi
cmp edi, 0x3003f
jl 0x401d95
mov eax, dword [0x42c894]
mov dword [0x2079874], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x2079874], 0x51f
jne 0x401df7
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401ddf
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x402965
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4250bd
call fcn.00424f40
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00403722
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004049d9
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029ad
call fcn.004034d6
mov dword [ebx], eax
call fcn.00403295
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029af
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405524
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b354]
jne 0x40552e
repz ret
jmp fcn.0040a7fc
Function at 0x40f01e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408f46
and dword [ebp - 0x14], 0
cmp dword [0x437a68], 0
mov dword [ebp - 0x18], eax
jne 0x40f0d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f179
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f179
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x437a68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x437a6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x437a70], eax
call edi
push eax
call esi
mov dword [0x437a78], eax
test eax, eax
je 0x40f0d1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x437a74], eax
mov eax, dword [0x437a74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f12a
cmp dword [0x437a78], ecx
je 0x40f12a
push eax
call esi
push dword [0x437a78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f12a
test ebx, ebx
je 0x40f12a
call edi
test eax, eax
je 0x40f121
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f121
test byte [ebp - 8], 1
jne 0x40f12a
or dword [ebp + 0x10], 0x200000
jmp 0x40f15d
mov eax, dword [0x437a6c]
cmp eax, dword [ebp - 0x18]
je 0x40f15d
push eax
call esi
test eax, eax
je 0x40f15d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f15d
mov eax, dword [0x437a70]
cmp eax, dword [ebp - 0x18]
je 0x40f15d
push eax
call esi
test eax, eax
je 0x40f15d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437a68]
call esi
test eax, eax
je 0x40f179
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f17b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405524
leave
ret

Function at 0x408920
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
inc edi
sub edi, edi
call fcn.0040894b
push 0xb1a63d00
pop edi
and eax, eax
xor dword [esi], ecx
inc esi
sub edi, 0x2d8a0ea3
cmp esi, ebx
jne fcn.00408920
sub edi, 0xccff9ad9
sub edi, eax
ret
Function at 0x401000
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x180], edx
mov edx, dword [0x46bce8]
push esi
push edi
mov esi, dword [ebx]
add esi, 8
lea ecx, [esi + 0xa]
call fcn.00405c60
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov word [ecx + esi], ax
push dword [ebx]
push dword [ebx + 4]
push dword [edi + 4]
call fcn.00421ff0
mov ecx, dword [edi + 4]
add esp, 0xc
mov eax, dword [ebx]
mov edx, dword [str._old]
mov esi, dword [0x4630d8]
mov dword [ecx + eax], edx
lea edx, [ebp - 0x17c]
mov dword [ecx + eax + 4], esi
mov ecx, dword [edi + 4]
call fcn.00410980
test eax, eax
jns 0x401092
jmp 0x401080
cmp eax, 0xc0000043
je 0x401092
cmp eax, 0xc0000022
jne 0x40116c
push dword [ebp + 8]
mov edx, dword [ebp - 0x180]
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], 3
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0x6a09e667
mov dword [ebp - 0x144], 0xbb67ae85
mov dword [ebp - 0x140], 0x3c6ef372
mov dword [ebp - 0x13c], 0xa54ff53a
mov dword [ebp - 0x138], 0x510e527f
mov dword [ebp - 0x134], 0x9b05688c
mov dword [ebp - 0x130], 0x1f83d9ab
mov dword [ebp - 0x12c], 0x5be0cd19
call fcn.00412600
sub esp, 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x154]
call fcn.004126a0
test al, al
je 0x40116c
lea edx, [ebp - 0x48]
mov ecx, edi
call fcn.004053c0
test al, al
je 0x40116c
lea edx, [ebp - 0x28]
mov esi, 0x1c
lea eax, [ebp - 0x48]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40116c
add edx, 4
add eax, 4
sub esi, 4
jae 0x401142
mov edx, dword ds:[ebx + 4]
mov ecx, dword [edi + 4]
push 1
call fcn.00411280
test eax, eax
setns bl
jmp 0x40116e
xor bl, bl
lea ecx, [edi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x401185
lea esp, [esp]
call fcn.00405d40
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420226
mov esp, ebp
pop ebp
ret 4
Function at 0x4011a0
Capabilities:
Delete file
Hash data using sha256
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, edx
mov dword [ebp - 0x154], eax
mov edi, ecx
mov dword [ebp - 0x150], 3
mov edx, eax
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0x6a09e667
mov dword [ebp - 0x140], 0xbb67ae85
mov dword [ebp - 0x13c], 0x3c6ef372
mov dword [ebp - 0x138], 0xa54ff53a
mov dword [ebp - 0x134], 0x510e527f
mov dword [ebp - 0x130], 0x9b05688c
mov dword [ebp - 0x12c], 0x1f83d9ab
mov dword [ebp - 0x128], 0x5be0cd19
call fcn.00412600
mov eax, dword [ebp - 0x150]
cmp eax, 3
ja case.default.0x401254
jmp dword [eax*4 + 0x4013b8]
lea ecx, [ebp - 0x14c]
call fcn.0041d6d0
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x18], eax
jmp 0x4012b5
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14c]
call fcn.0041eea0
jmp 0x4012b5
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x24], eax
jmp 0x4012b5
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14c]
call fcn.0041d460
lea edx, [ebp - 0x44]
mov ecx, ebx
call fcn.004053c0
nop
test al, al
jne 0x4012cb
xor bl, bl
jmp 0x401397
lea ecx, [ebp - 0x24]
mov esi, 0x1c
lea edx, [ebp - 0x44]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4012ee
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4012d6
mov bl, 1
jmp 0x401397
mov edx, dword [0x46bce8]
mov byte [edi + 0x6c], 1
mov esi, dword [ebx]
add esi, 8
lea ecx, [esi + 0xa]
call fcn.00405c60
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi], esi
mov dword [edi + 4], eax
mov word [eax + esi], cx
push dword [ebx]
push dword [ebx + 4]
push dword [edi + 4]
call fcn.00421ff0
mov ecx, dword [ebx]
add esp, 0xc
mov eax, dword [edi + 4]
mov edx, dword [str._old]
mov esi, dword [0x4630d8]
mov dword [ecx + eax], edx
mov dword [ecx + eax + 4], esi
mov ecx, dword [edi + 4]
call fcn.00410aa0
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
push 1
call fcn.00411280
test eax, eax
jns 0x40135d
xor bl, bl
jmp 0x40137f
push 4
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x154]
mov ecx, ebx
call fcn.004052a0
test al, al
setne bl
nop
test edi, edi
je 0x401397
lea ecx, [edi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x401397
call fcn.00405d40
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420226
mov esp, ebp
pop ebp
ret 8
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
pop ebx
adc al, byte [eax]
mov word [edx], ss
inc eax
add byte [edx + edx + 0x12a70040], bl
inc eax
add ah, cl
int3
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 [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x128]
mov dword [ebp - 8], 0
call fcn.00405de0
mov edi, dword [0x46bcd4]
test byte [edi], 1
je 0x40286f
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
lea esp, [esp]
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 [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
add eax, 8
mov byte [eax + 2], 2
jmp 0x402883
push 0x78
push 4
push dword [0x46bcf4]
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.00421e90
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.00412980
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.00421e90
mov eax, dword [0x46bcf0]
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.00421e90
mov eax, dword [0x46bcec]
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.00404b40
lea ecx, [ebp - 0x128]
call fcn.00405ec0
mov ecx, dword ds:[ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00420226
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 [0x46a040]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 8]
push esi
call fcn.0040e760
lea ecx, [ecx]
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.004078a0
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.00412c40
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.00405d40
call fcn.00413820
call fcn.00402800
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00420226
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x64]
mov eax, 1
pop esi
xor ecx, esp
call fcn.00420226
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 [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0xc
mov esi, ecx
push 0x46aac8
push ecx
lea ecx, [ebp - 0x10]
call fcn.00410560
mov edi, eax
test edi, edi
js 0x403df1
mov ecx, dword [esi + 0x18]
mov edx, str._systeminformer.exe_0
call fcn.004051e0
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 0x463c90
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, 0x4630d0
call fcn.004051e0
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.004051e0
mov ebx, eax
test ebx, ebx
je 0x403d52
push dword [ebx + 4]
push str.__s___uninstall
call fcn.00406e50
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.00405d40
jmp 0x403d63
push 0
push str.__s___uninstall
call fcn.00406e50
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.00420226
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 [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00404f60
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, 0x46acec
mov ecx, 0x46ace4
cmovne ecx, eax
call fcn.004119a0
mov edi, eax
test edi, edi
je 0x403e70
cmp dword [edi], 0
jne 0x403eb5
mov ecx, str.C:Program_FilesSystemInformer_
call fcn.004065a0
mov edx, dword [0x46bce8]
mov esi, eax
add esi, esi
lea ecx, [esi + 0xa]
call fcn.00405c60
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
push esi
push str.C:Program_FilesSystemInformer_
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [edi + 4]
call fcn.00421ff0
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], 0x46310c
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.004066a0
test al, al
jne 0x403f3a
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 2
mov ecx, edi
mov dword [ebp - 0x2c], 0x46310c
call fcn.00406c80
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.00405d40
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420226
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00420226
mov esp, ebp
pop ebp
ret
Function at 0x404200
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov dword [ebp - 0x4c], 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.00414ee0
test eax, eax
js 0x4042c6
mov esi, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414fa0
test eax, eax
js 0x4042ba
cmp dword ds:[ebp - 0x24], 1
je 0x4042ba
mov edi, 0x3c
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404288
cmp dword [0x46aad0], 0xffffffff
nop
jb 0x404288
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414fa0
test eax, eax
js 0x40429c
cmp dword [ebp - 0x24], 1
je 0x4042b7
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0xff676980
mov dword [ebp - 0x54], 0xffffffff
call fcn.00412f80
sub edi, 1
jne 0x404267
mov edi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4042d7
cmp dword [eax], 0
je 0x4042d7
mov eax, dword [eax + 4]
jmp 0x4042dc
mov eax, str.KSystemInformer
push eax
mov edx, 0x10000
lea ecx, [ebp - 0x48]
call fcn.00414ee0
test eax, eax
js 0x404352
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40434b
cmp dword [0x46aad0], 0xffffffff
jae 0x404313
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x48]
mov eax, dword [eax + 0x34]
jmp 0x404319
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004148c0
mov ecx, eax
test ecx, ecx
jns 0x40434b
and eax, 0xfff0000
xor bl, bl
cmp eax, 0x70000
jne 0x40433e
movzx eax, cx
jmp 0x404348
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.00420226
mov esp, ebp
pop ebp
ret

Function at 0x404380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0xc
mov esi, ecx
push 0x46aab8
push ecx
lea ecx, [ebp - 8]
call fcn.00410560
test eax, eax
js 0x404406
mov ecx, dword [esi + 0x18]
mov edx, str.SystemInformer.exe
call fcn.004051e0
mov esi, eax
test esi, esi
je 0x4043f9
mov ecx, dword ds:[esi]
lea eax, [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], 0
push ecx
push dword [esi + 4]
mov dword [ebp - 0xc], 0
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 0x4043f9
call fcn.00405d40
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420226
mov esp, ebp
pop ebp
ret