joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180030120
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, str.ACTools::GetBaseAddressByAddress
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginMutation]
nop
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003023a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x20], rax
jb 0x180030220
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x90], rax
ja 0x180030220
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x20]
call sub.ntdll.dll_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18003021e
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x50]
mov dword [rax], ecx
jmp 0x18003023a
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x18003016e
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
mov rax, qword [rsp + 0x98]
cmp qword [rax], 0
je 0x180030266
mov rax, qword [rsp + 0xa0]
cmp dword [rax], 0
je 0x180030266
mov dword [rsp + 0x2c], 1
jmp 0x18003026e
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x80
pop rdi
ret
Function at 0x180031120
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, str.ACTools::GetVectorThreadInfo
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginMutation]
nop
mov qword [rsp + 0x20], 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x180031206
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800311fa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [rsp + 0x3c]
jne 0x1800311e7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rsp + 0x38]
je 0x1800311e7
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x2c], eax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.180041110
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18003119f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x60
pop rdi
ret
Function at 0x18003caa0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x18003cad0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x18003cb52
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x18003cb1e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x18003cb26
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x18003cac5
mov qword [rsp + 8], 0xe3
jmp 0x18003cb6a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x18003cbf1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x18003cbbb
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x18003cbc3
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x18003cb5d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x18003cc45
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x18003cc4d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x18003cca0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x18003ccc1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x18003cd45
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x18003cd10
mov dword [rsp + 4], 0x9908b0df
jmp 0x18003cd18
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x18003ccb4
add rsp, 0x18
ret
Function at 0x180042590
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 [0x180164280]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x1800425c4
xor eax, eax
jmp 0x1800427bb
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x1800425f5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1800427d0
jmp 0x1800427bb
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.18003a490
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1800426a4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.180002e70
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.18003ff40
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.180004c10
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.18003fe50
nop
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x1800427ab
mov rcx, qword [rsp + 0x80]
call fcn.18003cd90
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x180042759
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.1800f00dc
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 0x180042754
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1800427bb
jmp 0x1800426d0
cmp qword [rsp + 0x50], 0
jbe 0x1800427ab
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.1800f00dc
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.180081a40
add rsp, 0x78
ret
Function at 0x18004af20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x7d8
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x7c0], rax
mov rax, qword [rsp + 0x800]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x7f8]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x18004b129
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004b129
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x20], 0x104
mov r9d, dword [rsp + 0x20]
lea r8, [rsp + 0x5a0]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_K32GetModuleBaseNameA
test eax, eax
je 0x18004b11d
mov r9d, dword [rsp + 0x20]
lea r8, [rsp + 0x490]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x18004b11d
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x60], eax
mov edx, 0xfffffff0
mov rcx, qword [rsp + 0x7f8]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [rsp + 0x68], eax
mov edx, 0xffffffec
mov rcx, qword [rsp + 0x7f8]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [rsp + 0x6c], eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x7f8]
call qword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
mov r8d, 0x104
lea rdx, [rsp + 0x74]
mov rcx, qword [rsp + 0x7f8]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r8d, 0x104
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x7f8]
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rdx, [rsp + 0x5a0]
lea rcx, [rsp + 0x27c]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x380]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
nop
lea r8, [rsp + 0x6b0]
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x490]
call fcn.180033610
movzx eax, al
test eax, eax
je 0x18004b0c3
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x64], eax
mov ecx, 0x424
call fcn.180081494
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18004b0fa
lea rax, [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rsi, rax
mov ecx, 0x424
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x18004b103
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.1800053a0
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
mov rcx, qword [rsp + 0x7c0]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x7d8
pop rdi
pop rsi
ret

Function at 0x18004bbb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, str.cf_antiCheat::CloseGame
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginMutation]
nop
mov edx, 0xdeadbeef
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
add rsp, 0x28
ret
Function at 0x18004bbf0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call fcn.18004a870
mov rcx, rax
call fcn.18004a4c0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1800030c0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180004bc0
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.180017ad0
nop
lea rcx, [rsp + 0x90]
call fcn.1800035f0
nop
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x31]
call fcn.18004aad0
mov rcx, rax
call fcn.18000bc20
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.1800030c0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180004bc0
mov r9, qword [rsp + 0x2c0]
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x1a0]
call fcn.1800581b0
lea rcx, [rsp + 0xb0]
call fcn.1800035f0
nop
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x32]
call fcn.18004ab00
mov rcx, rax
call fcn.18000baa0
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.1800030c0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.180004bc0
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x33]
call fcn.18004a9b0
mov rcx, rax
call fcn.1800180f0
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.1800030c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180004bc0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1a0]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0xd0]
call fcn.1800035f0
nop
lea rcx, [rsp + 0xf0]
call fcn.1800035f0
nop
call fcn.18004bbb0
nop
lea rcx, [rsp + 0x190]
call fcn.1800036a0
nop
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x2b0
pop rdi
ret
Function at 0x18004c2e0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, str.cf_antiCheat::MrRobotChallange
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBegin]
nop
mov r8d, 0x104
lea rdx, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18004c505
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x30]
call fcn.18004ab30
mov rcx, rax
call fcn.180018130
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1800030c0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180004bc0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x88]
call fcn.1800035f0
nop
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x31]
call fcn.18004aa10
mov rcx, rax
call fcn.18000bb60
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1800030c0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180004bc0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0xa8]
call fcn.1800035f0
nop
mov dword [rsp + 0x34], 0x3e8
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x80]
call fcn.180001880
mov rcx, rax
call fcn.180002ec0
nop
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x32]
call fcn.18004b2c0
mov rcx, rax
call fcn.18000bb60
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1800030c0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.180004bc0
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x33]
call fcn.18004a930
mov rcx, rax
call fcn.1800180f0
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.1800030c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180004bc0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0xc8]
call fcn.1800035f0
nop
lea rcx, [rsp + 0xe8]
call fcn.1800035f0
nop
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x2a0
pop rdi
ret
Function at 0x18004c530
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x70], 0
jbe 0x18004c623
mov rcx, qword [rsp + 0x80]
call fcn.18001cf50
movzx eax, al
test eax, eax
jne 0x18004c623
mov rcx, qword [rsp + 0x80]
call fcn.180004bc0
mov r8, rax
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18004c5b7
mov dword [rsp + 0x30], 0xfffffffe
jmp 0x18004c621
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18004c5f9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], 0xfffffffd
jmp 0x18004c621
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18004c62b
mov dword [rsp + 0x30], 0xffffffff
mov eax, dword [rsp + 0x30]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x18005d670
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x180164280]
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, 0x2e
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], reloc.WS2_32.dll_setsockopt
mov eax, 2
imul rax, rax, 0x15
mov ecx, 0x30
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 0x18005d722
mov rax, qword [rsp + 0x48]
mov byte [rax], 1
mov al, 1
jmp 0x18005d79c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 2
jne 0x18005d76c
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
cmp eax, 0x39
jge 0x18005d76a
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 0x18005d6d2
jmp 0x18005d793
cmp dword [rsp + 0x40], 0xe7
jne 0x18005d793
mov edx, 0x2710
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x18005d78e
xor al, al
jmp 0x18005d79c
jmp 0x18005d6d2
xor al, al
jmp 0x18005d79c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x18005d7c0
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 [0x180164280]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x68], 0
jne 0x18005d7f1
xor al, al
jmp 0x18005d8ba
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18005d80a
xor al, al
jmp 0x18005d8ba
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x18005d81d
xor al, al
jmp 0x18005d8ba
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18005d8ad
mov eax, dword [rsp + 0x3c]
cmp rax, qword [rsp + 0x70]
jb 0x18005d8ab
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x18005d8a0
mov al, 1
jmp 0x18005d8ba
mov rcx, qword [rsp + 0x60]
call fcn.18005d610
nop
jmp 0x18005d8b8
mov rcx, qword [rsp + 0x60]
call fcn.18005d610
nop
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x58
ret