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

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push edi
lea ebx, [ebp - 0x80]
call fcn.0040a135
mov edi, dword [ebp - 0x80]
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x40a339
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 0x40a339
cmp dword [ebp - 0x74], ebx
je 0x40a339
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 0x40a32c
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.0040290e
mov eax, esi
pop esi
jmp 0x40a343
lea ecx, [edi - 0x10]
call fcn.0040290e
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047021a
add ebp, 0x19c
leave
ret
Function at 0x40a4d6
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x4ed820]
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 0x40a52e
push str.GetNativeSystemInfo
push 0x4ce508
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a528
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x40a52e
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 0x40a557
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 0x40a5c1
cmp ebx, 1
jne 0x40a580
xor edi, edi
inc edi
jmp 0x40a5c1
cmp ebx, 2
jne 0x40a5c1
cmp byte [ebp + 0xea], 1
jne 0x40a59c
cmp word [ebp - 0x5c], 9
jne 0x40a59c
push 0x41
jmp 0x40a683
test dword [ebp + 0xe8], 0x8000
je 0x40a5ad
push 0x71
pop edi
jmp 0x40a5c1
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 0x40a652
cmp word [ebp - 0x5c], 9
jne 0x40a618
cmp esi, 6
jne 0x40a60f
test ebx, ebx
jne 0x40a5e5
push 0x42
jmp 0x40a683
cmp ebx, 1
jne 0x40a5f1
push 0x43
jmp 0x40a683
cmp ebx, 2
jne 0x40a5fd
push 0x44
jmp 0x40a683
cmp ebx, 3
jne 0x40a606
push 0x45
jmp 0x40a683
cmp ebx, 4
jne 0x40a684
push 0x46
jmp 0x40a683
cmp esi, 0xa
jne 0x40a684
test ebx, ebx
jmp 0x40a609
cmp esi, 6
jne 0x40a649
test ebx, ebx
jne 0x40a625
push 2
jmp 0x40a683
cmp ebx, 1
jne 0x40a62e
push 3
jmp 0x40a683
cmp ebx, 2
jne 0x40a637
push 4
jmp 0x40a683
cmp ebx, 3
jne 0x40a640
push 5
jmp 0x40a683
cmp ebx, 4
jne 0x40a684
push 6
jmp 0x40a683
cmp esi, 0xa
jne 0x40a684
test ebx, ebx
jmp 0x40a643
cmp word [ebp - 0x5c], 9
jne 0x40a66f
cmp esi, 6
jne 0x40a684
test ebx, ebx
jne 0x40a666
push 0x47
jmp 0x40a683
cmp ebx, 1
jne 0x40a684
push 0x48
jmp 0x40a683
cmp esi, 6
jne 0x40a684
test ebx, ebx
jne 0x40a67c
push 7
jmp 0x40a683
cmp ebx, 1
jne 0x40a684
push 8
pop edi
mov ecx, dword [ebp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
add ebp, 0xf0
leave
ret
Function at 0x40baa5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4ed820]
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 0x40bbe0
cmp dword [esp + 0xc], 0x18
jne 0x40bbe0
cmp dword [esp + 0x1c], 3
jne 0x40bbe0
mov eax, dword [esp + 0x20]
cmp eax, 0x23c
jb 0x40bbe0
xor edx, edx
mov ecx, 0x23c
div ecx
test edx, edx
jne 0x40bbe0
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x40bbe0
cmp dword [esp + 0x10], ebx
jne 0x40bbe0
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x18]
cmp eax, edx
jne 0x40bbe0
push ecx
call fcn.0046fac5
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40bbe0
push ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
push edi
push dword [esp + 0x24]
call esi
test eax, eax
je 0x40bbd4
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xc], eax
jne 0x40bbd4
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call fcn.0040d266
add esp, 0xc
push 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004750de
add esp, 0xc
test eax, eax
jne 0x40bbd4
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.0040bbf6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.0046d88b
xor eax, eax
pop ecx
inc eax
jmp 0x40bbe2
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret 4
Function at 0x40bec6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ae9b1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x4ed820]
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 0x40bf0c
xor eax, eax
jmp 0x40c089
cmp dword [ebx + 0x40], edi
je 0x40c086
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.0040b842
test eax, eax
je 0x40bf4d
cmp dword [esp + 0x10], edi
je 0x40bf05
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bf05
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 0x40bf91
push esi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], edi
je 0x40c086
push dword [esp + 0x10]
jmp 0x40c080
push eax
call fcn.0046fac5
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x40bfa9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40bf3b
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.0041de7e
test al, al
jne 0x40c002
mov edi, 0x23c
push edi
call fcn.00416471
add eax, 4
push eax
push dword [esp + 0x1c]
call fcn.00473020
add dword [esp + 0x20], edi
add esp, 0xc
call fcn.0040ccd7
jmp 0x40bfbd
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0040d266
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.0040b9c0
pop ecx
test eax, eax
je 0x40c071
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 0x40c052
call fcn.0040cedf
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push dword [esp + 0x1c]
push eax
call fcn.0040b878
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [esp + 0x18]
call fcn.0046d88b
pop ecx
cmp esi, edi
je 0x40c086
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.0047021a
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test edi, edi
je 0x40cff0
mov word [edi], ax
test ebx, ebx
je 0x40cff0
push esi
mov esi, 0x4cf138
push ebx
push dword [esi]
call fcn.00470456
pop ecx
pop ecx
test eax, eax
je 0x40cf91
add esi, 8
cmp esi, str.TargetDir
jl 0x40cf76
jmp 0x40cfd7
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40cfd7
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004701a0
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 0x40cfd7
lea eax, [ebp - 0x2004]
push eax
call fcn.00470c3e
cmp eax, dword [ebp + 8]
pop ecx
jl 0x40cfdb
xor eax, eax
jmp 0x40cfef
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.00470149
xor eax, eax
add esp, 0xc
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047021a
leave
ret

