joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180052d20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor r13d, r13d
mov qword [rbp - 0x30], r13
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180052d71
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x40], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
mov dword [rsp + 0x30], 0x2c
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, str.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mov qword [rsp + 0x20], rcx
lea r9, [0x1800a1e58]
mov rcx, rax
call fcn.18008c6b0
mov r12d, r13d
mov r14, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
sub r14, rdi
sar r14, 3
test r14, r14
je 0x180052ed2
mov rbx, rdi
nop dword [rax + rax]
mov dword [rbp - 0x28], 0x10000000
mov qword [rbp - 0x24], 0x10800000
mov dword [rbp - 0x1c], 5
mov dword [rbp - 0x18], 0x3f800000
mov dword [rbp - 0x14], 0x41200000
mov dword [rbp - 0x10], 0x42340000
mov dword [rbp - 0xc], 1
mov rsi, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180052e18
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180052e5d
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x20
lea r8, [rbp - 0x28]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [rbp + 0x40]
mov r15, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180052ea1
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov r8d, 8
mov rdx, r15
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc r12d
add rbx, 8
movsxd rax, r12d
cmp rax, r14
jb 0x180052dc0
test rdi, rdi
je 0x180052f12
mov rdx, qword [rbp - 0x30]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rax, rdi
cmp rdx, 0x1000
jb 0x180052f0a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052f0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.18008e9e8
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180052f30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor r13d, r13d
mov qword [rbp - 8], r13
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180052f7e
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x40], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
mov dword [rsp + 0x30], 7
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, str.xxxxxxxxxxxxxxxxxxxxxxxx
mov qword [rsp + 0x20], rcx
lea r9, [0x1800a1e98]
mov rcx, rax
call fcn.18008c6b0
mov r12d, r13d
mov r14, qword [rbp - 0x10]
mov rdi, qword [rbp - 0x18]
sub r14, rdi
sar r14, 3
test r14, r14
je 0x1800530ce
mov rbx, rdi
nop dword [rax + rax]
mov dword [rbp - 0x30], 1
mov dword [rbp - 0x2c], 0x3f800000
mov qword [rbp - 0x28], 0x3fe51eb8
mov qword [rbp - 0x20], 1
mov rsi, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180053014
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180053059
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x18
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [rbp + 0x40]
mov r15, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x18005309d
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov r8d, 8
mov rdx, r15
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc r12d
add rbx, 8
movsxd rax, r12d
cmp rax, r14
jb 0x180052fd0
test rdi, rdi
je 0x18005310e
mov rdx, qword [rbp - 8]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rax, rdi
cmp rdx, 0x1000
jb 0x180053106
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180053106
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.18008e9e8
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180053130
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor r13d, r13d
mov qword [rbp - 8], r13
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x18005317e
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x40], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
mov dword [rsp + 0x30], 0x64
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, str.xxxxxxxxxxxxxxxxxx
mov qword [rsp + 0x20], rcx
lea r9, [0x1800a1eb8]
mov rcx, rax
call fcn.18008c6b0
mov r12d, r13d
mov r14, qword [rbp - 0x10]
mov rdi, qword [rbp - 0x18]
sub r14, rdi
sar r14, 3
test r14, r14
je 0x1800532d2
mov rbx, rdi
nop dword [rax + rax]
mov dword [rbp - 0x30], 0x42a0
mov dword [rbp - 0x2c], 0x33333fc0
mov dword [rbp - 0x28], 0x4013
mov dword [rbp - 0x24], 0x3ff0
mov word [rbp - 0x20], 0x5c29
mov rsi, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x180053218
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x18005325d
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x12
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [rbp + 0x40]
mov r15, qword [rbx]
mov rax, qword [0x1802563b8]
test rax, rax
jne 0x1800532a1
lea ecx, [rax + 0x10]
call fcn.18008e55c
mov qword [rbp + 0x48], rax
mov dword [rax + 8], r13d
mov qword [0x1802563b8], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov r8d, 8
mov rdx, r15
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc r12d
add rbx, 8
movsxd rax, r12d
cmp rax, r14
jb 0x1800531d0
test rdi, rdi
je 0x180053312
mov rdx, qword [rbp - 8]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rax, rdi
cmp rdx, 0x1000
jb 0x18005330a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005330a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.18008e9e8
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180053ae0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rsi, rcx
mov r8d, 0x4d
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
call fcn.18004b570
lea rcx, [rsi + 0x20]
xor r8d, r8d
lea rdx, [0x18009471a]
call fcn.18004b570
lea rcx, [rsi + 0x40]
xor r8d, r8d
lea rdx, [0x18009471a]
call fcn.18004b570
lea rcx, [rsi + 0x60]
xor r8d, r8d
lea rdx, [0x18009471a]
call fcn.18004b570
lea rcx, [rsi + 0x80]
mov r8d, 3
lea rdx, [0x1800a20f0]
call fcn.18004b570
lea rcx, [rsi + 0xa0]
xor r8d, r8d
lea rdx, [0x18009471a]
call fcn.18004b570
lea rcx, [rsi + 0xc0]
mov r8d, 0xf
lea rdx, str.www.example.com
call fcn.18004b570
xor r14d, r14d
mov qword [rbp - 0x40], r14
movdqa xmm0, xmmword [0x1800a8e20]
movdqa xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], r14b
xor r8d, r8d
lea rdx, [0x18009471a]
lea rcx, [rbp - 0x40]
call fcn.18004b570
nop
mov qword [rbp - 0x20], r14
movdqa xmm0, xmmword [0x1800a8e20]
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], r14b
xor r8d, r8d
lea rdx, [0x18009471a]
lea rcx, [rbp - 0x20]
call fcn.18004b570
nop
lea rax, [rbp - 0x40]
mov qword [rbp - 0x50], rax
lea rax, [rbp]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.180053940
lea rdi, [rsi + 0x160]
lea rax, [rbp - 0x60]
cmp rdi, rax
je 0x180053c54
mov rbx, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, rdi
mov rcx, rdi
call fcn.18005dd80
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 8], r14
mov r8, qword [rdi]
mov rax, qword [rbp - 0x60]
mov qword [rdi], rax
mov qword [rbp - 0x60], r8
mov rax, qword [rbp - 0x58]
mov qword [rdi + 8], rax
mov qword [rbp - 0x58], r14
jmp 0x180053c58
mov r8, qword [rbp - 0x60]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.18005dd80
mov edx, 0x60
mov rcx, qword [rbp - 0x60]
call fcn.18008e9e8
nop
lea r9, [fcn.180053cd0]
mov edx, 0x40
lea r8d, [rdx - 0x3f]
lea rcx, [rbp - 0x40]
call fcn.18008e598
mov qword [rsi + 0x170], r14
mov word [rsi + 0x151], 1
mov byte [rsi + 0x150], 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180053d80
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [0x1802573e0]
mov qword [rsp + 0x80], rdi
xor ebx, ebx
mov qword [0x1802573e0], rbx
mov qword [0x1802573f0], rbx
mov qword [0x1802573f8], 0xf
lea r8d, [rbx + 0x4d]
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
mov rcx, rdi
call fcn.18004b570
nop
mov qword [0x180257400], rbx
mov qword [0x180257410], rbx
mov qword [0x180257418], 0xf
mov qword [0x180257420], rbx
mov qword [0x180257430], rbx
mov qword [0x180257438], 0xf
mov qword [0x180257440], rbx
mov qword [0x180257450], rbx
mov qword [0x180257458], 0xf
mov qword [0x180257460], rbx
mov qword [0x180257470], rbx
mov qword [0x180257478], 0xf
lea r8d, [rbx + 3]
lea rdx, [0x1800a20f0]
lea rcx, [0x180257460]
call fcn.18004b570
nop
mov qword [0x180257480], rbx
mov qword [0x180257490], rbx
mov qword [0x180257498], 0xf
mov qword [0x1802574a0], rbx
mov qword [0x1802574b0], rbx
mov qword [0x1802574b8], 0xf
lea r8d, [rbx + 0xf]
lea rdx, str.www.example.com
lea rcx, [0x1802574a0]
call fcn.18004b570
nop
lea rax, [0x1802574c0]
mov qword [rsp + 0x88], rax
mov qword [0x1802574c0], rbx
mov qword [0x1802574d0], rbx
mov qword [0x1802574d8], 0xf
mov qword [0x1802574e0], rbx
mov qword [0x1802574f0], rbx
mov qword [0x1802574f8], 0xf
xor r8d, r8d
lea rdx, [0x18009471a]
lea rcx, [0x1802574e0]
call fcn.18004b570
nop
mov qword [0x180257500], rbx
mov qword [0x180257510], rbx
mov qword [0x180257518], 0xf
xor r8d, r8d
lea rdx, [0x18009471a]
lea rcx, [0x180257500]
call fcn.18004b570
nop
mov qword [0x180257520], rbx
mov qword [0x180257528], rbx
lea ecx, [rbx + 0x60]
call fcn.18008e55c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x180257520], rax
mov word [0x180257530], 0x101
mov byte [0x180257532], 1
mov qword [0x180257538], rbx
mov qword [rsp + 0x30], rbx
movdqa xmm0, xmmword [0x1800a8e20]
movdqa xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], bl
xor r8d, r8d
lea rdx, [0x18009471a]
lea rcx, [rsp + 0x30]
call fcn.18004b570
nop
mov qword [rsp + 0x50], rbx
movdqa xmm0, xmmword [0x1800a8e20]
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], bl
xor r8d, r8d
lea rdx, [0x18009471a]
lea rcx, [rsp + 0x50]
call fcn.18004b570
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x180257540]
call fcn.180053940
nop
lea r9, [fcn.180053cd0]
lea edx, [rbx + 0x40]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.18008e598
mov qword [0x180257550], rbx
mov dword [0x180257558], 1
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x180058d10
Capabilities:
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], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x440
mov r15, r8
mov r12, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x30], 1
lea rcx, [r9 + 0x60]
mov rdx, qword [rcx + 0x18]
cmp qword [rcx + 0x10], rbp
je 0x180058d7e
cmp rdx, 0x10
jb 0x180058d6e
mov rcx, qword [rcx]
lea rdx, [0x1800a22a4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
mov ecx, 0xffffffff
mov dword [rsp + 0x488], ecx
nop word [rax + rax]
test ecx, ecx
je 0x180058e51
lea r9, [rsp + 0x488]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, qword [r12]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r14d, eax
mov ecx, dword [rsp + 0x488]
test ecx, ecx
je 0x180058dca
add dword [r15 + 0xe4], ecx
test rbp, rbp
je 0x180058de7
mov r8, rcx
mov r9, rbp
mov edx, 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180058e40
mov rsi, rcx
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x180058e2b
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x180058e11
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x180058e40
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
call fcn.18004e630
test r14d, r14d
je 0x180058e51
mov ecx, dword [rsp + 0x488]
jmp 0x180058d90
test rbp, rbp
je 0x180058e68
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, rdi
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180060390
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov ecx, 0xb0
lea rdx, [0x180093d00]
call fcn.18008ea94
mov rbx, rax
test rax, rax
je 0x1800605da
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 8]
mov byte [rbx], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov qword [0x180277c60], rbx
movups xmmword [rbx + 0xa0], xmm0
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], 0x20
lea rbx, str.1209356807072518164
mov qword [rsp + 0x20], rax
mov r8, rbx
mov r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.18005ed10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x180257560]
mov dword [0x180277c6c], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180060462
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
test rdi, rdi
je 0x180060482
movups xmm0, xmmword [rdi]
movups xmmword [0x180277b30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x180277b40], xmm1
movups xmm0, xmmword [rdi + 0x20]
jmp 0x1800604a2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x180277b30], xmm0
movups xmmword [0x180277b40], xmm0
movups xmmword [0x180277b50], xmm0
lea rcx, [0x180257560]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x180277d70], xmm0
movups xmmword [0x180277d80], xmm0
movups xmmword [0x180277d90], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x18027bda8], 0
jne 0x1800605e3
mov r8d, 1
lea rax, [0x180254218]
mov edx, r8d
mov qword [0x18027bfc0], rax
sub rdx, rbx
lea rcx, [0x18027bfe0]
lea rax, [rdx + rbx]
cmp rax, 0x40
jae 0x18006052c
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x180060512
mov rdi, qword [0x180277c60]
lea rax, [0x18027bfc0]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x18027bda8], rax
lea rax, [0x180060a60]
mov qword [0x18027bfd0], rax
lea rax, [0x180060a70]
mov qword [0x18027bfd8], rax
xchg byte [rdi], r8b
call fcn.18008e55c
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x180060e70]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800605ca
cmp dword [rdi + 0xa8], ebx
je 0x1800605ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x180277c60], rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x180060f90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180061002
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180060fc0
mov ecx, dword [r10]
jmp 0x180061103
cmp ecx, 0x270
jb 0x180061103
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180061030
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180061080
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x180061800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x18027bda8]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x18006190f
mov rax, qword [rdi]
test rax, rax
jne 0x180061869
lea r8d, [rax + 0x4f]
lea rdx, str.D:PANEL_RAFA_SAFE_NEW_DLLRAFA_PANEL_SAFERAFA_PANEL_FULLexamplesexample_win32_directx11DiscordSourceFilesconnection_win.cpp
lea rcx, str.self
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x1800618bf
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800618bf
test rsi, rsi
jne 0x180061892
lea r8d, [rsi + 0x56]
lea rdx, str.D:PANEL_RAFA_SAFE_NEW_DLLRAFA_PANEL_SAFERAFA_PANEL_FULLexamplesexample_win32_directx11DiscordSourceFilesconnection_win.cpp
lea rcx, [0x1800a29b8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x1800618bf
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1800618bf
cmp dword [rsp + 0x40], ebx
je 0x18006190f
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1800618de
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x1800618de
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret