joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a2e2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push edi
lea ebx, [ebp - 0x80]
call fcn.0040a188
mov edi, dword [ebp - 0x80]
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x40a38c
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 0x206
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a38c
cmp dword [ebp - 0x74], ebx
je 0x40a38c
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40a37f
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea ecx, [edi - 0x10]
call fcn.00402870
mov eax, esi
pop esi
jmp 0x40a396
lea ecx, [edi - 0x10]
call fcn.00402870
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0x19c
leave
ret
Function at 0x40a529
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 0x40a581
push str.GetNativeSystemInfo
push 0x4d4518
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a57b
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x40a581
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 0x40a5aa
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 0x40a614
cmp ebx, 1
jne 0x40a5d3
xor edi, edi
inc edi
jmp 0x40a614
cmp ebx, 2
jne 0x40a614
cmp byte [ebp + 0xea], 1
jne 0x40a5ef
cmp word [ebp - 0x5c], 9
jne 0x40a5ef
push 0x41
jmp 0x40a6d6
test dword [ebp + 0xe8], 0x8000
je 0x40a600
push 0x71
pop edi
jmp 0x40a614
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 0x40a6a5
cmp word [ebp - 0x5c], 9
jne 0x40a66b
cmp esi, 6
jne 0x40a662
test ebx, ebx
jne 0x40a638
push 0x42
jmp 0x40a6d6
cmp ebx, 1
jne 0x40a644
push 0x43
jmp 0x40a6d6
cmp ebx, 2
jne 0x40a650
push 0x44
jmp 0x40a6d6
cmp ebx, 3
jne 0x40a659
push 0x45
jmp 0x40a6d6
cmp ebx, 4
jne 0x40a6d7
push 0x46
jmp 0x40a6d6
cmp esi, 0xa
jne 0x40a6d7
test ebx, ebx
jmp 0x40a65c
cmp esi, 6
jne 0x40a69c
test ebx, ebx
jne 0x40a678
push 2
jmp 0x40a6d6
cmp ebx, 1
jne 0x40a681
push 3
jmp 0x40a6d6
cmp ebx, 2
jne 0x40a68a
push 4
jmp 0x40a6d6
cmp ebx, 3
jne 0x40a693
push 5
jmp 0x40a6d6
cmp ebx, 4
jne 0x40a6d7
push 6
jmp 0x40a6d6
cmp esi, 0xa
jne 0x40a6d7
test ebx, ebx
jmp 0x40a696
cmp word [ebp - 0x5c], 9
jne 0x40a6c2
cmp esi, 6
jne 0x40a6d7
test ebx, ebx
jne 0x40a6b9
push 0x47
jmp 0x40a6d6
cmp ebx, 1
jne 0x40a6d7
push 0x48
jmp 0x40a6d6
cmp esi, 6
jne 0x40a6d7
test ebx, ebx
jne 0x40a6cf
push 7
jmp 0x40a6d6
cmp ebx, 1
jne 0x40a6d7
push 8
pop edi
mov ecx, dword [ebp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0xf0
leave
ret
Function at 0x40bab6
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 0x40bbf1
cmp dword [esp + 0xc], 0x18
jne 0x40bbf1
cmp dword [esp + 0x1c], 3
jne 0x40bbf1
mov eax, dword [esp + 0x20]
cmp eax, 0x23c
jb 0x40bbf1
xor edx, edx
mov ecx, 0x23c
div ecx
test edx, edx
jne 0x40bbf1
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x40bbf1
cmp dword [esp + 0x10], ebx
jne 0x40bbf1
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x18]
cmp eax, edx
jne 0x40bbf1
push ecx
call fcn.00474e94
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40bbf1
push ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
push edi
push dword [esp + 0x24]
call esi
test eax, eax
je 0x40bbe5
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xc], eax
jne 0x40bbe5
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call fcn.0040d17e
add esp, 0xc
push 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00478363
add esp, 0xc
test eax, eax
jne 0x40bbe5
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.0040bc07
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00472c4d
xor eax, eax
pop ecx
inc eax
jmp 0x40bbf3
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004755ea
mov esp, ebp
pop ebp
ret 4
Function at 0x40becd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4081
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 0x40bf13
xor eax, eax
jmp 0x40c090
cmp dword [ebx + 0x40], edi
je 0x40c08d
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.0040b85e
test eax, eax
je 0x40bf54
cmp dword [esp + 0x10], edi
je 0x40bf0c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bf0c
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 0x40bf98
push esi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], edi
je 0x40c08d
push dword [esp + 0x10]
jmp 0x40c087
push eax
call fcn.00474e94
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x40bfb0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40bf42
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.0042089c
test al, al
jne 0x40c009
mov edi, 0x23c
push edi
call fcn.00416716
add eax, 4
push eax
push dword [esp + 0x1c]
call fcn.00479b60
add dword [esp + 0x20], edi
add esp, 0xc
call fcn.0040ccd5
jmp 0x40bfc4
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0040d17e
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.0040b9d1
pop ecx
test eax, eax
je 0x40c078
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 0x40c059
call fcn.0040cedd
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push dword [esp + 0x1c]
push eax
call fcn.0040b894
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [esp + 0x18]
call fcn.00472c4d
pop ecx
cmp esi, edi
je 0x40c08d
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.004755ea
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf4d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test edi, edi
je 0x40cff9
mov word [edi], ax
test ebx, ebx
je 0x40cff9
push esi
mov esi, 0x4d5148
push ebx
push dword [esi]
call fcn.00475826
pop ecx
pop ecx
test eax, eax
je 0x40cf9a
add esi, 8
cmp esi, str.TargetDir
jl 0x40cf7f
jmp 0x40cfe0
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40cfe0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00475570
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 0x40cfe0
lea eax, [ebp - 0x2004]
push eax
call fcn.0047600e
cmp eax, dword [ebp + 8]
pop ecx
jl 0x40cfe4
xor eax, eax
jmp 0x40cff8
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.00475519
xor eax, eax
add esp, 0xc
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret

Function at 0x40d054
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
push esi
mov esi, dword [ebp + 0x1fac]
test esi, esi
jne 0x40d082
xor eax, eax
jmp 0x40d0d9
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00475570
push 0x2000
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [ebp - 0x7c], 3
call fcn.00475570
push 0xfff
push esi
lea eax, [ebp - 0x60]
push 0x1000
push eax
call fcn.00476887
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.004755ea
add ebp, 0x1fa4
leave
ret

Function at 0x40d204
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
push 0x10
xor esi, esi
push esi
push dword [esp + 0x18]
call fcn.00475570
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x40d2ae
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 0x40d2ad
cmp ebx, 0xffffffff
je 0x40d2a6
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 0x40d2a6
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 0x40d29b
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.0040d17e
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 0x40d304
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00476c90
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.00475570
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x40d3bd
test ebx, ebx
je 0x40d3bd
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d3bd
cmp eax, 0x3fff
ja 0x40d3bd
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d3bd
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4d3cc0
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d3bd
push 0x28
push 0
push ebx
call fcn.00475570
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.00477cb0
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d3bf
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x3f90
leave
ret
Function at 0x40ed0f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5548
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.004028ab
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.00411c22
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40ed74
call fcn.00402944
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40ed94
cmp dword [esp + 0x18], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x40edb8
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004029fc
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.004028ab
push ebx
lea ecx, [esi + 0x134]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.00411227
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40edef
call fcn.00402944
push str.VersionBaseFile
lea ecx, [esp + 0x14]
call fcn.004028ab
push ebx
add esi, 0x138
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.00411227
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ee25
call fcn.00402944
mov dword [esp + 0x10], ebx
xor ebx, ebx
inc ebx
jmp 0x40ed94
Function at 0x40f1a2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b630c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1014
call fcn.00476c90
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, 0x4d3fa0
push esi
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.004027b6
mov ecx, dword [esp + 0x18]
push esi
call fcn.004027b6
push 0x4f9e18
lea ecx, [esp + 0x18]
call fcn.0040284b
and dword [esp + 0x1030], 0
mov esi, 0x800
push esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00475570
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040ff08
test eax, eax
jne 0x40f27a
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004027b6
push esi
lea eax, [esp + 0x820]
push 0
push eax
call fcn.00475570
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 0x40f2f1
push 0
push eax
call fcn.0040229e
pop ecx
test eax, eax
pop ecx
lea eax, [esp + 0x81c]
je 0x40f324
push 0x400
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00439e49
add esp, 0xc
jmp 0x40f334
push str.safemon360tray.exe
push dword [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x40f31d
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, esi
jmp 0x40f254
lea eax, [esp + 0x81c]
push str.1.0.0.1001
push 0x400
push eax
call fcn.004022d7
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00401c8e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x81c]
push eax
call fcn.004027b6
xor esi, esi
inc esi
jmp 0x40f30a
Function at 0x40fc83
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5390
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1010
call fcn.00476c90
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.00475570
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.00475570
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x81c]
push eax
push 0x4d529c
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.00402530
and dword [esp + 0x1028], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403c96
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 1
call fcn.0040c153
mov edi, dword [esp + 0x10]
mov esi, 0x4f6fa0
push edi
lea ecx, [esi + 4]
call fcn.0040cdc8
test eax, eax
je 0x40fdc9
add esi, 8
cmp esi, 0x4f6fb8
jl 0x40fd71
lea ecx, [edi - 0x10]
call fcn.00402870
mov esi, 0x804
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.00402870
jmp 0x40fd96
Function at 0x40ff08
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0x818
mov eax, 0x4b427f
call fcn.00476679
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.00475570
mov edi, 0x400
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.00439395
add esp, 0x14
test eax, eax
je 0x40ff87
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
call fcn.004022d7
lea ecx, [ebp - 0x81c]
call fcn.00410f70
xor eax, eax
inc eax
call fcn.004766fc
ret 4
mov eax, dword [esi + 0x14c]
push 1
push eax
push dword [esi + 0x114]
lea ecx, [ebp - 0x81c]
call fcn.00410f2f
test eax, eax
jne 0x410024
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.00410ec0
test eax, eax
jne 0x410019
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410019
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410019
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
xor ebx, ebx
inc ebx
call fcn.004022d7
lea ecx, [ebp - 0x81c]
call fcn.00410f70
mov eax, ebx
jmp 0x40ff7f
lea ecx, [ebp - 0x81c]
call fcn.00410f70
call fcn.0040fe90
test eax, eax
je 0x410007
push ebx
push 0x26
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x410007
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 0x410007
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40fff1
jmp 0x410007

Function at 0x410ec0
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 0x410f29
cmp dword [ebp + 0x10], 1
je 0x410f01
cmp dword [ebp + 0x10], 2
je 0x410f01
push 0xd
pop eax
jmp 0x410f29
mov eax, dword [ebp - 4]
test edi, edi
je 0x410f23
test eax, eax
je 0x410f1e
test al, 1
jne 0x410efc
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x410f23
jmp 0x410efc
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 0x412308
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 0x412345
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