Function at 0x40d04b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.004701a0
and dword [ebp - 0x400c], 0
add esp, 0xc
test esi, esi
je 0x40d12c
test edi, edi
je 0x40d12c
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d12c
cmp eax, 0x3fff
ja 0x40d12c
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d12c
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x4cdcb0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d12c
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004701a0
mov eax, dword [ebp - 0x4008]
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
dec esi
push esi
push edi
call fcn.004728e1
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d12e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047021a
leave
ret
Function at 0x40d13c
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
push esi
mov esi, dword [ebp + 0x1fac]
test esi, esi
jne 0x40d16a
xor eax, eax
jmp 0x40d1c1
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004701a0
push 0x2000
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [ebp - 0x7c], 3
call fcn.004701a0
push 0xfff
push esi
lea eax, [ebp - 0x60]
push 0x1000
push eax
call fcn.00471466
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.0047021a
add ebp, 0x1fa4
leave
ret

Function at 0x40d2ec
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
push 0x10
xor esi, esi
push esi
push dword [esp + 0x18]
call fcn.004701a0
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x40d396
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 0x40d395
cmp ebx, 0xffffffff
je 0x40d38e
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 0x40d38e
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 0x40d383
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.0040d266
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 0x40d3ec
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00471870
mov eax, dword [0x4ed820]
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.004701a0
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x40d4a5
test ebx, ebx
je 0x40d4a5
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d4a5
cmp eax, 0x3fff
ja 0x40d4a5
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d4a5
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4cdcb0
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d4a5
push 0x28
push 0
push ebx
call fcn.004701a0
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.004728e1
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d4a7
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0047021a
add ebp, 0x3f90
leave
ret
Function at 0x40edf5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afe2c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4ed820]
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.00402953
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.00411c50
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40ee5a
call fcn.004029ec
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40ee7a
cmp dword [esp + 0x18], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x40ee9e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402aa4
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.00402953
push ebx
lea ecx, [esi + 0x134]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.00411280
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40eed5
call fcn.004029ec
push str.VersionBaseFile
lea ecx, [esp + 0x14]
call fcn.00402953
push ebx
add esi, 0x138
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.00411280
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ef0b
call fcn.004029ec
mov dword [esp + 0x10], ebx
xor ebx, ebx
inc ebx
jmp 0x40ee7a
Function at 0x40f288
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0b9c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1014
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed820]
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, 0x4cdf90
push esi
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.0040285e
mov ecx, dword [esp + 0x18]
push esi
call fcn.0040285e
push 0x4f39f8
lea ecx, [esp + 0x18]
call fcn.004028e9
and dword [esp + 0x1030], 0
mov esi, 0x800
push esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040ff85
test eax, eax
jne 0x40f360
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
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.0047021a
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040285e
push esi
lea eax, [esp + 0x820]
push 0
push eax
call fcn.004701a0
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 0x40f3d7
push 0
push eax
call fcn.00402346
pop ecx
test eax, eax
pop ecx
lea eax, [esp + 0x81c]
je 0x40f40a
push 0x400
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040d04b
add esp, 0xc
jmp 0x40f41a
push str.safemon360tray.exe
push dword [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x40f403
xor esi, esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
mov eax, esi
jmp 0x40f33a
lea eax, [esp + 0x81c]
push str.1.0.0.1001
push 0x400
push eax
call fcn.0040237f
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00401d9d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x81c]
push eax
call fcn.0040285e
xor esi, esi
inc esi
jmp 0x40f3f0
Function at 0x40fd00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afc74
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1010
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x100c], eax
push esi
push edi
mov eax, dword [0x4ed820]
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.004701a0
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.004701a0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x81c]
push eax
push 0x4cf28c
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.004025d8
and dword [esp + 0x1028], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403c4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 1
call fcn.0040c14c
mov edi, dword [esp + 0x10]
mov esi, 0x4f0be0
push edi
lea ecx, [esi + 4]
call fcn.0040cdca
test eax, eax
je 0x40fe46
add esi, 8
cmp esi, 0x4f0bf8
jl 0x40fdee
lea ecx, [edi - 0x10]
call fcn.0040290e
mov esi, 0x804
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.0040290e
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.0047021a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.0040290e
jmp 0x40fe13
Function at 0x40ff85
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0x818
mov eax, 0x4aebf2
call fcn.00471258
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.004701a0
mov edi, 0x400
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.0043927d
add esp, 0x14
test eax, eax
je 0x410004
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
call fcn.0040237f
lea ecx, [ebp - 0x81c]
call fcn.00410fc9
xor eax, eax
inc eax
call fcn.004712db
ret 4
mov eax, dword [esi + 0x14c]
push 1
push eax
push dword [esi + 0x114]
lea ecx, [ebp - 0x81c]
call fcn.00410f88
test eax, eax
jne 0x4100a1
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.00410f19
test eax, eax
jne 0x410096
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410096
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410096
lea eax, [ebp - 0x814]
push eax
push edi
push dword [ebp - 0x820]
xor ebx, ebx
inc ebx
call fcn.0040237f
lea ecx, [ebp - 0x81c]
call fcn.00410fc9
mov eax, ebx
jmp 0x40fffc
lea ecx, [ebp - 0x81c]
call fcn.00410fc9
call fcn.0040ff0d
test eax, eax
je 0x410084
push ebx
push 0x26
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x410084
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 0x410084
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41006e
jmp 0x410084

Function at 0x410f19
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 0x410f82
cmp dword [ebp + 0x10], 1
je 0x410f5a
cmp dword [ebp + 0x10], 2
je 0x410f5a
push 0xd
pop eax
jmp 0x410f82
mov eax, dword [ebp - 4]
test edi, edi
je 0x410f7c
test eax, eax
je 0x410f77
test al, 1
jne 0x410f55
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x410f7c
jmp 0x410f55
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 0x412343
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 0x412380
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