joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x220]
call fcn.00418350
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0044ea20
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x218], 0
mov ax, word [0x52022c]
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004ebd80
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.00418350
lea ecx, [ebp - 0x224]
call fcn.00418350
lea ecx, [ebp - 8]
call fcn.00418350
cmp dword [ebp - 0xc], 0
ja 0x41cc3e
jmp 0x41cdab
mov edx, dword [ebp - 0xc]
push edx
call fcn.004ec9cd
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x41cc5e
jmp 0x41cdab
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.004ebd80
add esp, 0xc
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0044ea20
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x41cc97
jmp 0x41cdab
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x218]
push edx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x21c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41ccbc
jmp 0x41cdab
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
push edx
push str.000_x
lea eax, [ebp - 8]
push eax
call fcn.00418ae0
add esp, 0xc
push 4
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 8]
call fcn.0041d4e0
push eax
lea ecx, [ebp - 0x224]
call fcn.00418390
lea ecx, [ebp - 0x228]
call fcn.004335b0
mov edx, dword [ebp - 0x218]
movzx eax, word [edx + 2]
push eax
push str.000_x
lea ecx, [ebp - 8]
push ecx
call fcn.00418ae0
add esp, 0xc
push 4
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 8]
call fcn.0041d4e0
push eax
lea ecx, [ebp - 0x224]
call fcn.0041d780
lea ecx, [ebp - 0x22c]
call fcn.004335b0
mov eax, dword [ebp - 0x224]
push eax
push str.StringFileInfo_sOriginalFileName
lea ecx, [ebp - 0x214]
push ecx
call fcn.00418ae0
add esp, 0xc
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0x100
lea ecx, [ebp - 0x214]
call fcn.00416ee0
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41cd8c
jmp 0x41cdab
push 0xffffffffffffffff
lea ecx, [ebp - 0x214]
call fcn.00418620
mov edx, dword [ebp - 0x218]
push edx
lea ecx, [ebp - 0x220]
call fcn.0040f550
cmp dword [ebp - 0x21c], 0
je 0x41cdc3
mov eax, dword [ebp - 0x21c]
push eax
call fcn.004ec3c2
add esp, 4
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418370
lea ecx, [ebp - 8]
call fcn.004335b0
lea ecx, [ebp - 0x224]
call fcn.004335b0
lea ecx, [ebp - 0x214]
call fcn.004335b0
lea ecx, [ebp - 0x220]
call fcn.004335b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eabb3
mov esp, ebp
pop ebp
ret 8
Function at 0x41d5d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jne 0x41d5ed
xor eax, eax
jmp 0x41d63b
mov dword [ebp - 4], 0x400
push 0x800
push 0
lea eax, [ebp - 0x808]
push eax
call fcn.004ebd80
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041b720
add esp, 0x10
test eax, eax
jne 0x41d62e
xor eax, eax
jmp 0x41d63b
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004eabb3
mov esp, ebp
pop ebp
ret

Function at 0x41d9c0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x210], 1
push 0x80
push 0x50e478
lea eax, [ebp - 0x20c]
push eax
call fcn.004ece7d
add esp, 0xc
mov dword [ebp - 0x10c], 2
push 0x80
push 0x50e470
lea ecx, [ebp - 0x108]
push ecx
call fcn.004ece7d
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.00418350
push 0x50e368
lea ecx, [ebp - 0x218]
call fcn.0040f510
lea ecx, [ebp - 0x218]
call fcn.00418600
movzx edx, al
test edx, edx
jne 0x41daa5
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.004ebd80
add esp, 0xc
push 0x104
lea edx, [ebp - 0x428]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0044ea20
push eax
lea edx, [ebp - 0x214]
push edx
call fcn.00418ae0
add esp, 0x10
push 0x50e0b8
lea ecx, [ebp - 0x21c]
call fcn.0040f510
push 0
push 0
push 0
push 2
lea eax, [ebp - 0x210]
push eax
push 0x30
lea ecx, [ebp - 0x21c]
call fcn.0044ea20
push eax
lea ecx, [ebp - 0x214]
call fcn.0044ea20
push eax
mov ecx, dword [ebp - 0x430]
mov edx, dword [ecx + 8]
push edx
call fcn.0041eee0
cmp eax, 1
jne 0x41db3e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040f510
lea ecx, [ebp - 0x42c]
push ecx
mov ecx, 0x535320
call fcn.00415710
lea ecx, [ebp - 0x42c]
call fcn.004335b0
push 0
mov edx, dword [ebp - 0x430]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x21c]
call fcn.004335b0
lea ecx, [ebp - 0x218]
call fcn.004335b0
lea ecx, [ebp - 0x214]
call fcn.004335b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eabb3
mov esp, ebp
pop ebp
ret 4

Function at 0x41deb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x41def0
push 0
push 0
call fcn.004eddb8
add esp, 0x18
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x41e300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], str.SOFTWARE360Safe360krnlsvc
mov dword [ebp - 0x14], 0x50e734
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41e35e
cmp dword [ebp - 8], 0
jne 0x41e35e
xor eax, eax
jmp 0x41e363
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41e370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0041ea70
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x4c]
call fcn.0041e740
mov dword [ebp - 0x44], eax
xor eax, eax
cmp dword [ebp - 0x44], 0
setge al
push eax
push str.RepairService:Service_Status:_d_r_n
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041e800
add esp, 0x10
cmp dword [ebp - 0x44], 0
jl 0x41e3bf
mov eax, 1
jmp 0x41e4e5
cmp dword [ebp + 8], 0
jne 0x41e3cc
xor eax, eax
jmp 0x41e4e5
mov dword [ebp - 0x40], 0
push 0x38
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004ebd80
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x1040
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x2c], str.__install
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x44], 0x80004005
push str.RepairService:Reinstall_Service__r_n
movzx edx, byte [ebp - 1]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0041e800
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
call fcn.00417df0
add esp, 4
test eax, eax
je 0x41e4dc
push 0x2710
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 8], 0
je 0x41e463
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x4c]
call fcn.0041e4f0
test eax, eax
je 0x41e495
mov dword [ebp - 0x44], 0
push str.RepairService:Start360Service_Succeed__r_n
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041e800
add esp, 0xc
jmp 0x41e4cb
mov eax, dword [ebp - 0x48]
push eax
push str.RepairService:Start360Service_Fails_and_Retry___d_r_n
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041e800
add esp, 0x10
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp + 0xc]
jb 0x41e46a
cmp dword [ebp - 0x44], 0
je 0x41e4dc
push str.Repair_Service_Fails__Cannot_Execute_Repair_Command_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
cmp dword [ebp - 0x44], 0
sete al
mov esp, ebp
pop ebp
ret 8
Function at 0x41e4f0
Capabilities:
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x30]
call fcn.0041ea70
mov byte [ebp - 5], al
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 4]
push eax
push str.Start360KrnlService::OpenSCManager_Handle:_x_Error:_d_r_n
movzx ecx, byte [ebp - 5]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041e800
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x41e63b
push 1
mov ecx, dword [ebp - 0x30]
call fcn.0041e650
push 0x30130
push str.ZhuDongFangYu
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.Start360KrnlService::OpenService_Handle:_x_Error:_d_r_n
movzx edx, byte [ebp - 5]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041e800
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x41e631
push 1
mov ecx, dword [ebp - 0x30]
call fcn.0041e6e0
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 4], 0
je 0x41e5ae
push 2
mov ecx, dword [ebp - 0x30]
call fcn.0041e6a0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0xc]
push eax
push str.Start360KrnlService::StartService___Ret:_d_Error:_d
movzx ecx, byte [ebp - 5]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041e800
add esp, 0x14
cmp dword [ebp - 0xc], 0
je 0x41e627
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 0
je 0x41e60d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea edx, [ebp - 0x2c]
push edx
push 0x8c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x41e6e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], str.SOFTWARE360Safe360krnlsvc
mov dword [ebp - 0x14], str.CFlags
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret 4
Function at 0x41e740
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], str.ZhuDongFangYu
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41e76f
mov eax, 0x80004005
jmp 0x41e7fc
push 4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41e799
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x41e7fc
mov dword [ebp - 0x14], 0x80004005
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41e7e5
cmp dword [ebp - 0x2c], 4
jne 0x41e7c6
mov dword [ebp - 0x14], 0
jmp 0x41e7e5
cmp dword [ebp - 0x2c], 1
jne 0x41e7de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0x80004005
jmp 0x41e7e5
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x41e800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x41e820
jmp 0x41e8ed
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x41c], ecx
xor edx, edx
mov word [ebp - 0x820], dx
push 0x3fe
push 0
lea eax, [ebp - 0x81e]
push eax
call fcn.004ebd80
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x200
lea eax, [ebp - 0x820]
push eax
call fcn.0041ee10
mov dword [ebp - 0x824], eax
xor ecx, ecx
mov word [ebp - 0x422], cx
xor edx, edx
mov word [ebp - 0x418], dx
push 0x40e
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004ebd80
add esp, 0xc
push 1
push 0x1a
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41e8e3
push str.360Safe
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Zhudongfangyu.log
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x418]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041e900
mov dword [ebp - 0x41c], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eabb3
mov esp, ebp
pop ebp
ret
Function at 0x41e900
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41e933
jmp 0x41ea64
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41e960
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ea64
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
jl 0x41e994
jg 0x41e978
cmp dword [ebp - 0x18], 0x100000
jbe 0x41e994
push 0
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 2
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41ea5a
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41ea5a
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
call fcn.004e95f1
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41ea5a
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004edc00
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004ec873
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8

Function at 0x41ea70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], str.SOFTWARE360Safe360krnlsvc
mov dword [ebp - 0x14], str.LFlags
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41eace
cmp dword [ebp - 8], 0
je 0x41eace
mov al, 1
jmp 0x41ead0
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x41f010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041fa50
lea ecx, [ebp - 4]
call fcn.00418350
lea eax, [ebp - 4]
push eax
mov ecx, 0x535320
call fcn.004150c0
test eax, eax
je 0x41f123
push str.default
lea ecx, [ebp - 4]
call fcn.0041d430
test eax, eax
jne 0x41f05d
lea ecx, [ebp - 4]
call fcn.004335b0
jmp 0x41f12b
lea ecx, [ebp - 4]
call fcn.00418600
movzx ecx, al
test ecx, ecx
je 0x41f079
lea ecx, [ebp - 4]
call fcn.004335b0
jmp 0x41f12b
lea ecx, [ebp - 8]
call fcn.00418350
lea edx, [ebp - 8]
push edx
mov ecx, 0x535320
call fcn.00415eb0
test eax, eax
jne 0x41f0a8
lea ecx, [ebp - 8]
call fcn.004335b0
lea ecx, [ebp - 4]
call fcn.004335b0
jmp 0x41f12b
lea ecx, [ebp - 0xc]
call fcn.00418350
push 0x50eba8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004185a0
add esp, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00418390
lea ecx, [ebp - 0x10]
call fcn.004335b0
lea ecx, [ebp - 0xc]
call fcn.0044ea20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f103
lea ecx, [ebp - 0xc]
call fcn.004335b0
lea ecx, [ebp - 8]
call fcn.004335b0
lea ecx, [ebp - 4]
call fcn.004335b0
jmp 0x41f12b
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0041f130
lea ecx, [ebp - 0xc]
call fcn.004335b0
lea ecx, [ebp - 8]
call fcn.004335b0
lea ecx, [ebp - 4]
call fcn.004335b0
mov esp, ebp
pop ebp
ret

Function at 0x420ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00420a90
test eax, eax
je 0x420ac7
xor eax, eax
jmp 0x420b05
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x420ad4
xor eax, eax
jmp 0x420b05
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push 0
push 0
call fcn.004eddb8
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
call fcn.00420a90
mov esp, ebp
pop ebp
ret
Function at 0x421000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x421025
cmp dword [ebp + 0xc], 0
je 0x421025
cmp dword [ebp + 0x10], 0
jne 0x42102c
xor eax, eax
jmp 0x4211d4
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.004edc8b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42107b
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x50edec
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.004212e0
add esp, 0x18
test eax, eax
je 0x42107b
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x42107b
mov eax, 1
jmp 0x4211d4
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x421172
push 2
push 0
push 0xffffff00
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x814], 0
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.004ebd80
add esp, 0xc
push 0
lea eax, [ebp - 0x814]
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421170
cmp dword [ebp - 0x814], 0x100
ja 0x421170
push str.____360skin_ver_
mov eax, dword [ebp - 0x814]
shr eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
call fcn.004211f0
add esp, 0xc
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x421166
cmp dword [ebp + 0xc], 0
je 0x421166
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x818]
push ecx
call fcn.00421270
add esp, 0x10
movzx edx, al
test edx, edx
je 0x421166
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x421176
xor eax, eax
jmp 0x4211d4
cmp dword [ebp - 8], 0
jne 0x4211d1
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.004edc8b
add esp, 8
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
je 0x4211d1
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x50edec
mov ecx, dword [ebp - 0x81c]
add ecx, 2
push ecx
call fcn.004212e0
add esp, 0x18
test eax, eax
je 0x4211d1
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x4211d1
mov eax, 1
jmp 0x4211d4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eabb3
mov esp, ebp
pop ebp
ret