joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a220
Capabilities:
Create process on windows
Start service

Disassembly:
push 0xffffffffffffffff
push 0x432d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43f090]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
mov eax, dword [ebp + 0xb4]
sub eax, 0x10
call fcn.004049c0
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x16
push str._safemonKCleanSrv.exe
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x298], 0
call fcn.00404850
mov esi, dword [esp + 0x18]
push 0
push 1
push 1
mov ecx, esi
call fcn.00402450
test eax, eax
je 0x40a3a9
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.00420660
add esp, 0xc
push str._Service
push esi
push str.__s___s
mov ecx, 0x104
lea ebx, [esp + 0x80]
call fcn.0040b490
add esp, 0xc
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00420660
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, ebx
push eax
push 0
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a346
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40a3a9
push 0xf01ff
push str.KCleanSrv
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40a398
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
jmp 0x40a3a2
mov dword [0x442644], 0xcb
push edi
call ebx
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 0x30]
push 0
push 0x5f
push 0x428
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [ebp + 0xac]
test ebp, ebp
je 0x40a3d6
push 0
push 0
push 0x424
push ebp
call dword [sym.imp.USER32.dll_PostThreadMessageW]
lea eax, [esi - 0x10]
mov dword [esp + 0x28c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0041e5bb
add esp, 0x27c
ret 4
Function at 0x40a480
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x438
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x43c]
cmp dword [eax + 0xb0], 0
je 0x40a5dc
mov eax, dword [eax + 0xb4]
push ebx
push edi
sub eax, 0x10
call fcn.004049c0
push 0
mov edi, eax
push 2
add edi, 0x10
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a5be
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00420660
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push ebx
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a5b7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x40a5a2
push ecx
push 0
push 0x411
call ebp
mov esi, eax
test esi, esi
je 0x40a5a2
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x246]
push eax
mov word [esp + 0x248], dx
call fcn.00420660
add esp, 0xc
push 0x104
lea ecx, [esp + 0x240]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40a59b
mov eax, edi
lea edx, [eax + 2]
jmp 0x40a570
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a570
sub eax, edx
sar eax, 1
push eax
push edi
lea edx, [esp + 0x244]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40a59b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a508
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebx
test edx, edx
jg 0x40a5dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0041e5bb
add esp, 0x438
ret 4

Function at 0x40b950
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [eax]
movzx eax, word [eax + 4]
push ebp
push esi
push ecx
push eax
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b9f0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40b9ef
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40b9ee
mov ecx, dword [esp + 0x14]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b9c1
call fcn.0040b2e0
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 4
test esi, esi
je 0x40b9ee
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b9e2
call fcn.0040b2e0
test eax, eax
jne 0x40b9e7
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 4
Function at 0x40dd20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40dd30
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40dd40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40e200
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40e27a
xor eax, eax
cmp ecx, ebp
je 0x40e262
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40e288
cmp ecx, ebp
je 0x40e31b
push ecx
jmp 0x40e315
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40e2ea
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040e200
mov ebx, eax
cmp ebx, ebp
jne 0x40e338
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40e2b0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40e2fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040e390
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40e31b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e5bb
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40e347
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40e31d
Function at 0x40ee10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4322a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43f090]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40ee8f
call fcn.0040b2e0
mov esi, eax
jmp 0x40ef71
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40eeab
call fcn.0040b2e0
jmp 0x40ef68
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40eec4
call fcn.0040b2e0
jmp 0x40ef68
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40eef8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40eee6
lea eax, [ebp]
call fcn.0040dd90
lea esi, [ebp - 0x1c]
call fcn.0040dd70
mov eax, 0x8007000e
jmp 0x40ef83
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040d650
mov dword [ebp - 4], 1
jmp 0x40ef21
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40ef2f
mov esi, 0x8007000e
jmp 0x40ef6a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40ef4d
call fcn.0040b2e0
jmp 0x40ef68
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040ecc0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40ef81
lea eax, [ebp]
call fcn.0040dd90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041e5bb
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fd10
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x432a10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43f090]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x4396b8
push 1
push ebx
push 0x43448c
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40fe6c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x40fe6c
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00404c80
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
call fcn.0041fcfe
add esp, 8
cmp eax, ebx
je 0x40fdfa
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, ebx
jle 0x40fdfa
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
call fcn.0040a8e0
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00403de0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fde9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x43449c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40fe33
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40fe48
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40fe84
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x4105f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x80c
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0x808], eax
test esi, esi
jne 0x41061f
xor eax, eax
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0041e5bb
add esp, 0x80c
ret
push 0x808
lea eax, [esp + 4]
push 0
push eax
call fcn.00420660
push esi
lea ecx, [esp + 0x10]
push 0x404
push ecx
call fcn.00420060
lea edx, [esp + 0x18]
push 0x404
push edx
call fcn.00420049
lea eax, [esp + 0x20]
push str.THEMES_
push eax
call fcn.0041fd88
add esp, 0x28
test eax, eax
je 0x41067f
mov eax, 1
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0041e5bb
add esp, 0x80c
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0041e5bb
add esp, 0x80c
ret
Function at 0x410fa0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x432990
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x43f090]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp dword [eax + 4], edi
sete cl
test cl, cl
je 0x410fed
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x410ffe
push 0x80004003
call fcn.0041e480
lea esi, [esp + 0x14]
call fcn.00410420
mov dword [esp + 0x24], edi
mov ebp, dword [esp + 0x14]
push ecx
mov eax, esp
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], esp
mov dword [eax], ebp
cmp ebp, edi
je 0x411029
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
lea esi, [esp + 0x14]
call fcn.00411460
cmp eax, edi
jge 0x411043
cmp eax, 0x80004002
je 0x411043
push eax
call fcn.0041e480
mov byte [esp + 0x24], 1
mov esi, dword [esp + 0x10]
cmp esi, edi
sete al
test al, al
sete al
test al, al
je 0x4110cd
lea edx, [esp + 0x2c]
push edx
call fcn.00411110
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4110a8
mov edi, dword [esp + 0x2c]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
call fcn.0040b5a0
mov byte [esp + 0x28], 3
test esi, esi
jne 0x41109c
push 0x80004003
call fcn.0041e480
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.00411580
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4110cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
test esi, esi
je 0x4110de
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov dword [esp + 0x24], 0xffffffff
test ebp, ebp
je 0x4110f3
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x4116c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00420660
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Shcore.dll
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00403020
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41174e
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41174e
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41174e
push str.SetProcessDpiAwareness
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x41174e
push 1
call eax
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41176e
push str.SetProcessDPIAware
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x41176e
call eax
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
call fcn.0041e5bb
add esp, 0x20c
ret

Function at 0x411be0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x432678
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43f090]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x411ccb
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
call edi
mov ecx, dword [0x4426fc]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x411ccb
mov eax, dword [esi + 4]
test eax, eax
je 0x411c58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov dword [esi + 0xc], 0x4426f8
mov edx, dword [0x442700]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x442704
mov dword [esp + 0x1c], 0x442704
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0x2c]
mov edi, 0x44271c
mov dword [esp + 0x24], 0
call fcn.004122e0
cmp dword [0x4426f8], 0
jne 0x411cc0
push 0
push 0
push 0x4426f8
push 0x411bc0
push 0
push 0
call fcn.0041fc4e
add esp, 0x18
mov dword [0x4426f8], eax
push 0x442704
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x4127d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4328bb
mov eax, dword fs:[0]
push eax
sub esp, 0xa20
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0xa1c], eax
push edi
mov eax, dword [0x43f090]
xor eax, esp
push eax
lea eax, [esp + 0xa28]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26]
mov dword [esp + 0x1c], 0
push ecx
mov word [esp + 0x28], ax
call fcn.00420660
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.UninstallString
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x103
call edi
test eax, eax
jne 0x41289b
xor edx, edx
cmp dx, word [esp + 0x1c]
je 0x41289b
push str.......360se.exe
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41289b
push esi
lea ecx, [esp + 0x20]
call fcn.00404c80
jmp 0x4129a2
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x22e]
push eax
mov word [esp + 0x230], dx
call fcn.00420660
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se.exe
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0x7fe
call fcn.00404c80
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0xa3c], 0
mov edx, dword [esp + 0x14]
push 0x43649c
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp dword [esp + 0xc], 1
jne 0x41296c
cmp word [esp + 0x224], 0
je 0x41296c
cmp dword [esp + 0x10], 0
jbe 0x41296c
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41294b
push esi
lea ecx, [esp + 0x228]
call fcn.00404c80
lea ecx, [esp + 8]
call fcn.00402a80
jmp 0x4129a2
lea ecx, [esp + 8]
mov dword [esp + 0xa30], 0xffffffff
call fcn.00402a80
push esi
mov ecx, 0x43649c
call fcn.00404c80
jmp 0x4129a2
push esi
mov ecx, 0x43649c
call fcn.00404c80
mov dword [esp + 0xa30], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4129a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0xa1c]
xor ecx, esp
call fcn.0041e5bb
add esp, 0xa2c
ret