joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41254b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040e030
mov dword [ebp - 0x14], eax
cmp dword [0x8237fc], esi
jne 0x41263e
push 0x800
push esi
push 0x405b34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4125cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41271e
push esi
push esi
push 0x405b34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41271e
push 0x405b4c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41271e
push eax
call ebx
push 0x405b58
push edi
mov dword [0x8237fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405b68
push edi
mov dword [0x823800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405b7c
push edi
mov dword [0x823804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x82380c], eax
test eax, eax
je 0x41263b
push 0x405b98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823808], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412663
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x412656
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x412678
push 4
pop eax
jmp 0x412720
cmp dword [ebp - 0x14], esi
je 0x412678
push dword [0x8237fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41265d
mov eax, dword [0x823808]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4126d6
cmp dword [0x82380c], edi
je 0x4126d6
push eax
call ebx
push dword [0x82380c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4126d6
test eax, eax
je 0x4126d6
call ecx
test eax, eax
je 0x4126cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4126cb
test byte [ebp - 8], 1
jne 0x4126d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x412706
mov eax, dword [0x823800]
cmp eax, edi
je 0x412703
push eax
call ebx
test eax, eax
je 0x412703
call eax
mov esi, eax
test esi, esi
je 0x412703
mov eax, dword [0x823804]
cmp eax, edi
je 0x412703
push eax
call ebx
test eax, eax
je 0x412703
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8237fc]
call ebx
test eax, eax
je 0x41271e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x412720
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409594
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447004]
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.00403568
and dword [ebp - 0x14], 0
cmp dword [0x449940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x449940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x449944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x449948], eax
call edi
push eax
call esi
mov dword [0x449950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44994c], eax
mov eax, dword [0x44994c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x449950], ecx
je 0x404367
push eax
call esi
push dword [0x449950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x449944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x449948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x449940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4438f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1f1bde4]
mov eax, dword [0x1f1bb08]
xor ecx, ecx
mov word [0x1f1be00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1f1bdec], 0x6e0072
mov dword [0x1f1bdf0], 0x6c0065
mov dword [0x1f1bdf4], 0x320033
mov dword [0x1f1bdf8], 0x64002e
mov dword [0x1f1bdfc], 0x6c006c
mov dword [0x1f1bde8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x443b20
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x447dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1f1bb08]
push edi
mov edi, dword [0x1f1bde4]
push eax
call fcn.00443a40
add esp, 4
cmp dword [0x1f1bde4], 0x2f
jne 0x443b7d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00443a90
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fc7
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
sub esp, 0x1e4
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x49cd9]
mov ebx, dword [eax + 0x49cdd]
test ecx, ecx
je 0x402007
mov edx, 0
mov esi, ebx
add esi, dword [eax + edx*4 + 0x49ce1]
mov dword [esp + edx*4 + 0x10], esi
add edx, 1
cmp ecx, edx
jne 0x401ff3
lea edx, [esp + 0x10]
mov dword [esp + 0x1c4], edx
mov edx, dword [esp + 0x40]
add eax, edx
lea edx, [esp + 0x1c4]
mov dword [esp], edx
call eax
add esp, 0x1e4
pop ebx
pop esi
ret

Function at 0x402610
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40263b
push 0x44768c
mov eax, 0x44768c
call fcn.00405aa0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x402654
push 0x44768c
call fcn.00405b10
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x402ef0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x451fbc]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x402f23
mov dword [esp + 0x10], 0xffffffff
jmp 0x402f29
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x402f57
push 0x44768c
mov eax, 0x44768c
call fcn.00405aa0
add esp, 4
jmp 0x403037
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402f87
push 0x44768c
mov eax, 0x44768c
call fcn.00405aa0
add esp, 4
jmp 0x403037
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x402fa9
mov eax, 1
push 0x44768c
call fcn.00405b10
add esp, 4
jmp 0x403037
cmp dword [esp + 0x40], ebx
je 0x402fe5
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x402fcb
mov eax, 5
push 0x44768c
call fcn.00405b10
add esp, 4
jmp 0x403037
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x40302f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x402ff3
mov ebx, esi
jmp 0x402fb7
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40301c
push 0x44768c
mov eax, 0x44768c
call fcn.00405aa0
add esp, 4
jmp 0x403037
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00402610
test eax, eax
je 0x403037
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403041
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042bb9b
add esp, 0x28
ret
Function at 0x405aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
scasd eax, dword es:[edi]
ror dword [ebx + 0xf04245c], cl
mov bh, 0x5c
jnp 0x405aa9
add ebx, edx
jmp 0x405ab1
mov edi, dword [ebp + 0x4c]
push dword [edi + 0x10c]
push dword [edi + 0xec]
call dword [ebp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x4c], 0
add esp, 0xffffffe8
mov eax, ebp
lea edi, [esp + 0x64]
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov ecx, dword [edx - 8]
call fcn.004047c6
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [esp + 0x24]
call dword [ebp + 0x34]
mov dword [esp], eax
cmp dword [esp], 0xffffffff

Function at 0x405b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x405b56
push 0
push dword [esp + 4]
call dword [ebp + 0x58]
mov edi, eax
test edi, edi
je 0x405b50
mov eax, dword [ebp + 0x4c]
push edi
push dword [eax + 0xec]
call dword [ebp + 0x2c]
mov dword [esp + 8], eax
xor eax, eax
lea edx, [esp + 0x28]
mov dword [edx], eax
push eax
push edx
push edi
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [ebp + 0x3c]
test eax, eax
jne 0x405c63
push dword [esp]
call dword [ebp + 0x68]
mov edi, dword [ebp + 0x4c]
push dword [edi + 0x10c]
push dword [edi + 0xec]
call dword [ebp + 0x2c]
mov dword [esp + 0x90], esi
xor edi, edi
mov dword [esp], ebx
mov esi, dword [esp + 4]
lea edx, [esp + 0x50]
mov ebx, eax
movzx ecx, word [ebx]
test ecx, ecx
je 0x405b96
xor ecx, ecx
xor edx, edx
mov word [ebx + ecx*2], dx
inc ecx
movzx eax, word [ebx + ecx*2]
test eax, eax
jne 0x405b89
movzx ecx, word [esi + edi*2]
cmp ecx, 0x3b
je 0x405bb8
xor ecx, ecx
movzx eax, word [esi + edi*2]
test eax, eax
je 0x405bb8
inc edi
mov word [ebx + ecx*2], ax
inc ecx
movzx eax, word [esi + edi*2]
cmp eax, 0x3b
jne 0x405ba1
mov eax, ebx
push eax
inc edi
call fcn.00403f46
test eax, eax
ja 0x405bfe
add esp, 0xfffffff8
mov edx, 8
mov edi, dword [ebp + 0x54]
lea eax, [esp + 0xa8]
call fcn.00404d06
invalid
test byte [eax], ah
Function at 0x406ee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x4423db
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x455c8c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
mov ecx, 0x41
lea ebx, [ebp]
call fcn.00406c60
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor ebx, ebx
xor esi, esi
lea ecx, [ebp]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x40703a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406f84
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.00406cd0
cmp eax, ebx
je 0x406f9a
mov dword [0x455c8c], eax
jmp 0x40701b
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x406fb5
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x406fc9
push edi
push esi
call fcn.00407360
jmp 0x406fcb
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x455c8c], eax
cmp eax, ebx
jne 0x406fec
mov dword [ebp - 0x1c], 1
push 0x44b2ec
lea edx, [ebp - 0x1c]
push edx
call fcn.0042c399
mov esi, 1
mov dword [ebp - 0x24], esi
push eax
call fcn.00406da0
add esp, 4
test eax, eax
jne 0x407016
mov dword [ebp - 0x18], 3
push 0x44b2ec
lea eax, [ebp - 0x18]
push eax
call fcn.0042c399
mov eax, dword [0x455c8c]
inc dword [eax + 0x5bc]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x40703a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x455c8c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0042bb9b
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x407250
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40727d
xor ecx, ecx
jmp 0x407289
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40733d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x4072b0
mov dword [esp + 0xc], esi
jmp 0x407310
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x407309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4072fc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x407310
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x407310
push 0x447db0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x407310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x407333
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4072a2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x407351
mov ecx, dword [ebx]
add ecx, 8
call fcn.004074e0
test eax, eax
je 0x407351
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x407360
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4423ab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x451fbc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0042bbb0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4073f8
push 0x44b2ec
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0042c399
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4076e6
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x76]
xor ecx, ecx
push eax
mov word [ebp - 0x78], cx
call fcn.0042bbb0
push str.safemon360realpro.exe
mov edi, 0x104
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0040e738
add esp, 0x18
test eax, eax
je 0x4077ca
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x78]
push eax
call ebx
test eax, eax
je 0x4077ca
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040e266
add esp, 0xc
test eax, eax
je 0x4077ca
mov esi, 0x90002
cmp dword [ebp - 0x7c], esi
jb 0x4077ca
jne 0x40777d
cmp dword [ebp - 0x80], 0x53d
jb 0x4077ca
push str.safemon360sclog.exe
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0040e738
add esp, 0xc
test eax, eax
je 0x4077ca
lea eax, [ebp - 0x78]
push eax
call ebx
test eax, eax
je 0x4077ca
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040e266
add esp, 0xc
test eax, eax
je 0x4077ca
cmp dword [ebp - 0x7c], esi
jb 0x4077ca
jne 0x4077c5
cmp dword [ebp - 0x80], 0x425
jb 0x4077ca
xor eax, eax
inc eax
jmp 0x4077cc
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb9b
add ebp, 0x194
leave
ret
Function at 0x408974
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe30
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x814
push esi
xor edi, edi
lea eax, [ebp - 0xe30]
push edi
push eax
call fcn.0042bbb0
mov dword [ebp - 0xe30], esi
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0042bbb0
push esi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0042bbb0
add esp, 0x24
push 0x44768c
mov esi, 0x44eecc
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
lea eax, [ebp - 0x414]
je 0x408aec
push esi
mov esi, 0x104
push esi
push eax
call fcn.004082c9
push ebx
push 0x44390c
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0xe2c]
push eax
call fcn.004082c9
lea eax, [ebp - 0x414]
test eax, eax
je 0x408a57
push str.....360verify.dll
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0xc2c]
push eax
call fcn.004082c9
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0042bbb0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
pop ebx
lea eax, [ebp - 0x20c]
jl 0x408b06
push str.360safe
push esi
push eax
call fcn.004082fb
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x408abe
lea eax, [ebp - 0x20c]
push eax
call fcn.0042dbd2
pop ecx
push str.LogInfo
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004082fb
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x408b12
lea eax, [ebp - 0x20c]
push eax
call fcn.0042dbd2
pop ecx
jmp 0x408b12
mov esi, 0x104
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4089f4
xor eax, eax
jmp 0x408b3c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x408b02
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0xa2c]
push eax
call fcn.004082c9
lea eax, [ebp - 0xe30]
push eax
call fcn.00427959
mov ecx, eax
call fcn.00427ab7
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042bb9b
leave
ret

Function at 0x408f31
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x408f82
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x408f93
push 0xd
pop eax
jmp 0x408fc0
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x408f96
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40951d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x451fbc]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00408ef0
mov ebx, eax
cmp ebx, esi
je 0x40958d
lea ecx, [ebp - 0x70]
call fcn.00408e7b
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb9b
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4095a5
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040951d
cmp eax, esi
jne 0x4095d7
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call ebx
test eax, eax
je 0x409595
lea ecx, [ebp - 0x70]
call fcn.00408e7b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00408e20
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00408e7b
mov eax, esi
jmp 0x409573