joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011ba0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov rsi, rcx
mov rdx, qword [0x180019418]
test rdx, rdx
jne 0x180011c23
lea rdx, [rsp + 0x32]
movaps xmm0, xmmword [0x180016750]
movaps xmmword [rdx - 2], xmm0
movaps xmm0, xmmword [0x180016760]
movaps xmmword [rdx + 0xe], xmm0
movaps xmm0, xmmword [0x180016770]
movaps xmmword [rdx + 0x1e], xmm0
movaps xmm0, xmmword [0x180016780]
movaps xmmword [rdx + 0x2e], xmm0
mov word [rdx + 0x7a], 0
mov eax, 1
xor byte [rsp + rax*2 + 0x30], 0x73
inc rax
cmp rax, 0x3e
jne 0x180011bf4
mov word [rsp + 0xac], 0
lea rcx, [rsp + 0x2f]
xor r8d, r8d
call fcn.18000dc50
mov rdx, rax
mov qword [0x180019418], rax
mov rax, qword [0x1800191f0]
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], 0
mov qword [rsp + 0x20], rcx
lea rdi, [rsp + 0x2f]
mov rcx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.1800137d0
mov al, byte [rdi]
add rsp, 0xb8
pop rdi
pop rsi
ret

Function at 0x180011c5e
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rsi, rcx
mov rdx, qword [0x180019420]
test rdx, rdx
jne 0x180011cfc
lea rdx, [rsp + 0x32]
movaps xmm0, xmmword [0x180016790]
movaps xmmword [rdx - 2], xmm0
movaps xmm0, xmmword [0x1800167a0]
movaps xmmword [rdx + 0xe], xmm0
movaps xmm0, xmmword [0x1800167b0]
movaps xmmword [rdx + 0x1e], xmm0
movaps xmm0, xmmword [0x1800167c0]
movaps xmmword [rdx + 0x2e], xmm0
movabs rax, 0x7f007e00780065
mov qword [rdx + 0x3e], rax
mov word [rdx + 0x46], 0x11
mov word [rdx + 0x8e], 0
mov eax, 1
xor byte [rsp + rax*2 + 0x30], 0x11
inc rax
cmp rax, 0x48
jne 0x180011ccd
mov word [rsp + 0xc0], 0
lea rcx, [rsp + 0x28]
xor r8d, r8d
call fcn.18000dc50
mov rdx, rax
mov qword [0x180019420], rax
mov rax, qword [0x1800191f0]
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], 0
mov qword [rsp + 0x20], rcx
lea rdi, [rsp + 0x28]
mov rcx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.1800137d0
mov rax, qword [rdi]
add rsp, 0xc8
pop rdi
pop rsi
ret

Function at 0x1800124e6
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x20
xor esi, esi
mov r14, rbx
mov r14, qword [r14]
cmp r14, rbx
je 0x180012530
test rdi, rdi
je 0x18001252c
mov rdx, qword [r14 + 0x50]
mov rcx, rdi
xor r8d, r8d
call fcn.180012649
test al, al
je 0x18001250c
mov rsi, qword [r14 + 0x20]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x18001253d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov r14d, dword [rcx + rax + 0x88]
cmp dword [rcx + r14 + 0x18], 0
je 0x1800125a3
mov rbx, rdx
mov rsi, rcx
xor edi, edi
xor r15d, r15d
mov eax, dword [rsi + r14 + 0x20]
mov ecx, dword [rsi + r14 + 0x24]
add rcx, rsi
movzx r12d, word [rcx + r15*2]
add rax, rsi
mov edx, dword [rax + r15*4]
add rdx, rsi
mov rcx, rbx
mov r8b, 1
call fcn.1800126ac
test al, al
jne 0x1800125a7
inc r15
mov eax, dword [rsi + r14 + 0x18]
cmp r15, rax
jb 0x180012569
jmp 0x1800125b6
xor edi, edi
jmp 0x1800125b6
mov eax, dword [rsi + r14 + 0x1c]
add rax, rsi
mov edi, dword [rax + r12*4]
add rdi, rsi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1800125c7
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push rbx
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x18001262e
movsxd rax, dword [rcx + 0x3c]
movzx r10d, word [rax + rcx + 6]
test r10, r10
je 0x18001262e
add rax, rcx
movzx r9d, word [rax + 0x14]
add r9, rax
add r9, 0x18
xor eax, eax
xor r11d, r11d
mov bl, byte [r9]
test bl, bl
je 0x180012632
mov esi, 1
movzx edi, byte [rdx + rsi - 1]
test edi, edi
je 0x180012632
movzx ebx, bl
cmp edi, ebx
jne 0x180012620
mov bl, byte [r9 + rsi]
inc rsi
test bl, bl
jne 0x180012603
jmp 0x180012632
inc r11
add r9, 0x28
cmp r11, r10
jne 0x1800125f7
jmp 0x180012645
xor eax, eax
jmp 0x180012645
test r8, r8
je 0x18001263e
mov eax, dword [r9 + 8]
mov qword [r8], rax
mov eax, dword [r9 + 0xc]
add rax, rcx
pop rbx
pop rdi
pop rsi
ret
Function at 0x1800135e6
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
add rdx, 0x10
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x30]
movsxd r8, dword [rax + 0x3c]
mov r8d, dword [rax + r8 + 0x88]
test r8, r8
je 0x1800135ff
mov r9d, dword [rax + r8 + 0x18]
test r9, r9
je 0x1800135ff
mov r10d, dword [rax + r8 + 0x20]
add r10, rax
lea r11, [rax + 1]
dec r9
mov esi, r9d
mov edi, dword [r10 + rsi*4]
mov bpl, byte [rax + rdi]
test bpl, bpl
je 0x18001367c
add rdi, r11
mov ebx, 0x69d6c20d
movsx r14d, bpl
lea ebp, [r14 - 0x41]
mov r15d, r14d
or r15d, 0x20
cmp bpl, 0x1a
cmovae r15d, r14d
xor r15d, ebx
imul ebx, r15d, 0x1000193
mov bpl, byte [rdi]
inc rdi
test bpl, bpl
jne 0x180013648
cmp ebx, 0xc3b4b923
je 0x180013686
test rsi, rsi
jne 0x18001362d
jmp 0x1800135ff
mov edx, dword [rax + r8 + 0x1c]
mov r8d, dword [rax + r8 + 0x24]
add rdx, rax
add r8, rax
movzx r8d, word [r8 + rsi*2]
mov edx, dword [rdx + r8*4]
add rdx, rax
mov rcx, qword [rcx]
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp rdx

Function at 0x1800136b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, edx
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, qword [rdi + 8]
jne 0x18001377f
lea rax, [rcx + rcx]
test rcx, rcx
mov edx, 1
cmovne rdx, rax
mov qword [rdi + 8], rdx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x30]
movsxd r8, dword [rax + 0x3c]
mov r8d, dword [rax + r8 + 0x88]
test r8, r8
je 0x1800136f8
mov r9d, dword [rax + r8 + 0x18]
test r9, r9
je 0x1800136f8
mov r10d, dword [rax + r8 + 0x20]
add r10, rax
lea rbx, [rax + 1]
dec r9
mov r11d, r9d
mov r14d, dword [r10 + r11*4]
mov r15b, byte [rax + r14]
test r15b, r15b
je 0x180013775
add r14, rbx
mov ebp, 0xe8bdf214
movsx r15d, r15b
lea r12d, [r15 - 0x41]
mov r13d, r15d
or r13d, 0x20
cmp r12b, 0x1a
cmovae r13d, r15d
xor r13d, ebp
imul ebp, r13d, 0x1000193
mov r15b, byte [r14]
inc r14
test r15b, r15b
jne 0x180013741
cmp ebp, 0x88ab2906
je 0x180013784
test r11, r11
jne 0x180013726
jmp 0x1800136f8
mov rax, qword [rdi]
jmp 0x1800137b1
shl rdx, 2
mov ecx, dword [rax + r8 + 0x1c]
mov r8d, dword [rax + r8 + 0x24]
add rcx, rax
add r8, rax
movzx r8d, word [r8 + r11*2]
mov r8d, dword [rcx + r8*4]
add r8, rax
mov rcx, qword [rdi]
call r8
mov qword [rdi], rax
mov rcx, qword [rdi + 0x10]
lea rdx, [rcx + 1]
mov qword [rdi + 0x10], rdx
mov dword [rax + rcx*4], esi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002440
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400024a1
lea r8, [r9 + 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 r10, 1
jne 0x140002460
mov ecx, dword [r9]
jmp 0x14000258b
cmp ecx, 0x4e0
jb 0x14000258b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400024c0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140002510
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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 0x140002af0
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 0x140002b18
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 0x140002b3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002b40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002b99
test ecx, ecx
jle 0x140002b79
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 0x140002b99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002b99
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 0x140002bc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002bf1
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 0x140002c0f
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002c2b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002c2d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002c69
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002cfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002ca4
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 0x140002cde
nop dword [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 0x140002cfe
cmp rbx, rax
ja 0x140002cb0
test rbx, rbx
je 0x140002cfe
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140003140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003164
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400031a7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400031a7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400032d8
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400031ea
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 0x140003215
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
cmove edi, ecx
mov eax, edi
jmp 0x1400032dd
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14000328a
sub eax, 1
je 0x14000328a
cmp eax, 2
jne 0x1400032d8
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x1400032dd
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400032bb
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400032d8
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032dd
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400035f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400036b9
cmp byte [rcx + 0x71], 0
je 0x1400036b9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400036ac
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x140003668
sub eax, 1
je 0x14000366c
cmp eax, 2
jne 0x1400036ac
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000369a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400036ac
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140006060
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov ecx, 0x30
call fcn.14006d3a8
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x140098bd0]
movdqu xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [str.SystemCurrentControlSetServices_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140092c40]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140092c50]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], 0
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140003480
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400061f3
mov byte [rsp + 0x90], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400061f3
mov byte [rsp + 0x98], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400061f3
mov byte [rsp + 0x30], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400061f3
mov eax, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400061b9
mov rdi, qword [rdi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400061f3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x1400061f5
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140006235
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006230
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006230
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d6fc
movzx eax, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14001dae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2d8]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14000cb10
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14001db36
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14001db8d
mov ebp, 0x4b0000
jmp 0x14001db9b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14000eea0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14001dbb1
mov eax, r12d
jmp 0x14001dbba
mov edx, edi
mov ecx, ebp
call fcn.14000eea0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14001dbd6
shl esi, 0x10
mov ecx, esi
jmp 0x14001dcc5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14001dc34
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14000cb10
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14001dc24
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14000ed70
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14000cb10
add ebx, eax
jmp 0x14001dcce
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14001dc41
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14001dc80
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14000cb10
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14001dc85
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14000ed70
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14000cb10
add ebx, eax
jmp 0x14001dcce
cmp eax, r12d
jge 0x14001dcbe
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14000cb10
sub ebp, eax
sub r15d, esi
je 0x14001dcbe
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14000ed70
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14000cb10
add ebx, eax
jmp 0x14001dcce
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14000cb10
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
call fcn.14000cb10
mov r15, qword [rsp + 0x30]
add eax, 0x8000
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
shr eax, 0x10
cwde
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret