joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001eeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001f041
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001ef20
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001e8d0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001df20
mov dword [rbx + 0x80], 0
jmp 0x14001f02d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001ce70
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140039d90
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140069010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 4
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xorps xmm0, xmm0
lea r8, [rsp + 0x38]
mov rbx, rax
mov r9d, 0x24
xor eax, eax
xor edx, edx
mov dword [rsp + 0x58], eax
mov rcx, rbx
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004e4c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140039e40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140069010]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r12d, r12d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x64]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x60], 0x130
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140039ff7
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov r8d, 0xc
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x40]
call fcn.14003b8f0
nop
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
lea rax, [rbp - 0x74]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140039f02
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x20]
call fcn.14003b8f0
lea rdx, [rsp + 0x40]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x58]
cmp r15, 0x10
cmovae rdx, rbx
lea rcx, [rsp + 0x20]
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
cmp r14, 0x10
cmovae rcx, rdi
mov r8, qword [rsp + 0x30]
cmp r8, qword [rsp + 0x50]
jne 0x140039f62
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140039f62
mov sil, 1
jmp 0x140039f65
xor sil, sil
cmp r14, 0x10
jb 0x140039f99
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140039f90
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039fe4
mov rcx, rdi
call fcn.14004e5b4
nop
cmp r15, 0x10
jb 0x140039fcc
lea rdx, [r15 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140039fc4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039feb
mov rcx, rbx
call fcn.14004e5b4
test sil, sil
jne 0x140039ff2
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x140039eb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r12d, dword [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x14003a017
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x14003a019
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14004e4c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400496c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400496f7
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140049718
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004971a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140049773
test ecx, ecx
jle 0x140049753
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140049773
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140049773
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 + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400497a0
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 0x1400497d1
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 0x1400497ef
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 + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004980b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004980d
xor ecx, ecx
mov qword [rsp + 0x30], rbx
movsxd rax, ecx
test ecx, ecx
je 0x140049847
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400498e7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140049882
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x1400498c1
nop
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140049908
cmp rdi, rax
ja 0x140049890
mov r8, rbx
test rbx, rbx
je 0x1400498e7
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x1400498ea
Function at 0x140049d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140069010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140049d6d
xor eax, eax
jmp 0x140049ec2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140049d98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140049d98
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], dil
mov eax, edi
jmp 0x140049ec2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140049eb5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140049ddb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140049e06
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 0x140049eba
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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
js 0x140049eb5
cmp eax, 1
jle 0x140049e75
cmp eax, 3
jne 0x140049eb5
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
cmovne ecx, edi
mov eax, ecx
jmp 0x140049eba
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140049ea3
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 0x140049eb5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140049eba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14004e4c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004a860
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140069010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004a933
cmp byte [rcx + 0x71], 0
je 0x14004a933
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004a92f
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 0x14004a8f4
sub eax, 1
je 0x14004a8f8
cmp eax, 2
jne 0x14004a92f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004e4c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004a926
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 0x14004a92f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004a8dc
xor al, al
jmp 0x14004a8dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004e4c0
add rsp, 0x60
pop rbx
ret
Function at 0x14004e300
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 0x14004e361
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 0x14004e320
mov ecx, dword [r10]
jmp 0x14004e44a
cmp ecx, 0x4e0
jb 0x14004e44a
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 0x14004e380
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 0x14004e3d0
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 0x18001d300
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, r8
mov rsi, rdx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x50], xmm0
xor edi, edi
mov qword [rax - 0x40], rdi
mov r12d, ecx
imul ebx, ecx, 0x58e
mov dword [rsp + 0xa8], ebx
cmp ecx, ebx
movzx ebx, byte [rax + 8]
ja 0x18001d548
mov r14d, dword [rsp + 0x90]
cmp r12d, 0x494a
ja 0x18001d4f7
je 0x18001d4ca
mov eax, r12d
sub eax, 0x42
je 0x18001d485
sub eax, 0x34
je 0x18001d472
sub eax, 0x6b
je 0x18001d38c
cmp eax, 0x281d
jne 0x18001d3f3
mov bl, 1
jmp 0x18001d548
mov eax, dword [r13]
add dword [rsi + 0x14], eax
mov r15d, edi
cmp dword [r13], 0
jbe 0x18001d3f3
nop dword [rax]
mov ebp, 0xdd
nop word [rax + rax]
mov eax, ebp
sub eax, 0xdd
je 0x18001d446
sub eax, 1
je 0x18001d43e
sub eax, 1
je 0x18001d438
cmp eax, 1
jne 0x18001d456
cmp dword [rsi + 0x14], 4
jbe 0x18001d456
mov edi, 0xc
nop
cmp edi, 0xc
je 0x18001d416
cmp edi, 0x378
jne 0x18001d428
mov r12d, 0x8bbf
imul eax, dword [rsp + 0x90], 0x9e
add r12d, eax
cmp r12d, dword [rsp + 0xa8]
ja 0x18001d548
xor edi, edi
jmp 0x18001d351
add dword [rsi + 0x14], 0xfffffffc
mov edx, dword [rsi]
lea rcx, str.SetPrintScale
call fcn.180064ef0
add edi, 0x36c
cmp edi, 0x6d8
jbe 0x18001d3e0
jmp 0x18001d456
mov dword [rsi + 0x10], r14d
jmp 0x18001d456
mov eax, dword [rsi + 0x10]
mov dword [rsi + 8], eax
jmp 0x18001d456
mov r14d, dword [rsi + 4]
mov eax, dword [rsi + 0xc]
mov dword [rsi + 4], eax
mov eax, dword [rsi + 8]
mov dword [rsi + 0xc], eax
inc ebp
cmp ebp, 0xe1
jb 0x18001d3b0
inc r15d
cmp r15d, dword [r13]
jae 0x18001d3f3
jmp 0x18001d3a0
mov qword [0x18007d018], rsi
mov qword [rsi + 0x80], r13
jmp 0x18001d3f3
mov r8d, 0x33
lea rdx, [rsp + 0x38]
xor ecx, ecx
call fcn.18004a400
test al, al
je 0x18001d540
mov dword [rsi], edi
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
cmp rax, rcx
je 0x18001d3f3
cmp dword [rax + 8], 0
jne 0x18001d4bc
inc dword [rsi]
add rax, 0x20
cmp rax, rcx
jne 0x18001d4b4
jmp 0x18001d3f3
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, [0x18001d950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp rax, 0
je 0x18001d546
jmp 0x18001d3f3
cmp r12d, 0x8bbf
je 0x18001d3ed
cmp r12d, 0x921e
je 0x18001d52b
cmp r12d, 0xdaf2
je 0x18001d524
cmp r12d, 0x123c6
je 0x18001d548
jmp 0x18001d3f3
mov bl, 1
jmp 0x18001d3f3
mov rax, qword [rsp + 0x30]
xchg qword [0x18007d020], rax
jmp 0x18001d3f3
mov dword [rsi], 1
xor bl, bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18001d58b
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d586
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800650a0
movzx eax, bl
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001d5b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
push r15
sub rsp, 0x58
lea r15d, [rcx + 0x5a0]
mov r14, r8
mov r13, rdx
mov ebp, ecx
cmp ecx, r15d
jae 0x18001d85a
mov qword [rax + 0x10], rbx
lea rdx, [0x180000000]
mov rbx, qword [rsp + 0x98]
mov qword [rax - 0x28], rsi
mov rsi, qword [rsp + 0x98]
mov qword [rax - 0x30], rdi
mov rdi, qword [rsp + 0x98]
mov qword [rax - 0x38], r12
mov r12, qword [rsp + 0x98]
nop dword [rax]
cmp ebp, 0xf2
ja 0x18001d788
je 0x18001d778
lea eax, [rbp - 2]
cmp eax, 0xbb
ja case.0x18001d642.8
movzx eax, byte [rdx + rax + 0x1d88c]
mov ecx, dword [rdx + rax*4 + 0x1d870]
add rcx, rdx
jmp rcx
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x18001d650
mov rsi, rdi
jmp case.0x18001d642.8
mov dword [rsp + 0x98], 1
mov rbx, qword [rsp + 0x98]
jmp case.0x18001d642.8
mov eax, dword [r14 + 0x100]
test eax, eax
je case.0x18001d642.8
dec eax
add qword [r14 + 0x168], 0xffffffffffffffd8
mov dword [r14 + 0x100], eax
jmp case.0x18001d642.8
mov r8, rdi
mov rdx, rdi
shr r8, 5
inc r8
cmp rdi, r8
jb 0x18001d821
nop word [rax + rax]
movsx rcx, byte [r14 + rdx - 1]
mov rax, rsi
shl rax, 5
sub rdx, r8
add rcx, rax
mov rax, rsi
shr rax, 2
add rcx, rax
xor rsi, rcx
cmp rdx, r8
jae 0x18001d6c0
jmp 0x18001d821
mov ecx, dword [r14 + 0xc]
lea eax, [rcx - 9]
test eax, 0xfffffffd
je 0x18001d747
cmp dword [r14 + 8], 0xe
jne case.0x18001d642.8
mov eax, dword [r14 + 0x18]
lea r8, [rsp + 0x80]
movsxd r9, dword [r14 + 4]
mov edx, 0x5a
mov dword [rsp + 0x28], eax
add r9, r13
lea rax, [rsp + 0x28]
mov dword [rsp + 0x80], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x2c], 0
call fcn.180049e00
jmp 0x18001d821
movsxd rax, dword [r14 + 4]
lea rcx, [rsp + 0x20]
add rax, r13
xor r8d, r8d
mov edx, 0x107
mov qword [rsp + 0x20], rax
call fcn.180025ee0
jmp 0x18001d821
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001d821
mov rbx, rsi
mov qword [rsp + 0x98], rbx
jmp case.0x18001d642.8
mov eax, ebp
sub eax, 0x128
je 0x18001d805
sub eax, 3
je 0x18001d7d1
sub eax, 0xa
je 0x18001d834
sub eax, 0x35
je 0x18001d834
cmp eax, 0x36
jne case.0x18001d642.8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x124
mov rcx, r14
call fcn.180037f70
test al, al
je 0x18001d834
mov rcx, qword [r14]
mov edx, 2
call r12
jmp 0x18001d821
movsxd r9, dword [r14 + 4]
lea rax, [r14 + 0x18]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
mov eax, dword [r14 + 0xc]
lea rcx, [rsp + 0x20]
add r9, r13
mov dword [rsp + 0x80], eax
mov edx, 0x5a
call fcn.180049e00
jmp 0x18001d821
mov r9d, 0x1a
lea rcx, str.ws2_32.dll
xor r8d, r8d
lea edx, [r9 - 4]
call fcn.18004f820
mov r12, rax
lea rdx, [0x180000000]
add ebp, 0x78
cmp ebp, r15d
jb 0x18001d610
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x40]
add rsp, 0x58
pop r15
pop r14
pop r13
pop rbp
ret
mov rax, qword [rsp + 0x98]
add rsp, 0x58
pop r15
pop r14
pop r13
pop rbp
ret
Function at 0x180025ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x1b0
mov rax, qword [0x18007cf38]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea eax, [rdx + 7]
mov qword [rsp + 0x48], r8
mov r12, rcx
cmp edx, eax
jae 0x180026105
mov qword [r11 + 0x10], rbx
mov r10d, 7
movzx ebx, byte [rsp + 0x30]
mov qword [r11 - 0x10], rbp
movzx ebp, byte [rsp + 0x30]
mov qword [r11 - 0x18], rsi
movzx esi, byte [rsp + 0x30]
mov qword [r11 - 0x20], rdi
mov rdi, qword [rsp + 0x40]
mov qword [r11 - 0x28], r13
lea r13d, [rdx - 0x100]
mov qword [r11 - 0x30], r14
lea rdx, [0x180000000]
mov r14, qword [rsp + 0x40]
mov qword [r11 - 0x38], r15
movzx r15d, byte [rsp + 0x30]
mov qword [rsp + 0x50], r10
cmp r13d, 8
ja case.0x180025f7a.5
mov ecx, dword [rdx + r13*4 + 0x26120]
add rcx, rdx
jmp rcx
movzx ebx, byte [rsp + 0x160]
lea rdi, [rsp + 0x60]
movzx esi, byte [rsp + 0x161]
jmp case.0x180025f7a.5
xor r14d, r14d
jmp case.0x180025f7a.5
cmp qword [r12 + 0x18], 0x10
mov r9, r12
jb 0x180025fad
mov r9, qword [r12]
cmp r14, qword [r12 + 0x10]
jae case.0x180025f7a.5
nop dword [rax + rax]
mov r8d, 0x4f
mov eax, r8d
sub eax, 0x4b
je 0x180026018
sub eax, 1
je 0x180026004
sub eax, 1
je 0x180025fef
sub eax, 1
je 0x180025fe6
cmp eax, 1
jne 0x180026027
inc bl
jmp 0x180026027
movzx eax, bl
add sil, byte [rax + rdi]
jmp 0x180026027
movzx edx, bl
movzx eax, sil
movzx r15d, byte [rdx + rdi]
movzx ecx, byte [rax + rdi]
mov byte [rdx + rdi], cl
jmp 0x180026027
movzx eax, sil
mov byte [rax + rdi], r15b
movzx eax, bl
movzx ebp, byte [rax + rdi]
add bpl, r15b
jmp 0x180026027
movzx eax, bpl
movzx ecx, byte [rax + rdi]
xor byte [r9 + r14], cl
inc r14
dec r8d
cmp r8d, 0x4a
ja 0x180025fc6
cmp r14, qword [r12 + 0x10]
jb 0x180025fc0
jmp 0x1800260af
mov byte [rsp + 0x160], bl
mov byte [rsp + 0x161], sil
jmp case.0x180025f7a.5
mov qword [rsp + 0x40], r12
mov dword [r12], 0
mov qword [r12 + 8], 0
jmp case.0x180025f7a.5
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + 0x18]
mov qword [rcx + 0x10], rax
jmp case.0x180025f7a.5
cmp qword [r8 + 0x18], 0x10
mov rcx, r8
jb 0x18002607e
mov rcx, qword [r8]
mov eax, dword [r8 + 0x10]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov dword [rsp + 0x38], eax
mov r8d, SHRegGetIntW
lea rax, [rsp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.180054660
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
lea rdx, [0x180000000]
inc r13d
sub r10, 1
mov qword [rsp + 0x50], r10
jne 0x180025f65
mov r15, qword [rsp + 0x180]
mov r14, qword [rsp + 0x188]
mov r13, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
mov rbx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180065820
add rsp, 0x1b0
pop r12
ret