joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401cf4e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rdi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r11 - 0x48], xmm0
lea r12, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
movabs r13, 0xff00ff00ff00ff00
mov qword [r11 - 0x40], r13
mov qword [r11 - 0x38], r12
mov r14, qword [r12]
xor r14, r13
mov qword [r11 - 0x48], r14
mov qword [r12], rax
xor edx, edx
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1401cf586
lea rdx, str.Failed_to_create_snapshot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14021b940
lea rdx, [0x14021bb10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor sil, sil
jmp 0x1401cf66b
mov dword [rsp + 0x20], 0x238
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1401cf5b1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor sil, sil
jmp 0x1401cf66b
xor sil, sil
mov r15d, 1
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401cf5d0
mov rdx, qword [rdi + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401cf5eb
mov r8, qword [rdi]
cmp rdx, rax
jne 0x1401cf64b
lea rax, [rsp + 0x4c]
test rdx, rdx
je 0x1401cf615
lea rcx, [rsp + 0x4c]
sub r8, rcx
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x1401cf64b
add rax, 2
sub rdx, r15
jne 0x1401cf602
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1401cf64b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movzx esi, sil
test eax, eax
cmovne esi, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1401cf5c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor r14, r13
mov qword [r12], r14
movzx eax, sil
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140240c60
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401e2240
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x20
xor r12d, r12d
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x1401e238f
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], r14
mov ecx, dword [rax + rcx + 0x50]
mov qword [r8], rcx
mov qword [rsp + 0x58], r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
lea r14, [rsi + 0x18]
movsxd rax, dword [rsi + 0x3c]
add r14, rax
movzx r15d, word [rax + rsi + 0x14]
movzx ebp, word [rax + rsi + 6]
add r15, 0xc
mov r8d, dword [r14 + 0x38]
test rbx, rbx
je 0x1401e236f
mov rax, qword [rdi]
test rax, rax
je 0x1401e22bb
cmp rax, r8
jb 0x1401e236f
test r8, r8
je 0x1401e22ca
xor edx, edx
mov rcx, rbx
call fcn.140241de8
mov r8d, dword [r14 + 0x3c]
test r8d, r8d
je 0x1401e22de
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp r12w, bp
jae 0x1401e232b
lea r9, [r15 + r14]
mov r10, rbp
nop dword [rax + rax]
mov eax, dword [r9]
mov r8d, dword [r9 + 8]
add rax, rbx
mov edx, dword [r9 + 4]
add r8, rsi
test rdx, rdx
je 0x1401e2321
sub r8, rax
nop dword [rax]
movzx ecx, byte [r8 + rax]
mov byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1401e2310
add r9, 0x28
sub r10, 1
jne 0x1401e22f0
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rbx + 0x18]
add rcx, rax
movzx edx, word [rax + rbx + 0x14]
movzx r8d, word [rax + rbx + 6]
add rdx, 0x14
mov eax, dword [rcx + 0x20]
mov dword [rcx + 0x24], eax
cmp r12w, r8w
jae 0x1401e236f
add rcx, rdx
mov edx, r8d
nop word [rax + rax]
mov eax, dword [rcx - 8]
mov dword [rcx], eax
lea rcx, [rcx + 0x28]
sub rdx, 1
jne 0x1401e2360
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov rax, r12
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140215060
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140215088
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1402150ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1402150b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140215109
test ecx, ecx
jle 0x1402150e9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140215109
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140215109
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140215130
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140215152
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140215168
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140215184
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140215186
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1402151c2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14021525e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1402151fd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14021523e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14021525e
cmp rbx, rax
ja 0x140215210
test rbx, rbx
je 0x14021525e
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140215660
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14021568d
xor eax, eax
jmp 0x1402157f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1402156c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1402156c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1402157f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1402157ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14021570a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140215735
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1402157f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x1402157a4
sub eax, 1
je 0x1402157a4
cmp eax, 2
jne 0x1402157ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1402157f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1402157d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1402157ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1402157f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140240c60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140216150
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140216181
xor eax, eax
jmp 0x1402162d0
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1402161be
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1402161be
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1402162d0
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1402162c5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140216205
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14021622f
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x1402162c5
movzx edi, si
jmp 0x1402162c5
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140216285
sub eax, 1
je 0x140216285
cmp eax, 2
jne 0x1402162c5
movzx ecx, word [rsp + 0x50]
jmp 0x140216211
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1402162b3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x1402162c5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne di, si
mov rbp, qword [rsp + 0xb0]
movzx eax, di
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140240c60
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x140216b80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x140216ba0
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x140217820
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140217854
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140217840
ret
Function at 0x140218ec0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140218f93
cmp byte [rcx + 0x71], 0
je 0x140218f93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140218f8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140218f54
sub eax, 1
je 0x140218f58
cmp eax, 2
jne 0x140218f8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140240c60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140218f86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140218f8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140218f3c
xor al, al
jmp 0x140218f3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140240c60
add rsp, 0x60
pop rbx
ret

Function at 0x1402191a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140219275
cmp byte [rcx + 0x72], 0
je 0x140219275
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140219271
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140219236
sub eax, 1
je 0x14021923a
cmp eax, 2
jne 0x140219271
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140240c60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140219268
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140219271
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14021921e
xor al, al
jmp 0x14021921e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140240c60
add rsp, 0x60
pop rbx
ret
Function at 0x140226f00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140226f61
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140226f20
mov ecx, dword [r10]
jmp 0x14022704a
cmp ecx, 0x4e0
jb 0x14022704a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140226f80
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140226fd0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1402313b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14023147c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14023147c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140231495
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14023146c
cmp byte [rax], 0x5c
jne 0x140231466
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140231466
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140231452
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140231463
test r8b, 0x10
jne 0x140231466
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140231466
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1402270a0
test edi, edi
jne 0x1402313d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140227090
int3
Function at 0x140239570
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x10], 0
mov rdi, rcx
mov ebx, 0x1e00000
jne 0x140239607
mov rax, qword [rcx + 0x20]
cmp rax, qword [rcx + 0x28]
je 0x1402395a6
mov qword [rcx + 0x28], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
je 0x1402395cc
nop
inc ebx
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne 0x1402395c0
xor ecx, ecx
imul edx, ebx, 0x21
mov r8d, 0x2000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x10], rax
mov rdx, rax
test rax, rax
je 0x1402395fd
mov ecx, ebx
mov qword [rdi + 8], rcx
mov dword [rdi], 0x21
mov qword [rdi + 0x18], rax
xor eax, eax
test rdx, rdx
setne al
jmp 0x140239609
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140240c60
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1402397d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx], 0xffffffffffffffff
mov rsi, r9
mov edi, r8d
mov r14, rdx
mov rbx, rcx
je 0x1402398ae
mov r8d, 8
lea rdx, str.NTFS
add rcx, 0xb
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
test rax, rax
je 0x1402398ae
cmp rsi, 0xffffffffffffffff
je 0x14023986c
cmp qword [rbx], 0xffffffffffffffff
je 0x14023989a
mov r8d, 8
lea rdx, str.NTFS
lea rcx, [rbx + 0xb]
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
test rax, rax
je 0x14023989a
mov rcx, qword [rbx]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14023989a
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x208], rax
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140239894
add qword [rbx + 0x208], rdi
mov eax, dword [rsp + 0x30]
jmp 0x1402398b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140272030]
call fcn.1401ba450
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140240c60
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14023c1c0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rsi, rcx
add rcx, 0x10
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.140219d60
lea rcx, [rsi + 0x30]
xor r8d, r8d
lea rdx, [0x14026cc23]
call fcn.140219d60
lea rcx, [rsi + 0x50]
xor r8d, r8d
lea rdx, [0x14026cc23]
call fcn.140219d60
lea rcx, [rsi + 0x70]
xor r8d, r8d
lea rdx, [0x14026cc23]
call fcn.140219d60
lea rcx, [rsi + 0x90]
xor r8d, r8d
lea rdx, [0x14026cc23]
call fcn.140219d60
lea rcx, [rsi + 0xb0]
xor r8d, r8d
lea rdx, [0x14026cc23]
call fcn.140219d60
lea rcx, [rsi + 0xd0]
mov r8d, 3
lea rdx, [0x1402720c0]
call fcn.140219d60
lea rcx, [rsi + 0xf0]
xor r8d, r8d
lea rdx, [0x14026cc23]
call fcn.140219d60
lea rcx, [rsi + 0x110]
mov r8d, 0xf
lea rdx, str.www.example.com
call fcn.140219d60
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x14026cc23]
lea rcx, [rsp + 0x40]
call fcn.1401d50a0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
xor r8d, r8d
lea rdx, [0x14026cc23]
lea rcx, [rsp + 0x60]
call fcn.1401d50a0
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1401bc4b0
lea rdi, [rsi + 0x130]
lea rax, [rsp + 0x20]
cmp rdi, rax
je 0x14023c364
mov rbx, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, rdi
mov rcx, rdi
call fcn.14021d0c0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 8], 0
mov r8, qword [rdi]
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov qword [rsp + 0x20], r8
mov rcx, qword [rdi + 8]
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov qword [rsp + 0x28], rcx
jmp 0x14023c369
mov r8, qword [rsp + 0x20]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14021d0c0
mov edx, 0x60
mov rcx, qword [rsp + 0x20]
call fcn.140240c80
nop
lea r9, [fcn.1401bc640]
mov edx, 0x40
lea r8d, [rdx - 0x3f]
lea rcx, [rsp + 0x40]
call fcn.1402411dc
mov qword [rsi + 0x140], 0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret