joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40445d
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2002c
call fcn.00441ef0
push ebx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0040c25d
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
push 0x7fff
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 8]
call fcn.00404862
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x44370f
mov eax, dword [0x4d1400]
test eax, eax
je 0x443727
xor edi, edi
mov esi, 0x4d2390
inc edi
cmp eax, edi
je 0x443733
lea eax, [esp + 0x11]
push eax
push ecx
push 0x4d1400
push 0x4d1418
mov ecx, esi
call fcn.0040480e
test al, al
je 0x443752
mov al, byte [0x4d2390]
mov byte [0x4d1404], al
mov al, byte [0x4d2391]
mov byte [esp + 0x12], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1003c]
push eax
push 0x7fff
push dword [0x4d1418]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [esp + 0x14]
mov ecx, 0x4d13f0
call fcn.004084e7
mov bl, byte [esp + 0x11]
push dword [0x4d1400]
push 0x4d1418
call fcn.004036fb
test eax, eax
jne 0x44375d
cmp byte [esp + 0x12], 1
je 0x44377a
call fcn.004045ae
call fcn.0040468e
cmp byte [0x4d1404], 0
mov ebx, 0x4d1990
jne 0x40456f
mov ecx, ebx
call fcn.004056c2
push edi
mov ecx, 0x4d1430
call fcn.0040f060
cmp byte [0x4d1404], 0
jne 0x40458a
mov ecx, ebx
call fcn.00404b1d
mov ecx, esi
call fcn.00405ba6
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.0040b1ff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x10
push 0x4c59b8
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40459c
or dword [0x4d135c], 0xffffffff
jmp 0x404591
push 0xffffffffffffffff
push dword [0x4d1408]
mov ecx, esi
push edi
call fcn.00408f2c
mov al, byte [0x4d1364]
mov byte [0x4d2392], al
jmp 0x40452d
mov dword [0x4d135c], edi
jmp 0x404591
mov ecx, esi
call fcn.00405ba6
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4d135c], edi
jmp 0x40459c
call fcn.004615a7
test al, al
jne 0x404550
cmp byte [esp + 0x13], al
jne 0x404550
lea ecx, [esp + 0x28]
call fcn.004058e5
push 0x4c2244
lea ecx, [esp + 0x1c]
call fcn.0040b606
lea ecx, [esp + 0x18]
test bl, bl
je 0x4437d7
mov edi, 0x4c59ec
push edi
call fcn.004052b7
push 0x4d1418
lea ecx, [esp + 0x1c]
call fcn.00407cf8
push edi
lea ecx, [esp + 0x1c]
call fcn.004052b7
push 1
jmp 0x4437e0
push dword [ebp + 8]
call fcn.004052b7
push edi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x34]
push 0x4c59f0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x18]
call fcn.0040b1ff
jmp 0x40458a
Function at 0x4059a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x405a24
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405a24
xor eax, eax
xor ebx, ebx
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a24
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405a0b
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x405a1b
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x405a09
xor al, al
jmp 0x405a17

Function at 0x406122
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40615a
push edi
push 0
push 0x49d084
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x4442f1
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x406159
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x406159
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x406159
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x406159
Function at 0x406a95
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x44491d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e854
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x406abb

Function at 0x408273
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x40829b
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x40828d
pop edi
pop esi
pop ebp
ret 4
Function at 0x40b3b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x40b42b
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x40b3ec
mov ecx, dword [esi + 0xc]
lea ebx, [ebx]
cmp ecx, dword [esi + 8]
je 0x40b3fc
mov eax, dword [esi + 4]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
cmp edi, ebx
jb 0x40b3d0
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b3ec
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b3ec
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [esi + 0xc], 0
jmp 0x40b3d5
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041e3db
jmp 0x40b3be
Function at 0x41ea9a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ebx, ecx
mov esi, dword [edi]
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x170], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp ecx, dword [edi + 0x174]
je 0x45eef4
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jge 0x45ef05
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
mov ecx, 0x8000
and ax, cx
push 0
mov word [ebp + 0xa], ax
pop eax
push dword [ebx + 0x1c]
setne al
mov dword [ebp - 0xc], eax
call esi
mov esi, dword [ebp - 0xc]
mov cx, ax
mov eax, 0x8000
and cx, ax
push 0
pop eax
setne al
mov word [ebp - 2], cx
mov dword [ebp - 8], eax
cmp esi, dword [edi + 0x17c]
jne 0x45ef16
cmp dword [ebp + 0xc], 0
je 0x41eb51
mov dword [edi + 0x17c], esi
cmp eax, dword [edi + 0x180]
jne 0x45ef89
cmp dword [ebp + 0xc], 0
je 0x41eb69
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, dword [edi + 0x178]
je 0x41eaf9
jmp 0x41eae3
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00492bc6
jmp 0x41eaf9
cmp dword [ebp + 0xc], 1
jl 0x41eb45
cmp byte [edi + 0x1a8], 0
je 0x41eb45
cmp word [ebp + 0xa], 0
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
je 0x45ef41
push 0xfffffffffffffff9
jmp 0x45ef71
push 0xfffffffffffffff8
call fcn.00492bc6
cmp byte [edi + 0x184], 0
je 0x45ef76
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
test eax, 0x1000000
je 0x45ef6f
push 0xfffffffffffffffa
jmp 0x45ef71
push 0xfffffffffffffff4
call fcn.00492bc6
mov eax, dword [ebp - 8]
mov cx, word [ebp - 2]
mov byte [edi + 0x184], 0
jmp 0x41eb45
cmp dword [ebp + 0xc], 1
jl 0x41eb5d
push dword [ebp - 0x10]
test cx, cx
mov ecx, ebx
push dword [ebp - 0x14]
push edi
je 0x45efa5
push 0xfffffffffffffff7
jmp 0x45efa7
push 0xfffffffffffffff6
call fcn.00492bc6
mov eax, dword [ebp - 8]
jmp 0x41eb5d
Function at 0x41eef7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45f096
mov ecx, dword [0x4d191c]
push esi
push edi
cmp ecx, 0xffffffff
je 0x41efa9
mov eax, dword [0x4d1910]
xor edx, edx
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
cmp byte [esi + 0x3a], dl
je 0x41ef3a
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x45f0b0
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x45f10a
je 0x41ef6a
test edi, edi
je 0x45f0f9
cmp edi, 1
je 0x41ef6a
cmp edi, 2
je 0x41efa0
cmp edi, 3
je 0x41ef97
jle 0x41ef8e
cmp edi, 5
jg 0x45f0d8
cmp byte [esi + 0x38], 0
jne 0x41efa9
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41ef8a
cmp edi, 4
je 0x41ef8a
mov ecx, dword [ebp + 0xc]
call fcn.0041efad
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
mov byte [esi + 0x38], 1
jmp 0x45f165
mov byte [esi + 0x38], 1
jmp 0x45f0e1
xor eax, eax
jmp 0x41ef91
push dword [ebp + 0xc]
mov ecx, 0x4d18b0
call fcn.0041b021
mov ecx, eax
mov dword [0x4d191c], ecx
jmp 0x41ef0a
cmp byte [esi + 0x198], dl
je 0x41ef3a
push dword [esi + 0x194]
push esi
call fcn.004980cd
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x41ef3a
cmp edi, 6
jne 0x41ef8e
cmp byte [esi + 0x38], 0
je 0x41efa9
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41ef8e
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41ef8e
mov eax, edi
sub eax, 9
je 0x45f165
sub eax, 0x37
je 0x45f157
sub eax, 1
je 0x45f154
sub eax, 1
je 0x45f144
sub eax, 1
jne 0x41ef8e
push edx
mov byte [esi + 0x39], dl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x41ef8e
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41ef8e
push edx
jmp 0x45f159
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41ef8e
cmp byte [esi + 0x38], 0
je 0x41efa9
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
call fcn.0041efad
jmp 0x41ef8e
Function at 0x41efad
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp ebx, esi
je 0x41f0c6
push edi
xor edi, edi
test esi, esi
jne 0x41efdc
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x45f184
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x41f0d4
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push 1
push edi
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 8]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x41f0cf
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x41f0cb
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 0
push edi
push dword [ebp - 4]
call esi
push 0
push dword [ebp - 8]
push edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x41f0c2
push 4
jmp 0x41f0d1
push 3
pop ebx
jmp 0x41f0a5
push 2
pop ebx
jmp 0x41f0bf
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41efeb
Function at 0x41f5b3
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1363]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042d8e5
pop ecx
push eax
call fcn.0042d706
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f3b5
lea ecx, [ebp - 0x18]
call fcn.0040b443
mov ecx, esi
call fcn.00408e90
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f7a8
push dword [ebp - 0x18]
push 0x49d174
push edi
call fcn.0041f653
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f3d5
lea ecx, [ebp - 0x18]
call fcn.0040b1ff
mov esi, dword [ebp - 8]
push edi
call fcn.0042dd29
push edi
call fcn.0042d8e5
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f643
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d706
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471e24
push eax
push 1
call fcn.00471db4
push eax
call fcn.0042db43
add esp, 0x10
mov esi, eax
jmp 0x41f62b
mov ecx, esi
call fcn.00408e90
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f620

Function at 0x43921b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043909a

Function at 0x43d170
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ce30
Function at 0x4605c7
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 0xc], ebx
call fcn.0040c25d
lea ecx, [ebp - 0x20]
call fcn.0040c25d
lea ecx, [ebp - 0x40]
call fcn.0040c25d
push 0x4c5970
lea ecx, [ebp - 0x30]
call fcn.004084e7
push esi
lea ecx, [ebp - 0x30]
call fcn.004052b7
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004052b7
lea ecx, [ebp - 0x20]
call fcn.0040bfbf
test edi, edi
je 0x46064a
push 0x5c
pop eax
cmp word [edi], ax
je 0x46064a
cmp word [edi + 2], ax
je 0x46064a
push 0x4c59a4
lea ecx, [ebp - 0x20]
call fcn.004084e7
push edi
lea ecx, [ebp - 0x20]
call fcn.004052b7
cmp dword [ebp + 0xc], ebx
je 0x46069b
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004222d0
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040c1c3
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004052b7
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x460727
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x460727
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x460722
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x46071d
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 8], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.0040b1ff
lea ecx, [ebp - 0x20]
call fcn.0040b1ff
lea ecx, [ebp - 0x30]
call fcn.0040b1ff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x460f58
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push esi
push 0
push dword [eax]
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x460fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x460fae
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x460fae
push esi
push dword [esi]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x461412
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x46142a
inc edi
jmp 0x461433
test byte [ebp + 0x14], 2
je 0x461433
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x461472
push esi
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x46149e
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x400
push eax
push dword [ebp + 0x1c]
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x4614ad
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
leave
ret 0x28

Function at 0x4615a7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
test eax, eax
je 0x4615fe
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp eax, 1
pop ebx
sete al
leave
ret

Function at 0x461747
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 2
push 0
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x4617b8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x461a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
mov esi, ecx
lea eax, [ebp - 8]
push eax
push 0xb0
mov dword [ebp - 0x10], esi
push dword [esi]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jae 0x461b13
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x461b13
cmp edi, dword [ebp - 8]
jb 0x461b13
cmp edi, dword [ebp - 4]
jb 0x461b13
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fd8b
pop ecx
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x461b08
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x461af7
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.004084e7
mov bl, 1
push esi
call fcn.0041fd94
pop ecx
mov al, bl
jmp 0x461b15
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4624e6
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov dl, 1
push esi
push edi
mov ecx, dword [ebx]
call fcn.00463985
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x25
call edi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [ebp + 8], 0
push eax
jge 0x46253c
push 0x25
push 0x100
push dword [ebx]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x462560
push 0x27
push 0x100
push dword [ebx]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [ebx]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx]
xor dl, dl
call fcn.00463985
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x462ceb
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dl, 1
jne 0x462d17
lea eax, [ebp - 4]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x462d2e
push 1
jmp 0x462d18
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
leave
ret