joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511140
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5b119b
mov eax, dword fs:[0]
push eax
mov eax, 0x1214
call fcn.005a3d50
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x1210], eax
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x1220]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1230]
mov dword [esp + 0xc], 0
mov edx, dword [0x621148]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
mov dword [esp + 0x1230], 0
push edx
mov word [esp + 0x20], cx
call fcn.0058e300
add esp, 0xc
push 0
push 0x1a
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x51121d
add esi, 0xfffffff0
mov eax, esi
call fcn.00406580
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x1228], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x511362
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x511362
lea eax, [esp + 0x14]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x511224
mov ecx, dword [0x5e211c]
mov edx, dword [0x5e2120]
mov dword [eax], ecx
mov ecx, dword [0x5e2124]
mov dword [eax + 4], edx
mov edx, dword [0x5e2128]
mov dword [eax + 8], ecx
mov cx, word [0x5e212c]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x14]
push edx
mov word [eax + 0x10], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x511284
push 0
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x5111e1
lea eax, [esp + 0x14]
add eax, 0xfffffffe
jmp 0x511290
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x511290
mov ecx, dword [str.360rili]
mov edx, dword [0x5e2134]
mov dword [eax], ecx
mov ecx, dword [0x5e2138]
mov dword [eax + 4], edx
mov edx, dword [0x5e213c]
mov dword [eax + 8], ecx
mov cx, word [0x5e2140]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x14]
push edx
mov word [eax + 0x10], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5112e9
push eax
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x5111e1
lea edx, [esp + 0x14]
lea edi, [esp + 0xc]
call fcn.00406be0
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x226]
push ecx
mov word [esp + 0x228], ax
call fcn.0058e300
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 0xc
push edx
push esi
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
lea ecx, [esp + 0x220]
call fcn.00406c20
lea eax, [esi - 0x10]
mov dword [esp + 0x1228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x511362
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1210]
xor ecx, esp
call fcn.005886fc
add esp, 0x1220
ret
Function at 0x511b60
Capabilities:
Check if file exists
Delete file
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp + 0xc], 0
mov ebx, eax
mov eax, SysReAllocStringLen
je 0x511b89
mov eax, 0xc0000000
mov ecx, dword [edi]
push 0
push 0x80
push 4
push 0
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x511bb5
mov eax, 0x802
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [esp + 0x10], eax
cmp ebx, eax
jne 0x511c16
push eax
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x511bf8
cmp dword [esp + 0x10], 2
jne 0x511bf8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x805
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x511cab
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp eax, 2
jbe 0x511cab
push 0
push eax
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x511c5b
mov dword [esp + 0x10], 0x806
jmp 0x511ca0
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x511c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], 0x807
jmp 0x511c95
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 8]
shr eax, 1
dec eax
push eax
lea ecx, [ebx + 2]
push ecx
push edx
call fcn.005115a0
test ebx, ebx
je 0x511ca0
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
je 0x511cab
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x511cb6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x512d80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x62626c]
push esi
xor esi, esi
cmp eax, esi
je 0x512d9b
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x512de3
mov eax, dword [eax]
cmp eax, esi
jne 0x512d90
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x512de3
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x512dc0
mov ecx, dword [0x62626c]
mov dword [eax], ecx
mov dword [0x62626c], eax
pop esi
ret
Function at 0x5130c0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 4], edi
cmp edi, 0xffffffff
je 0x5131ab
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x5131a4
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp dword [esp + 0xc], 0x10
jb 0x513180
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x18], eax
jne 0x513180
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x14], eax
je 0x513180
mov eax, dword [esi]
test eax, eax
jne 0x513147
mov ecx, dword [0x6230bc]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x51319f
jmp 0x513170
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x513170
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x6230bc]
push 0
push eax
call ebx
test eax, eax
je 0x51319f
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x513104
mov edi, dword [esp + 8]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
add esp, 0x20
ret

Function at 0x5131b0
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.005130c0
cmp dword [esi], ebx
je 0x51320e
cmp dword [esi + 8], ebx
jbe 0x51320e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call ebp
mov edi, eax
test edi, edi
je 0x513206
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.00512f90
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x5131d4
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x513220
Capabilities:
Resume thread

Disassembly:
cmp dword [ebx], 0
je 0x51326f
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x51325d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call ebp
mov esi, eax
test esi, esi
je 0x513255
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebx + 8]
jb 0x513235
pop esi
pop ebp
mov edx, dword [ebx]
mov eax, dword [0x6230bc]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x513270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov ecx, dword [0x626260]
push ebx
push ebp
push esi
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 0x14], 1
lea esi, [ecx + eax*8]
push edi
mov edi, dword [esi]
mov ebp, 5
je 0x513296
sub edi, ebp
mov ebp, 7
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x10]
push edx
push 0x40
push ebp
push edi
call ebx
test eax, eax
jne 0x5132b6
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
pop ecx
ret
cmp dword [esp + 0x18], 0
je 0x5132dc
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x5132fd
mov eax, dword [esi]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
jmp 0x5132fd
mov ecx, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], ecx
je 0x5132f7
mov dx, word [esi + 0x10]
mov word [edi + 4], dx
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x5132fd
mov dl, byte [esi + 0x10]
mov byte [edi + 4], dl
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
push ebp
push edi
call ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
and eax, 1
mov edx, eax
and edx, 0xfffffffd
add eax, eax
or edx, eax
add edx, edx
and ecx, 0xfffffff9
or edx, ecx
pop edi
mov dword [esi + 0x14], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x513530
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
call fcn.00513400
cmp dword [0x6230bc], 0
je 0x5136cf
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
mov ebx, 0x1000
cmp dword [esp + 0x28], ebx
jne 0x5136c5
test byte [esp + 0x2c], 0xf0
je 0x5136c5
push 0x1c
lea edx, [esp + 0x1c]
push edx
push ebp
call edi
cmp dword [esp + 0x28], ebx
jne 0x5136c5
test byte [esp + 0x2c], 0xf0
je 0x5136c5
call fcn.00512e90
cmp eax, 0xffffffff
jne 0x5136bb
call fcn.00512d80
test eax, eax
je 0x5136b1
mov edi, dword [eax + 4]
mov ecx, dword [edi]
inc dword [eax + 8]
lea edx, [esp + 0x18]
push edx
mov dword [eax + 4], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
call fcn.005137f0
add esp, 4
test eax, eax
je 0x5136a0
call fcn.00512ec0
test eax, eax
je 0x51368f
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
and edi, 0xf
add edi, edi
add edi, edi
add edi, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov ebx, ecx
and ebx, 1
or edi, ebx
mov ebx, dword [eax + 0x14]
and ebx, 0xffffff80
or edi, ebx
mov dword [eax + 0x14], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + 0x18], edi
mov edi, dword [esp + 0x30]
mov dword [eax + 0x1c], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x20], edi
mov edi, dword [esp + 0x38]
mov dword [eax + 8], edx
mov dword [eax + 0x24], edi
test ecx, ecx
je 0x513678
lea ecx, [esi - 5]
mov esi, dword [ecx]
add eax, 0xc
mov dword [eax], esi
mov si, word [ecx + 4]
mov word [eax + 4], si
mov cl, byte [ecx + 6]
mov byte [eax + 6], cl
jmp 0x513683
mov ecx, dword [esi]
mov dword [eax + 0xc], ecx
mov cl, byte [esi + 4]
mov byte [eax + 0x10], cl
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5136d7
mov dword [eax], edx
jmp 0x5136d7
mov esi, edi
mov dword [esp + 0x10], 9
call fcn.00512df0
jmp 0x5136d7
mov esi, edi
mov dword [esp + 0x10], 8
call fcn.00512df0
jmp 0x5136d7
mov dword [esp + 0x10], 9
jmp 0x5136d7
mov dword [esp + 0x10], 3
jmp 0x5136d7
mov dword [esp + 0x10], 7
jmp 0x5136d7
mov dword [esp + 0x10], 2
push 0
push 0x6230b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005886fc
add esp, 0x30
ret 8
Function at 0x514780
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5badb8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push str.360Util.dll
push eax
call fcn.00516143
add esp, 8
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
je 0x5147fb
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5147f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00515ed7
add esp, 4
test eax, eax
jne 0x5147f4
call fcn.0044edc0
test eax, eax
je 0x5147f7
push edi
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
test eax, eax
je 0x51481e
push str.CreateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51481e
push 0x625004
push 0x5e2268
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514846
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x5168d9
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x615370]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0058e300
add esp, 0xc
push 1
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea ecx, [ebp - 0x20c]
call fcn.00406c20
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005886fc
leave
ret

Function at 0x51693e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x615370]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.0058e300
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x516994
push edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00406c20
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, ebx
call fcn.005886fc
add ebp, 0x190
leave
ret

Function at 0x5169b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x615370]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0058e300
add esp, 0xc
push 1
push 0x19
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea ecx, [ebp - 0x20c]
call fcn.00406c20
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005886fc
leave
ret

Function at 0x516cc9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x516d02
call fcn.004064e0
jmp 0x516d3f
mov ecx, dword [ebp - 0xc]
push 4
pop edx
push edi
push ecx
push edi
push edi
push edx
push eax
mov dword [esi + 4], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
cmp eax, edi
jne 0x516d3d
call fcn.004064e0
push dword [esi + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov eax, ebx
jmp 0x516d3f
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x5176e8
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x5bd3bf
call fcn.0058ea9b
lea eax, [ebp - 0x10]
push str.360netbase.dll
push eax
call fcn.00516143
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x517729
push dword [ebp - 0x10]
call fcn.00516d4e
mov ecx, eax
call fcn.00516d9b
test eax, eax
jne 0x51772c
push 2
pop esi
lea ecx, [ebp - 0x10]
call fcn.004066e0
mov eax, esi
call fcn.0058eb3a
ret

Function at 0x517e76
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x615370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [eax - 0xc], edi
jne 0x517e9d
xor eax, eax
jmp 0x517f39
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x517e96
push 0x228
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0058e300
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x517f24
mov eax, ebx
call int.00417710
push esi
lea ecx, [ebp - 0x214]
call fcn.0040ffc0
test eax, eax
jne 0x517f0e
lea eax, [ebp - 0x230]
push eax
lea edi, [ebp - 0x248]
call fcn.005182a0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x517eec
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, dword [ebx + 0x1c]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005886fc
leave
ret

Function at 0x518222
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x615370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x518283
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x51825a
jmp 0x518289
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005886fc
leave
ret
Function at 0x518b17
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x5bad4b
call fcn.0058ea9b
xor ebx, ebx
lea eax, [ebp - 0x14]
push str.360Util.dll
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00516143
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
call fcn.0051652d
test eax, eax
je 0x518b9d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00521ec9
mov eax, dword [eax]
add esp, 0x14
cmp dword [eax - 0xc], ebx
je 0x518b86
cmp dword [ebp - 0x20], 1
ja 0x518b86
cmp dword [ebp - 0x24], 0x3f4
mov byte [ebp - 0xd], 1
jbe 0x518b89
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x28]
call fcn.004066e0
cmp byte [ebp - 0xd], bl
je 0x518bf1
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], ebx
je 0x518baf
cmp dword [0x62469c], ebx
je 0x518baf
cmp dword [ebp - 0x18], ebx
je 0x518be9
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0058e300
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x68], 0x1040
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp - 0x1c]
jmp 0x518c8a
cmp dword [ebp + 0xc], ebx
je 0x518c49
cmp dword [0x62469c], ebx
jne 0x518c55
mov edi, dword [ebp - 0x14]
cmp dword [0x618ef0], ebx
jne 0x518c3f
mov esi, 0x618ed8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x618ef0], ebx
jne 0x518c38
push 0x618ac8
mov ecx, edi
call fcn.004065f0
mov dword [0x618ef4], eax
mov dword [0x618ef0], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x618ef4]
mov dword [0x62469c], eax
cmp dword [0x62469c], ebx
je 0x518b9d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [0x618ef4], ebx
je 0x518c7a
cmp dword [0x618ad4], 5
jbe 0x518c7a
mov ecx, dword [0x618aec]
cmp ecx, ebx
je 0x518c7a
push eax
call ecx
jmp 0x518c7c
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x518b9d
xor esi, esi
inc esi
lea ecx, [ebp - 0x14]
call fcn.004066e0
mov eax, esi
call fcn.0058eb3a
ret