joyce8/EMBER2024-capa huggingface dataset:
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.00422e10
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.00422e10
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.00422e10
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.00421161
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.00421161
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x64]
mov eax, 1
pop esi
xor ecx, esp
call fcn.00421161
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.00421161
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.00422f70
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.00421161
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00421161
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.00414c20
test eax, eax
js 0x404326
mov esi, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414cc0
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.00414c20
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.00421161
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.00421161
mov esp, ebp
pop ebp
ret
Function at 0x404da0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edx
push eax
push 0x44155c
push 1
push 0
push 0x4415ac
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404f48
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x44157c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
js 0x404f48
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x44158c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
js 0x404ed2
mov ecx, ebx
call fcn.00406640
mov esi, eax
xorps xmm0, xmm0
add esi, esi
mov eax, 0x1f
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
lea eax, [esi + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword ds:[ebp - 0x18], eax
test eax, eax
je 0x404e9c
lea ecx, [esi + 2]
push ecx
push 0
push eax
call fcn.00422e10
add esp, 0xc
push esi
push ebx
push dword [ebp - 0x18]
call fcn.00422f70
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov esi, dword [eax]
push ecx
push 0x4653f8
push eax
mov esi, dword [esi + 0x18]
mov ecx, esi
call dword [0x441280]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x441280]
call esi
mov eax, dword ds:[ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x441280]
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 8]
push dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x441280]
call esi
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x28]
push 0
push ebx
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x441280]
nop
call esi
mov eax, dword [ebp - 8]
push ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
js 0x404f48
mov ecx, edi
call fcn.004107c0
test al, al
je 0x404f30
mov ecx, edi
call fcn.00410860
mov eax, dword ds:[ebp - 0x10]
push 1
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x441280]
call esi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x404f5f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x441280]
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x404f76
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x441280]
call esi
push 0
push edi
push 5
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421161
mov esp, ebp
pop ebp
ret 8
Function at 0x405020
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x12
mov dword [esp + 8], str.SiMutant_
mov dword [esp + 0x30], 0x12
cmp dword [esi], 0x12
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
jb 0x40506f
push 1
lea edx, [esp + 8]
lea ecx, [esp + 0x34]
call fcn.00406740
test al, al
jne 0x4050ed
cmp dword [esi], 0x1c
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 0x1c
mov dword [esp + 0x34], str.SiSetupMutant_
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1c
jb 0x4050a9
push 1
lea edx, [esp + 0x34]
lea ecx, [esp + 8]
call fcn.00406740
test al, al
jne 0x4050ed
cmp dword [esi], 0x1e
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 0x1e
mov dword [esp + 0x34], str.SiViewerMutant_
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1e
jb 0x405215
push 1
lea edx, [esp + 0x34]
lea ecx, [esp + 8]
call fcn.00406740
test al, al
je 0x405215
movzx eax, word [esi]
mov word [esp + 0x3c], ax
add eax, 2
cmp dword [esi], 0xfffe
mov word [esp + 0x3e], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
ja 0x405215
mov dword [esp + 0x18], 0x18
call fcn.00412a60
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0x40
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtOpenMutant]
test eax, eax
js 0x405215
push 0
push 8
lea eax, [esp + 0x18]
push eax
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
js 0x40520b
mov eax, dword fs:[0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0
cmp ecx, dword [eax + 0x20]
je 0x40520b
push ecx
mov edx, 0x101001
lea ecx, [esp + 8]
call fcn.0040eda0
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00414440
test eax, eax
je 0x4051c6
push 0
push 0x1388
push 1
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [esp + 4]
test eax, eax
je 0x40520b
push 1
push eax
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xfd050f80
push eax
push 0
push dword [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov eax, dword ds:[esp + 4]
test eax, eax
je 0x40520b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword ds:[esp + 0x44]
mov al, 1
pop esi
xor ecx, esp
call fcn.00421161
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
push edi
test ecx, ecx
je 0x40532e
mov ecx, dword [ecx + 4]
jmp 0x405330
xor ecx, ecx
sub esp, 8
lea edx, [ebp - 0x2c]
call fcn.0040fc80
nop dword [eax + eax]
test eax, eax
js 0x4053ff
push 0
push 0
push 0x60
push 5
push 7
push 0x80
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0x40
push eax
push 0x120116
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov ecx, dword [ebp - 0x28]
mov esi, eax
test ecx, ecx
je 0x4053c2
push ecx
mov ecx, dword fs:[0x18]
push 0
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
test esi, esi
js 0x4053ff
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 0
push 0
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x24]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x4053f4
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x4053f4
mov bl, 1
test esi, esi
je 0x4053ff
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421161
mov esp, ebp
pop ebp
ret 4
Function at 0x405420
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.0043ed00
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor al, al
mov dword [ebp - 0x1140], edx
mov byte [ebp - 0x1131], al
mov dword [ebp - 0x1138], 0
push esi
push edi
test ecx, ecx
je 0x40545b
mov edx, dword [ecx + 4]
jmp 0x40545d
xor edx, edx
push ecx
push 0x60
push 1
push 7
push 0x80
push 0
push 0x120089
lea ecx, [ebp - 0x1138]
call fcn.004104e0
mov ebx, dword [ebp - 0x1138]
test eax, eax
js 0x40555a
push 5
push 0x18
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x113c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x40555a
movq xmm0, qword [ebp - 0x1018]
lea ecx, [ebp - 0x1130]
movups xmm1, xmmword [ebp - 0x1028]
movq qword [ebp - 0x1018], xmm0
call fcn.00412380
movaps xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 8
movd esi, xmm0
movd edi, xmm1
mov eax, esi
or eax, edi
je 0x40553e
nop dword [eax + eax]
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x40555a
push dword [ebp - 0x100c]
lea edx, [ebp - 0x1008]
lea ecx, [ebp - 0x1130]
call fcn.004123e0
sub esi, dword [ebp - 0x100c]
mov eax, esi
sbb edi, 0
or eax, edi
jne 0x4054f0
mov edx, dword [ebp - 0x1140]
lea ecx, [ebp - 0x1130]
sub esp, 8
call fcn.00412480
mov byte [ebp - 0x1131], al
jmp 0x405560
mov al, byte [ebp - 0x1131]
test ebx, ebx
je 0x405571
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov al, byte [ebp - 0x1131]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421161
mov esp, ebp
pop ebp
ret

Function at 0x4060e0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x46dac0], 0xffffffff
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46ee14]
jae 0x40610a
cmp ecx, 0x40
jae 0x40610a
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x406113
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40611c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword ds:[esi]
cmp eax, 0x40
jae 0x406130
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
ret
mov ecx, dword ds:[esi + 0x10c]
push ebx
mov ebx, dword [0x46eca4]
test ecx, ecx
jne 0x406164
push 0x100
push 4
push ebx
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x4061a1
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
je 0x406190
push ecx
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x406199
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
pop ebx
mov dword [ecx + eax*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
ret