joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a542
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xec], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push edi
lea eax, [ebp - 0x80]
xor ebx, ebx
xor edi, edi
test eax, eax
je 0x40a59a
push str.GetNativeSystemInfo
push 0x4d37d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a594
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x40a59a
lea eax, [ebp - 0x80]
push eax
call esi
and dword [ebp - 0x38], ebx
lea eax, [ebp - 0x38]
push eax
push 0x64
push 0
mov dword [ebp - 0x34], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x40a5c3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
push eax
mov dword [ebp - 0x34], ecx
call sub.NETAPI32.dll_NetApiBufferFree
lea eax, [ebp - 0x5c]
push eax
call esi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [ebp - 0x34]
cmp esi, 5
jne 0x40a62d
cmp ebx, 1
jne 0x40a5ec
xor edi, edi
inc edi
jmp 0x40a62d
cmp ebx, 2
jne 0x40a62d
cmp byte [ebp + 0xea], 1
jne 0x40a608
cmp word [ebp - 0x5c], 9
jne 0x40a608
push 0x41
jmp 0x40a6ef
test dword [ebp + 0xe8], 0x8000
je 0x40a619
push 0x71
pop edi
jmp 0x40a62d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x10
add edi, 0x51
cmp byte [ebp + 0xea], 1
jne 0x40a6be
cmp word [ebp - 0x5c], 9
jne 0x40a684
cmp esi, 6
jne 0x40a67b
test ebx, ebx
jne 0x40a651
push 0x42
jmp 0x40a6ef
cmp ebx, 1
jne 0x40a65d
push 0x43
jmp 0x40a6ef
cmp ebx, 2
jne 0x40a669
push 0x44
jmp 0x40a6ef
cmp ebx, 3
jne 0x40a672
push 0x45
jmp 0x40a6ef
cmp ebx, 4
jne 0x40a6f0
push 0x46
jmp 0x40a6ef
cmp esi, 0xa
jne 0x40a6f0
test ebx, ebx
jmp 0x40a675
cmp esi, 6
jne 0x40a6b5
test ebx, ebx
jne 0x40a691
push 2
jmp 0x40a6ef
cmp ebx, 1
jne 0x40a69a
push 3
jmp 0x40a6ef
cmp ebx, 2
jne 0x40a6a3
push 4
jmp 0x40a6ef
cmp ebx, 3
jne 0x40a6ac
push 5
jmp 0x40a6ef
cmp ebx, 4
jne 0x40a6f0
push 6
jmp 0x40a6ef
cmp esi, 0xa
jne 0x40a6f0
test ebx, ebx
jmp 0x40a6af
cmp word [ebp - 0x5c], 9
jne 0x40a6db
cmp esi, 6
jne 0x40a6f0
test ebx, ebx
jne 0x40a6d2
push 0x47
jmp 0x40a6ef
cmp ebx, 1
jne 0x40a6f0
push 0x48
jmp 0x40a6ef
cmp esi, 6
jne 0x40a6f0
test ebx, ebx
jne 0x40a6e8
push 7
jmp 0x40a6ef
cmp ebx, 1
jne 0x40a6f0
push 8
pop edi
mov ecx, dword [ebp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0xf0
leave
ret
Function at 0x40bb0f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [esp + 0x18], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x28]
mov edi, ecx
push eax
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call esi
test eax, eax
je 0x40bc4a
cmp dword [esp + 0xc], 0x18
jne 0x40bc4a
cmp dword [esp + 0x1c], 3
jne 0x40bc4a
mov eax, dword [esp + 0x20]
cmp eax, 0x23c
jb 0x40bc4a
xor edx, edx
mov ecx, 0x23c
div ecx
test edx, edx
jne 0x40bc4a
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x40bc4a
cmp dword [esp + 0x10], ebx
jne 0x40bc4a
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x18]
cmp eax, edx
jne 0x40bc4a
push ecx
call fcn.00474d9f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40bc4a
push ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
push edi
push dword [esp + 0x24]
call esi
test eax, eax
je 0x40bc3e
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xc], eax
jne 0x40bc3e
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call fcn.0040d1d7
add esp, 0xc
push 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00478214
add esp, 0xc
test eax, eax
jne 0x40bc3e
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
xor edx, edx
mov ecx, 0x23c
div ecx
push eax
push edi
push ebx
call fcn.0040bc60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00472b5b
xor eax, eax
pop ecx
inc eax
jmp 0x40bc4c
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 4
Function at 0x40bf26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4044
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x40bf6c
xor eax, eax
jmp 0x40c0e9
cmp dword [ebx + 0x40], edi
je 0x40c0e6
mov dword [esp + 0x10], edi
push edi
push edi
push 0x80
push 2
push 7
push 0x40000000
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], edi
call fcn.0040b8b7
test eax, eax
je 0x40bfad
cmp dword [esp + 0x10], edi
je 0x40bf65
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bf65
lea esi, [ebx + 0x24]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
imul eax, eax, 0x23c
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], eax
cmp eax, edi
jne 0x40bff1
push esi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], edi
je 0x40c0e6
push dword [esp + 0x10]
jmp 0x40c0e0
push eax
call fcn.00474d9f
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x40c009
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40bf9b
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
lea edi, [esp + 0x28]
lea esi, [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.0042096a
test al, al
jne 0x40c062
mov edi, 0x23c
push edi
call fcn.00416857
add eax, 4
push eax
push dword [esp + 0x1c]
call fcn.00479960
add dword [esp + 0x20], edi
add esp, 0xc
call fcn.0040cd2e
jmp 0x40c01d
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0040d1d7
add esp, 0xc
push dword [esp + 0x1c]
xor edi, edi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push esi
call fcn.0040ba2a
pop ecx
test eax, eax
je 0x40c0d1
push edi
lea eax, [esp + 0x20]
push eax
push 0x18
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c0b2
call fcn.0040cf36
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push dword [esp + 0x1c]
push eax
call fcn.0040b8ed
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [esp + 0x18]
call fcn.00472b5b
pop ecx
cmp esi, edi
je 0x40c0e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 4
Function at 0x40cfa6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test edi, edi
je 0x40d052
mov word [edi], ax
test ebx, ebx
je 0x40d052
push esi
mov esi, 0x4d4408
push ebx
push dword [esi]
call fcn.004756d6
pop ecx
pop ecx
test eax, eax
je 0x40cff3
add esi, 8
cmp esi, str.TargetDir
jl 0x40cfd8
jmp 0x40d039
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40d039
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 1
push esi
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40d039
lea eax, [ebp - 0x2004]
push eax
call fcn.00475ebe
cmp eax, dword [ebp + 8]
pop ecx
jl 0x40d03d
xor eax, eax
jmp 0x40d051
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.004753d2
xor eax, eax
add esp, 0xc
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret

Function at 0x40d0ad
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
push esi
mov esi, dword [ebp + 0x1fac]
test esi, esi
jne 0x40d0db
xor eax, eax
jmp 0x40d132
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00475420
push 0x2000
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [ebp - 0x7c], 3
call fcn.00475420
push 0xfff
push esi
lea eax, [ebp - 0x60]
push 0x1000
push eax
call fcn.00476737
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, 0x614
mov word [ebp - 0x70], ax
add esp, 0x28
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1fa0]
xor ecx, ebp
pop esi
call fcn.0047549a
add ebp, 0x1fa4
leave
ret

Function at 0x40d25d
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
push 0x10
xor esi, esi
push esi
push dword [esp + 0x18]
call fcn.00475420
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x40d307
push ebx
push esi
push 1
push 3
push esi
push 1
push 1
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x40d306
cmp ebx, 0xffffffff
je 0x40d2ff
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 8], eax
cmp eax, esi
je 0x40d2ff
push ebp
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x40d2f4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push esi
push ebx
call edi
push esi
push esi
push esi
push ebx
mov dword [esp + 0x28], eax
call edi
push dword [esp + 0x1c]
inc esi
push dword [esp + 0x1c]
push ebp
call fcn.0040d1d7
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40d35d
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00475420
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x40d416
test ebx, ebx
je 0x40d416
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d416
cmp eax, 0x3fff
ja 0x40d416
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d416
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4d2f80
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d416
push 0x28
push 0
push ebx
call fcn.00475420
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x13
push ebx
call fcn.00477b60
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d418
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x3f90
leave
ret
Function at 0x40ed68
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b54ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push str.Setup_Application
lea ecx, [esp + 0x10]
call fcn.0040285b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.00411cbb
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40edcd
call fcn.004028f4
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40eded
cmp dword [esp + 0x18], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x40ee11
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004029ac
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.MainApp
lea ecx, [esp + 0x14]
call fcn.0040285b
push ebx
lea ecx, [esi + 0x134]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.004112c8
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ee48
call fcn.004028f4
push str.VersionBaseFile
lea ecx, [esp + 0x14]
call fcn.0040285b
push ebx
add esi, 0x138
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.004112c8
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ee7e
call fcn.004028f4
mov dword [esp + 0x10], ebx
xor ebx, ebx
inc ebx
jmp 0x40eded
Function at 0x40f1fb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b61d9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1014
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, 0x4d3260
push esi
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00402766
mov ecx, dword [esp + 0x18]
push esi
call fcn.00402766
push 0x4f9e00
lea ecx, [esp + 0x18]
call fcn.004027fb
and dword [esp + 0x1030], 0
mov esi, 0x800
push esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040ff61
test eax, eax
jne 0x40f2d3
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402766
push esi
lea eax, [esp + 0x820]
push 0
push eax
call fcn.00475420
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push dword [edi + 0x138]
lea eax, [esp + 0x20]
push dword [esp + 0x18]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
lea eax, [esp + 0x1c]
je 0x40f34a
push 0
push eax
call fcn.0040224e
pop ecx
test eax, eax
pop ecx
lea eax, [esp + 0x81c]
je 0x40f37d
push 0x400
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0043a124
add esp, 0xc
jmp 0x40f38d
push str.safemon360tray.exe
push dword [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x40f376
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, esi
jmp 0x40f2ad
lea eax, [esp + 0x81c]
push str.1.0.0.1001
push 0x400
push eax
call fcn.00402287
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00401c3e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x81c]
push eax
call fcn.00402766
xor esi, esi
inc esi
jmp 0x40f363
Function at 0x40fcdc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5335
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1010
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x100c], eax
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, 0x800
push esi
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00475420
mov edi, dword [edi + 0x154]
add esp, 0xc
push str.i18ni18n.ini
push edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea eax, [esp + 0x818]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x81c]
push eax
push 0x4d455c
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x10]
call fcn.004024e0
and dword [esp + 0x1028], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403cb9
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 1
call fcn.0040c1ac
mov edi, dword [esp + 0x10]
mov esi, 0x4f6fa0
push edi
lea ecx, [esi + 4]
call fcn.0040ce21
test eax, eax
je 0x40fe22
add esi, 8
cmp esi, 0x4f6fb8
jl 0x40fdca
lea ecx, [edi - 0x10]
call fcn.00402820
mov esi, 0x804
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, esi
mov ecx, dword [esp + 0x1020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.00402820
jmp 0x40fdef
Function at 0x40ff61
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0x818
mov eax, 0x4b425f
call fcn.00476529
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
push 0x800
lea eax, [ebp - 0x814]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00475420
mov edi, 0x400
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.00439670
add esp, 0x14
test eax, eax
je 0x40ffe0
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
call fcn.00402287
lea ecx, [ebp - 0x81c]
call fcn.00411011
xor eax, eax
inc eax
call fcn.004765ac
ret 4
mov eax, dword [esi + 0x14c]
push 1
push eax
push dword [esi + 0x114]
lea ecx, [ebp - 0x81c]
call fcn.00410fd0
test eax, eax
jne 0x41007d
mov esi, dword [esi + 0x150]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x814]
push eax
push esi
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x824], edi
call fcn.00410f61
test eax, eax
jne 0x410072
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410072
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410072
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
xor ebx, ebx
inc ebx
call fcn.00402287
lea ecx, [ebp - 0x81c]
call fcn.00411011
mov eax, ebx
jmp 0x40ffd8
lea ecx, [ebp - 0x81c]
call fcn.00411011
call fcn.0040fee9
test eax, eax
je 0x410060
push ebx
push 0x26
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x410060
push str.360360Safe
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410060
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41004a
jmp 0x410060

