joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800156c0
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 0x1800156f1
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 0x18001570f
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 0x180015759
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 0x1800157d1
mov rcx, rbp
call fcn.180014c50
cmp rbx, 0xfff
jbe 0x1800157b1
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 0x1800157f2
cmp rbx, rax
ja 0x180015780
test rdi, rdi
je 0x1800157d1
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 0x1800157d4
Function at 0x180015800
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 0x180015828
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 0x18001589c
test rax, rax
jle 0x18001587c
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 0x18001589c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18001589c
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 0x18002d5c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movzx esi, r8b
mov r14, rdx
xor r15d, r15d
xor r8d, r8d
xor edx, edx
xor r9d, r9d
mov ebx, r15d
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
movsxd rdi, eax
test eax, eax
je 0x18002d66d
mov rcx, rdi
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x18002d66d
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
inc eax
cmp edi, eax
jne 0x18002d66d
mov eax, r15d
lea ebp, [r15 + 0x5c]
mov edi, r15d
test rax, rax
je 0x18002d63d
mov word [rax], r15w
inc edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18002d696
test sil, sil
je 0x18002d65e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18002d696
mov edx, ebp
mov rcx, rbx
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
jne 0x18002d637
xor sil, sil
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x40]
movzx eax, sil
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov sil, 1
nop dword [rax]
test edi, edi
je 0x18002d6d7
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x18002d6b0
xor edx, edx
mov word [rbx + rax*2], bp
mov rcx, rbx
dec edi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne sil
test eax, eax
jne 0x18002d6a0
test sil, sil
je 0x18002d670
mov rdx, rbx
mov rcx, r14
call fcn.18002d910
jmp 0x18002d670
Function at 0x18002d6f0
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x2e8
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor ebx, ebx
mov qword [rsp + 0x28], r8
test edx, edx
mov r13d, ebx
mov rsi, 0xffffffffffffffff
mov rdi, rcx
cmovns r13d, edx
mov rax, rsi
movsxd rcx, r13d
inc rax
cmp word [rdi + rax*2], bx
jne 0x18002d733
lea r15, [rcx + 1]
add r15, rax
lea rcx, [r15 + r15]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
mov r12, rax
setne byte [rsp + 0x20]
test rax, rax
je 0x18002d8d3
mov qword [rsp + 0x338], rbp
mov rbp, rsi
mov qword [rsp + 0x2e0], r14
inc rbp
cmp word [rdi + rbp*2], bx
jne 0x18002d774
mov r8, rdi
mov rdx, r15
mov rcx, r12
mov r14d, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movsxd r15, r13d
test r13d, r13d
jle 0x18002d7ac
movsxd rax, ebp
mov ecx, 0x3f
lea rdi, [r12 + rax*2]
movzx eax, cx
mov rcx, r15
rep stosw word [rdi], ax
mov eax, r13d
lea rdx, [rsp + 0x30]
add eax, ebp
movsxd rcx, eax
mov word [r12 + rcx*2], bx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rsi
je 0x18002d825
nop
lea rcx, [rsp + 0x5c]
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x18002d7e0
cmp r13d, eax
jg 0x18002d80a
movsxd rcx, eax
lea rax, [rsp + 0x5c]
sub rcx, r15
lea rcx, [rax + rcx*2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp r14d, eax
cmovl r14d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18002d7d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9d, 0xa
lea ecx, [r14 + 1]
lea rdx, [rsp + 0x280]
lea r8d, [r9 + 0x17]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
mov r14, qword [rsp + 0x2e0]
test r13d, r13d
jle 0x18002d863
movsxd rax, ebp
mov ecx, 0x30
lea rdi, [r12 + rax*2]
movzx eax, cx
mov rcx, r15
rep stosw word [rdi], ax
movsxd rdi, r13d
test r13d, r13d
jle 0x18002d8be
lea rax, [rsp + 0x280]
inc rsi
cmp word [rax + rsi*2], bx
jne 0x18002d873
movsxd r8, esi
mov rcx, rdi
sub rcx, r8
movsxd rax, ebp
add rcx, rax
lea rax, [rsp + 0x280]
lea rdx, [rsp + r8*2 + 0x27e]
lea r9, [rcx + rcx]
sub r9, rax
add r9, r12
cmp rbx, r8
jge 0x18002d8be
movzx eax, word [rdx]
inc rbx
mov word [r9 + rdx], ax
sub rdx, 2
cmp rbx, rdi
jl 0x18002d8a5
mov rcx, qword [rsp + 0x28]
mov rdx, r12
call fcn.18002d910
mov rbp, qword [rsp + 0x338]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.18004a540
add rsp, 0x2e8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18002efa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rbp - 0x18], rax
movzx eax, byte [rbp + 0x60]
mov rbx, rcx
movzx ecx, byte [rbp + 0x58]
add al, 2
mov byte [rbp - 0x26], al
movzx r15d, cl
movzx esi, cl
mov byte [rbp - 0x2c], cl
movzx ecx, byte [rbp + 0x70]
and r15b, 7
movzx r14d, r8w
and cl, 0xf
movzx edi, r9w
lea r8, [0x180050b28]
movzx eax, r14w
shr sil, 3
shr ax, 8
mov byte [rbp - 0x2f], al
movzx eax, di
shr ax, 8
mov byte [rbp - 0x2d], al
movzx eax, byte [rbp + 0x78]
shl al, 5
or cl, al
mov word [rbp - 0x28], 0
mov byte [rbp - 0x2b], cl
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x25], 0
mov byte [rbp - 0x1d], 0
mov byte [rbp - 0x30], r14b
mov byte [rbp - 0x2e], dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r9, qword [rbp - 0x38]
test r9, r9
je 0x18002f0fd
mov edx, 1
lea rcx, [rbp - 0x28]
lea r8d, [rdx + 0xb]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
mov edx, 1
lea r8d, [rdx + 5]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [rsi + 1]
test r15b, r15b
movzx ecx, al
mov r8d, r14d
movzx eax, sil
cmove ecx, eax
movzx r9d, cl
movsxd rcx, dword [rbp + 0x68]
mov eax, r9d
imul eax, r14d
cmp eax, ecx
jne 0x18002f0c5
mov eax, edi
mov edx, 1
imul eax, r9d
mov rcx, rbx
mov r9, qword [rbp - 0x38]
imul eax, r8d
movsxd r8, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov al, 1
jmp 0x18002f0ff
xor edx, edx
cmp dx, di
jae 0x18002f0ef
mov esi, eax
mov r14, rcx
mov r9, qword [rbp - 0x38]
mov r8, rsi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rbx, r14
sub rdi, 1
jne 0x18002f0d1
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov al, 1
jmp 0x18002f0ff
xor al, al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.18004a540
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18003cb90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov esi, r9d
mov edi, r8d
mov r14, rdx
mov rbp, rcx
cmp r9d, r8d
jl 0x18003cc13
lea ebx, [r8 + r9]
xor r8d, r8d
sar ebx, 1
lea edx, [rdx + rbx*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18003cc13
mov r9, rbp
lea edx, [rax + 4]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x18003cc13
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x60], eax
jne 0x18003cbf2
mov eax, ebx
jmp 0x18003cc18
jle 0x18003cbf9
lea esi, [rbx - 1]
jmp 0x18003cbfc
lea edi, [rbx + 1]
mov r9d, esi
mov dword [rsp + 0x20], eax
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call fcn.18003cb90
jmp 0x18003cc18
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180042a90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, rdx
mov r14, rcx
xor ebp, ebp
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbp
lea edx, [rbp + 2]
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rbx, [r14 + 0x50]
mov qword [rsp + 0x80], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
lea ecx, [rbp + 0x10]
call fcn.18004a46c
mov qword [rax + 8], rbp
mov qword [rbx], rax
mov qword [rax], rbx
lea rcx, [r14 + 0x78]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
mov byte [r14 + 0xc0], bpl
lea rbx, [r14 + 0xc8]
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
test rdi, rdi
je 0x180042b3f
lea r8, [rsp + 0x80]
mov rdx, rdi
mov rcx, rbx
call fcn.180042510
mov rsi, rbp
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 4
test rax, rax
je 0x180042bed
mov rdi, rbp
lea r15, [0x180044ef0]
mov ecx, 0x10
call fcn.18004a46c
test rax, rax
je 0x180042b78
mov qword [rax], r14
mov qword [rax + 8], r15
jmp 0x180042b7b
mov rax, rbp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1800424e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180042c08
mov rax, qword [rbx]
cmp dword [rdi + rax + 8], 0
jne 0x180042c01
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + rax], xmm1
cmp dword [rsp + 0x38], 0
jne 0x180042c01
inc rsi
add rdi, 0x10
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 4
cmp rsi, rax
jb 0x180042b60
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x180046af0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 1
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rdi
mov dword [rcx + 0x30], edi
add rcx, 0x38
mov dword [rcx], edi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rdi
lea edx, [rdi + 2]
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rcx, [rbx + 0x88]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
xorps xmm0, xmm0
movups xmmword [rbx + 0xd0], xmm0
mov byte [rbx + 0xe0], dil
mov qword [rbx + 0xe8], rdi
mov qword [rbx + 0xf0], rdi
lea ecx, [rdi + 0x18]
call fcn.18004a46c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0xe8], rax
mov rax, qword [rbx + 0x20]
lock inc dword [rax + 8]
lea ecx, [rdi + 0x10]
call fcn.18004a46c
test rax, rax
je 0x180046bb3
mov qword [rax], rbx
lea rcx, [0x180048900]
mov qword [rax + 8], rcx
jmp 0x180046bb6
mov rax, rdi
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800424e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180046c11
cmp dword [rbx + 0xd8], 0
jne 0x180046c0a
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0xd0], xmm1
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140002470
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.140026ae0
mov r8d, 0x104
lea rdx, [rsp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r14, [0x140032f68]
mov rbp, 0xffffffffffffffff
lea r12d, [rax + 1]
nop
inc rbp
cmp byte [r14 + rbp], 0
jne 0x1400024e0
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor eax, eax
nop dword [rax]
nop dword [rax + rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x140002500
xor r9d, r9d
lea r10, [rsp + 0x40]
lea r13, str.RedTeam
nop
movzx r11d, byte [r10]
mov eax, 0x24924925
mul r9d
mov eax, r9d
mov ecx, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
sub ecx, eax
movsxd rax, ecx
movsx ecx, byte [rax + r13]
add r8d, ecx
add r8d, r11d
and r8d, 0x800000ff
jge 0x140002564
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rcx, r8d
inc r9d
movzx eax, byte [rsp + rcx + 0x40]
mov byte [r10], al
inc r10
mov byte [rsp + rcx + 0x40], r11b
cmp r9d, 0x100
jl 0x140002520
movsxd rbx, ebp
xor edi, edi
xor esi, esi
lea rcx, [rbx + 1]
call fcn.14000b880
lea r8, [rbx + 1]
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.140026ae0
movsxd r10, ebp
test ebp, ebp
je 0x140002614
mov r9, r15
sub r14, r15
inc edi
and edi, 0x800000ff
jge 0x1400025c5
dec edi
or edi, 0xffffff00
inc edi
movsxd r8, edi
movzx edx, byte [rsp + r8 + 0x40]
add esi, edx
and esi, 0x800000ff
jge 0x1400025e2
dec esi
or esi, 0xffffff00
inc esi
movsxd rcx, esi
movzx eax, byte [rsp + rcx + 0x40]
mov byte [rsp + r8 + 0x40], al
mov byte [rsp + rcx + 0x40], dl
movzx eax, byte [rsp + r8 + 0x40]
add rdx, rax
movzx eax, dl
movzx ecx, byte [rsp + rax + 0x40]
xor cl, byte [r14 + r9]
mov byte [r9], cl
inc r9
sub r10, 1
jne 0x1400025b1
mov rdx, r15
lea rcx, str.Decrypted_Registry_Key:__s
call fcn.140001250
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000267c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x140]
mov dword [rsp + 0x28], r12d
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, r15
call fcn.14000f394
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140004f60
lea r11, [rsp + 0x260]
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 0x140003f38
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003f66
xor eax, eax
jmp 0x14000404c
cmp qword [rcx + 0x68], 0
je 0x140003f77
call fcn.140004068
jmp 0x14000404c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f8e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003f90
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003fc2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140026360
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140004046
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003ff9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140004022
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400106c0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140004046
cmp rsi, rbx
ja 0x140004000
test rsi, rsi
je 0x140004046
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400106c0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140005bdc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005c26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005c26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005c26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005c26
cmp dword [rcx + 0x84], 0xe
jbe 0x140005c26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005c28
xor al, al
add rsp, 0x28
ret

Function at 0x140011de4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011be0
Function at 0x140018204
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001821a
mov al, 1
jmp 0x14001827a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001822b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018278
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d694
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018278
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018278
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018278
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001827a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400195bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140005a00
sub rsp, rax
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140016844
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001960b
mov rax, rbp
jmp 0x140019713
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001a49c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001970f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001970f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001a49c
test rax, rax
js 0x14001970f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001970f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019701
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019701
cmp byte [rcx], 0xd
jne 0x1400196e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400196f6
cmp byte [rcx + 1], 0xa
jne 0x1400196f6
inc rcx
jmp 0x1400196f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400196c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019713
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140004f60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret