joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c9b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c9fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c9fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c9fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c9fe
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c9fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ca00
xor al, al
add rsp, 0x28
ret

Function at 0x14000f658
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f6c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f6c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f6c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f6c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f6c7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f6c7
cmp dword [rcx + 0xf8], 0
je 0x14000f6c7
mov ecx, ebx
call fcn.14000f76c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f560
nop
cmp dword [rbp + 0x20], 0
jne 0x14000f728
call fcn.14001424c
cmp eax, 1
jne 0x14000f718
xor dl, dl
jmp 0x14000f722
call fcn.140014218
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000f733
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f73c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f658

Function at 0x14000f840
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f6c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f6c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f6c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f6c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f6c7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f6c7
cmp dword [rcx + 0xf8], 0
je 0x14000f6c7
mov ecx, ebx
call fcn.14000f76c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f560
nop
cmp dword [rbp + 0x20], 0
jne 0x14000f728
call fcn.14001424c
cmp eax, 1
jne 0x14000f718
xor dl, dl
jmp 0x14000f722
call fcn.140014218
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000f733
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f73c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f658
Function at 0x140018e48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018ecf
mov rsi, rbx
cmp word [rax], bp
je 0x140018e8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018e78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018e74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016380
mov rdi, rax
test rax, rax
je 0x140018ebc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001fa70
mov rbp, rdi
xor ecx, ecx
call fcn.140015460
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001af90
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001afa6
mov al, 1
jmp 0x14001b012
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001afb7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b010
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019190
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b010
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b010
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b010
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b012
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f278
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140028170
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002817d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002818d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140028175
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400281a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140028192
sub eax, 3
jb 0x1400281bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400281f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400281e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400281e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400281d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140028132
jmp 0x14002817d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xf800
mov dl, 3
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140028246
cmp rsi, rcx
jae 0x14002824e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002822d
cmp al, 0x8f
ja 0x14002822d
cmp byte [rsi - 2], 0xf
je 0x140028233
sub al, 0xe8
cmp al, 1
ja 0x140028217
cmp rsi, rcx
jae 0x14002824e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002821d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002824e
lodsb al, byte [rsi]
jmp 0x14002822d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25000]
mov eax, dword [rdi]
or eax, eax
je 0x1400282ab
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x281e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002825b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400282a5
mov qword [rbx], rax
add rbx, 8
jmp 0x14002827b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400282e5
cmp al, 0xef
ja 0x1400282d7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400282b7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400282c6
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140028339
sub rsp, 0xffffffffffffff80
jmp 0x14000f298
Function at 0x140e35058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e351df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e35089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e3506f
add dl, dl
jne 0x140e35096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e350f6
xor eax, eax
add dl, dl
jne 0x140e350a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e351ad
add dl, dl
jne 0x140e350b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e350c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e350d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e350dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e350ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e3507e
mov eax, 1
add dl, dl
jne 0x140e35106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e35113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e350fb
sub eax, ebx
mov ebx, 1
jne 0x140e3514c
mov ecx, 1
add dl, dl
jne 0x140e3512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e3513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e35123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e3507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e35168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e35175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e3515d
cmp eax, 0x7d00
jae 0x140e3519b
cmp eax, 0x500
jb 0x140e35196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e3507e
cmp eax, 0x7f
ja 0x140e3519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e3507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e351d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e3507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001b42c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b478
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b470
cmp dword [rcx + 0x3c], edx
jl 0x14001b470
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001b470
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001b478
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001180
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1068
call fcn.14000a4e0
sub rsp, rax
mov rax, qword [0x140016028]
xor rax, rsp
mov qword [rsp + 0x1058], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.WinInetExample
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x1048], rax
cmp qword [rsp + 0x1048], 0
jne 0x1400011e3
xor al, al
jmp 0x140001300
mov rcx, qword [rsp + 0x1070]
call fcn.140001a80
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x1048]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x1040], rax
cmp qword [rsp + 0x1040], 0
jne 0x140001240
mov rcx, qword [rsp + 0x1048]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140001300
mov rcx, qword [rsp + 0x1078]
call fcn.140001a80
lea rdx, [0x1400136f0]
mov rcx, rax
call fcn.140003c94
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001289
mov rcx, qword [rsp + 0x1040]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x1048]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140001300
lea r9, [rsp + 0x1050]
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x1040]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400012d8
cmp dword [rsp + 0x1050], 0
je 0x1400012d8
mov eax, dword [rsp + 0x1050]
mov r9, qword [rsp + 0x30]
mov r8d, eax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140003e98
jmp 0x140001289
mov rcx, qword [rsp + 0x30]
call fcn.140004000
mov rcx, qword [rsp + 0x1040]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x1048]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.1400035b0
add rsp, 0x1068
ret
Function at 0x14000433f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140016028]
jne 0x1400035ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400035c6
repz ret
ror rcx, 0x10
jmp 0x140004298
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400175c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400176b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000431d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400175c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000433f
mov rax, qword [rsp + 0x88]
mov qword [0x1400176b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140017658], rax
mov rax, qword [0x1400176b8]
mov qword [0x140017530], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140017640], rax
mov dword [0x140017520], 0xc0000409
mov dword [0x140017524], 1
mov rax, qword [0x140016028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140016030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400175b8], eax
mov ecx, 1
call fcn.140007f54
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400113d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400175b8], 0
jne 0x1400043c6
mov ecx, 1
call fcn.140007f54
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140004e68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140004e92
call fcn.140004e00
and dword [rax], 0
call fcn.140004de0
mov ebx, 0x16
mov dword [rax], ebx
call fcn.140004790
mov eax, ebx
jmp 0x140004ee2
test edx, 0xfffffff9
jne 0x140004e75
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140004ebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004e20
call fcn.140004de0
mov eax, dword [rax]
jmp 0x140004ee2
test al, 0x10
jne 0x140004ee0
test al, 1
je 0x140004ee0
test bl, 2
je 0x140004ee0
call fcn.140004e00
mov dword [rax], 5
call fcn.140004de0
mov dword [rax], 0xd
jmp 0x140004eb2
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140006dcc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140006c3c
Function at 0x14000ae04
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140016028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140007afc
xor ebx, ebx
cmp qword [0x140018548], rbx
mov rdi, rax
jne 0x14000af17
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000afee
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000afee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140018548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140018550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140018558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140018568], rax
test rax, rax
je 0x14000af0e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140018560], rax
jmp 0x14000af1e
mov rax, qword [0x140018560]
jmp 0x14000af25
mov rax, qword [0x140018560]
mov r11, qword [0x140018568]
cmp rax, rdi
je 0x14000af8c
cmp r11, rdi
je 0x14000af8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140018568]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000af8c
test rax, rax
je 0x14000af8c
call rsi
test rax, rax
je 0x14000af86
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000af86
test byte [rsp + 0x40], 1
jne 0x14000af8c
bts ebp, 0x15
jmp 0x14000afcc
mov rcx, qword [0x140018550]
cmp rcx, rdi
je 0x14000afcc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000afcc
call rax
mov rbx, rax
test rax, rax
je 0x14000afcc
mov rcx, qword [0x140018558]
cmp rcx, rdi
je 0x14000afcc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000afcc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140018548]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000afee
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000aff0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400035b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180010f30
Capabilities:
Get session information

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x180010fb1
xor ecx, ecx
lea r9, [rsp + 0x48]
mov qword [rsp + 0x48], rcx
mov r8d, SafeArrayCopy
mov dword [rsp + 0x40], ecx
mov edx, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, 1
jne 0x180010fb1
cmp dword [rsp + 0x40], 0
jbe 0x180010fb1
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
cmp dword [rcx], eax
jne 0x180010f9d
cmp dword [rcx + 0x10], 0
jne 0x180010f9d
movzx ebx, al
call sub.WTSAPI32.dll_WTSFreeMemory
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
xor bl, bl
call sub.WTSAPI32.dll_WTSFreeMemory
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret
Function at 0x180014ec0
Capabilities:
Capture screenshot

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1801519f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, dword [rsp + 0xf0]
mov ebx, r9d
mov r12d, dword [rsp + 0xf8]
mov r13, r8
mov r15d, dword [rsp + 0x100]
mov rsi, rcx
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x50], edi
test r8, r8
je 0x180014f42
lea rdx, [rsp + 0x68]
mov rcx, r8
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x70]
sub eax, dword [rsp + 0x68]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x74]
sub eax, dword [rsp + 0x6c]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x58]
jmp 0x180014f80
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r13, rax
mov rax, qword [rsi]
call qword [rax + SafeArrayCopy]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_class_QSize___cdecl_QRect::size_void____ptr64]
mov ecx, dword [rsp + 0x68]
add ecx, ebx
mov dword [rsp + 0x54], ecx
mov ecx, dword [rsp + 0x6c]
mov rax, qword [rax]
add ecx, edi
mov dword [rsp + 0x50], ecx
test r12d, r12d
jns 0x180014f8b
mov r12d, eax
sub r12d, ebx
test r15d, r15d
jns 0x180014f9a
mov r15, rax
shr r15, 0x20
sub r15d, edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, r15d
mov edx, r12d
mov rcx, r14
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r13
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x40], 0x40cc0020
mov r9d, r12d
mov rbx, rax
xor r8d, r8d
mov eax, dword [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rsi
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.Qt5Gui.dll_class_QPixmap___cdecl_qt_pixmapFromWinHBITMAP_struct_HBITMAP______ptr64__int_]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800eea90
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180017810
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1801519f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rcx + 0x24]
mov rbx, rcx
add rcx, 0x2c24
cmp rax, rcx
je 0x18001784c
nop dword [rax]
and dword [rax], 0xfffffffd
add rax, 0x2c
cmp rax, rcx
jne 0x180017840
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edi, edi
movzx ecx, ax
lea r8, [rsp + 0x20]
lea r9d, [rdi + 0x10]
lea edx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18001788a
mov eax, 0x800
mov byte [rbx + 0x2c25], 0
test word [rsp + 0x2e], ax
mov eax, 1
cmovne edi, eax
jmp 0x180017891
mov byte [rbx + 0x2c25], dil
mov dword [rbx + 0x10], edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800eea90
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1800180c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], 0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1800180e5
or dword [rbx], 0x2000000
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1800180fb
or dword [rbx], 0x4000000
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180018111
or dword [rbx], 0x8000000
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180018131
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180018137
or dword [rbx], 0x10000000
mov rax, rbx
add rsp, 0x20
pop rbx
ret