joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467c70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x480900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4864b0]
xor edi, edi
cmp ecx, edi
jne 0x40716b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x407178
mov dword [ebp - 0x14], edi
jmp 0x407190
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x407236
mov ecx, dword [0x4864b0]
mov eax, dword [ecx]
cmp eax, edi
je 0x407157
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407157
mov dword [ebp - 4], edi
mov ebx, 0x4864b0
call fcn.00407250
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x4071ce
mov dword [ebp - 0x18], 1
push 0x47b0d4
lea eax, [ebp - 0x18]
push eax
call fcn.0044d4a8
mov ecx, dword [0x4864b0]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4071e8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x4071fd
mov dword [ebp - 0x1c], 4
push 0x47b0d4
lea edx, [ebp - 0x1c]
push edx
call fcn.0044d4a8
mov dword [ebp - 4], 0xffffffff
jmp 0x407222
mov eax, dword [0x4864b0]
mov eax, dword [eax]
test eax, eax
je 0x407234
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
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 0x4766a0
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 0x467ccb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x480900]
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.0044c960
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 0x47b0d4
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0044d4a8
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 0x4079c6
Capabilities:
Check mutex on windows

Disassembly:
and dword [0x482124], 0
push esi
push str.Global__Q360FWMainMutex__
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x482124], eax
test eax, eax
je 0x407a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407a6c
push 0x469a60
push str.Q360FWMainClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x407a52
mov eax, dword [0x482334]
cmp eax, 0x19
je 0x407a36
cmp eax, 0x1b
je 0x407a36
cmp eax, 0x13
je 0x407a36
cmp dword [0x482330], 0x1f4
je 0x407a36
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407a6c
mov eax, dword [0x482330]
cmp eax, 0xffffffff
jg 0x407a57
xor eax, eax
inc eax
pop esi
ret
push dword [0x482334]
push eax
push 0x3400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x407a52
xor eax, eax
pop esi
ret

Function at 0x407dcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407e47
mov eax, dword [ebp + 8]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.Path
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0044cbfc
pop ecx
test eax, eax
je 0x407e49
lea ecx, [esi + eax*2]
cmp word [ecx - 2], 0x5c
je 0x407e49
push 0x5c
pop edx
mov word [ecx], dx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x408903
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 0x408954
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x408965
push 0xd
pop eax
jmp 0x408992
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 0x408968
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 0x408eef
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x480900]
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.004088c2
mov ebx, eax
cmp ebx, esi
je 0x408f5f
lea ecx, [ebp - 0x70]
call fcn.0040884d
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x408f77
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408eef
cmp eax, esi
jne 0x408fa9
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 0x408f67
lea ecx, [ebp - 0x70]
call fcn.0040884d
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004087f2
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040884d
mov eax, esi
jmp 0x408f45
Function at 0x4093ec
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe30
mov eax, dword [0x480900]
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.0044c960
mov dword [ebp - 0xe30], esi
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0044c960
push esi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0044c960
add esp, 0x24
push 0x475f7c
mov esi, 0x4845f4
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
lea eax, [ebp - 0x414]
je 0x409564
push esi
mov esi, 0x104
push esi
push eax
call fcn.004084a5
push ebx
push 0x469f1c
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0xe2c]
push eax
call fcn.004084a5
lea eax, [ebp - 0x414]
test eax, eax
je 0x4094cf
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.004084a5
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0044c960
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 0x40957e
push 0x469ee0
push esi
push eax
call fcn.004084d7
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x409536
lea eax, [ebp - 0x20c]
push eax
call fcn.0044d8db
pop ecx
push str.LogInfo
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004084d7
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x40958a
lea eax, [ebp - 0x20c]
push eax
call fcn.0044d8db
pop ecx
jmp 0x40958a
mov esi, 0x104
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40946c
xor eax, eax
jmp 0x4095b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40957a
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0xa2c]
push eax
call fcn.004084a5
lea eax, [ebp - 0xe30]
push eax
call fcn.00436423
mov ecx, eax
call fcn.00436474
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044cbcc
leave
ret
Function at 0x40a80a
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x788], eax
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0044c960
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40a8b7
push str.360ver.dll
lea eax, [ebp - 0x78]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8b7
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00409992
mov esi, eax
pop ecx
test esi, esi
je 0x40a8b6
push 0x469f40
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp + 0x788]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0044cbcc
add ebp, 0x78c
leave
ret

Function at 0x40a8cf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0044d8b0
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0044c960
add esp, 0xc
push 0x469fe4
mov esi, 0x800
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push 0x469fb8
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push str.vL
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push ebx
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push 0x469f74
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.004084d7
push 0x14
push edi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x40a9d0
call fcn.00407db2
test eax, eax
je 0x40a9b9
call fcn.0040a80a
test eax, eax
je 0x40a9b9
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x40a9c4
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setup.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x40a9dd
push 0
call fcn.0044e26f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
leave
ret
Function at 0x40a9ee
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00409912
pop ecx
test eax, eax
je 0x40aa03
xor eax, eax
inc eax
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40aa1e
push 1
push 0x47d028
push esi
call fcn.0040a8cf
add esp, 0xc
xor eax, eax
pop esi
ret

Function at 0x40b0b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x394], eax
mov eax, dword [ebp + 0x3a0]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov esi, dword [ebp + 0x3a4]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x74], eax
cmp eax, edi
jne 0x40b114
call fcn.00408715
mov esi, eax
jmp 0x40b1da
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40b12d
call fcn.00408715
jmp 0x40b1cf
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x40b123
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40b189
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x40b160
lea ecx, [ebp - 0x70]
call fcn.00408ea0
mov esi, 0x8007000e
lea ecx, [ebp - 0x78]
call fcn.00408dda
mov ecx, dword [ebp + 0x394]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
add ebp, 0x398
leave
ret 0x10
push eax
lea ecx, [ebp - 0x70]
call fcn.00409ad4
cmp dword [ebp - 0x70], edi
jne 0x40b19e
mov esi, 0x8007000e
jmp 0x40b1d1
push esi
push dword [ebp - 0x70]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x40b123
mov edx, dword [ebp - 0x70]
push dword [ebp + 0x3ac]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.0040ab36
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x40b165
lea ecx, [ebp - 0x70]
call fcn.00408ea0
jmp 0x40b165
Function at 0x40b86e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
mov ebx, dword [ebp + 0x3a4]
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
mov dword [ebp - 0x80], 0xffffff9c
call fcn.0044c960
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.0044c960
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.0044cfa3
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0x18
lea eax, [ebp + 0x190]
push eax
call esi
lea eax, [ebp + 0x190]
push eax
call esi
push str.360Util.dll
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x190]
mov esi, 0x484168
push eax
mov ecx, esi
call fcn.00408568
test eax, eax
je 0x40b96d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040b6b5
push str.__elevated
lea ecx, [ebp - 0x7c]
call fcn.00409730
push ebx
push 7
push 0xbb8
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00431f52
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00408318
mov ecx, dword [ebp + 0x398]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
add ebp, 0x39c
leave
ret
Function at 0x40fa7f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
push edi
mov edi, dword [ebp + 0x3a4]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0044c960
xor eax, eax
push esi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.0044c960
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
add esi, 2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40fb32
cmp word [ebp - 0x78], ax
je 0x40fb32
lea eax, [ebp - 0x78]
push eax
push str._s360verify.dll
push dword [ebp + 0x3a8]
push edi
call fcn.0040fa27
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb32
xor eax, eax
inc eax
jmp 0x40fb84
push esi
lea eax, [ebp + 0x190]
push eax
push dword [0x485628]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40fb82
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40fb82
push str...360verify.dll
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40fb82
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fb2d
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop edi
xor ecx, ebp
pop esi
call fcn.0044cbcc
add ebp, 0x39c
leave
ret
Function at 0x40fc63
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x194], ax
xor esi, esi
lea eax, [ebp + 0x196]
inc esi
push eax
mov dword [ebp - 0x78], esi
call fcn.0044c960
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.PartnerName
mov dword [ebp - 0x7c], esi
mov edi, str.SOFTWARE360SafeCoop
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x80], 0x208
call ebx
push 4
pop eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.userid
push str.Software360Safe
push SysReAllocStringLen
call ebx
xor ebx, ebx
cmp word [ebp + 0x194], bx
jne 0x40fe27
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.0044c960
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360oemoeminfo.ini
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp + 0x194]
push ebx
push eax
call fcn.0044c960
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x103
lea eax, [ebp + 0x194]
push eax
push ebx
push 0x46a6c8
mov ebx, str.main
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40fd9d
cmp word [ebp + 0x194], 0
je 0x40fda7
lea eax, [ebp - 0x74]
push eax
push 1
push 0x46a6b4
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x78], eax
cmp word [ebp + 0x194], 0
jne 0x40fdc2
mov eax, 0x104
push eax
push str.h_home
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0044d7db
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call fcn.0044cbfc
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ecx
add eax, eax
push eax
lea eax, [ebp + 0x194]
push eax
push 1
push str.PartnerName
push edi
push esi
call ebx
lea eax, [ebp + 0x194]
push eax
call fcn.0044cbfc
pop ecx
add eax, eax
push eax
lea eax, [ebp + 0x194]
push eax
push 1
push str.PrePartner
push edi
push esi
call ebx
push 4
lea eax, [ebp - 0x78]
push eax
push 4
push str.userid
push str.Software360Safe
push SysReAllocStringLen
call ebx
xor ebx, ebx
cmp dword [ebp - 0x78], ebx
pop edi
pop esi
pop ebx
jne 0x40fe36
mov dword [ebp - 0x78], 1
lea eax, [ebp + 0x194]
push eax
mov ecx, 0x4829c8
call fcn.0040ad64
mov ecx, dword [ebp + 0x39c]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0044cbcc
add ebp, 0x3a0
leave
ret