joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41256f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
je 0x412638
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x814]
push 0x200
push eax
call fcn.00415afa
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x416], ax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00475420
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x412638
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe
lea eax, [ebp - 0x414]
push eax
call esi
push str.Zhudongfangyu.log
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00412644
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret

Function at 0x412644
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x41273a
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x412693
push esi
jmp 0x412733
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], ebx
jl 0x4126c0
jg 0x4126ac
cmp dword [ebp - 0x14], 0x100000
jbe 0x4126c0
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xffffffff
je 0x412730
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x412730
inc eax
push eax
call fcn.00474d9f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x412730
push ebx
push ebx
push dword [ebp - 8]
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov byte [eax + edi], bl
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00476890
pop ecx
inc eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00476b34
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41290a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e2e08
push 0x476f80
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a18
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa30], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa2c], eax
xor edi, edi
cmp eax, edi
je 0x412a63
push eax
call fcn.00475ebe
pop ecx
cmp eax, 0x104
ja 0x412a63
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41299f
mov esi, 0x800
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.00475420
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a30]
push eax
call fcn.00475420
add esp, 0x18
lea eax, [ebp - 0xa28]
push eax
push esi
lea eax, [ebp - 0x2a30]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x412a63
push 0x104
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x224]
push eax
call fcn.004753d2
lea eax, [ebp - 0x224]
push eax
call fcn.004759c6
add esp, 0x10
cmp dword [ebp - 0xa28], edi
jbe 0x412a63
lea esi, [ebp + edi*4 - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
push dword [esi]
call fcn.00412e3f
test eax, eax
je 0x412a5a
lea eax, [ebp - 0xa24]
push eax
call fcn.004759c6
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0047558e
add esp, 0xc
test eax, eax
jne 0x412a5a
mov eax, dword [ebx]
push dword [esi]
push ebx
call dword [eax + 0x1c]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x412a13
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047549a
leave
ret 8
Function at 0x412dae
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412e09
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4

Function at 0x412e10
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412e3b
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x413331
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4e5bc0
push 0x476f80
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f3bd0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x80c]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp + 0x814]
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 0x824]
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
test edi, edi
je 0x413516
cmp word [edi], 0
je 0x413516
push edi
call fcn.00475ebe
pop ecx
cmp eax, 0x104
ja 0x413516
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413516
test ebx, ebx
mov eax, ebx
jne 0x4133db
mov eax, 0x4d3260
push eax
push edi
push dword [0x4f7cb8]
mov ebx, str._sRun_App__s__s
push ebx
call fcn.004147e8
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea eax, [ebp + 2]
push eax
call fcn.00475420
push edi
push 0x4d50d8
push 0x3ff
lea eax, [ebp]
push eax
call fcn.00415a3e
push 0x3c
pop edi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.00475420
add esp, 0x38
mov dword [ebp - 0x68], edi
lea eax, [ebp]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], str.open
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 0x818]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], 0x440
cmp dword [ebp + 0x81c], esi
je 0x41346b
push esi
push dword [ebp - 0x24]
call fcn.0040224e
pop ecx
pop ecx
test eax, eax
je 0x413516
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x820], esi
je 0x4134ae
cmp eax, esi
je 0x4134ae
push dword [ebp + 0x828]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4134ae
cmp dword [ebp + 0x82c], esi
je 0x4134ae
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x28], esi
je 0x4134c4
cmp dword [ebp - 0x1c], esi
je 0x4134d2
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
je 0x4134d2
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x4134db
mov edi, 0x4d3260
push edi
push dword [ebp - 0x24]
push dword [0x4f7cbc]
push ebx
mov esi, dword [ebp - 0x20]
call fcn.004147e8
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x41351f
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x804
leave
ret 0x24
Function at 0x413544
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x18
mov eax, 0x4b3f13
call fcn.004764f3
mov ecx, dword [ebp + 0x818]
mov eax, dword [ebp + 0x814]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x81c]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413716
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x413705
lea edi, [ebp - 0x14]
call fcn.00414f68
cmp eax, ebx
jl 0x413705
mov eax, edi
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0041557f
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x18]
cmp esi, ebx
sete al
cmp al, bl
je 0x4135f2
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x413705
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x413705
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x413603
push 0x80004003
call fcn.00474eb0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x4135dc
cmp dword [ebp - 0x20], ebx
je 0x413629
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f9
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x4135dc
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f9
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x4135dc
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475420
push 0x400
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.004753d2
add esp, 0x18
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x820], ebx
jle 0x413687
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f9
push dword [ebp + 0x820]
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135f9
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x4135dc
cmp esi, ebx
je 0x4135f9
mov eax, dword [esi]
push edi
push dword [ebp - 0x24]
push esi
call dword [eax + 0x18]
test eax, eax
jge 0x4136c2
mov byte [ebp - 4], bl
jmp 0x4135e7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [esi]
push esi
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4136e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x413718
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413716
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x804
leave
ret 0x18
Function at 0x41373d
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0
mov eax, 0x4b05fb
call fcn.004764c0
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x41377d
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x41377d
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413787
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
call fcn.00476598
ret 0xc
mov eax, dword [ebp + 0xc]
mov edi, 0x100
cmp dword [eax - 0xc], edi
jl 0x413799
lea ecx, [eax - 0x10]
jmp 0x413778
push 0x2a8
push ebx
push esi
call fcn.00475420
push edi
push dword [ebp + 0xc]
push esi
call fcn.004753d2
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add esp, 0x18
push dword [ebp + 0xc]
push edi
call dword [eax + 0x3c]
mov dword [esi + 0x208], eax
cmp eax, ebx
je 0x4137f2
mov eax, dword [edi]
lea ecx, [esi + 0x28c]
push ecx
lea ecx, [esi + 0x288]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x44]
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x218]
call fcn.0040d35d
mov edi, dword [ebp + 8]
jmp 0x413818
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x413818
push dword [edi + 8]
lea ecx, [esi + 0x218]
push 0x14
push ecx
push ebx
push 0x4d5138
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push 0x28
lea ecx, [esi + 0x238]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x40]
lea eax, [ebp + 0xc]
push eax
call fcn.0040d42d
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
call fcn.00402820
xor eax, eax
inc eax
jmp 0x41377f

