joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4918d1
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x52db86
call fcn.004f1d7f
xor ebx, ebx
push ebx
mov edi, ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491930
inc edi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x491916
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4919e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4919e0
lea eax, [ebp - 0x10]
push eax
push 0x54429c
push 1
push 0
push 0x54437c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x491905
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
push dword [esi + 0xc]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
push dword [esi + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
push dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
push 0
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x5442dc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x14]
js 0x491908
mov ecx, dword [eax]
push 1
push dword [ebx]
push eax
call dword [ecx + 0x18]
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
js 0x49190c
xor edi, edi
inc edi
test eax, eax
je 0x4919cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4919e0
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
call fcn.004f1d4d
ret

Function at 0x4919ee
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push 4
mov eax, 0x52dba9
call fcn.004f1d7f
call fcn.00498448
cmp eax, 3
jge 0x491a08
xor eax, eax
jmp 0x491a77
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491a1c
xor eax, eax
inc eax
jmp 0x491a77
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 0x491a6a
push edi
push edi
push edi
push dword [ebp - 0x10]
push str.startpin
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, edi
call fcn.004f1d4d
ret
Function at 0x491af2
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push 4
mov eax, 0x52dbef
call fcn.004f1d7f
call fcn.00498448
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.004f1d4d
ret

Function at 0x492b1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x581d10]
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.004f28b0
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 0x559c78
call fcn.0043c206
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x492b95
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x52de80
call fcn.004f1db2
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.004f28b0
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.004f1d61
ret
Function at 0x49457c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x581d10]
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.004f28b0
add esp, 0xc
cmp edi, 0xffffffff
je 0x49469a
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x494693
add esi, 8
lea eax, [ebp - 0x40c]
push eax
push str.chrome.dll
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x49464b
lea eax, [ebp - 0x40c]
push eax
push str.liebao.dll
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x49464b
lea eax, [ebp - 0x40c]
push eax
push str.chrome_child.dll
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
je 0x49464b
lea eax, [ebp - 0x40c]
push eax
push str.liebao.exe
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
jne 0x494679
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x430]
push eax
mov dword [esi - 4], eax
call fcn.00494478
test eax, eax
je 0x494679
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 0x494693
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4945ef
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.004f1cdb
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 4
mov eax, 0x52e1c2
call fcn.004f1d7f
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 0x494761
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x494761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x494761
lea eax, [ebp - 0x10]
push eax
call fcn.00494c01
mov eax, dword [ebp - 0x10]
pop ecx
cmp dword [eax - 0xc], esi
je 0x494764
push eax
call fcn.004946e4
pop ecx
test eax, eax
je 0x494764
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x494761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x494764
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, esi
call fcn.004f1d4d
ret
Function at 0x494777
Capabilities:
Check if file exists

Disassembly:
push 0x22c
mov eax, 0x52e22b
call fcn.004f1db2
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 0x49495b
lea eax, [ebp - 0x228]
push eax
push str.Install_Path_Dir
lea ecx, [ebp - 0x21c]
call fcn.00467400
test eax, eax
je 0x49495b
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, 0x539d2c
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 0x494961
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.00494aeb
add esp, 0xc
test al, al
je 0x494961
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004f28b0
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.004f5350
add esp, 0x28
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.0043c2e8
mov ebx, 0x559c0c
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 0x494961
mov esi, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 0
je 0x494976
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.004f1d61
ret
Function at 0x494aeb
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 0x494b6c
push esi
push edi
call fcn.004f046c
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 0x494b60
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x559c0c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x494b60
cmp dword [ebp - 8], ebx
je 0x494b60
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 0x494b6b
push esi
call fcn.004f2acf
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4968d4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x581d10]
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.004f28b0
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 0x496935
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4969e1
mov eax, dword [ebp - 0x110]
dec eax
je 0x4969cc
dec eax
jne 0x4969e1
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
push 6
pop edx
cmp eax, edx
jne 0x496981
cmp ecx, 1
jne 0x49696e
xor ebx, ebx
cmp byte [ebp - 6], cl
setne bl
add ebx, 8
jmp 0x4969e1
test ecx, ecx
jne 0x4969b4
cmp byte [ebp - 6], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x4969e1
cmp eax, 5
jne 0x4969a6
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x496995
push 5
jmp 0x4969ad
cmp eax, 1
jne 0x49699e
mov ebx, edx
jmp 0x4969e1
test eax, eax
jne 0x4969e1
push 3
jmp 0x4969ad
cmp eax, 4
ja 0x4969b0
push 4
pop ebx
jmp 0x4969e1
cmp eax, edx
jb 0x4969e1
cmp ecx, 2
jae 0x4969bd
cmp eax, edx
jbe 0x4969e1
cmp byte [ebp - 6], 1
jne 0x4969e1
call fcn.00496abe
mov ebx, eax
jmp 0x4969e1
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.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x496a30
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 0x496ab6
push edi
push ebx
call fcn.004f046c
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 0x496aaa
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x559c0c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x496aaa
cmp dword [ebp - 8], esi
je 0x496aaa
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 0x496ab5
push edi
call fcn.004f2acf
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496b80
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x52e63c
call fcn.004f1db2
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.004f28b0
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.00496c18
pop ecx
mov eax, esi
call fcn.004f1d61
ret

Function at 0x497099
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x4970b0
mov ecx, dword [ebp + 8]
xor byte [eax + ecx], 0x88
inc eax
cmp eax, dword [ebp + 0xc]
jl 0x4970a6
pop ebp
ret 8
Function at 0x497f58
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 0x497fda
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 0x497f8c
cmp dword [ebp - 8], 2
jne 0x497fda
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 0x497fda
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 0x498058
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push esi
xor esi, esi
test edx, edx
je 0x49809a
mov ecx, dword [ebp + 0xc]
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x49806b
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 0x49829c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x581d10]
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.00498450
mov byte [esi + 0x20], al
lea eax, [ebp - 0x11c]
mov dword [esp], 0x118
push edi
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004f28b0
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 0x498332
test ecx, ecx
jle 0x498351
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x498351
cmp edx, ebx
jne 0x49834d
sub ecx, edi
je 0x498345
dec ecx
jne 0x49832e
mov dword [esi], 4
jmp 0x498351
mov dword [esi], 3
jmp 0x498351
jle 0x498351
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 0x539cf8
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 0x49839c
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x4983a5
lea ecx, [ebp - 0x144]
push ecx
call eax
movzx eax, word [ebp - 0x144]
test eax, eax
je 0x4983cb
cmp eax, ebx
je 0x4983c2
cmp eax, 9
jne 0x4983cf
mov dword [esi + 0x18], 1
jmp 0x4983cf
mov dword [esi + 0x18], 2
jmp 0x4983cf
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.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x498693
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x581d10]
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.004f28b0
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 0x498704
xor eax, eax
jmp 0x49887a
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 0x498858
test esi, esi
je 0x498733
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x234], 0
je 0x49874b
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004f3482
pop ecx
pop ecx
test eax, eax
jne 0x498815
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x498815
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x240], eax
jne 0x498815
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x498815
lea eax, [ebp - 0x234]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x498815
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.00498494
add esp, 0x10
test eax, eax
je 0x498815
mov eax, dword [ebp - 0x238]
push dword [eax]
call fcn.004985c4
pop ecx
push dword [ebp - 0x238]
test eax, eax
je 0x49882c
call fcn.0049848f
and dword [ebp - 0x238], 0
pop ecx
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x49872a
jmp 0x498851
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x244], 1
mov dword [ecx], eax
call fcn.0049848f
and dword [ebp - 0x238], 0
pop ecx
test esi, esi
je 0x498858
push esi
call edi
cmp dword [ebp - 0x234], 0
je 0x498870
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.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x49971a
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x52ec2f
call fcn.004f1d7f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x90], ebx
jne 0x49973c
mov eax, 0x80004005
jmp 0x499850
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.004d3e59
lea eax, [ebp - 0x10]
push eax
call fcn.004cf906
mov esi, dword [ebp + 8]
pop ecx
cmp dword [esi + 0x14], 8
jb 0x499771
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.004d4632
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.004cf906
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
cmp dword [esi + 0x14], edi
jb 0x4997d7
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 0x499814
cmp dword [eax + 0x14], edi
jb 0x4997ff
mov eax, dword [eax]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004ccc17
add esp, 0x14
jmp 0x49982b
cmp dword [eax + 0x14], edi
jb 0x49981b
mov eax, dword [eax]
push ebx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.004cce10
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.004f1d4d
ret 0xc