joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002914
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.140048f00
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.14000717c
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.140003068
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140049f22
mov eax, dword [0x1400f04a0]
test eax, eax
je 0x140049f44
mov r15d, 1
lea rcx, [0x1400f2260]
cmp eax, r15d
je 0x140049f50
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400f04a0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400f04c8]
call fcn.140003928
test al, al
je 0x140049f74
mov al, byte [0x1400f2260]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400f04c8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f2261]
mov edx, 0x7fff
mov byte [0x1400f04a4], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400f0480]
call fcn.140005d7c
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400f04a0]
lea rdx, [0x1400f04c8]
call fcn.14000199c
test eax, eax
jne 0x140049f80
cmp dil, r15b
je 0x140049fa3
call fcn.140002ce8
call fcn.140002e20
cmp byte [0x1400f04a4], 0
jne 0x140002a53
lea rcx, [0x1400f0e90]
call fcn.140003e90
mov edx, r15d
lea rcx, [0x1400f04f0]
call fcn.140010f30
cmp byte [0x1400f04a4], 0
jne 0x140002a77
lea rcx, [0x1400f0e90]
call fcn.1400039c0
lea rcx, [0x1400f2260]
call fcn.140002b48
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.140008a8c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400dc24c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x140002a8e
or dword [0x1400f03a0], 0xffffffff
jmp 0x140002a83
mov r8, qword [0x1400f04a8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.14000cbe8
mov al, byte [0x1400f03a8]
mov byte [0x1400f2262], al
jmp 0x140002a10
mov dword [0x1400f03a0], r15d
jmp 0x140002a83
lea rcx, [0x1400f2260]
call fcn.140002b48
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400f03a0], r15d
jmp 0x140002a8e
call fcn.14006d3a0
test al, al
jne 0x140002a34
cmp byte [rbp + 0x1ffb0], al
jne 0x140002a34
lea rcx, [rsp + 0x50]
call fcn.140003808
lea rdx, [0x1400d8714]
lea rcx, [rsp + 0x30]
call fcn.14000d54c
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004a00b
lea rdx, [0x1400dc280]
call fcn.14000534c
lea rdx, [0x1400f04c8]
lea rcx, [rsp + 0x30]
call fcn.140005cac
lea rdx, [0x1400dc280]
lea rcx, [rsp + 0x30]
jmp 0x14004a00e
mov rdx, rsi
call fcn.14000534c
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.140008a8c
nop
jmp 0x140002a77
Function at 0x140002e20
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
lea rdx, str.AutoIt_v3
mov rax, qword [0x1400f0398]
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 [0x1400f0398]
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 [0x1400f03f0], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400f03f0]
xor edx, edx
mov qword [0x1400f03e8], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400f03f0]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x140004b58
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 0x14004aea2
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.140034bcc
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 0x140004b8a

Function at 0x140004e54
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 0x140004f14
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140004f14
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 0x140004f14
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 0x140004ee9
mov eax, dword [rsp + 0x60]
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x140004f0b
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 0x140004ee7
xor al, al
jmp 0x140004ef6
Function at 0x140008010
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 0x14000803b
movzx ecx, byte [rdx + r10]
inc rdx
imul r8d, r8d, 0x21
add r8d, ecx
cmp rdx, r9
jl 0x140008027
mov eax, r8d
ret
Function at 0x140008ca0
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 0x140008d49
xor edi, edi
test rsi, rsi
je 0x140008cf2
mov eax, dword [rbx + 0x14]
cmp eax, dword [rbx + 0x10]
je 0x140008d0e
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 0x140008cd1
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 0x140008cf2
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140008cf2
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], 0
jmp 0x140008cd6
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 0x140008cc7
Function at 0x140022648
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov r12, r9
mov rsi, r8
mov rdi, rdx
mov ebx, 1
cmp qword [rdx + 8], rbp
je 0x14002278a
mov r10, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
and dword [r8], ebp
mov byte [r9], bpl
xor r9d, r9d
mov byte [r10], bpl
mov byte [r15], bpl
mov byte [r14], bpl
movsxd rdx, r9d
mov rcx, rdi
call fcn.140003fb4
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x140069b2a
lea eax, [r9 + 1]
mov rcx, rdi
mov dword [rsp + 0x70], eax
call fcn.140003fb4
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x140069bc5
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400082f0
mov ecx, 0x7d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.140022790
test al, al
je 0x140022786
lea rdi, [0x1400c72f0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi]
call fcn.140028d98
test eax, eax
je 0x140022733
add ebp, ebx
lea rax, [0x1400c7608]
add rdi, 8
cmp rdi, rax
jl 0x140022710
cmp ebp, 0x63
je 0x140069b71
movsxd rax, ebp
lea rcx, [0x140000000]
cmp byte [rax + rcx + 0xc7280], 0
jne 0x140022786
movzx eax, byte [rax + rcx + 0xc7210]
mov dword [rsi], eax
lea rcx, [rsp + 0x20]
call fcn.140008a8c
mov eax, dword [rsi]
movzx ecx, al
mov al, bl
mov dword [rsi], ecx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor bl, bl
jmp 0x14002275a
xor al, al
jmp 0x14002276d
movabs r8, 0x2000000000000405
bt r8, rax
jae 0x1400226c2
cmp cx, 0x2b
jne 0x140069b4a
mov byte [r12], bl
jmp 0x140069b69
cmp cx, 0x5e
jne 0x140069b55
mov byte [r14], bl
jmp 0x140069b69
cmp cx, 0x21
jne 0x140069b60
mov byte [r15], bl
jmp 0x140069b69
cmp cx, 0x23
jne 0x140069b69
mov byte [r10], bl
add r9d, ebx
jmp 0x1400226a7
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140008794
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
jne 0x140069ba0
lea rcx, [rsp + 0x20]
call fcn.140008a8c
nop
jmp 0x14002278a
bt ecx, 9
jae 0x140069ba9
mov byte [r14], bl
bt ecx, 0xa
jae 0x140069bb2
mov byte [r15], bl
bt ecx, 8
jae 0x14002275a
mov byte [r12], bl
jmp 0x14002275a
call qword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x14002278a
bt eax, 9
jae 0x140069be0
mov byte [r14], bl
bt eax, 0xa
jae 0x140069be9
mov byte [r15], bl
bt eax, 8
jae 0x140022766
mov byte [r12], bl
jmp 0x140022766
Function at 0x140022a8c
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 0x140023994
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 0x14006a48c
mov eax, dword [0x1400f0dd8]
cmp eax, 0xffffffff
je 0x140023a68
movsxd rcx, eax
mov rax, qword [0x1400f0dc0]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x1400239e8
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x14006a4a6
cmp edi, 8
jg 0x14006a503
je 0x140023a1a
test edi, edi
je 0x14006a4ef
cmp edi, 1
je 0x140023a1a
mov edx, 6
cmp edi, 2
je 0x140023a5f
cmp edi, 3
je 0x140023a56
jle 0x140023a41
cmp edi, 5
jg 0x14006a4ce
cmp byte [rbx + 0x68], 0
jne 0x140023a68
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x140023a3d
mov rcx, rbp
call fcn.140023a6c
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 0x14006a56e
mov byte [rbx + 0x68], 1
jmp 0x14006a4d6
xor eax, eax
jmp 0x140023a46
mov rdx, r8
lea rcx, [0x1400f0d20]
call fcn.14001def4
mov dword [0x1400f0dd8], eax
jmp 0x1400239b4
cmp byte [rbx + 0x2c4], 0
je 0x1400239e8
mov r8d, dword [rbx + 0x2c0]
mov rdx, rbx
call fcn.1400afc50
mov byte [rbx + 0x2c4], 0
jmp 0x1400239e8
cmp edi, edx
jne 0x140023a41
cmp byte [rbx + 0x68], 0
je 0x140023a68
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x140023a41
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x140023a41
mov edx, edi
sub edx, 9
je 0x14006a56e
sub edx, 0x37
je 0x14006a55a
sub edx, 1
je 0x14006a556
sub edx, 1
je 0x14006a543
cmp edx, 1
jne 0x140023a41
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 0x140023a41
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x140023a41
xor edx, edx
jmp 0x14006a55f
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x140023a41
cmp byte [rbx + 0x68], 0
je 0x140023a68
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.140023a6c
nop
jmp 0x140023a41
Function at 0x140023a6c
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
je 0x14006a592
xor ebx, ebx
test rax, rax
jne 0x140023ab2
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
jne 0x14006a59c
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a5ba
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 0x14006a5b0
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
jne 0x140023bfc
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]
mov eax, ebx
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
mov ebx, 4
jmp 0x140023bb6
mov eax, 1
jmp 0x140023be3
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x140023ac3
mov ebx, 3
jmp 0x140023bb6
mov ebx, 2
jmp 0x140023be1
Function at 0x140023e4c
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 [0x1400f03a7]
mov rdi, rdx
mov rsi, rcx
call fcn.14003270c
mov ecx, eax
mov edx, 0x8000
call fcn.140032534
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x14006a5c4
lea rcx, [rsp + 0x20]
call fcn.140008d78
mov rcx, rdi
call fcn.14000be3c
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.140024188
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b6b3c]
mov rcx, rsi
call fcn.140023f1c
movsxd rbx, eax
test r14b, r14b
jne 0x14006a5f2
lea rcx, [rsp + 0x20]
call fcn.140008a8c
mov rcx, rsi
call fcn.140032bac
mov rcx, rsi
call fcn.14003270c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.140032534
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.1400816d0
mov rcx, rdi
movsxd rbx, eax
call fcn.140081678
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140032974
mov rbx, rax
jmp 0x140023ed9
mov rcx, rdi
call fcn.14000be3c
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140023ecf

Function at 0x1400243e8
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140048f00
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.140005d7c
add rsp, 0x10020
pop rbx
ret

Function at 0x1400291b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140028f1c
Function at 0x14004113c
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 0x140040fdc
call fcn.14003b114
mov dword [rax], socket
call fcn.14003aff4
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 0x140040fc4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140040fc4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14004100e
lock or dword [rax + 0x14], 0x10
jmp 0x140040fc4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14004102b
mov rcx, qword [rbp + 0x10]
call fcn.1400466bc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14003270c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140040a14
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140041082
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 0x140040fc4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400410ee
mov rcx, qword [rbp + 0x10]
call fcn.14003270c
cmp eax, 0xffffffff
je 0x1400410d5
mov rcx, qword [rbp + 0x10]
call fcn.14003270c
cmp eax, 0xfffffffe
je 0x1400410d5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14003270c
movsxd rdi, eax
lea rsi, [0x1400ef870]
mov rcx, rbx
sar rdi, 6
call fcn.14003270c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400410dc
lea rax, [0x1400ea2f0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400410ee
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140041124
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140041120
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140041120
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 0x140040fc7
jmp 0x140040f94
Function at 0x14006be1c
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.14000717c
lea rcx, [rsp + 0x38]
call fcn.14000717c
lea rcx, [rsp + 0x78]
call fcn.14000717c
lea rdx, [0x1400dc200]
lea rcx, [rsp + 0x58]
call fcn.140005d7c
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14000534c
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.14000534c
lea rcx, [rsp + 0x38]
call fcn.140009204
test rdi, rdi
je 0x14006bed9
cmp word [rdi], 0x5c
je 0x14006bed9
cmp word [rdi + 2], 0x5c
je 0x14006bed9
lea rdx, [0x1400dc238]
lea rcx, [rsp + 0x38]
call fcn.140005d7c
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000534c
test rsi, rsi
je 0x14006bf3b
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.1400261b0
lea rdx, [rsp + 0x38]
mov dword [rbp - 0x64], r15d
lea rcx, [rsp + 0x78]
call fcn.14000ca70
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.14000534c
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 0x14006bffc
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 0x14006bffc
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 0x14006bff1
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 0x14006bfe4
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.140008a8c
lea rcx, [rsp + 0x38]
call fcn.140008a8c
lea rcx, [rsp + 0x58]
call fcn.140008a8c
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006c9b8
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 0x14006ca39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006ca39
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 0x14006ca39
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