joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180682210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180682397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180682241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180682227
add dl, dl
jne 0x18068224e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806822ae
xor eax, eax
add dl, dl
jne 0x18068225d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180682365
add dl, dl
jne 0x18068226e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18068227b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180682288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180682295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806822a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180682236
mov eax, 1
add dl, dl
jne 0x1806822be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806822cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806822b3
sub eax, ebx
mov ebx, 1
jne 0x180682304
mov ecx, 1
add dl, dl
jne 0x1806822e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806822f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806822db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180682236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180682320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18068232d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180682315
cmp eax, 0x7d00
jae 0x180682353
cmp eax, 0x500
jb 0x18068234e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180682236
cmp eax, 0x7f
ja 0x180682356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180682236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18068238a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180682236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005aa4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005aee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005aee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005aee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005aee
cmp dword [rcx + 0x84], 0xe
jbe 0x140005aee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005af0
xor al, al
add rsp, 0x28
ret
Function at 0x7fff6d9564f0
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 0x7fff6d956514
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 0x7fff6d956557
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x7fff6d956557
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 0x7fff6d956688
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x7fff6d95659a
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 0x7fff6d9565c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.ucrtbase.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x7fff6d95668d
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 0x7fff6d95663a
sub eax, 1
je 0x7fff6d95663a
cmp eax, 2
jne 0x7fff6d956688
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.ucrtbase.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x7fff6d95668d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x7fff6d95666b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rsi, rax
jne 0x7fff6d956688
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x7fff6d95668d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x7fff6d9568b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7fff6d956979
cmp byte [rcx + 0x71], 0
je 0x7fff6d956979
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7fff6d95696c
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 0x7fff6d956928
sub eax, 1
je 0x7fff6d95692c
cmp eax, 2
jne 0x7fff6d95696c
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 0x7fff6d95695a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7fff6d95696c
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 0x7fff6d958500
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, qword [rcx + 0x48]
test rsi, rsi
je 0x7fff6d958686
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
je 0x7fff6d958686
mov ebp, dword [rax + 0x90]
add rbp, rsi
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x7fff6d958686
nop dword [rax]
nop word [rax + rax]
mov r10d, eax
mov r9, 0xffffffffffffffff
add r10, rsi
xor r11d, r11d
inc r9
cmp byte [r10 + r9], r11b
jne 0x7fff6d958560
add r9, r10
cmp r10, r9
je 0x7fff6d958677
nop word [rax + rax]
movzx r8d, byte [r10]
movzx eax, r8b
or al, 0x20
movzx ecx, al
lea edx, [r8 - 0x41]
cmp dl, 0x19
cmova ecx, r8d
inc r10
movsx eax, cl
add eax, r11d
imul r11d, eax, 0x401
mov eax, r11d
shr eax, 6
xor r11d, eax
cmp r10, r9
jne 0x7fff6d958580
lea eax, [r11 + r11*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, 0xd4250f59
jne 0x7fff6d958677
mov ebx, dword [rbp]
mov edi, dword [rbp + 0x10]
add rbx, rsi
add rdi, rsi
mov rax, qword [rbx]
test rax, rax
je 0x7fff6d958677
nop word [rax + rax]
lea r10, [rsi + 2]
add r10, rax
mov rax, 0xffffffffffffffff
xor r11d, r11d
inc rax
cmp byte [r10 + rax], r11b
jne 0x7fff6d958601
add rax, r10
cmp r10, rax
je 0x7fff6d958662
movzx r9d, byte [r10]
movzx ecx, r9b
or cl, 0x20
movzx edx, cl
lea r8d, [r9 - 0x41]
cmp r8b, 0x19
cmova edx, r9d
inc r10
movsx ecx, dl
add ecx, r11d
imul r11d, ecx, 0x401
mov ecx, r11d
shr ecx, 6
xor r11d, ecx
cmp r10, rax
jne 0x7fff6d958612
lea eax, [r11 + r11*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, 0x4eb208bc
je 0x7fff6d95869d
mov rax, qword [rbx + 8]
add rbx, 8
add rdi, 8
test rax, rax
jne 0x7fff6d9585f0
mov eax, dword [rbp + 0x20]
add rbp, 0x14
test eax, eax
jne 0x7fff6d958550
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, rdi
jmp 0x7fff6d958688
Function at 0x7fff6d958910
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
xor r14d, r14d
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x7fff6d958ae5
mov rax, qword [rax + 0x18]
test rax, rax
je 0x7fff6d958ae5
lea rsi, [rax + 0x20]
mov rdi, qword [rsi]
cmp rsi, rdi
je 0x7fff6d958ad8
lea rbx, [rdi - 0x10]
test rbx, rbx
je 0x7fff6d958ac9
cmp qword [rbx + 0x50], 0
je 0x7fff6d958ac9
mov ecx, 0x58
call fcn.7fff6d963668
mov qword [rsp + 0x78], rax
mov rdx, rbx
mov rcx, rax
call fcn.7fff6d958390
nop
mov qword [rsp + 0x70], rax
lea rcx, [rax + 0x20]
mov rax, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x7fff6d95899d
mov rax, qword [rcx]
mov r11, qword [rcx + 0x10]
mov r10d, r14d
add r11, rax
cmp rax, r11
je 0x7fff6d9589ee
nop dword [rax]
movsx r9d, byte [rax]
mov r8d, r9d
sub r9b, 0x41
movzx ecx, r8b
or cl, 0x20
movzx edx, cl
movzx ecx, r8b
cmp r9b, 0x19
cmova edx, ecx
movsx ecx, dl
add ecx, r10d
imul r10d, ecx, 0x401
mov ecx, r10d
shr ecx, 6
xor r10d, ecx
inc rax
cmp rax, r11
jne 0x7fff6d9589b0
lea edx, [r10 + r10*8]
mov eax, edx
shr eax, 0xb
xor edx, eax
imul eax, edx, 0x8001
mov dword [rsp + 0x68], eax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 8]
call fcn.7fff6d958db0
nop
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x7fff6d958ac9
mov rdx, qword [rbx + 0x38]
cmp rdx, 0x10
jb 0x7fff6d958a61
inc rdx
mov rcx, qword [rbx + 0x20]
cmp rdx, 0x1000
jb 0x7fff6d958a5c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7fff6d958ad1
mov rcx, r8
call fcn.7fff6d96362c
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], 0xf
mov byte [rbx + 0x20], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x7fff6d958aac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x7fff6d958aa7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7fff6d958ad1
mov rcx, r8
call fcn.7fff6d96362c
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov edx, 0x58
mov rcx, rbx
call fcn.7fff6d96362c
mov rdi, qword [rdi]
jmp 0x7fff6d95894b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov al, 1
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x7fff6d959200
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x7fff6d959238
lea rcx, [0x7fff6d966af0]
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.7fff6d958c60
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x7fff6d959376
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x7fff6d9592f0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x7fff6d959365
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x7fff6d95932d
mov r10, qword [rdx]
cmp r10, rax
je 0x7fff6d959327
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x7fff6d959365
cmp r9, rdx
je 0x7fff6d959341
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x7fff6d95938b
cmp r9, rdx
jne 0x7fff6d959332
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x7fff6d9592a0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x7fff6d959365
Function at 0x7fff6d960d70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x7fff6d96cce0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x7fff6d960dd4
mov eax, 0xa
jmp 0x7fff6d960e67
test esi, esi
je 0x7fff6d960df6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x7fff6d960e19
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x7fff6d960e19
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x7fff6d960e12
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x7fff6d960e19
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.kernel32.dll_VirtualProtect]
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.kernel32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x7fff6d960ed0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x7fff6d96c228]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x7fff6d96101c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.kernel32.dll_Thread32First
test eax, eax
je 0x7fff6d961013
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x7fff6d960fca
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x7fff6d960fca
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x7fff6d960fca
mov rdx, qword [rdi]
test rdx, rdx
jne 0x7fff6d960f8b
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x7fff6d96c468]
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x7fff6d960ff2
lea rbx, [rdi + 0xc]
jmp 0x7fff6d960fbf
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x7fff6d960fbf
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x7fff6d96c468]
shl r9, 2
call qword [sym.imp.kernel32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x7fff6d960ff2
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call sub.kernel32.dll_Thread32Next
test eax, eax
jne 0x7fff6d960f31
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x7fff6d96100e
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x7fff6d96100e
mov rcx, qword [0x7fff6d96c468]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7fff6d963f30
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x7fff6d961120
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.7fff6d960ed0
test eax, eax
jne 0x7fff6d961167
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x7fff6d9611de
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x7fff6d9611c6
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.kernel32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x7fff6d9611ba
mov rcx, rax
call qword [sym.imp.kernel32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.7fff6d9615f0
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x7fff6d961180
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x7fff6d961730
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
jmp 0x7fff6d961730
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rsi, rcx
xor edi, edi
call fcn.7fff6d960e80
cmp qword [0x7fff6d96c468], rdi
je 0x7fff6d9617cb
test rsi, rsi
jne 0x7fff6d96179a
cmp dword [0x7fff6d96ccec], edi
mov r8d, edi
jbe 0x7fff6d9617d0
shl bl, 2
nop word [rax + rax]
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x7fff6d96cce0]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, bl
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x7fff6d96ccec]
jb 0x7fff6d961770
jmp 0x7fff6d9617d0
mov rcx, rsi
call fcn.7fff6d961040
cmp eax, 0xffffffff
je 0x7fff6d9617c4
shl bl, 2
mov eax, eax
imul rdx, rax, 0x38
mov rax, qword [0x7fff6d96cce0]
xor bl, byte [rdx + rax + 0x20]
and bl, 4
xor byte [rdx + rax + 0x20], bl
jmp 0x7fff6d9617d0
mov edi, 4
jmp 0x7fff6d9617d0
mov edi, 2
call fcn.7fff6d961200
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x7fff6d9617f0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x7fff6d96185f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x7fff6d961848
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.kernel32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x7fff6d96183c
mov rcx, rax
call qword [sym.imp.kernel32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x7fff6d961810
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x7fff6d96c468]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x7fff6d961a50
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x7fff6d961a8b
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x7fff6d96ccd8]
lea rbp, [rdi + 0x40000000]
cmp rcx, rbp
cmovbe rbp, rcx
sub rbp, 0xfff
test rbx, rbx
je 0x7fff6d961acd
nop dword [rax]
cmp rbx, rsi
jb 0x7fff6d961ac5
cmp rbx, rbp
jae 0x7fff6d961ac5
cmp qword [rbx + 8], 0
jne 0x7fff6d961bcc
mov rbx, qword [rbx]
test rbx, rbx
jne 0x7fff6d961ab0
mov qword [rsp + 0x78], r14
mov r14d, 0x40
mov qword [rsp + 0x80], r15
mov r15, rdi
cmp rdi, rsi
jb 0x7fff6d961b33
nop dword [rax + rax]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, r15
call fcn.7fff6d961940
mov r15, rax
test rax, rax
je 0x7fff6d961b2e
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x7fff6d961b7e
cmp r15, rsi
jae 0x7fff6d961af0
jmp 0x7fff6d961b33
test rbx, rbx
jne 0x7fff6d961b7e
cmp rdi, rbp
ja 0x7fff6d961bbf
nop dword [rax]
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov rcx, rdi
call fcn.7fff6d9618a0
mov rdi, rax
test rax, rax
je 0x7fff6d961bbf
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x7fff6d961b7e
cmp rdi, rbp
jbe 0x7fff6d961b40
jmp 0x7fff6d961bbf
xor edx, edx
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], edx
nop word [rax + rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rbx + 8], rcx
add r14, 0x40
add rcx, 0x40
mov rdx, rax
cmp r14, 0xfc0
jbe 0x7fff6d961b90
mov rax, qword [0x7fff6d96ccd8]
mov qword [rbx], rax
mov qword [0x7fff6d96ccd8], rbx
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x7fff6d962050
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x40], rbx
mov r8, rdx
mov qword [rsp + 0x30], rsi
lea rbx, section._________2
mov qword [rsp + 0x28], rdi
xor dl, dl
mov qword [rsp + 0x20], r12
lea rdi, [0x7fff6d950000]
xor r12b, r12b
mov qword [rsp + 8], r15
xorps xmm0, xmm0
mov byte [rsp + 0x68], dl
movups xmmword [r8], xmm0
xor eax, eax
mov dword [rsp + 0x60], r12d
movups xmmword [r8 + 0x10], xmm0
mov dword [r8 + 0x20], eax
mov r9, rcx
mov byte [r8 + 0x24], al
mov r11b, 0x10
nop dword [rax]

Function at 0x7fff6d962bd8
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x7fff6d96c228]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, r8d
xor r12d, r12d
and esi, 0xf
mov r14, rdx
mov r15, rcx
mov ebx, 1
cmp esi, 2
je 0x7fff6d962e08
mov r8d, ebx
call qword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax

Function at 0x7fff6d96347c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, [0x7fff6d966640]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7fff6d963500
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7fff6d966540]
cmp byte [rcx + rax], 0
je 0x7fff6d963500
dec r8
sub rdx, 1
jne 0x7fff6d9634e6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x4069b0
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rsi, rdx
call sub.msvcrt.dll_getenv
cmp byte [rdi + 1], 0
mov rbx, rax
je 0x4069ea
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.env_manager::getenv___s______s_n
lea rcx, [rax + 0x60]
mov r9, rbx
mov r8, rsi
call fcn.00495340
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret