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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401c266f
mov rdx, qword [rbx]
movabs rdi, 0xcbf29ce484222325
xor ebp, ebp
mov ecx, ebp
test r8, r8
je 0x1401c26a3
movabs r9, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r9
inc rcx
cmp rcx, r8
jb 0x1401c2690
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.1401c2e80
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401c26c9
mov qword [r14], rax
mov byte [r14 + 8], bpl
jmp 0x1401c28a0
movabs rax, 0x555555555555555
cmp qword [0x140390320], rax
jne 0x1401c26ea
lea rcx, str.unordered_map_set_too_long
call qword [0x140279870]
int3
lea rax, [0x140390318]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbp
mov ecx, 0x30
call fcn.14024d580
mov rsi, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], rbp
movups xmm0, xmmword [rbx]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x20], xmm1
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov r9, qword [0x140390320]
lea rcx, [r9 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x1401c2751
cvtsi2ss xmm0, rcx
jmp 0x1401c2766
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, qword [0x140390348]
xorps xmm2, xmm2
test rbx, rbx
js 0x1401c277c
cvtsi2ss xmm2, rbx
jmp 0x1401c2794
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x140390310]
comiss xmm1, xmm3
seta al
test al, al
je 0x1401c2839
divss xmm0, xmm3
call fcn.14024f025
xor ecx, ecx
movss xmm1, dword [0x1402e1288]
comiss xmm0, xmm1
jb 0x1401c27df
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1401c27df
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x1401c2811
cmp rbx, 0x200
jae 0x1401c280e
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x1401c2811
mov rbx, rcx
mov rdx, rbx
call fcn.1401c2c10
mov r9, rdi
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.1401c2e80
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r9, qword [0x140390320]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx + 8]
inc r9
mov qword [0x140390320], r9
mov qword [rsi], rdx
mov qword [rsi + 8], r8
mov qword [r8], rsi
mov qword [rdx + 8], rsi
mov rax, qword [0x140390340]
and rax, rdi
add rax, rax
mov rcx, qword [0x140390328]
mov r9, qword [rcx + rax*8]
cmp r9, qword [0x140390318]
jne 0x1401c2881
mov qword [rcx + rax*8], rsi
jmp 0x1401c2893
cmp r9, rdx
jne 0x1401c288c
mov qword [rcx + rax*8], rsi
jmp 0x1401c2898
cmp qword [rcx + rax*8 + 8], r8
jne 0x1401c2898
mov qword [rcx + rax*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401c2f80
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x1401c2fb8
lea rcx, str.invalid_hash_bucket_count
call qword [0x140279870]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x40], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.1400e0480
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x1401c30f6
mov qword [rsp + 0x30], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
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, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x1401c3070
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1401c30e5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1401c30ad
mov r10, qword [rdx]
cmp r10, rax
je 0x1401c30a7
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 0x1401c30e5
cmp r9, rdx
je 0x1401c30c1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1401c310b
cmp r9, rdx
jne 0x1401c30b2
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, rdi
jne 0x1401c3020
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
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 0x1401c30e5
Function at 0x1401de1a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test edx, edx
jne 0x1401de2f6
cmp r8d, 9
ja case.default.0x1401de1cf
lea rcx, [0x140000000]
movsxd rax, r8d
mov edx, dword [rcx + rax*4 + 0x1de36c]
add rdx, rcx
jmp rdx
xor r9d, r9d
xor r8d, r8d
jmp 0x1401de2e0
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x1401de2e0
mov rax, qword [r9 + 8]
mov rcx, rbx
movsd xmm1, qword [rax]
add rsp, 0x40
pop rbx
jmp 0x1401de4d0
movsd xmm1, qword [0x1402e1140]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.14019fdd0
mov rax, qword [r9 + 8]
mov rcx, rbx
movsd xmm1, qword [rax]
add rsp, 0x40
pop rbx
jmp fcn.14019fdd0
mov rdx, qword [r9 + 8]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.1401a08c0
mov rdx, qword [r9 + 8]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.1401a0bc0
mov rax, qword [r9 + 8]
mov rcx, rbx
mov edx, dword [rax]
add rsp, 0x40
pop rbx
jmp fcn.1401a0ec0
mov rcx, qword [rbx + 0x48]
xor eax, eax
cmp dword [rbx + 0x50], 1
sete al
inc eax
mov edx, eax
mov dword [rbx + 0x50], eax
call qword [0x14027ca38]
mov rcx, qword [rbx + 0x38]
mov edx, dword [rbx + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x1a8]
mov rcx, qword [rbx + 0x40]
mov edx, dword [rbx + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x1a8]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.1401a12d0
mov rcx, rbx
call fcn.1401a12d0
cmp qword [rbx + 0x48], 0
je case.default.0x1401de1cf
mov rcx, rbx
call fcn.1401a04e0
xor eax, eax
movsd qword [rsp + 0x20], xmm0
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x28]
lea rax, [rsp + 0x20]
mov r8d, 2
mov qword [rsp + 0x30], rax
lea rdx, [0x1402bb0b0]
mov rcx, rbx
call qword [0x140279a60]
add rsp, 0x40
pop rbx
ret
cmp edx, 5
jne case.default.0x1401de1cf
mov rcx, qword [r9 + 8]
lea r8, [0x1401de490]
mov rdx, qword [r9]
mov rax, qword [rcx]
cmp rax, r8
jne 0x1401de326
test rax, rax
je 0x1401de31c
cmp dword [rcx + 8], 0
jne 0x1401de326
xor eax, eax
mov dword [rdx], eax
add rsp, 0x40
pop rbx
ret
lea r8, [0x1401de4b0]
cmp rax, r8
jne 0x1401de349
test rax, rax
je 0x1401de33d
cmp dword [rcx + 8], 0
jne 0x1401de349
mov dword [rdx], 1
add rsp, 0x40
pop rbx
ret
lea r8, [0x1401de4d0]
cmp rax, r8
jne case.default.0x1401de1cf
test rax, rax
je 0x1401de360
cmp dword [rcx + 8], 0
jne case.default.0x1401de1cf
mov dword [rdx], 2
add rsp, 0x40
pop rbx
ret
movsd qword [rsp + 0x10], xmm1
sub rsp, 0x38
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov r8d, 2
lea rdx, [0x1402bb0b0]
call qword [0x140279a60]
add rsp, 0x38
ret
Function at 0x1401e61a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov r10, r9
mov r11, rcx
test edx, edx
jne 0x1401e620a
test r8d, r8d
je 0x1401e61f6
sub r8d, 1
je 0x1401e61dc
sub r8d, 1
je 0x1401e61ca
cmp r8d, 1
jne 0x1401e6281
jmp fcn.140091590
mov rax, qword [r9 + 8]
mov r9b, 1
mov r8, qword [r10 + 0x10]
mov edx, dword [rax]
jmp fcn.140091bd0
mov rcx, qword [r9 + 8]
mov rax, qword [r9 + 0x18]
mov r8, qword [r10 + 0x10]
mov edx, dword [rcx]
mov rcx, r11
movzx r9d, byte [rax]
jmp fcn.140091bd0
xor r9d, r9d
lea rdx, [0x1402a4460]
xor r8d, r8d
jmp qword [0x140279a60]
cmp edx, 7
jne 0x1401e6256
sub r8d, 1
je 0x1401e623c
xor edx, edx
cmp r8d, 1
je 0x1401e6224
mov rax, qword [r9]
mov qword [rax], rdx
ret
mov rax, qword [r9 + 8]
lea r8, [0x140371cb0]
mov rcx, qword [r9]
cmp dword [rax], edx
cmovne r8, rdx
mov qword [rcx], r8
ret
mov rax, qword [r9 + 8]
lea r8, [0x140371cb0]
mov rcx, qword [r9]
xor edx, edx
cmp dword [rax], edx
cmovne r8, rdx
mov qword [rcx], r8
ret
cmp edx, 5
jne 0x1401e6281
mov rax, qword [r9 + 8]
lea rdx, [0x1401e6370]
mov r8, qword [r9]
mov rcx, qword [rax]
cmp rcx, rdx
jne 0x1401e6281
test rcx, rcx
je 0x1401e627c
cmp dword [rax + 8], 0
jne 0x1401e6281
xor edx, edx
mov dword [r8], edx
ret
Function at 0x14024e478
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140279798]
test rax, rax
je 0x14024e4c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14024e4c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14024e4c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14024e4c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14024e4c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14024e4c4
xor al, al
add rsp, 0x28
ret
Function at 0x6dac7280
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dae85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dac7408
mov rax, qword [0x6dae85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dac72cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dac7355
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dac72b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dac743d
mov rax, qword [0x6dae85e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dae85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dac7420
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dac734e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dac73b0
add dword [0x6dae85e4], 1
cmp edi, 8
jae 0x6dac7383
test dil, 4
jne 0x6dac73f4
test edi, edi
je 0x6dac7378
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dac740f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dac7378
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dac739c
jmp 0x6dac7378
add rsi, qword [0x6dae85e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dac734e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dac7378
xor esi, esi
jmp 0x6dac72d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dac7378
mov rax, qword [0x6dae85e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dac7b90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dae88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dae88a0]
test rbx, rbx
je 0x6dac7be4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6dac7bdb
test rsi, rsi
je 0x6dac7bdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dac7bc0
lea rcx, [0x6dae88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6dac7e20
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6dac7e30
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6dac7e40
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6dac7e81
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6dac7e78
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6dac7e83
add rax, 0x28
cmp rax, r9
jne 0x6dac7e64
xor eax, eax
ret

Function at 0x6dac7f20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dae51f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6dac7f8d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dac7f8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dac7f8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dac7f84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dac7f8f
add rax, 0x28
cmp rax, r9
jne 0x6dac7f70
xor eax, eax
add rsp, 0x28
ret

Function at 0x6dac8090
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dae51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6dac80b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dac80a8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dac810d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dac8104
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dac8114
add rax, 0x28
cmp rax, r9
jne 0x6dac80f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6dac8130
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dae51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dac819e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dac819e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dac819e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dac819e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dac8195
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6dac81a5
add rcx, 0x28
cmp rcx, rax
jne 0x6dac8180
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6dac81b8
jmp 0x6dac819e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6dac81c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dac819e
test r9d, r9d
jg 0x6dac81b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dac8500
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400104a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x1400104d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
je 0x140010509
movsxd rdx, r9d
mov rcx, rbx
call qword [0x140027090]
nop dword [rax + rax]
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001054c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
mov ebx, r8d
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x30], 4
test rcx, rcx
je 0x1400105a3
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 + 8]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400105a3
cmp dword [rsp + 0x50], 4
jne 0x1400105a3
mov ebx, dword [rsp + 0x68]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400105b4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x18], r8d
push rbp
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
mov dword [rbp + 0x20], 1
and dword [rbp + 0x10], eax
mov rbx, rdx
and qword [rbp - 8], rax
mov dword [rbp - 0x10], eax
mov dword [rbp + 0x28], 4
test rcx, rcx
je 0x140010619
lea rax, [rbp + 0x28]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140010616
cmp dword [rbp + 0x10], 4
je 0x14001067b
mov eax, dword [rbp - 0x10]
lea r8, [rbp - 8]
mov dword [rbp + 0x20], eax
lea rdx, str.SoftwareMicrosoftNotepad
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14001067b
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rbp + 0x20]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x140010690
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
movsxd rdi, dword [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rbx, r9
mov word [r9], bp
mov rsi, r8
lea eax, [rdi + rdi]
mov dword [rsp + 0x60], eax
test rcx, rcx
je 0x1400106ef
lea rax, [r11 + 0x28]
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 8]
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400106ef
cmp dword [rsp + 0x40], 1
je 0x140010700
mov r8, rdi
mov rdx, rsi
add r8, r8
mov rcx, rbx
call fcn.1400254df
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001f008
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
lea r14, [rcx + 8]
mov qword [r14], rbp
lea rax, [0x140026130]
mov qword [rcx], rax
lea r9, [r11 + 8]
mov rax, qword [rdx]
mov rsi, rcx
mov qword [rcx + 0x10], rax
xor r8d, r8d
mov qword [rdx], rbp
xor edx, edx
mov byte [rcx + 0x18], bpl
lea rcx, [0x14002ac10]
mov qword [r11 + 8], rbp
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14001f0d6
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14001f0ec
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], bp
jne 0x14001f071
lea r8, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.14000e2e4
mov rbx, qword [rsp + 0x20]
lea r8, [0x140028298]
mov edx, 9
lea rcx, [rbx + rdi*2]
call fcn.14000173c
test eax, eax
js 0x14001f0c2
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x14001f0c2
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14000c6c8
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14001f0d6
mov rcx, rbx
call qword [0x140026d98]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001f0ec
call qword [0x140026d98]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
mov rax, rsi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x103ac
Capabilities:
Encode data using base64

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
lea rcx, [rsp]
sub rcx, rdx
movzx eax, word [rdx]
mov word [rcx + rdx], ax
add rdx, 2
test ax, ax
jne 0x103bc
xor edi, edi
lea rdx, [rsp]
mov r9w, 0x5555
cmp word [rsp], di
je 0x1044f
movzx ecx, word [rdx]
shl r9w, 2
mov r10d, ecx
add r9w, di
shr r10d, 6
lea eax, [r10 - 1]
cmp eax, 2
ja 0x1044f
xor cl, r9b
xor ax, ax
sub cl, dil
sub cl, r10b
and cx, 0x3f
cmp cx, 0xa
jae 0x10414
lea eax, [rcx + 0x30]
jmp 0x1041d
cmp cx, 0x24
jae 0x10423
lea eax, [rcx + 0x37]
cmp cx, 0x24
jb 0x1042c
cmp cx, 0x3e
jae 0x1042c
lea eax, [rcx + 0x3d]
cmp cx, 0x3e
mov r10d, 0x2e
cmove ax, r10w
test ax, ax
je 0x1044f
mov word [rdx], ax
add rdx, 2
inc edi
cmp word [rdx], 0
jne 0x103dd
xor eax, eax
mov rdi, r8
lea rdx, [rsp]
lea rcx, [rax - 1]
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [rdx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x10461
mov rax, r8
add rsp, 0x40
pop rdi
ret

Function at 0x1063c
Capabilities:
Create device object

Disassembly:
push rbx
push rdi
sub rsp, 0x68
mov rbx, rcx
lea rdi, [0x00010000]
lea r11, [0x00010880]
xor ecx, ecx
movzx eax, word [rcx + rdi + 0x774]
mov word [rcx + r11], ax
add rcx, 2
test ax, ax
jne 0x10656
lea rdx, section..info
mov rcx, r11
call fcn.000103ac
lea rcx, [rsp + 0x40]
mov rdx, r11
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x90]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0xaa01
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x10750
xor ecx, ecx
lea r11, [0x00010840]
movzx eax, word [rcx + rdi + 0x758]
mov word [rcx + r11], ax
add rcx, 2
test ax, ax
jne 0x106ca
lea rdx, section..info
mov rcx, r11
call fcn.000103ac
lea rcx, [rsp + 0x50]
mov rdx, r11
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
mov edi, eax
jns 0x10723
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1074e
lea rax, [0x000104e4]
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x70], rax
lea rax, [0x00010590]
mov qword [rbx + 0xe0], rax
lea rax, [0x0001047c]
mov qword [rbx + 0x68], rax
mov eax, edi
add rsp, 0x68
pop rdi
pop rbx
ret