joyce8/EMBER2024-capa huggingface dataset:
Function at 0x612ec8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x613073
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x613054
mov dl, 1
mov eax, dword [0x48fec4]
call fcn.004b3874
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040956c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x613043
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.005511ec
test al, al
je 0x613036
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x613084
lea eax, [ebp - 0x394]
call fcn.0042522c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x613036
xor eax, eax
push ebp
push 0x61302f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x6130f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x613018
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a1e0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x613018
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a1e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x613036
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x612f39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b37c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61307a
lea eax, [ebp - 0x3a0]
call fcn.0040956c
ret

Function at 0x613c20
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x6867c8]
cmp byte [eax + 0xc5], 0
jne 0x613c92
cmp dword [0x6867ec], 0
jne 0x613c52
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x67f4e0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6867ec], eax
cmp dword [0x6867e8], 0
jne 0x613c6d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x6867e8], eax
cmp dword [0x6867f0], 0
jne 0x613c92
push esp
push 0
push 0
mov eax, dword [0x67f4dc]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x6867f0], eax
pop edx
ret
Function at 0x6140b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x6140cb
add esp, 0xfffffff0
call fcn.00407ef4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c47f8
mov eax, dword [0x6800cc]
cmp byte [eax], 0
jne 0x6140f8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x680468]
cmp word [eax + 2], 0
jne 0x614112
mov eax, dword [0x680468]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00616388
mov eax, dword [0x6805a8]
cmp word [eax + 2], 0
jne 0x61412c
mov eax, dword [0x6805a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0061658c
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x513464]
call fcn.005195b4
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x616b04
mov dl, 1
mov eax, dword [0x48c708]
call fcn.004078c0
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x48c708]
call fcn.004078c0
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x517e8c]
call fcn.00522bc4
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x614314
mov eax, dword [0x6802fc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00523054
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x616dec
mov dl, 1
mov eax, dword [0x48c708]
call fcn.004078c0
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6802fc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042502c
test eax, eax
je 0x614246
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00424e68
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00425010
test eax, eax
je 0x61425e
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a1e0
push ebx
push 0x615d64
call fcn.00609948
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x6800cc]
cmp byte [eax], 0
jne 0x6142af
mov eax, ebx
call fcn.006144f8
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.00617024
mov eax, ebx
call fcn.00617c90
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x61430c
call fcn.00407f4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x61483c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x6148de
cmp dword [ebx + 0xac], 0
jne 0x6148d8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x614778
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x6148d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x61489e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x6148d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004af060
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x6148ad
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x614b1c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x6867c8]
cmp dword [eax + 0x188], 0
je 0x614c96
test bl, bl
jne 0x614be1
cmp dword [esi + 0xb4], 0
jne 0x614bd6
mov eax, esi
call fcn.00617ae0
push eax
push 0x614a10
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x614ba7
mov eax, dword [0x6867c8]
cmp byte [eax + 0xeb], 0
je 0x614ba7
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x614b88
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x614ba7
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x614b90
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x614bd6
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004af060
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x614bb6
inc dword [esi + 0xb4]
jmp 0x614c96
cmp dword [esi + 0xb4], 0
jle 0x614c96
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x614c96
cmp dword [esi + 0x58], 0
je 0x614c4b
mov eax, dword [0x6867c8]
cmp byte [eax + 0xeb], 0
je 0x614c4b
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x614c2c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x614c4b
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x614c34
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x614c7a
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004af060
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x614c5a
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x6061d4]
call fcn.0040b6dc
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x6158f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x61594d
cmp byte [ebx + 0xeb], 0
jne 0x61594d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004096f4
mov eax, dword [esi]
test eax, eax
je 0x61593a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x61595a
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040994c
jmp 0x61595a
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040994c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x61720c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x61727d
mov eax, esi
call fcn.0054af2c
test al, al
je 0x61727d
mov eax, dword [ebx + 0x98]
call fcn.0054ab5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x61727d
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x61726e
push 0
mov eax, dword [ebx + 0x98]
call fcn.0054ab5c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.00541854
jmp 0x61727d
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.00617044
pop esi
pop ebx
ret
Function at 0x63a084
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x63a22b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040956c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x63a120
xor eax, eax
push ebp
push 0x63a114
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004067ec
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x63a120
test bl, bl
je 0x63a208
xor eax, eax
push ebp
push 0x63a1f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x63a23c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.004235e4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x63a24c
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004235e4
push dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040a418
mov eax, dword [ebp - 8]
push dword [eax]
push 0x63a25c
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.004235e4
push dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040a418
mov eax, dword [ebp - 8]
push dword [eax]
push 0x63a26c
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004235e4
push dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040a418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x63a1fd
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00406808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a232
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004095cc
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x63a328
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov edx, dword [0x680814]
cmp dword [edx], 2
je 0x63a344
mov byte [ebp - 1], 1
jmp 0x63a512
mov byte [ebp - 1], 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x20
push 2
push 0x67f558
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x63a512
xor eax, eax
push ebp
push 0x63a50b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp ax, 5
jb 0x63a3a6
push 0x63a51c
push 0x63a548
call sub.KERNEL32.DLL_GetModuleHandleW
push eax
call fcn.00411f08
mov ebx, eax
test ebx, ebx
je 0x63a3cd
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x63a4f4
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x63a4f4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x63a41e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
je 0x63a3ff
call fcn.00408d5c
jmp 0x63a512
lea eax, [ebp - 0x10]
push eax
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x63a41e
call fcn.00408d5c
jmp 0x63a512
xor eax, eax
push ebp
push 0x63a4ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x63a461
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
je 0x63a461
call fcn.00408d5c
call fcn.00408d5c
jmp 0x63a512
mov eax, dword [ebp - 0x14]
call fcn.004067ec
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x63a493
call fcn.00408d5c
call fcn.00408d5c
jmp 0x63a512
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x63a4ce
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x63a4ca
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x63a4ca
mov byte [ebp - 1], 1
jmp 0x63a4ce
inc ebx
dec esi
jne 0x63a4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a4f4
mov eax, dword [ebp - 0x18]
call fcn.00406808
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a512
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x63f590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x63f601
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x67f560]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x63f5eb
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0063f578
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x63ed6c]
call fcn.0063fd6c
mov dword [0x67f5c4], eax
mov eax, dword [ebp - 4]
call fcn.0063f524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63f608
lea eax, [ebp - 8]
call fcn.0040cca4
ret

Function at 0x644954
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040956c
push esp
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x64498e
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov edx, ebx
lea eax, [esp + 4]
call fcn.00425114
add esp, 0x210
pop esi
pop ebx
ret
Function at 0x648d04
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x648d6e
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x648d6e
lea eax, [esp + 0xc]
push eax
push 0x648d74
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x648d6e
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret

Function at 0x64f30c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00409650
mov eax, dword [ebp - 8]
call fcn.00409650
xor eax, eax
push ebp
push 0x64f446
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040720c
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], esi
test bl, bl
je 0x64f368
mov dword [ebp - 0x44], 0x540
jmp 0x64f36f
mov dword [ebp - 0x44], 0x500
cmp byte [ebp + 8], 0
je 0x64f37d
mov eax, 0x64f458
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.0040a13c
mov dword [ebp - 0x34], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x64f421
test bl, bl
je 0x64f3f4
push 0x64
call sub.KERNEL32.DLL_Sleep_2
mov eax, dword [0x68056c]
mov eax, dword [eax]
call fcn.00615f44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
jne 0x64f3e9
mov eax, dword [0x68056c]
mov eax, dword [eax]
cmp byte [eax + 0xbc], 0
je 0x64f3b0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x64f401
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
mov bl, 1
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.004235e4
mov edx, dword [ebp - 0x4c]
mov eax, 0x686924
call fcn.0040994c
jmp 0x64f423
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f44d
lea eax, [ebp - 0x4c]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret
Function at 0x6504a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x65058f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, ebx
call fcn.004241f8
test al, al
jne 0x650526
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x6505a8
call fcn.0040a390
mov eax, dword [ebp - 4]
call fcn.006478b0
cmp byte [0x6868fa], 0
jne 0x65051d
push 0x10
push 0x6505e4
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, 0x6505fc
call fcn.00647908
mov eax, dword [ebp - 8]
call fcn.0040a13c
push eax
mov eax, dword [0x68056c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_MessageBoxW
mov byte [0x686900], 1
jmp 0x650574
push 1
push 0
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 0x650634
call fcn.0040a390
mov eax, dword [ebp - 0xc]
call fcn.0040a13c
push eax
push 0x650670
push 0x65068c
mov eax, dword [0x68056c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.shell32.dll_ShellExecuteW
cmp byte [0x6868f9], 0
je 0x650574
mov edx, ebx
mov eax, 0x6506a4
call fcn.00648d9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650596
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004095cc
ret
Function at 0x660f18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x660fb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0040956c
mov eax, dword [ebp - 4]
test eax, eax
je 0x660f5b
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x660f88
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, word [edx + esi*2 - 2]
xor dx, di
call fcn.0040a164
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040a338
inc esi
dec ebx
jne 0x660f66
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040994c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x660fbd
lea eax, [ebp - 0x10]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret