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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x18025cbc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18001b26d
xor eax, eax
jmp 0x18001b3d6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18001b2ad
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18001b2ad
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x18001b3ce
cmp qword [rdi + 0x80], 0
je 0x18001b3c9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x18001b2e7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x18001b312
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18001b3ce
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18001b381
sub eax, 1
je 0x18001b381
cmp eax, 2
jne 0x18001b3c9
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18001b3ce
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18001b3af
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18001b3c9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18001b3ce
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180151320
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18001c780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x18001c7b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x18001c7cf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x18001c819
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x18001c891
mov rcx, rbp
call fcn.18001aad0
cmp rbx, 0xfff
jbe 0x18001c871
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x18001c8b2
cmp rbx, rax
ja 0x18001c840
test rdi, rdi
je 0x18001c891
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x18001c894
Function at 0x18001c8c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x18001c8e8
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x18001c95c
test rax, rax
jle 0x18001c93c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x18001c95c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18001c95c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x18006aaf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov esi, dword [rcx + 0x44]
mov rbx, rcx
mov qword [rsp + 0x40], rdi
xor r12d, r12d
mov qword [rsp + 0x48], r15
nop word [rax + rax]
mov edx, dword [rbx + 0x94]
mov ebp, dword [rbx + 0x58]
sub ebp, dword [rbx + 0x9c]
mov ecx, dword [rbx + 0x44]
sub ebp, edx
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x18006abd0
mov rcx, qword [rbx + 0x50]
mov r8, rsi
lea rdx, [rcx + rsi]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], esi
sub dword [rbx + 0x94], esi
sub dword [rbx + 0x84], esi
lea rdx, [rax + r8*2]
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x18006ab80
mov rax, qword [rbx + 0x60]
mov r8d, esi
lea rdx, [rax + rsi*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x18006abb0
add ebp, esi
mov r14, qword [rbx]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x18006acbd
mov r10, qword [rbx + 0x50]
mov r15d, dword [rbx + 0x9c]
mov r9d, dword [rbx + 0x94]
add r15, r10
add r15, r9
cmp ecx, ebp
cmovbe ebp, ecx
test ebp, ebp
jne 0x18006ac05
mov ebp, r12d
jmp 0x18006ac6c
mov rax, qword [r14 + 0x28]
sub ecx, ebp
mov dword [r14 + 8], ecx
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x18006ac28
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.1800954b0
jmp 0x18006ac46
cmp ecx, 2
jne 0x18006ac4a
mov rdx, qword [r14]
test rdx, rdx
jne 0x18006ac3a
mov eax, r12d
jmp 0x18006ac46
mov ecx, dword [r14 + 0x4c]
mov r8d, ebp
call fcn.180067790
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, ebp
mov edi, ebp
call sub.VCRUNTIME140.dll_memcpy
add qword [r14], rdi
add dword [r14 + 0xc], ebp
mov r9d, dword [rbx + 0x94]
mov r10, qword [rbx + 0x50]
mov r8d, dword [rbx + 0x9c]
add r8d, ebp
mov dword [rbx + 0x9c], r8d
cmp r8d, 3
jb 0x18006aca7
mov ecx, dword [rbx + 0x80]
mov eax, r9d
movzx edx, byte [rax + r10]
lea eax, [r9 + 1]
mov dword [rbx + 0x70], edx
movzx eax, byte [rax + r10]
shl edx, cl
xor edx, eax
and edx, dword [rbx + 0x7c]
mov dword [rbx + 0x70], edx
cmp r8d, 0x106
jae 0x18006acbd
mov rax, qword [rbx]
cmp dword [rax + 8], r12d
jne 0x18006ab20
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
Function at 0x18007f8c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
movsxd r10, edx
test r8d, r8d
je 0x18007f8df
cmp r10d, 0xa
jne 0x18007f8df
xor edx, edx
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
movzx edx, byte [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov ebx, r9d
cmp dl, 0x2d
jne 0x18007f8fb
movzx edx, byte [rcx + 1]
mov ebx, 1
lea r8, [rcx + 1]
cmovne r8, rcx
cmp dl, 0x30
jne 0x18007f919
nop dword [rax + rax]
inc r8
cmp byte [r8], 0x30
je 0x18007f910
cmp r10d, 0xa
jne 0x18007f92b
movabs r11, 0x1999999999999998
jmp 0x18007f93c
lea eax, [r10 - 1]
xor edx, edx
cdqe
not rax
div r10
mov r11, rax
movzx ecx, byte [r8]
mov edx, r9d
test cl, cl
je 0x18007f9a4
nop word [rax + rax]
movzx ecx, cl
lea eax, [rcx - 0x30]
cmp eax, 9
ja 0x18007f960
lea eax, [rcx - 0x30]
jmp 0x18007f97d
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x18007f96d
lea eax, [rcx - 0x37]
jmp 0x18007f97d
lea eax, [rcx - 0x61]
cmp eax, 0x19
lea eax, [rcx - 0x57]
jbe 0x18007f97d
mov eax, 0x24
cmp eax, r10d
jge 0x18007f9a4
cmp r9, r11
ja 0x18007f996
mov rcx, r10
imul rcx, r9
movsxd r9, eax
add r9, rcx
jmp 0x18007f998
inc edx
movzx ecx, byte [r8 + 1]
inc r8
test cl, cl
jne 0x18007f950
movaps xmmword [rsp + 0x20], xmm6
xorps xmm6, xmm6
test r9, r9
js 0x18007f9b8
cvtsi2sd xmm6, r9
jmp 0x18007f9ce
mov rax, r9
and r9d, 1
shr rax, 1
or rax, r9
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
test edx, edx
je 0x18007f9ec
movd xmm0, r10d
movd xmm1, edx
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mulsd xmm6, xmm0
test ebx, ebx
mov rbx, qword [rsp + 0x30]
je 0x18007f9fc
xorps xmm6, xmmword [0x18015d5e0]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1800849b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
cmp qword [rcx + 8], 0
movzx edi, r9b
mov esi, r8d
mov r13, rdx
mov rbx, rcx
jle 0x180084a0d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rcx, qword [rbx + 8]
mov r9d, dword [rsp + 0x68]
mov rax, rcx
cqo
idiv r9
sub rcx, rdx
mov qword [rbx + 8], rcx
cmp qword [rbx + 0x10], rcx
jge 0x180084a0d
mov qword [rbx + 0x10], rcx
cmp esi, 1
mov ebp, 4
mov eax, 2
mov r15d, 0xf001f
cmovne r15d, ebp
mov r12d, 0xc0000000
cmovne ebp, eax
xor r14d, r14d
cmp esi, 1
mov eax, 0x80000000
sete r14b
add r14d, 3
cmp esi, 1
cmovne r12d, eax
test dil, dil
je 0x180084a50
xor edi, edi
jmp 0x180084a60
cmp esi, 1
mov edi, 5
mov eax, 7
cmove edi, eax
mov rdx, r13
lea rcx, [rsp + 0xa0]
call fcn.180066980
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov r8d, edi
mov dword [rsp + 0x28], 0x8000080
mov edx, r12d
mov rcx, qword [rax]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x180084b05
mov ecx, dword [rbx + 0x10]
mov r8d, ebp
mov r9, qword [rbx + 0x10]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ecx
mov rcx, rax
sar r9, 0x20
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x180084b05
mov r9, qword [rbx + 8]
mov edx, r15d
mov rcx, qword [rbx + 0x10]
mov r8, r9
sub rcx, r9
sar r8, 0x20
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx], rax
test rax, rax
jne 0x180084afc
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180088560
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor eax, eax
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800885d2
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800885ce
lea rcx, [rsp + 0x58]
call fcn.18006d6a0
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
lea rax, [0x18024c168]
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x1800885ce
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800885ce
call fcn.180150e98
mov eax, dword [rsp + 0x40]
add qword [rbx + 0x18], rax
add rsp, 0x30
pop rbx
ret
Function at 0x18008f5f0
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea r8, [0x180090e80]
mov esi, edx
xor edi, edi
mov eax, edi
mov r9, rbx
xchg byte [rcx + 0x1ed], al
mov edx, dword [rbx + 0x1e0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
xchg qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x18008f6b9
mov eax, dword [rsp + 0x40]
mov r8d, esi
xchg qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x10]
nop
movzx ecx, byte [rbx + 0x58]
call fcn.18008daf0
test al, al
je 0x18008f68c
mov rcx, qword [rbx + 0x10]
nop
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, [rbx + 0x90]
call fcn.18008ecb0
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x18008f6a3
mov rcx, qword [rbx + 0x10]
xor edx, edx
nop
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
xchg qword [rbx + 0x18], rax
xchg qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18008f740
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rbx, rcx
lea rdi, [rcx + 0x60]
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x18008f82a
mov eax, 1
xchg byte [rbx + 0x1ed], al
lea rcx, [rbx + 0x1f0]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.180046a20
lea rcx, [rbx + 0x138]
call fcn.18008ecb0
test esi, esi
je 0x18008f7b2
mov edx, esi
mov rcx, rbx
call fcn.180094470
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x18008f82a
lea rdx, str.___killing_thread_by_force___
lea rcx, [rsp + 0x30]
call fcn.180047530
nop
lea rcx, [rsp + 0x30]
call fcn.1800953c0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
lea rax, [0x18024c168]
cmp rcx, rax
je 0x18008f803
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18008f803
call fcn.180150e98
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x18008f81a
mov rcx, qword [rbx + 0x10]
nop
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
mov eax, ecx
xchg qword [rbx + 0x10], rax
xchg qword [rbx + 0x18], rcx
xor bl, bl
jmp 0x18008f82c
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800953c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x180263340]
test rcx, rcx
je 0x1800953ea
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 8]
mov rax, qword [rdx]
mov qword [rsp + 0x38], rax
add rax, 0xfffffffffffffff0
lea rdi, [0x18024c168]
cmp rax, rdi
je 0x180095405
lock inc dword [rax]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea r8, [0x18016ffb5]
lea rdx, [0x18016ffb4]
lea rcx, [rsp + 0x38]
call fcn.180063da0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
cmp rcx, rdi
je 0x180095442
lock inc dword [rcx]
mov rax, qword [rsp + 0x38]
lea rcx, [rax - 0x10]
mov ebx, 0xffffffff
cmp rcx, rdi
je 0x180095462
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x180095462
call fcn.180150e98
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180066980
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x180095499
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x180095499
call fcn.180150e98
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ada00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsd xmm0, qword [rsp + 0x68]
mov rsi, rdx
movsd qword [rcx + 8], xmm0
mov r14, r9
movzx edx, byte [rdx]
mov r10d, r8d
mov rdi, rcx
cmp dl, 0x80
jae 0x1800ada5c
movzx r15d, byte [rsp + 0x60]
lea eax, [r8 - 1]
cmovae r10d, eax
movzx ecx, r15b
sbb eax, eax
mov dword [r9], eax
cmp r15b, 0x80
jae 0x1800ada79
xor ebx, ebx
mov qword [rdi], rbx
mov dword [rdi + 0x10], ebx
jmp 0x1800adc03
inc rsi
movzx r15d, dl
cmp dl, 0x80
movzx ecx, dl
sbb eax, eax
mov dword [r9], eax
cmp dl, 0x80
lea eax, [r8 - 1]
cmovae r10d, eax
cmp cl, 0xf0
jne 0x1800adb11
movzx eax, byte [rsp + 0x70]
xor ebx, ebx
movsxd r8, r10d
xor al, 1
add r8, rsi
mov rcx, rsi
cmp rsi, r8
jae 0x1800adac8
nop dword [rax]
movzx edx, byte [rcx]
cmp dl, 0x80
jb 0x1800adab3
cmp dl, 0xf7
je 0x1800adac5
test al, al
jne 0x1800adac8
jmp 0x1800adab9
test al, al
jne 0x1800adabb
mov al, 1
inc ebx
inc rcx
cmp rcx, r8
jb 0x1800adaa0
jmp 0x1800adac8
inc rcx
movsxd rax, ebx
add rsi, rax
sub ecx, esi
inc ecx
mov dword [rdi + 0x10], ecx
cmp ecx, 8
jle 0x1800adaeb
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov qword [rdi], rax
jmp 0x1800adaee
mov rcx, rdi
mov byte [rcx], r15b
mov rdx, rsi
mov eax, dword [rdi + 0x10]
dec eax
movsxd r8, eax
inc rcx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rdi + 0x10]
add eax, ebx
add dword [r14], eax
jmp 0x1800adc03
cmp cl, 0xff
jne 0x1800adbb6
xor ebx, ebx
mov qword [rsp + 0x40], rbp
lea eax, [r10 - 1]
mov ecx, 4
cmp eax, ecx
mov r9d, ebx
mov r11d, ebx
cmovg eax, ecx
movsxd rbp, eax
test eax, eax
jle 0x1800adb61
mov r8d, ebx
nop
movzx edx, byte [rsi + r8 + 1]
shl r9d, 7
mov ecx, edx
and ecx, 0x7f
add r9d, ecx
inc r11d
test dl, dl
jns 0x1800adb67
inc r8
cmp r8, rbp
jl 0x1800adb40
mov r9d, ebx
mov r11d, ebx
mov rbp, qword [rsp + 0x40]
lea eax, [r9 + 2]
add eax, r11d
inc r10d
cmp eax, r10d
cmovl r10d, eax
mov dword [rdi + 0x10], r10d
cmp r10d, 8
jle 0x1800adb95
movsxd rcx, r10d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi], rax
jmp 0x1800adb98
mov rax, rdi
mov byte [rax], r15b
lea rcx, [rax + 1]
movsxd r8, dword [rdi + 0x10]
mov rdx, rsi
dec r8
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rdi + 0x10]
add dword [r14], eax
jmp 0x1800adc03
mov rax, r15
lea rcx, [0x18017ce80]
and eax, 0x7f
movsx ecx, byte [rax + rcx]
mov dword [rdi + 0x10], ecx
mov byte [rdi], r15b
cmp ecx, 1
jle 0x1800adbf7
test r10d, r10d
jle 0x1800adbdc
movzx eax, byte [rsi]
jmp 0x1800adbde
xor al, al
mov byte [rdi + 1], al
cmp ecx, 2
jle 0x1800adbf7
cmp r10d, 1
jle 0x1800adbf2
movzx eax, byte [rsi + 1]
jmp 0x1800adbf4
xor al, al
mov byte [rdi + 2], al
lea eax, [r10 + 1]
cmp eax, ecx
cmovl ecx, eax
add dword [r9], ecx
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1800c3ed0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x14]
mov r14, rdx
mov rbx, rcx
test al, 7
jne 0x1800c402b
test eax, eax
je 0x1800c3f2d
mov eax, dword [rcx + 0xc]
mov esi, 0x20
cmp dword [rcx + 0x10], eax
jne 0x1800c3f16
mov edx, esi
call fcn.1800dae70
test eax, eax
je 0x1800c402b
sub esi, dword [rbx + 0x14]
mov edx, dword [rbx + 8]
movzx ecx, sil
mov rax, qword [rbx]
shl edx, cl
mov ecx, dword [rbx + 0x10]
bswap edx
mov dword [rax + rcx*4], edx
mov eax, dword [rbx + 0x14]
mov ecx, dword [rbx + 0x10]
mov r9, qword [rbx]
lea rbx, [0x180201420]
shr eax, 3
lea r10d, [rax + rcx*4]
xor eax, eax
cmp r10d, 8
jb 0x1800c3ff0
mov r11d, r10d
shr r11, 3
nop word [rax + rax]
movzx ecx, byte [r9]
add r10d, 0xfffffff8
movzx r8d, byte [r9 + 1]
shl rcx, 8
or r8, rcx
movzx ecx, ax
movzx eax, byte [r9 + 5]
xor r8, rcx
movzx ecx, byte [r9 + 6]
movzx edx, word [rbx + rcx*2 + 0x200]
xor dx, word [rbx + rax*2 + 0x400]
movzx eax, byte [r9 + 4]
xor dx, word [rbx + rax*2 + 0x600]
movzx eax, byte [r9 + 3]
xor dx, word [rbx + rax*2 + 0x800]
movzx eax, byte [r9 + 7]
xor dx, word [rbx + rax*2]
movzx eax, byte [r9 + 2]
add r9, 8
xor dx, word [rbx + rax*2 + 0xa00]
mov rax, r8
shr rax, 8
xor dx, word [rbx + rax*2 + 0xe00]
movzx eax, r8b
xor dx, word [rbx + rax*2 + 0xc00]
movzx eax, dx
sub r11, 1
jne 0x1800c3f60
test r10d, r10d
je 0x1800c4020
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
movzx edx, ax
shr rdx, 8
xor rdx, rcx
shl ax, 8
xor ax, word [rbx + rdx*2]
add r10d, 0xffffffff
jne 0x1800c4000
mov word [r14], ax
mov eax, 1
jmp 0x1800c402d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret