joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491af2
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push 4
mov eax, 0x52e18f
call fcn.004f22ff
call fcn.00498865
mov ebx, eax
cmp ebx, 3
jge 0x491b11
xor eax, eax
jmp 0x491b93
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491b25
xor eax, eax
inc eax
jmp 0x491b93
lea eax, [ebp - 0x10]
push eax
call fcn.00492b95
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
xor edi, edi
mov dword [ebp - 4], edi
push dword [esi]
push str._s.lnk
push eax
call fcn.0045198a
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004918d1
add esp, 0x18
test eax, eax
je 0x491b86
cmp ebx, 5
jge 0x491b70
push edi
push edi
push edi
push dword [ebp - 0x10]
push str.taskbarpin
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x491b7a
lea eax, [ebp - 0x10]
push eax
call fcn.00491b99
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, edi
call fcn.004f22cd
ret

Function at 0x492b1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov word [ebp - 0x210], ax
push 0x208
lea eax, [ebp - 0x20e]
mov dword [ebp - 0x214], edi
push edi
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x210]
push edi
push dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, esi
test eax, eax
js 0x492b79
lea eax, [ebp - 0x210]
push eax
jmp 0x492b7e
push 0x55aff0
call fcn.0043c206
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x492b95
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x52e420
call fcn.004f2332
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], edi
call fcn.00437474
push eax
mov ecx, esi
call fcn.0043a4ef
xor eax, eax
mov dword [ebp - 4], edi
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
mov dword [ebp - 0x220], 1
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x492c49
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x492c0f
sub ecx, edx
sar ecx, 1
je 0x492c49
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
call fcn.0043a8c3
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.0043a84a
mov eax, esi
call fcn.004f22e1
ret
Function at 0x494999
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x430], esi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x424
mov edi, eax
mov dword [ebp - 0x42c], 0x428
xor ebx, ebx
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.004f2e30
add esp, 0xc
cmp edi, 0xffffffff
je 0x494ab7
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x494ab0
add esi, 8
lea eax, [ebp - 0x40c]
push eax
push str.chrome.dll
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x494a68
lea eax, [ebp - 0x40c]
push eax
push str.liebao.dll
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x494a68
lea eax, [ebp - 0x40c]
push eax
push str.chrome_child.dll
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
je 0x494a68
lea eax, [ebp - 0x40c]
push eax
push str.liebao.exe
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
jne 0x494a96
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x430]
push eax
mov dword [esi - 4], eax
call fcn.00494895
test eax, eax
je 0x494a96
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x410]
inc ebx
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
add esi, 0xc
cmp ebx, 4
jge 0x494ab0
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x494a0c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 4
mov eax, 0x52e869
call fcn.004f22ff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043c206
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x494b7e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x494b7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x494b7e
lea eax, [ebp - 0x10]
push eax
call fcn.0049501e
mov eax, dword [ebp - 0x10]
pop ecx
cmp dword [eax - 0xc], esi
je 0x494b81
push eax
call fcn.00494b01
pop ecx
test eax, eax
je 0x494b81
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x494b7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x494b81
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, esi
call fcn.004f22cd
ret
Function at 0x494b94
Capabilities:
Check if file exists

Disassembly:
push 0x22c
mov eax, 0x52e8d2
call fcn.004f2332
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], ebx
call fcn.00437474
push eax
lea ecx, [ebp - 0x224]
call fcn.0043a4ef
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.00437474
push eax
lea ecx, [ebp - 0x228]
call fcn.0043a4ef
mov byte [ebp - 4], 2
call fcn.00437474
push eax
lea ecx, [ebp - 0x220]
call fcn.0043a4ef
mov byte [ebp - 4], 3
call fcn.00437474
push eax
mov ecx, edi
call fcn.0043a4ef
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x21c], ebx
push esi
push str.softwareliebao
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00467350
test eax, eax
je 0x494d78
lea eax, [ebp - 0x228]
push eax
push str.Install_Path_Dir
lea ecx, [ebp - 0x21c]
call fcn.00467400
test eax, eax
je 0x494d78
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
call fcn.0043c2e8
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.0043c2e8
mov esi, 0x53b0d4
push esi
call fcn.0043a8c3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x220]
call fcn.004516f5
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x494d7e
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], ebx
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x22c], ebx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00494f08
add esp, 0xc
test al, al
je 0x494d7e
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004f2e30
mov ecx, dword [ebp - 0x22c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x230]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x218]
push ecx
push str._d._d._d._d
push 0x104
push eax
call fcn.004f58d0
add esp, 0x28
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.0043c2e8
mov ebx, 0x55af84
push ebx
call fcn.0043a8c3
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.004516f5
lea eax, [ebp - 0x218]
push eax
call fcn.0043a8c3
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004516f5
push ebx
call fcn.0043a8c3
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.004516f5
xor ebx, ebx
jmp 0x494d7e
mov esi, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 0
je 0x494d93
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x21c], ebx
call fcn.00436fdb
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.00436fdb
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, edi
call fcn.004f22e1
ret
Function at 0x494f08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x494f89
push esi
push edi
call fcn.004f09ec
pop ecx
mov esi, eax
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp - 4]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x494f7d
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x55af84
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x494f7d
cmp dword [ebp - 8], ebx
je 0x494f7d
mov edx, dword [ebp - 0xc]
mov bl, 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [eax], ecx
test esi, esi
je 0x494f88
push esi
call fcn.004f304f
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496cf1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004f2e30
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x496d52
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x496dfe
mov eax, dword [ebp - 0x110]
dec eax
je 0x496de9
dec eax
jne 0x496dfe
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
push 6
pop edx
cmp eax, edx
jne 0x496d9e
cmp ecx, 1
jne 0x496d8b
xor ebx, ebx
cmp byte [ebp - 6], cl
setne bl
add ebx, 8
jmp 0x496dfe
test ecx, ecx
jne 0x496dd1
cmp byte [ebp - 6], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x496dfe
cmp eax, 5
jne 0x496dc3
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x496db2
push 5
jmp 0x496dca
cmp eax, 1
jne 0x496dbb
mov ebx, edx
jmp 0x496dfe
test eax, eax
jne 0x496dfe
push 3
jmp 0x496dca
cmp eax, 4
ja 0x496dcd
push 4
pop ebx
jmp 0x496dfe
cmp eax, edx
jb 0x496dfe
cmp ecx, 2
jae 0x496dda
cmp eax, edx
jbe 0x496dfe
cmp byte [ebp - 6], 1
jne 0x496dfe
call fcn.00496edb
mov ebx, eax
jmp 0x496dfe
mov eax, dword [ebp - 0x114]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x496e4d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x496ed3
push edi
push ebx
call fcn.004f09ec
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x496ec7
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x55af84
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x496ec7
cmp dword [ebp - 8], esi
je 0x496ec7
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x496ed2
push edi
call fcn.004f304f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496f9d
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x52ece3
call fcn.004f2332
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.00437474
push eax
mov ecx, esi
call fcn.0043a4ef
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.0043a8c3
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0043a84a
push esi
call fcn.00497035
pop ecx
mov eax, esi
call fcn.004f22e1
ret

Function at 0x4974b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x4974cd
mov ecx, dword [ebp + 8]
xor byte [eax + ecx], 0x88
inc eax
cmp eax, dword [ebp + 0xc]
jl 0x4974c3
pop ebp
ret 8
Function at 0x498375
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4983f7
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x4983a9
cmp dword [ebp - 8], 2
jne 0x4983f7
mov ecx, dword [ebp + 0xc]
call fcn.0043a29e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0043a522
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4983f7
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
call fcn.0043c298
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x498475
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push esi
xor esi, esi
test edx, edx
je 0x4984b7
mov ecx, dword [ebp + 0xc]
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x498488
sub ecx, edi
xor edi, edi
sar ecx, 1
inc edi
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, edi
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4986b9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0049886d
mov byte [esi + 0x20], al
lea eax, [ebp - 0x11c]
mov dword [esp], 0x118
push edi
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
push 6
pop ebx
push 5
mov dword [esi + 0xc], eax
pop eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
cmp edx, eax
jne 0x49874f
test ecx, ecx
jle 0x49876e
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x49876e
cmp edx, ebx
jne 0x49876a
sub ecx, edi
je 0x498762
dec ecx
jne 0x49874b
mov dword [esi], 4
jmp 0x49876e
mov dword [esi], 3
jmp 0x49876e
jle 0x49876e
mov dword [esi], ebx
movzx eax, word [ebp - 0xc]
push 8
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
pop ecx
mov dword [ebp - 0x144], edi
lea edi, [ebp - 0x140]
mov dword [esi + 0x14], eax
xor eax, eax
push 0x53b0a0
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4987b9
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x4987c2
lea ecx, [ebp - 0x144]
push ecx
call eax
movzx eax, word [ebp - 0x144]
test eax, eax
je 0x4987e8
cmp eax, ebx
je 0x4987df
cmp eax, 9
jne 0x4987ec
mov dword [esi + 0x18], 1
jmp 0x4987ec
mov dword [esi + 0x18], 2
jmp 0x4987ec
and dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x130]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x498ab0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x248], eax
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x230], ebx
call fcn.004f2e30
add esp, 0xc
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x498b21
xor eax, eax
jmp 0x498c97
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x498c75
test esi, esi
je 0x498b50
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x234], 0
je 0x498b68
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004f38f9
pop ecx
pop ecx
test eax, eax
jne 0x498c32
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x498c32
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x240], eax
jne 0x498c32
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x498c32
lea eax, [ebp - 0x234]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x498c32
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x23c]
and dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 1
push dword [ebp - 0x234]
call fcn.004988b1
add esp, 0x10
test eax, eax
je 0x498c32
mov eax, dword [ebp - 0x238]
push dword [eax]
call fcn.004989e1
pop ecx
push dword [ebp - 0x238]
test eax, eax
je 0x498c49
call fcn.004988ac
and dword [ebp - 0x238], 0
pop ecx
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x498b47
jmp 0x498c6e
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x244], 1
mov dword [ecx], eax
call fcn.004988ac
and dword [ebp - 0x238], 0
pop ecx
test esi, esi
je 0x498c75
push esi
call edi
cmp dword [ebp - 0x234], 0
je 0x498c8d
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
push ebx
call edi
mov eax, dword [ebp - 0x244]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x499b37
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x52f2d6
call fcn.004f22ff
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x90], ebx
jne 0x499b59
mov eax, 0x80004005
jmp 0x499c6d
call fcn.00437474
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a4ef
mov ecx, dword [edi + 0x90]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.004d437a
lea eax, [ebp - 0x10]
push eax
call fcn.004cfddf
mov esi, dword [ebp + 8]
pop ecx
cmp dword [esi + 0x14], 8
jb 0x499b8e
mov esi, dword [esi]
push esi
call fcn.0043a8c3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004516f5
call fcn.00437474
push eax
lea ecx, [ebp - 0x18]
call fcn.0043a4ef
mov ecx, dword [edi + 0x90]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004d4b53
mov eax, dword [edi + 0x90]
push 8
pop edi
mov eax, dword [eax + edi]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.004cfddf
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
cmp dword [esi + 0x14], edi
jb 0x499bf4
mov esi, dword [esi]
push esi
call fcn.0043a8c3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004516f5
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp + 0xc]
je 0x499c31
cmp dword [eax + 0x14], edi
jb 0x499c1c
mov eax, dword [eax]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004cd0f0
add esp, 0x14
jmp 0x499c48
cmp dword [eax + 0x14], edi
jb 0x499c38
mov eax, dword [eax]
push ebx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004cd2e9
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov eax, esi
call fcn.004f22cd
ret 0xc
Function at 0x499d24
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xc
mov eax, 0x52f309
call fcn.004f22ff
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x90], ebx
je 0x499e70
call fcn.004cfbcc
test eax, eax
je 0x499e70
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call fcn.004cfddf
mov esi, dword [ebp + 8]
pop ecx
pop ecx
cmp dword [esi + 0x14], 8
jb 0x499d7e
mov esi, dword [esi]
push esi
call fcn.0043a8c3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004516f5
call fcn.00437474
push eax
lea ecx, [ebp - 0x18]
call fcn.0043a4ef
mov ecx, dword [edi + 0x90]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004d4b53
mov eax, dword [edi + 0x90]
push 8
pop edi
mov eax, dword [eax + edi]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.004cfddf
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
cmp dword [esi + 0x14], edi
jb 0x499de4
mov esi, dword [esi]
push esi
call fcn.0043a8c3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004516f5
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp + 0xc]
je 0x499e21
cmp dword [eax + 0x14], edi
jb 0x499e0c
mov eax, dword [eax]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004cd0f0
add esp, 0x14
jmp 0x499e38
cmp dword [eax + 0x14], edi
jb 0x499e28
mov eax, dword [eax]
push ebx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004cd2e9
add esp, 0x10
test eax, eax
je 0x499e4f
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push str.taskbarpin
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov eax, 0x80004005
call fcn.004f22cd
ret 0xc