Function at 0x410f61
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410fca
cmp dword [ebp + 0x10], 1
je 0x410fa2
cmp dword [ebp + 0x10], 2
je 0x410fa2
push 0xd
pop eax
jmp 0x410fca
mov eax, dword [ebp - 4]
test edi, edi
je 0x410fc4
test eax, eax
je 0x410fbf
test al, 1
jne 0x410f9d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x410fc4
jmp 0x410f9d
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x41238b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServicesZhuDongFangYu
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4123c8
push str.DeleteFlag
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x41241b
Capabilities:
Continue service
Modify service
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
mov ecx, ebx
mov dword [ebp - 0xc], edi
call fcn.00412740
push 1
push edi
push edi
mov byte [ebp - 0x10], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
call esi
push eax
push dword [ebp - 8]
push str.ForceExitService::OpenSCManager_Handle:_x_Error:_d_r_n
push dword [ebp - 0x10]
push ebx
call fcn.0041256f
add esp, 0x14
cmp dword [ebp - 8], edi
je 0x412539
push 0x30130
push str.ZhuDongFangYu
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
call esi
push eax
push dword [ebp - 4]
push str.ForceExitService::OpenService_ZhuDongFangYu__Handle:_x_Error:_d_r_n
push dword [ebp - 0x10]
push ebx
call fcn.0041256f
add esp, 0x14
cmp dword [ebp - 4], edi
je 0x412530
call fcn.0041238b
push 1
mov ecx, ebx
call fcn.00412540
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push str.EFlags
push str.SOFTWARE360Safe360krnlsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
mov ecx, ebx
call fcn.004123cd
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 3
mov ecx, ebx
call fcn.004123f7
lea eax, [ebp - 0x2c]
push eax
push 0x8e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0xc], eax
call esi
push eax
push dword [ebp - 0xc]
push str.ForceExitService::ControlService___Ret:_d_Error:_d
push dword [ebp - 0x10]
push ebx
call fcn.0041256f
add esp, 0x14
cmp dword [ebp - 0xc], edi
jne 0x412527
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret