joyce8/EMBER2024-capa huggingface dataset:
Function at 0x569380
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x594ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x629d58]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629d58]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
push 0x19
xor ebx, ebx
push str.boost::filesystem::rename
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403cc0
mov eax, 8
mov dword [esp + 0x74], ebx
cmp dword [esi + 0x14], eax
jb 0x5693f8
mov ecx, dword [esi]
jmp 0x5693fa
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x569403
mov eax, dword [edi]
jmp 0x569405
mov eax, edi
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x569424
cmp ebp, ebx
je 0x569464
mov dword [ebp], ebx
call fcn.0056a210
mov dword [ebp + 4], eax
jmp 0x569464
call fcn.0056a210
cmp ebp, ebx
jne 0x569456
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.00568ac0
push 0x61e6c4
lea ecx, [esp + 0x34]
push ecx
call fcn.004fc4f1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov dword [ebp + 4], esi
cmp dword [esp + 0x28], 0x10
jb 0x569478
mov edx, dword [esp + 0x14]
push edx
call fcn.0040d019
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004fbd5c
add esp, 0x64
ret

Function at 0x56af60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x56afcf
mov eax, dword [esp + 0xc]
test eax, eax
je 0x56afcf
mov cl, byte [eax]
cmp cl, 0xbc
jne 0x56afa2
cmp byte [eax + 1], 0xbd
jne 0x56afa2
push 0
add eax, 2
push eax
push edi
call fcn.005441b0
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.00544630
mov byte [eax + edi - 4], 0
add esp, 0x14
mov eax, edi
pop edi
ret
xor cl, 0x23
push esi
xor esi, esi
mov byte [edi], cl
cmp byte [eax], 0
je 0x56afc6
mov ecx, edi
sub ecx, eax
mov dl, byte [eax + 1]
inc eax
dec dl
xor dl, byte [ecx + eax - 1]
inc esi
mov byte [ecx + eax], dl
cmp byte [eax], 0
jne 0x56afb3
mov byte [esi + edi], 0
pop esi
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x59b860
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0x60
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004fc2f0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
ret
Function at 0x401b74
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 4
mov eax, 0x4b1d2e
call fcn.004764c0
mov esi, ecx
test esi, esi
je 0x401c02
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401c02
push 0
push esi
call fcn.0040224e
pop ecx
pop ecx
test eax, eax
je 0x401c02
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
mov edi, dword [ebp - 0x10]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
add esi, 0x398
push eax
mov ecx, esi
call fcn.00401c3e
push dword [esi]
call fcn.00402140
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.00402820
xor eax, eax
inc eax
jmp 0x401c04
xor eax, eax
call fcn.00476598
ret 4

Function at 0x401c8b
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401cd0
xor eax, eax
jmp 0x401d60
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push eax
call esi
test eax, eax
je 0x401d54
cmp dword [esp + 0x14], 0x40
jne 0x401d54
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401d54
push edi
push edi
push dword [esp + 0x154]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14c]
jne 0x401d54
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, 0xf8
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
je 0x401d54
cmp dword [esp + 0x14], ebx
jne 0x401d54
cmp dword [esp + 0x18], 0x4550
jne 0x401d54
cmp word [esp + 0x1e], di
je 0x401d54
xor edi, edi
inc edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret
Function at 0x401dfe
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4d28bc
xor edi, edi
push 0x4d28c8
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x810], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401ed3
push 0x4d2948
lea eax, [ebp - 0x808]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ed3
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0040224e
pop ecx
pop ecx
test eax, eax
je 0x401ed3
lea eax, [ebp - 0x808]
push eax
call fcn.00402058
mov esi, eax
test esi, esi
je 0x401ed3
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret

Function at 0x401ee3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.00475420
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x100c]
push 0x4d2970
push eax
call fcn.004753d2
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2978
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push str.vL
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d29c8
push eax
call fcn.00476ee3
add esp, 0xc
push 0x14
push edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x401ff9
call fcn.00401de1
test eax, eax
je 0x401fe2
call fcn.00401dfe
test eax, eax
je 0x401fe2
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x401fed
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setup.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x402006
push 0
call fcn.00476e4b
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret
Function at 0x4050cf
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xc
mov eax, 0x4b12b7
call fcn.004764c0
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ebx, 0x4f9e00
push ebx
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x405120
push 0x4d32e8
call fcn.00404da7
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
call fcn.00476598
ret 8
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00404e82
test eax, eax
jne 0x405144
push str.UnpackToTempFolder_SaveToFile_Failed__
call fcn.00404da7
pop ecx
lea ecx, [edi - 0x10]
jmp 0x405111
push ebx
lea ecx, [ebp - 0x14]
call fcn.004027fb
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004010d8
mov esi, dword [ebp - 0x14]
pop ecx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40518a
push esi
push str.UnpackToTempFolder_Create_Folder_Failed__Folder_:__s
call fcn.00404da7
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00402820
jmp 0x40513f
cmp dword [ebp + 0xc], ebx
je 0x4051b6
push ebx
push esi
push edi
call fcn.00473954
add esp, 0xc
test eax, eax
jl 0x405180
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00401c3e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x4051c4
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.004053da
test eax, eax
jne 0x40519e
lea ecx, [esi - 0x10]
call fcn.00402820
lea ecx, [edi - 0x10]
call fcn.00402820
mov eax, ebx
jmp 0x405118

Function at 0x4051db
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4b5850
call fcn.004764c0
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x405220
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
call fcn.00476598
ret 8
mov edi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
push edi
call fcn.00404e82
test eax, eax
jne 0x40523b
lea ecx, [edi - 0x10]
jmp 0x405211
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403cb9
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0xc], 0
je 0x405276
push 0
push esi
push edi
call fcn.00473954
add esp, 0xc
test eax, eax
jge 0x40529d
lea ecx, [esi - 0x10]
call fcn.00402820
jmp 0x405236
mov ecx, dword [ebp - 0x14]
push esi
push edi
call fcn.004053da
test eax, eax
jne 0x40529d
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00402820
lea ecx, [edi - 0x10]
call fcn.00402820
mov eax, ebx
jmp 0x405218
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x405286
Function at 0x40547f
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c0]
and dword [ebp - 0x7c], 0
push edi
push 0
push 2
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x405514
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40550d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push ebx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x405505
cmp dword [ebp + 0x1c4], 0
jne 0x4054f5
push dword [ebp - 0x80]
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x405505
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4054d4
jmp 0x40550c
mov dword [ebp - 0x7c], 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop edi
call fcn.0047549a
add ebp, 0x1b8
leave
ret
Function at 0x4056b9
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1d8
mov eax, 0x4b4c45
call fcn.00476529
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1ac], ebx
call fcn.00476890
pop ecx
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1cc], eax
call fcn.0040a74e
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040a70a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 1
call fcn.0040a78d
xor edi, edi
inc edi
jmp 0x4058c1
cmp dword [ebp - 0x1ac], ebx
jne 0x4058e8
lea eax, [ebp - 0x1c4]
push eax
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1dc]
call fcn.0040ada2
lea ecx, [ebp - 0x1dc]
call fcn.0040add4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b804
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1d4]
call fcn.0040ada2
mov esi, dword [ebp - 0x1d0]
push dword [ebp - 0x1b4]
lea ecx, [esi + 0x1c]
mov eax, esi
call fcn.0040afa6
mov eax, dword [ebp - 0x1b4]
pop ecx
lea edx, [ebp - 0x1bc]
push edx
lea ecx, [eax - 0x1c]
push eax
push ecx
call fcn.0040afe4
sub dword [ebp - 0x1b4], 0x1c
add esp, 0xc
lea eax, [ebp - 0x1c4]
push eax
push esi
lea ecx, [ebp - 0x1e4]
call fcn.0040ada2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b804
push str..
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040a81b
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x4057e2
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x1a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4058b7
test byte [ebp - 0x1a8], 0x10
je 0x405871
cmp byte [ebp - 0x17c], 0x2e
jne 0x405826
cmp byte [ebp - 0x17b], bl
je 0x405892
cmp byte [ebp - 0x17b], 0x2e
jne 0x405826
cmp byte [ebp - 0x17a], bl
je 0x405892
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b804
push 0x4d340c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0040a81b
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040a81b
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.0040a78d
push ebx
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040b862
jmp 0x405892
mov eax, dword [ebp - 0x1cc]
dec eax
push eax
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x17c]
push eax
call fcn.00490df5
add esp, 0xc
test eax, eax
je 0x4058aa
lea eax, [ebp - 0x1a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057fb
jmp 0x4058b0
mov dword [ebp - 0x1ac], edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.0040b862
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040b862
mov eax, dword [ebp - 0x1b4]
sub eax, dword [ebp - 0x1b8]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x40571a
lea ecx, [ebp - 0x1c4]
call fcn.0040a930
push dword [ebp - 0x1c4]
call fcn.00472b5b
mov eax, dword [ebp - 0x1ac]
pop ecx
call fcn.004765ac
ret
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 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 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