joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad0
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 0x403b4d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x403b4d
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 0x403b4d
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 0x403b34
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x403b44
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 0x403b32
xor al, al
jmp 0x403b40

Function at 0x404252
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 0x40428a
push edi
push 0
push 0x49cbb8
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x443697
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 0x404289
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404289
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x404289
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 0x404289
Function at 0x404d65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x443c93
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e9d4
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 0x404d8b

Function at 0x40670c
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 0x406734
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406726
pop edi
pop esi
pop ebp
ret 4
Function at 0x409470
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 0x4094eb
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x4094ac
mov ecx, dword [esi + 0xc]
lea ebx, [ebx]
cmp ecx, dword [esi + 8]
je 0x4094bc
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 0x409490
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 0x4094ac
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4094ac
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [esi + 0xc], 0
jmp 0x409495
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041eb1c
jmp 0x40947e
Function at 0x418eb3
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]
jne 0x418f77
cmp eax, dword [edi + 0x178]
jne 0x418f77
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 0x456f5b
cmp dword [ebp + 0xc], 0
je 0x418f58
mov dword [edi + 0x17c], esi
cmp eax, dword [edi + 0x180]
jne 0x456fce
cmp dword [ebp + 0xc], 0
je 0x418f70
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x418f00
jmp 0x456f4a
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.004929ec
jmp 0x418f00
cmp dword [ebp + 0xc], 1
jl 0x418f4c
cmp byte [edi + 0x1a8], 0
je 0x418f4c
cmp word [ebp + 0xa], 0
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
je 0x456f86
push 0xfffffffffffffff9
jmp 0x456fb6
push 0xfffffffffffffff8
call fcn.004929ec
cmp byte [edi + 0x184], 0
je 0x456fbb
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 0x456fb4
push 0xfffffffffffffffa
jmp 0x456fb6
push 0xfffffffffffffff4
call fcn.004929ec
mov eax, dword [ebp - 8]
mov cx, word [ebp - 2]
mov byte [edi + 0x184], 0
jmp 0x418f4c
cmp dword [ebp + 0xc], 1
jl 0x418f64
push dword [ebp - 0x10]
test cx, cx
mov ecx, ebx
push dword [ebp - 0x14]
push edi
je 0x456fea
push 0xfffffffffffffff7
jmp 0x456fec
push 0xfffffffffffffff6
call fcn.004929ec
mov eax, dword [ebp - 8]
jmp 0x418f64
Function at 0x419ff7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc ebx
push edi
mov dword [ebp - 0xc], esi
cmp dword [edx + 4], eax
je 0x41a10c
mov ecx, dword [ebp + 0x1c]
xor edx, edx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], 0x23
mov byte [ecx], dl
mov ecx, dword [ebp + 0x18]
mov dword [edi], edx
mov edi, dword [ebp + 8]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x10]
mov byte [ecx], dl
push eax
mov ecx, edi
call fcn.004039f3
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x4579aa
cmp ax, cx
je 0x4579aa
cmp ax, dx
je 0x4579aa
cmp ax, word [ebp - 8]
je 0x4579aa
lea eax, [esi + 1]
mov ecx, edi
push esi
mov dword [ebp + 0x1c], eax
call fcn.004039f3
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x457a3c
push 0x40
lea ecx, [ebp - 0x1c]
call fcn.00406060
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x7d
pop ecx
call fcn.0041a110
pop ecx
pop ecx
test al, al
je 0x41a108
push dword [ebp - 0x1c]
push dword [esi*4 + 0x4b11e0]
call fcn.00424b38
pop ecx
pop ecx
test eax, eax
je 0x41a0d5
inc esi
cmp esi, 0x63
jl 0x41a0ba
cmp esi, 0x63
je 0x4579e6
cmp byte [esi + 0x4b1178], 0
jne 0x41a108
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x1c]
call fcn.004092c6
mov eax, dword [edi]
movzx ecx, al
mov al, bl
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x41a0f0
xor al, al
jmp 0x41a101
push 0x2b
pop esi
cmp ax, si
jne 0x4579b7
mov eax, dword [ebp + 0x10]
jmp 0x4579d6
cmp ax, cx
jne 0x4579c1
mov eax, dword [ebp + 0x14]
jmp 0x4579d6
cmp ax, dx
jne 0x4579cb
mov eax, dword [ebp + 0x18]
jmp 0x4579d6
push 0x23
pop ecx
cmp ax, cx
jne 0x4579d8
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov esi, eax
jmp 0x41a03e
push 0
lea ecx, [ebp - 0x1c]
call fcn.004048dc
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x457a0f
lea ecx, [ebp - 0x1c]
call fcn.004092c6
jmp 0x41a10c
test eax, 0x200
je 0x457a1b
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x457a27
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41a0f0
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41a0f0
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x41a10c
test eax, 0x200
je 0x457a5b
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x457a67
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41a0fa
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
jmp 0x41a0fa
Function at 0x41f509
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1353]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042da65
pop ecx
push eax
call fcn.0042d886
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f1a5
lea ecx, [ebp - 0x18]
call fcn.00409503
mov ecx, esi
call fcn.00406f1d
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f6fe
push dword [ebp - 0x18]
push 0x49d150
push edi
call fcn.0041f5a9
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f1c5
lea ecx, [ebp - 0x18]
call fcn.004092c6
mov esi, dword [ebp - 8]
push edi
call fcn.0042dea9
push edi
call fcn.0042da65
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f599
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d886
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471e9f
push eax
push 1
call fcn.00471e2f
push eax
call fcn.0042dcc3
add esp, 0x10
mov esi, eax
jmp 0x41f581
mov ecx, esi
call fcn.00406f1d
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f576
Function at 0x41f90d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45f2aa
mov ecx, dword [0x4d193c]
push esi
push edi
cmp ecx, 0xffffffff
je 0x41f9bf
mov eax, dword [0x4d1930]
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 0x41f950
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x45f2c4
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x45f31e
je 0x41f980
test edi, edi
je 0x45f30d
cmp edi, 1
je 0x41f980
cmp edi, 2
je 0x41f9b6
cmp edi, 3
je 0x41f9ad
jle 0x41f9a4
cmp edi, 5
jg 0x45f2ec
cmp byte [esi + 0x38], 0
jne 0x41f9bf
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41f9a0
cmp edi, 4
je 0x41f9a0
mov ecx, dword [ebp + 0xc]
call fcn.0041f9c3
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
mov byte [esi + 0x38], 1
jmp 0x45f379
mov byte [esi + 0x38], 1
jmp 0x45f2f5
xor eax, eax
jmp 0x41f9a7
push dword [ebp + 0xc]
mov ecx, 0x4d18d0
call fcn.00419921
mov ecx, eax
mov dword [0x4d193c], ecx
jmp 0x41f920
cmp byte [esi + 0x198], dl
je 0x41f950
push dword [esi + 0x194]
push esi
call fcn.00497e65
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x41f950
cmp edi, 6
jne 0x41f9a4
cmp byte [esi + 0x38], 0
je 0x41f9bf
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f9a4
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41f9a4
mov eax, edi
sub eax, 9
je 0x45f379
sub eax, 0x37
je 0x45f36b
sub eax, 1
je 0x45f368
sub eax, 1
je 0x45f358
sub eax, 1
jne 0x41f9a4
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 0x41f9a4
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41f9a4
push edx
jmp 0x45f36d
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41f9a4
cmp byte [esi + 0x38], 0
je 0x41f9bf
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
call fcn.0041f9c3
jmp 0x41f9a4
Function at 0x41f9c3
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
jne 0x45f398
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
test esi, esi
jne 0x45f3ad
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
je 0x45f3c1
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x45f49c
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 0x45f478
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
je 0x45f47d
push 4
jmp 0x45f47a
push 3
pop ebx
jmp 0x45f480
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
jmp 0x45f49f
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41f9e0

Function at 0x43938b
Capabilities:
Read file on windows

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

Function at 0x43d2e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cfa1
Function at 0x460762
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.0040a567
lea ecx, [ebp - 0x20]
call fcn.0040a567
lea ecx, [ebp - 0x40]
call fcn.0040a567
push 0x4c5950
lea ecx, [ebp - 0x30]
call fcn.004067bd
push esi
lea ecx, [ebp - 0x30]
call fcn.0040337a
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.0040337a
lea ecx, [ebp - 0x20]
call fcn.0040a0ff
test edi, edi
je 0x4607e5
push 0x5c
pop eax
cmp word [edi], ax
je 0x4607e5
cmp word [edi + 2], ax
je 0x4607e5
push 0x4c5984
lea ecx, [ebp - 0x20]
call fcn.004067bd
push edi
lea ecx, [ebp - 0x20]
call fcn.0040337a
cmp dword [ebp + 0xc], ebx
je 0x460836
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422450
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a6e5
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.0040337a
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 0x4608c2
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 0x4608c2
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 0x4608bd
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 0x4608b8
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.004092c6
lea ecx, [ebp - 0x20]
call fcn.004092c6
lea ecx, [ebp - 0x30]
call fcn.004092c6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4610f3
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 0x46114b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x461149
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 0x461149
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 0x4615ad
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 0x4615c5
inc edi
jmp 0x4615ce
test byte [ebp + 0x14], 2
je 0x4615ce
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x46160d
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 0x461639
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 0x461648
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
leave
ret 0x28

Function at 0x461742
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 0x461799
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 0x4618e2
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 0x461953
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x461c0b
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 0x461cae
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x461cae
cmp edi, dword [ebp - 8]
jb 0x461cae
cmp edi, dword [ebp - 4]
jb 0x461cae
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.0041ff1b
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 0x461ca3
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x461c92
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.004067bd
mov bl, 1
push esi
call fcn.0041ff24
pop ecx
mov al, bl
jmp 0x461cb0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x462609
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.00463ab8
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 0x46265f
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 0x462683
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.00463ab8
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x462e19
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 0x462e45
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 0x462e5c
push 1
jmp 0x462e46
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