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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.140049010
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.1400096d8
xor bl, bl
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.140005894
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004b8e4
mov eax, dword [0x1400f04c0]
test eax, eax
je 0x14004b906
mov r15d, 1
lea rcx, [0x1400f2230]
cmp eax, r15d
je 0x14004b912
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400f04c0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400f04e8]
call fcn.140003ff8
test al, al
je 0x14004b936
mov al, byte [0x1400f2230]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400f04e8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f2231]
mov edx, 0x7fff
mov byte [0x1400f04c4], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400f04a0]
call fcn.140007d8c
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400f04c0]
lea rdx, [0x1400f04e8]
call fcn.140004090
test eax, eax
jne 0x14004b942
cmp dil, r15b
je 0x14004b965
call fcn.140003c78
call fcn.140003db0
cmp byte [0x1400f04c4], 0
jne 0x1400039e3
lea rcx, [0x1400f0e60]
call fcn.1400062f4
mov edx, r15d
lea rcx, [0x1400f0510]
call fcn.140012690
cmp byte [0x1400f04c4], 0
jne 0x140003a07
lea rcx, [0x1400f0e60]
call fcn.140005e7c
lea rcx, [0x1400f2230]
call fcn.140003ad8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.14000a11c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400dc23c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x140003a1e
or dword [0x1400f03b0], 0xffffffff
jmp 0x140003a13
mov r8, qword [0x1400f04c8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.14000e318
mov al, byte [0x1400f03b8]
mov byte [0x1400f2232], al
jmp 0x1400039a0
mov dword [0x1400f03b0], r15d
jmp 0x140003a13
lea rcx, [0x1400f2230]
call fcn.140003ad8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400f03b0], r15d
jmp 0x140003a1e
call fcn.14006d53c
test al, al
jne 0x1400039c4
cmp byte [rbp + 0x1ffb0], al
jne 0x1400039c4
lea rcx, [rsp + 0x50]
call fcn.140005774
lea rdx, [0x1400d8704]
lea rcx, [rsp + 0x30]
call fcn.14000eca0
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004b9cd
lea rdx, [0x1400dc270]
call fcn.1400073d8
lea rdx, [0x1400f04e8]
lea rcx, [rsp + 0x30]
call fcn.140007cbc
lea rdx, [0x1400dc270]
lea rcx, [rsp + 0x30]
jmp 0x14004b9d0
mov rdx, rsi
call fcn.1400073d8
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x50]
lea rdx, str.runas
mov rcx, rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.14000a11c
nop
jmp 0x140003a07
Function at 0x140003db0
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
lea rdx, str.AutoIt_v3
mov rax, qword [0x1400f03a8]
mov r9d, 0xcf0000
mov qword [r11 - 0x18], rax
mov r8, rdx
and qword [r11 - 0x20], 0
mov eax, 0x80000000
and qword [r11 - 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
and qword [rsp + 0x58], 0
lea rdx, str.edit
mov rcx, qword [0x1400f03a8]
mov r9d, 0x50b008c4
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], 1
xor ecx, ecx
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [0x1400f0400], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400f0400]
xor edx, edx
mov qword [0x1400f03f8], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400f0400]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]

Function at 0x14000465c
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [rdx + 8]
mov r8d, 0x1505
mov r10, qword [rdx]
add eax, eax
xor edx, edx
movsxd r9, eax
test eax, eax
jle 0x140004687
movzx ecx, byte [rdx + r10]
inc rdx
imul r8d, r8d, 0x21
add r8d, ecx
cmp rdx, r9
jl 0x140004673
mov eax, r8d
ret
Function at 0x1400069b8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
mov r10, r9
cmp byte [rcx + 0x20], 0
mov r11, r8
mov rbx, rdx
jne 0x14004cb68
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.140034cdc
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x30]
imul r10d, r11d
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rsp + 0x30]
jmp 0x1400069ea

Function at 0x140007140
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, r9d
mov rbp, r8
test r8, r8
je 0x140007200
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140007200
lea rax, [r11 - 0x18]
mov word [rdi], bx
lea r9d, [rbx + 1]
mov qword [r11 - 0x28], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007200
mov rcx, qword [rsp + 0x30]
lea eax, [rsi + rsi]
mov dword [rsp + 0x60], eax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400071d5
mov eax, dword [rsp + 0x60]
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x1400071f7
mov eax, ecx
mov word [rdi + rcx*2], bx
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea eax, [rsi - 1]
mov word [rdi + rax*2], bx
jmp 0x1400071d3
xor al, al
jmp 0x1400071e2
Function at 0x14000a330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14000a3d9
xor edi, edi
test rsi, rsi
je 0x14000a382
mov eax, dword [rbx + 0x14]
cmp eax, dword [rbx + 0x10]
je 0x14000a39e
mov rcx, qword [rbx + 8]
movsxd rdx, eax
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp], dl
inc rdi
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x14]
cmp rdi, rsi
jb 0x14000a361
add qword [rbx + 0x18], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a382
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000a382
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], 0
jmp 0x14000a366
mov qword [rcx + 0x10], 0
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
jmp 0x14000a357
Function at 0x1400229d4
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r12, r9
mov rdi, r8
mov r13, rdx
mov ebx, 1
mov ebp, esi
cmp qword [rdx + 8], rsi
je 0x140022b2b
mov r10, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
mov byte [r9], sil
mov r9d, esi
mov byte [r10], sil
mov byte [r15], sil
mov byte [r14], sil
mov dword [r8], esi
movsxd rdx, r9d
mov rcx, r13
call fcn.140006560
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x140069c2c
lea eax, [r9 + 1]
mov rcx, r13
mov dword [rsp + 0x70], eax
call fcn.140006560
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x140069ce2
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.140009980
mov ecx, 0x7d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
mov rdx, r13
call fcn.140022b30
test al, al
je 0x140022b22
lea rsi, [0x1400c72e0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsi]
call fcn.140028ea8
test eax, eax
je 0x140022aca
add ebp, ebx
lea rax, [0x1400c75f8]
add rsi, 8
cmp rsi, rax
jl 0x140022aa7
cmp ebp, 0x63
je 0x140069c73
movsxd rax, ebp
lea rcx, [0x140000000]
cmp byte [rax + rcx + 0xc7270], 0
jne 0x140022b27
movzx eax, byte [rax + rcx + 0xc7200]
mov dword [rdi], eax
lea rcx, [rsp + 0x20]
call fcn.14000a11c
mov eax, dword [rdi]
movzx ecx, al
mov al, bl
mov dword [rdi], ecx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov bl, sil
jmp 0x140022af1
xor bl, bl
jmp 0x140022af1
xor al, al
jmp 0x140022b04
movabs r8, 0x2000000000000405
bt r8, rax
jae 0x140022a55
cmp cx, 0x2b
jne 0x140069c4c
mov byte [r12], bl
jmp 0x140069c6b
cmp cx, 0x5e
jne 0x140069c57
mov byte [r14], bl
jmp 0x140069c6b
cmp cx, 0x21
jne 0x140069c62
mov byte [r15], bl
jmp 0x140069c6b
cmp cx, 0x23
jne 0x140069c6b
mov byte [r10], bl
add r9d, ebx
jmp 0x140022a3a
mov edx, 2
cmp dword [rsp + 0x70], edx
jne 0x140069c8e
mov rcx, r13
call fcn.140006560
lea ecx, [rdx + 0x7b]
cmp word [rax], cx
je 0x140069c9d
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140009e24
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rdi], ecx
cmp ecx, 0xffffffff
jne 0x140069cbd
lea rcx, [rsp + 0x20]
call fcn.14000a11c
nop
jmp 0x140022b2b
bt ecx, 9
jae 0x140069cc6
mov byte [r14], bl
bt ecx, 0xa
jae 0x140069ccf
mov byte [r15], bl
bt ecx, 8
jae 0x140022af1
mov byte [r12], bl
jmp 0x140022af1
call qword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x140022b2b
bt eax, 9
jae 0x140069cfd
mov byte [r14], bl
bt eax, 0xa
jae 0x140069d06
mov byte [r15], bl
bt eax, 8
jae 0x140022afd
mov byte [r12], bl
jmp 0x140022afd
Function at 0x140022e5c
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov word [rcx + 8], 1
mov eax, 5
mov dword [rcx], eax
mov rbx, rcx
mov dword [rcx + 4], eax
xor edx, edx
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov dword [rcx + 0x20], eax
mov dword [rcx + 0xc], 4
lea ecx, [rax + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x35], al
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x32], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x33], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x34], al
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x30], al
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x140023fa0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14b, byte [0x1400f03b7]
mov rdi, rdx
mov rsi, rcx
call fcn.14003281c
mov ecx, eax
mov edx, 0x8000
call fcn.140032644
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x14006a57e
lea rcx, [rsp + 0x20]
call fcn.14000a408
mov rcx, rdi
call fcn.14000d56c
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.140024220
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b6b28]
mov rcx, rsi
call fcn.140024070
movsxd rbx, eax
test r14b, r14b
jne 0x14006a5ac
lea rcx, [rsp + 0x20]
call fcn.14000a11c
mov rcx, rsi
call fcn.140032cbc
mov rcx, rsi
call fcn.14003281c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.140032644
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, rdi
call fcn.1400819d0
mov rcx, rdi
movsxd rbx, eax
call fcn.140081978
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140032a84
mov rbx, rax
jmp 0x14002402d
mov rcx, rdi
call fcn.14000d56c
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140024023

Function at 0x1400244a8
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140049010
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007d8c
add rsp, 0x10020
pop rbx
ret
Function at 0x140024564
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov edi, edx
test r8, r8
jne 0x14006a706
mov eax, dword [0x1400f0da8]
cmp eax, 0xffffffff
je 0x140024638
movsxd rcx, eax
mov rax, qword [0x1400f0d90]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x1400245b8
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x14006a720
cmp edi, 8
jg 0x14006a77d
je 0x1400245ea
test edi, edi
je 0x14006a769
cmp edi, 1
je 0x1400245ea
mov edx, 6
cmp edi, 2
je 0x14002462f
cmp edi, 3
je 0x140024626
jle 0x140024611
cmp edi, 5
jg 0x14006a748
cmp byte [rbx + 0x68], 0
jne 0x140024638
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x14002460d
mov rcx, rbp
call fcn.14002463c
mov byte [rbx + 0x68], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rbx + 0x68], 1
jmp 0x14006a7e8
mov byte [rbx + 0x68], 1
jmp 0x14006a750
xor eax, eax
jmp 0x140024616
mov rdx, r8
lea rcx, [0x1400f0cf0]
call fcn.140002a64
mov dword [0x1400f0da8], eax
jmp 0x140024584
cmp byte [rbx + 0x2c4], 0
je 0x1400245b8
mov r8d, dword [rbx + 0x2c0]
mov rdx, rbx
call fcn.1400aff58
mov byte [rbx + 0x2c4], 0
jmp 0x1400245b8
cmp edi, edx
jne 0x140024611
cmp byte [rbx + 0x68], 0
je 0x140024638
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x140024611
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x140024611
mov edx, edi
sub edx, 9
je 0x14006a7e8
sub edx, 0x37
je 0x14006a7d4
sub edx, 1
je 0x14006a7d0
sub edx, 1
je 0x14006a7bd
cmp edx, 1
jne 0x140024611
xor ecx, ecx
mov byte [rbx + 0x69], 0
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
nop
jmp 0x140024611
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x140024611
xor edx, edx
jmp 0x14006a7d9
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x140024611
cmp byte [rbx + 0x68], 0
je 0x140024638
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14002463c
nop
jmp 0x140024611
Function at 0x14002463c
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x14006a80c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor ebx, ebx
test rax, rax
jne 0x14006a825
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x14006a840
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a96a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r14d
mov r8d, esi
mov edx, eax
mov r15d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a938
lea esi, [rax + 0x12]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x14006a93d
lea ebx, [rsi - 0xe]
jmp 0x14006a93d
mov ebx, 3
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x14006a96f
mov ebx, 2
mov eax, ebx
jmp 0x14002466e

Function at 0x1400292c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002902c
Function at 0x14004124c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400410ec
call fcn.140035654
mov dword [rax], socket
call fcn.14003b1e4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400410d4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400410d4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14004111e
lock or dword [rax + 0x14], 0x10
jmp 0x1400410d4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14004113b
mov rcx, qword [rbp + 0x10]
call fcn.1400467cc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14003281c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140040b24
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140041192
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400410d4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400411fe
mov rcx, qword [rbp + 0x10]
call fcn.14003281c
cmp eax, 0xffffffff
je 0x1400411e5
mov rcx, qword [rbp + 0x10]
call fcn.14003281c
cmp eax, 0xfffffffe
je 0x1400411e5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14003281c
movsxd rdi, eax
lea rsi, [0x1400ef880]
mov rcx, rbx
sar rdi, 6
call fcn.14003281c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400411ec
lea rax, [0x1400ea300]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400411fe
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140041234
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140041230
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140041230
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400410d7
jmp 0x1400410a4
Function at 0x14006c030
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rbx, rcx
xor r15d, r15d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x228], r15
mov rsi, r9
mov r14, r8
mov rdi, rdx
call fcn.1400096d8
lea rcx, [rsp + 0x38]
call fcn.1400096d8
lea rcx, [rsp + 0x78]
call fcn.1400096d8
lea rdx, [0x1400dc1f0]
lea rcx, [rsp + 0x58]
call fcn.140007d8c
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400073d8
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.1400073d8
lea rcx, [rsp + 0x38]
call fcn.14000a8f4
test rdi, rdi
je 0x14006c0ed
cmp word [rdi], 0x5c
je 0x14006c0ed
cmp word [rdi + 2], 0x5c
je 0x14006c0ed
lea rdx, [0x1400dc228]
lea rcx, [rsp + 0x38]
call fcn.140007d8c
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400073d8
test rsi, rsi
je 0x14006c14f
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.1400262c0
lea rdx, [rsp + 0x38]
mov dword [rbp - 0x64], r15d
lea rcx, [rsp + 0x78]
call fcn.14000e148
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.1400073d8
mov rax, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
mov rdx, qword [rbp + 0x230]
xor r9d, r9d
mov r8, rsi
mov qword [rbp - 0x50], rax
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov ebx, eax
test eax, eax
js 0x14006c210
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov ebx, eax
test eax, eax
jne 0x14006c210
mov rdx, qword [rsp + 0x58]
lea rax, [rbp + 0x228]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14006c205
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x30]
mov dword [rbp + 0x218], 0x1fe
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14006c1f8
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
shr eax, 1
mov rdx, r14
mov dword [rbp + 0x218], eax
mov word [rbp + rax*2 - 0x30], r15w
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ebx, eax
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.14000a11c
lea rcx, [rsp + 0x38]
call fcn.14000a11c
lea rcx, [rsp + 0x58]
call fcn.14000a11c
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006cb54
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, qword [rsp + 0x60]
xor r9d, r9d
mov r14, r8
mov qword [rax - 0x18], rsi
mov r8, qword [r8]
mov rbp, rcx
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test eax, eax
jne 0x14006cbd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006cbd5
mov ebx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r14], rax
test rax, rax
je 0x14006cbd5
mov r9d, dword [rsi]
lea edx, [rdi + 3]
mov r8, rax
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
mov rbx, qword [rsp + 0x40]
test edi, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
setne al
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret