joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106f276
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x106f2b7
mov esi, 0xc0000017
jmp 0x106f3e0
test byte [ebp + 0xc], 1
push edi
je 0x106f2d5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0106f1e8
mov esi, eax
cmp esi, ebx
jge 0x106f427
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x106f3c9
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x106f3c4
push ebx
push dword [ebp + 0xc]
push 0x1070f16
push 0x35
push dword [ebp - 0x14]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x106f32e
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0106f8b2
test eax, eax
jl 0x106f3b0
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x106f3b0
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x106f3b0
add eax, 0x48
push 4
pop ecx
mov edi, 0x1010f80
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x106f376
cmp byte [ebp - 1], bl
jne 0x106f38b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x106f351
jmp 0x106f3b0
lea eax, [ebp - 0x18]
push eax
call fcn.0106fd52
test eax, eax
jl 0x106f41e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0106f79a
test eax, eax
jl 0x106f41e
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x106f2fa
cmp byte [ebp - 1], bl
jne 0x106f425
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x106f3fb
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x106f416
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x106f3c9
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x106f42f
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x1070f16
push 0x35
push edi
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x106f3df
Function at 0x106f4e6
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x106f534
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0106f46e
mov edi, eax
cmp edi, ebx
jl 0x106f5f9
jmp 0x106f53a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x106f56e
cmp edi, ebx
jl 0x106f5f8
mov edi, 0xc0000001
jmp 0x106f5f8
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x106f5d9
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x106f5f8
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x106f5b8
mov edi, 0xc0000024
jmp 0x106f5f8
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x106f5e0
mov edi, 0xc000009a
jmp 0x106f5f8
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x106f608
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x106f625
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x106f632
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jl 0x106f78d
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x106f6d9
cmp dword [ebp - 0xc], esi
je 0x106f6b4
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
lea edi, [eax + 2]
mov word [ebp - 0xe], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x106f752
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
je 0x106f699
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x106f76f
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xe], di
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jge 0x106f6d9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x106f759
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x106f76a
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x106f78a
cmp dword [ebp - 0xc], esi
je 0x106f78a
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1070913
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x1070942
test dword [eax + 0x1c], 0x20000000
je 0x1070942
push 0x1010fd0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push esi
push 1
push 0x1bb
push 0x10110f0
lea ecx, [ebp - 0x3c]
call fcn.01055826
xor esi, esi
mov eax, 0x1010420
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov eax, 0x1c3
cmp dword [ebp + 8], esi
jne 0x107098a
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x1070af3
push ebx
mov ebx, dword [ebp + 0xc]
mov word [ebp - 0x38], ax
mov eax, 0x1c4
cmp ebx, 2
jae 0x10709ac
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x1070af2
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.010706bd
mov edi, 0x1010ff0
push edi
push esi
push dword [ebp + 8]
mov esi, 0x10110c8
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.01063c3a
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1cb
jl 0x1070aed
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1070a1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1070a0b
cmp eax, 3
jne 0x1070a1d
and dword [ebp - 0x3c], 0
mov eax, 0x1d3
mov word [ebp - 0x38], ax
jmp 0x1070af1
push edi
dec ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.01063c3a
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1d8
jl 0x1070aed
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1070acb
push edi
lea ebx, [eax - 1]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.01063c3a
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1df
jl 0x1070aed
push 1
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1070aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1070a9b
cmp eax, 0x20
je 0x1070a9b
cmp eax, 5
jne 0x1070ad7
and dword [ebp - 0x3c], 0
mov eax, 0x1ec
mov word [ebp - 0x38], ax
push dword [ebp - 0xc]
call fcn.010705c9
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0106470b
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1f3
jl 0x1070aed
mov word [ebp - 0x38], ax
mov eax, ebx
test eax, eax
ja 0x1070a4f
jmp 0x1070af1
test eax, eax
jle 0x1070ae5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3c], eax
mov eax, 0x1ec
mov word [ebp - 0x36], ax
pop edi
pop ebx
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.010635b3
lea ecx, [ebp - 0x18]
call fcn.010635b3
lea ecx, [ebp - 0x3c]
call fcn.01055a3c
mov eax, esi
pop esi
leave
ret 8
Function at 0x40f070
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
call fcn.0040fc00
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp esi, eax
jne 0x40f1ff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x48a9ec
lea ecx, [ebp - 0x210]
push ecx
call fcn.00473682
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f1bd
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040f210
add esp, 0x14
test eax, eax
je 0x40f1af
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0xf0]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0040f440
add esp, 0x10
mov dword [ebp - 0x254], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 0x254]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f19e
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0xf0]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040f530
add esp, 0x18
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x250]
push edx
call fcn.0040f7a0
add esp, 0x18
jmp 0x40f1af
push 0x10
push 0
push str.Allocation_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 8]
push eax
call fcn.00473438
add esp, 4
jmp 0x40f1ce
push 0x10
push 0
push str.Cannot_open_the_EXE_file_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 4], 0
je 0x40f1e0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00473a78
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x40f1f7
push 0x8000
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f210
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00474030
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00473f41
add esp, 4
mov dword [ebp - 0x13c], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00474030
add esp, 0xc
cmp dword [ebp - 0x13c], 0x40
jae 0x40f26e
push 0x10
push 0
push 0x48a670
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f42c
mov eax, dword [ebp + 8]
push eax
push 1
push 0x40
lea ecx, [ebp - 0x40]
push ecx
call fcn.00473d90
add esp, 0x10
movzx edx, word [ebp - 0x40]
cmp edx, 0x5a4d
je 0x40f2a6
push 0x10
push 0
push str.File_does_not_have_MZ_header
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f42c
mov eax, dword [ebp - 4]
add eax, 4
cmp dword [ebp - 0x13c], eax
jae 0x40f2cc
push 0x10
push 0
push 0x48a6d4
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f42c
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00474030
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x124]
push ecx
call fcn.00473d90
add esp, 0x10
cmp dword [ebp - 0x124], 0x4550
je 0x40f319
push 0x10
push 0
push str.File_does_not_have_PE_header
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f42c
mov edx, dword [ebp - 4]
add edx, 0x18
cmp dword [ebp - 0x13c], edx
jae 0x40f33f
push 0x10
push 0
push str.File_size_too_small
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f42c
mov eax, dword [ebp + 8]
push eax
push 1
push 0x14
lea ecx, [ebp - 0x138]
push ecx
call fcn.00473d90
add esp, 0x10
movzx edx, word [ebp - 0x128]
cmp edx, 0xe0
je 0x40f37d
push 0x10
push 0
push str.Unexpected_option_header_size
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f42c
mov eax, dword [ebp + 8]
push eax
push 1
push 0xe0
lea ecx, [ebp - 0x120]
push ecx
call fcn.00473d90
add esp, 0x10
movzx edx, word [ebp - 0x136]
imul edx, edx, 0x28
push edx
call fcn.00473ab2
add esp, 4
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 8]
push eax
push 1
movzx ecx, word [ebp - 0x136]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.00473d90
add esp, 0x10
mov ecx, 0x10
lea esi, [ebp - 0x40]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x138]
mov dword [eax], ecx
mov edx, dword [ebp - 0x134]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x130]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x12c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x128]
mov dword [eax + 0x10], ecx
mov ecx, 0x38
lea esi, [ebp - 0x120]
mov edi, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x140]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fab0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push 0x44
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.00474100
add esp, 0xc
mov dword [ebp - 0x260], 0x44
push str._D:Program_Files__x86__baiduBaidu_HiBaiduHi.exe_
lea ecx, [ebp - 0x208]
push ecx
call fcn.004740dd
add esp, 8
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x260]
push eax
push str.D:Program_Files__x86__baiduBaidu_Hi
push 0
push 4
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40fb37
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x218]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x214]
mov dword [ecx], edx
mov eax, 1
jmp 0x40fb39
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40fd20
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 0x25
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 7
ja case.0x40fd3c.4
mov edx, dword [ebp - 4]
jmp dword [edx*4 + 0x40fdac]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xe0
mov eax, 0xb7
jmp 0x40fda8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xe0
mov eax, 0xcb
jmp 0x40fda8
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xe0
mov eax, 0xc8
jmp 0x40fda8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xe0
mov eax, 0xcd
jmp 0x40fda8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xe0
mov eax, 0xd0
jmp 0x40fda8
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esp, ebp
pop ebp
ret

Function at 0x40fdd0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 8], 2
je 0x40fe25
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x8002
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0xc], eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 1
je 0x40fe7c
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x8004
mov dword [ebp - 0x34], 0
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x30], eax
push 0x1c
lea ecx, [ebp - 0x48]
push ecx
push 1
call dword [sym.imp.USER32.dll_SendInput]
mov esp, ebp
pop ebp
ret
Function at 0x40fe80
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 8], 2
je 0x40fed5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x8008
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0xc], eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 1
je 0x40ff2c
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x8010
mov dword [ebp - 0x34], 0
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x30], eax
push 0x1c
lea ecx, [ebp - 0x48]
push ecx
push 1
call dword [sym.imp.USER32.dll_SendInput]
mov esp, ebp
pop ebp
ret

Function at 0x410200
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410244
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
jmp 0x410246
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410250
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41028e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
jmp 0x410290
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410350
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4103c3
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4103a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x4103a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x4103a7
mov dword [ebp - 0xc], 0
jmp 0x4103ae
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
jmp 0x4103c5
xor eax, eax
mov esp, ebp
pop ebp
ret