Function at 0x413951
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4139b3
mov word [ebx], ax
test esi, esi
jne 0x41397a
xor eax, eax
jmp 0x4139b3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413976
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475420
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0040d25d
add esp, 0x14
test eax, eax
je 0x413976
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040d30c
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret 0x10
Function at 0x4139fb
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413a1c
xor eax, eax
jmp 0x413a6c
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
test eax, eax
jne 0x413a18
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x414422
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d53d0]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d53d4]
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41445f
xor eax, eax
xor edx, edx
jmp 0x41448b
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x414459
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret 8

Function at 0x4145c7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x20]
call fcn.0047edb0
cmp word [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x414659
movzx ecx, word [esi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x50]
cmp edx, dword [esp + 0xc]
ja 0x414671
jb 0x414648
cmp eax, dword [esp + 8]
ja 0x414671
push esi
call fcn.00475ebe
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x414630
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
jmp 0x41465b

Function at 0x414676
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 0x400
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 4
Function at 0x414858
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4b1d2e
call fcn.004764c0
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x414886
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402766
lea ecx, [ebp - 0x10]
call fcn.00415953
mov ecx, eax
call fcn.004159bb
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov ecx, esi
call fcn.00415953
mov ecx, eax
call fcn.004159bb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4148d3
mov edx, dword [esi]
cmp dword [edx - 0xc], ecx
jne 0x4148bf
lea ecx, [eax - 0x10]
jmp 0x4148e6
test ecx, ecx
jne 0x4148d3
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push edi
call dword [eax + 0x8c]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4148ba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
call fcn.00476598
ret 8

Function at 0x414d38
Capabilities:
Get file size

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
cmp dword [esp + 0x10], eax
je 0x414d7c
push edi
push eax
push 0x80
push 3
push eax
push 7
push SysReAllocStringLen
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414d7b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x414d82
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe_
lea eax, [ebp - 0x80c]
push eax
call esi
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.360safe.setup.log
lea eax, [ebp - 0x80c]
push eax
call esi
lea eax, [ebp - 0x80c]
push eax
mov ecx, edi
call fcn.00402766
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0047549a
leave
ret 8
Function at 0x415c48
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4b5c95
call fcn.004764c0
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [edi], vtable.CFileManagerEx.2.0
push 1
push esi
mov dword [ebp - 4], 3
call fcn.00415dca
push dword [0x4fbd68]
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x415cb7
push dword [esi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415cb7
push esi
call fcn.00416178
push dword [esi + 0x80]
call fcn.00402a60
pop ecx
lea eax, [esi + 0x84]
push eax
mov byte [ebp - 4], 2
call fcn.00416337
mov ecx, dword [esi + 0x80]
sub ecx, 0x10
call fcn.00402820
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.0042319a
call fcn.00476598
ret

Function at 0x415d59
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x415dc3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415d79
push edi
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x80]
call fcn.00402766
push edi
push edi
push esi
push 0x415d3c
push edi
push edi
call fcn.00475fd9
add esp, 0x18
push edi
push edi
push 1
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xa4], edi
je 0x415dc3
cmp eax, edi
je 0x415dc3
xor eax, eax
inc eax
jmp 0x415dc5
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x4184b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x4b3fdb
call fcn.004764c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4184de
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x4184de
xor eax, eax
call fcn.00476598
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.004181f4
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x14]
push esi
call fcn.00475ebe
cmp eax, 1
pop ecx
jle 0x41850c
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x41850c
xor ecx, ecx
mov word [eax], cx
push 0x5c
push esi
call fcn.00475160
pop ecx
pop ecx
cmp eax, edi
jne 0x418528
push 0xf
pop edi
push esi
call fcn.00476b34
pop ecx
mov eax, edi
jmp 0x4184d8
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004184b0
pop ecx
cmp eax, edi
je 0x41853c
mov edi, eax
jmp 0x41851d
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41851d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x418538
jmp 0x41851d
Function at 0x418b3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [edi + 8], 0xffffffff
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [edi + 0xc], esi
cmp ebx, esi
jne 0x418b65
xor eax, eax
jmp 0x418c2b
mov ecx, edi
call fcn.00418c39
lea ecx, [edi + 0x10]
mov dword [ebp - 0x14], 0x12
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3262]
mov byte [ebp - 0x15], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3262]
mov byte [ebp - 0x16], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3262]
mov byte [ebp - 0x17], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3262]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
xor dword [ecx], eax
add ecx, 4
dec dword [ebp - 0x14]
jne 0x418b76
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea ebx, [edi + 0x14]
mov dword [ebp - 0x14], 9
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b4c7
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418bd5
lea ebx, [edi + 0x5c]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x80
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b4c7
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418c03
dec dword [ebp - 0x18]
jne 0x418bfc
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret