joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400902b0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
test rcx, rcx
jne 0x1400902c6
xor eax, eax
add rsp, 0x50
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x30], r15
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140107290]
mov r15d, eax
je 0x1400902f7
mov rcx, rbx
call fcn.1400916b0
test al, al
je 0x1400902f7
xor eax, eax
mov r15, qword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x68], rbp
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140090320
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp rbx, rbp
jne 0x140090338
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov r15, qword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
cmp byte [0x140105b2f], 0
jne 0x140090355
mov rdx, rbp
mov rcx, rbx
call fcn.140090210
test rax, rax
jne 0x1400904a0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
xor r12b, r12b
mov qword [rsp + 0x40], r13
xor r13b, r13b
mov qword [rsp + 0x38], r14
test rbp, rbp
je 0x1400903de
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r14d, eax
test eax, eax
je 0x1400903e3
cmp dword [0x140107290], eax
je 0x1400903ba
mov rcx, rbp
call fcn.1400916b0
test al, al
jne 0x1400903ba
mov ecx, dword [0x140107290]
mov r8d, 1
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne r12b
test r15d, r15d
je 0x1400903e3
cmp r14d, r15d
je 0x1400903e3
mov r8d, 1
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne r13b
jmp 0x1400903e3
mov r14d, dword [rsp + 0x60]
xor edi, edi
mov rdx, rbp
mov rcx, rbx
call fcn.140090210
mov rsi, rax
test rax, rax
jne 0x140090447
inc edi
cmp edi, 5
jl 0x1400903e5
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [rax + 2]
call fcn.140012ea0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [rsi + 2]
call fcn.140012ea0
mov rdx, rbp
mov rcx, rbx
call fcn.140090210
mov rsi, rax
mov rdi, qword [rsp + 0x78]
test r12b, r12b
mov r12, qword [rsp + 0x48]
je 0x140090468
mov ecx, dword [0x140107290]
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test r13b, r13b
mov r13, qword [rsp + 0x40]
je 0x140090481
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14, qword [rsp + 0x38]
test rsi, rsi
je 0x140090499
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rax, rsi
jmp 0x14009049b
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
Function at 0x140090600
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rbx, rcx
test r8b, r8b
je 0x140090620
call fcn.1400653e0
jmp 0x140090630
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test esi, esi
cmovns edi, esi
test edi, edi
je 0x14009068c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14009068c
add edi, esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x14009068c
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140090661
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400908a0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x11be0]
mov eax, 0x11ce0
call fcn.1400bfa50
sub rsp, rax
movzx r10d, word [rdx]
mov r11d, 0xffdf
mov rdi, rcx
mov rcx, qword [rbp + 0x11c10]
lea eax, [r10 - 0x41]
test r11w, ax
jne 0x140090948
cmp word [rdx + 2], 0
jne 0x140090948
cmp word [r8], 0
jne 0x140090948
cmp word [r9], 0
jne 0x140090948
cmp word [rcx], 0
jne 0x140090948
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
test rax, rax
je 0x14009092b
cmp byte [rdi + 0x12a], 0
jne 0x14009092b
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140090929
mov rcx, rbx
call fcn.140091760
test al, al
je 0x14009092b
xor ebx, ebx
cmp byte [rbp + 0x11c20], 0
je 0x140090940
test rbx, rbx
je 0x140090940
mov qword [rdi + 0xf8], rbx
mov rax, rbx
jmp 0x140090ab5
test r10w, r10w
jne 0x14009096d
cmp word [r8], r10w
jne 0x14009096d
cmp word [r9], r10w
jne 0x14009096d
cmp word [rcx], r10w
jne 0x14009096d
mov rcx, rdi
call fcn.140090ad0
jmp 0x140090ab5
xor ebx, ebx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
lea rax, [0x1400cef3c]
mov r9, r8
mov dword [rsp + 0x30], ebx
mov r8, rdx
mov qword [rbp + 0xf48], rax
xorps xmm0, xmm0
mov byte [rbp + 0x1781], bl
mov rdx, rdi
mov dword [rbp + 0x1784], ebx
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x1788], rbx
movdqa xmmword [rbp + 0x1790], xmm0
mov dword [rbp + 0x17a0], ebx
mov qword [rbp + 0x17a8], rbx
mov qword [rbp + 0x17b8], rbx
mov qword [rbp + 0x17c0], rbx
call fcn.140091980
test eax, eax
je 0x140090a84
test byte [rsp + 0x30], 2
movzx eax, byte [rbp + 0x11c18]
mov byte [rbp + 0x1781], al
mov rax, qword [rbp + 0x11c28]
mov qword [rbp + 0x1798], rax
mov eax, dword [rbp + 0x11c30]
mov dword [rbp + 0x17a0], eax
je 0x140090a88
mov rax, qword [rbp + 0xf68]
cmp rax, 0xffff
je 0x140090a59
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140090a84
mov rdx, qword [rbp + 0xf68]
mov rcx, rdi
call fcn.1400917f0
test al, al
jne 0x140090a52
mov rcx, qword [rbp + 0xf68]
lea edx, [rbx - 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x140090a84
mov rax, qword [rbp + 0xf68]
cmp qword [rbp + 0x17c0], rax
je 0x140090a73
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x17c0], rax
call fcn.140091e20
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140091f10
test rax, rax
jne 0x140090a9a
xor eax, eax
jmp 0x140090ab5
lea rdx, [rsp + 0x30]
lea rcx, [0x140090b80]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbp + 0x1788]
cmp byte [rbp + 0x11c20], bl
je 0x140090ab5
test rax, rax
je 0x140090ab5
mov qword [rdi + 0xf8], rax
lea r11, [rsp + 0x11ce0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140091e20
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x140091f03
mov eax, dword [rbx]
test eax, eax
je 0x140091f03
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x140091e5f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x140091e7d
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x140091e7d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x140091e96
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x140091ed4
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140091ed4
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.1400604c0
test eax, eax
jne 0x140091ed4
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x140091f03
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x140092770
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400bfa50
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14009282a
xor r9d, r9d
mov byte [rsp + 0x18a0], dl
lea rcx, [0x1400cef3c]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov byte [rsp + 0x1871], r9b
lea rcx, [0x1400930b0]
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x14009282a
mov rax, qword [0x140100a58]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14009282a
mov edx, 1
call fcn.1400016f0
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x140092840
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rbx, rcx
jne 0x14009286a
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140100a58]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.140092e10
cmp byte [rbx], 0
mov rbp, rax
je 0x1400928a1
test rax, rax
jne 0x1400928aa
jmp 0x140092942
test rbp, rbp
jne 0x14009293d
test rdi, rdi
je 0x14009293d
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14009291f
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x14009291f
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400928f0
mov rax, qword [0x140100a58]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14009293d
mov edx, 1
call fcn.1400016f0
cmp byte [rbx], 0
je 0x140092956
xor r9d, r9d
mov r8, rbp
movzx edx, r14b
mov rcx, rbx
call fcn.140092980
jmp 0x140092962
movzx edx, r14b
mov rcx, rbx
call fcn.140092b70
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140092b70
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400bfa50
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x140092d34
xor edx, edx
call fcn.140092d50
test eax, eax
jne 0x140092bb0
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140100a58]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.140092e10
mov ecx, dword [0x140107274]
xor ebp, ebp
test rax, rax
mov dword [rsp + 0x30], ebp
lea rax, [0x1400cef3c]
mov dword [rsp + 0x1884], ebp
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [0x140107274], ecx
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x140092c3a
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x140092c42
mov byte [rsp + 0x1881], 1
mov rax, qword [0x140107280]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x18a0], ecx
lea rcx, [0x140092f30]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x140092cf8
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400915f0]
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x140092cc0
mov rcx, qword [rsp + 0x1888]
call fcn.140092480
mov qword [rsp + 0x1888], r10
jmp 0x140092cc8
mov r10, qword [rsp + 0x1888]
mov rcx, r10
call fcn.1400902b0
mov rcx, qword [rsp + 0x1888]
call fcn.140092480
mov rcx, qword [0x140100a58]
mov ecx, dword [rcx + 0x74]
cmp ecx, 0xffffffff
jle 0x140092d24
mov edx, 1
call fcn.1400016f0
jmp 0x140092d24
mov eax, dword [0x140107274]
test eax, eax
je 0x140092d24
cmp eax, 1
mov dword [0x140107274], ebp
setg al
test al, al
je 0x140092d24
mov rcx, rsi
call fcn.140092480
xor edx, edx
mov rcx, rbx
call fcn.140092b70
mov rsi, qword [rsp + 0x11cf8]
mov rbp, qword [rsp + 0x11cf0]
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
Function at 0x1400aec68
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400aea3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400aea3c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aea3c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aea3c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aea3c
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aea3c
cmp dword [rcx + 0xf8], esi
je 0x1400aea3c
mov ecx, r14d
call fcn.1400aeb84
mov ecx, 2
call fcn.1400b7ac8
nop
cmp byte [0x140103b08], 0
jne 0x1400aeb06
mov r15d, 1
mov eax, r15d
xchg dword [0x140103afc], eax
test ebx, ebx
jne 0x1400aeaaf
mov rdi, qword [0x140100018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140103b00]
cmp rcx, rax
je 0x1400aeaa6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140017f80]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140103d40]
jmp 0x1400aeabb
cmp ebx, r15d
jne 0x1400aeac1
lea rcx, [0x140103d58]
call fcn.1400b4a10
nop
test ebx, ebx
jne 0x1400aead8
lea rdx, [0x1400c6fa0]
lea rcx, [0x1400c6f80]
call fcn.1400b4da8
lea rdx, [0x1400c6fb0]
lea rcx, [0x1400c6fa8]
call fcn.1400b4da8
movzx eax, byte [0x140103b08]
test esi, esi
cmove eax, r15d
mov byte [0x140103b08], al
jmp 0x1400aeb06
mov ecx, 2
call fcn.1400b7b1c
test esi, esi
jne 0x1400aeb1d
mov ecx, r14d
call fcn.1400aeb38
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400ae9cc

Function at 0x1400bfaa4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14011b540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14011b56d
xor al, al
jmp 0x14011b6cf
mov rax, qword [0x14013b6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14013b6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14013b6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14013b6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14013b6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14013b6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14013b6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14013b6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14013b700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14011b6c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14011b619
mov r11d, 2
jmp 0x14011b63d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14011b633
mov r11d, 1
jmp 0x14011b63d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14011b6e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14011b682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14011b69a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14011b6aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14011b6b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14011b600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14011b6ca
Function at 0x1400709e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1405e6620]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140070a14
xor eax, eax
jmp 0x140070c0a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140070a45
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140072ea0
jmp 0x140070c0a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140077540
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140070af3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14006e7a0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.140077700
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14006e7f0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140077660
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x140070bfa
mov rcx, qword [rsp + 0x80]
call fcn.1400755e0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140070ba8
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140377bbc
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140070ba3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140070c0a
jmp 0x140070b1f
cmp qword [rsp + 0x50], 0
jbe 0x140070bfa
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140377bbc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140360a10
add rsp, 0x78
ret
Function at 0x140089900
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1405e6620]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x58]
lea rcx, str._pipediscord_ipc_0
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WLDAP32.dll_Ordinal_46
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], reloc.WS2_32.dll_setsockopt
mov eax, 2
imul rax, rax, 0x15
mov ecx, Ordinal_50
mov word [rsp + rax + 0x58], cx
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1400899b2
mov rax, qword [rsp + 0x48]
mov byte [rax], 1
mov al, 1
jmp 0x140089a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 2
jne 0x1400899fc
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
cmp eax, 0x39
jge 0x1400899fa
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
inc ax
mov ecx, 2
imul rcx, rcx, 0x15
mov word [rsp + rcx + 0x58], ax
jmp 0x140089962
jmp 0x140089a23
cmp dword [rsp + 0x40], 0xe7
jne 0x140089a23
mov edx, 0x2710
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140089a1e
xor al, al
jmp 0x140089a2c
jmp 0x140089962
xor al, al
jmp 0x140089a2c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140360a10
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x140089a90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1405e6620]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x70], 0
jne 0x140089ac1
mov al, 1
jmp 0x140089b9c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140089aee
mov r8d, reloc.WLDAP32.dll_Ordinal_79
lea rdx, [0x14045bda0]
lea rcx, [0x14045be18]
call fcn.140378bb4
xor eax, eax
cmp qword [rsp + 0x38], 0
jne 0x140089afd
xor al, al
jmp 0x140089b9c
mov rax, qword [rsp + 0x38]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140089b10
xor al, al
jmp 0x140089b9c
cmp qword [rsp + 0x68], 0
jne 0x140089b33
mov r8d, 0x56
lea rdx, [0x14045be30]
lea rcx, [0x14045bea8]
call fcn.140378bb4
xor eax, eax
cmp qword [rsp + 0x68], 0
jne 0x140089b3f
xor al, al
jmp 0x140089b9c
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140089b8f
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x40], eax
jne 0x140089b8f
mov dword [rsp + 0x34], 1
jmp 0x140089b97
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140360a10
add rsp, 0x58
ret
Function at 0x140089bb0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1405e6620]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x68], 0
jne 0x140089bf5
mov r8d, 0x62
lea rdx, [0x14045bec0]
lea rcx, [0x14045bf38]
call fcn.140378bb4
xor eax, eax
cmp qword [rsp + 0x68], 0
jne 0x140089c04
xor al, al
jmp 0x140089d13
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140089c31
mov r8d, 0x67
lea rdx, [0x14045bf50]
lea rcx, str.self
call fcn.140378bb4
xor eax, eax
cmp qword [rsp + 0x38], 0
jne 0x140089c40
xor al, al
jmp 0x140089d13
mov rax, qword [rsp + 0x38]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140089c53
xor al, al
jmp 0x140089d13
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140089d07
mov eax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0x70]
jb 0x140089d05
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140089cfb
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
je 0x140089cf5
mov r8d, reloc.WS2_32.dll_WSACleanup
lea rdx, str.C:UsersomarDesktopRRDiscord_SDK_srcconnection_win.cpp
lea rcx, str.bytesToRead__bytesRead
call fcn.140378bb4
xor eax, eax
mov al, 1
jmp 0x140089d13
mov rcx, qword [rsp + 0x60]
call fcn.140089a50
jmp 0x140089d11
mov rcx, qword [rsp + 0x60]
call fcn.140089a50
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140360a10
add rsp, 0x58
ret