joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017e50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140007f50
sub rsp, rax
mov rax, qword [0x140032040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140016a30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017e9f
mov rax, rbp
jmp 0x140017fa7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x34420]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018f70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x34420]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140017fa3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140017fa3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018f70
test rax, rax
js 0x140017fa3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140017fa3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140017f95
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140017f95
cmp byte [rcx], 0xd
jne 0x140017f7b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140017f8a
cmp byte [rcx + 1], 0xa
jne 0x140017f8a
inc rcx
jmp 0x140017f8a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x32490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140017f5d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140017fa7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007a40
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400181c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400181de
mov al, 1
jmp 0x14001823e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400181ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001823c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001be78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001823c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001823c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001823c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001823e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140034420]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140018367
cmp word [rdx], r13w
jne 0x140018367
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001836c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018491
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400184b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400183a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400183cc
cmp r9, r8
jae 0x1400183dc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140018386
jmp 0x140018491
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018486
cmp dword [rsp + 0x80], esi
je 0x140018486
lea r8, [0x140034420]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001845e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001842e
mov word [rbx], r13w
jmp 0x14001848e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001843b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001848e
cmp word [rsp + 0x70], r13w
jne 0x14001846b
cmp rbx, r14
je 0x140018428
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140018f78
cmp word [rsp + 0x70], r13w
je 0x140018491
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140034420]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001848b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018491
Function at 0x14001b610
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001b640
xor eax, eax
jmp 0x14001b703
mov rbp, rbx
cmp word [rax], si
je 0x14001b665
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b64c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b648
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140019c10
movsxd r14, eax
test eax, eax
jne 0x14001b6a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b639
mov rcx, r14
call fcn.140014760
mov rdi, rax
test rax, rax
jne 0x14001b6bc
xor ecx, ecx
call fcn.140014724
jmp 0x14001b698
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140019c10
test eax, eax
jne 0x14001b6ed
mov rcx, rdi
call fcn.140014724
jmp 0x14001b6f7
xor ecx, ecx
call fcn.140014724
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001e3cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400143c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001e46d
cmp ebx, dword [rsp + 0x30]
je 0x14001e466
test esi, esi
je 0x14001e466
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001e441
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001e44e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001e42b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001e452
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001e46f
mov eax, 1
jmp 0x14001e46f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fbb4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000da0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001fc3e
cmp byte [rbp - 0x21], r15b
je 0x14001fc39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001fc74
call fcn.140014c50
test eax, eax
jne 0x14001fc60
cmp byte [rbp - 0x21], r15b
je 0x14001fc58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001fc74
cmp byte [rbp - 0x21], r15b
je 0x14001fc71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010578
test eax, eax
jne 0x14001fd14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000da0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001fcb3
cmp byte [rbp - 0x21], r15b
je 0x14001fce8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001fce8
call fcn.140014c50
test eax, eax
jne 0x14001fcd4
cmp byte [rbp - 0x21], r15b
je 0x14001fccd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001fce8
cmp byte [rbp - 0x21], r15b
je 0x14001fce5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010578
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001fd14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001fd17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001fd25
mov rcx, rdi
call fcn.140014724
cmp byte [rbp + 0x3f], r15b
je 0x14001fd34
mov rcx, qword [rbp + 0x27]
call fcn.140014724
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140021410
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140021438
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140021438
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001973
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400019b9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400019b4
nop
cmp rbx, rcx
jae 0x1400019b9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400019a0
cmp rbx, rcx
jb 0x1400019bd
xor eax, eax
jmp 0x1400019c9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002700
Capabilities:
Encode data using xor

Disassembly:
mov r9d, dword [0x1401cbd80]
mov eax, 0x38e38e39
mov ecx, r9d
imul ecx, r9d
mov r8d, ecx
imul r8d, r9d
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 0x10
jne 0x1400027fd
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 8
jne 0x1400027fa
xor edx, edx
nop dword [rax]
mov ecx, edx
mov eax, edx
inc edx
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
add r9d, eax
cmp edx, 0x100
jl 0x140002760
mov dword [0x1401cbd80], r9d
xor al, al
ret
mov al, 1
ret
Function at 0x140011550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, rcx
mov edi, 1
mov rbx, qword [0x1401ca4f0]
mov edx, 0x81
lea r8d, [rdx + 0x6f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001170d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001170d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001170d
xor r15d, r15d
mov r13d, 0x403
mov r12d, 0x1234
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x14001170d
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x140011671
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140011950
nop
movzx edx, si
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x143
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x140011702
call fcn.1400d2130
jmp 0x140011702
cmp r12w, ax
jne 0x140011702
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rax, [rsp + 0x188]
mov qword [rsp + 0x180], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x180]
call fcn.140011950
nop
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
cmp rcx, rax
je 0x1400116da
call fcn.1400d2130
movzx edx, si
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40b
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x1400115f0
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400d1680
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001d8b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001d924
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d946
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001d946
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x14001d946
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001da60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov r9d, dword [rdi + 8]
or r9d, 0x2001f
mov rax, qword [rdi]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001dae4
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r9d
mov r8, rsi
mov rdx, rax
call fcn.14001d6b0
jmp 0x14001dafa
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14001dc03
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001db1f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14001dc03
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001dbc6
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14001da60
mov ebx, eax
test eax, eax
jne 0x14001dc03
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001db71
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001dbdb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001dbf5
mov r8, rsi
mov rdx, qword [rdi]
call fcn.14001d8b0
jmp 0x14001dc01
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001dc20
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
jmp 0x14001dc28
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400d1680
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022930
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1e0
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov r12, qword [rsp + 0x230]
mov r14, r9
mov r15, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140022810
xor edi, edi
test al, al
jne 0x140022aa7
mov qword [rsp + 0x210], rbx
mov ebx, edi
call fcn.1400d2038
inc rbx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + rbx*8 + 0x18], xmm0
cmp rbx, 0x35
jb 0x140022983
mov rbx, qword [rsp + 0x210]
mov r9d, 0x34
mov r8, rdi
lea r10d, [r9 + 1]
nop word [rax + rax]
mov ecx, 0x34
cmp r8, rcx
jge 0x140022a98
cmp r9, 4
jl 0x140022a6d
mov edx, 0x30
mov ecx, 0xd
lea rax, [rsp + 0x1b0]
sub rdx, r8
shr rdx, 2
inc rdx
sub rcx, rdx
shl rcx, 2
nop dword [rax + rax]
movsd xmm0, qword [rax + 0x10]
movsd xmm1, qword [rax + 8]
comisd xmm0, xmm1
jbe 0x140022a1a
movsd qword [rax + 0x10], xmm1
movsd qword [rax + 8], xmm0
movsd xmm0, qword [rax + 8]
movsd xmm1, qword [rax]
comisd xmm0, xmm1
jbe 0x140022a32
movsd qword [rax + 8], xmm1
movsd qword [rax], xmm0
movsd xmm0, qword [rax]
movsd xmm1, qword [rax - 8]
comisd xmm0, xmm1
jbe 0x140022a4a
movsd qword [rax], xmm1
movsd qword [rax - 8], xmm0
movsd xmm0, qword [rax - 8]
movsd xmm1, qword [rax - 0x10]
comisd xmm0, xmm1
jbe 0x140022a64
movsd qword [rax - 8], xmm1
movsd qword [rax - 0x10], xmm0
sub rax, 0x20
dec rdx
jne 0x140022a00
cmp rcx, r8
jle 0x140022a98
movsd xmm0, qword [rsp + rcx*8 + 0x20]
movsd xmm1, qword [rsp + rcx*8 + 0x18]
comisd xmm0, xmm1
jbe 0x140022a90
movsd qword [rsp + rcx*8 + 0x20], xmm1
movsd qword [rsp + rcx*8 + 0x18], xmm0
dec rcx
cmp rcx, r8
jg 0x140022a72
inc r8
dec r9
dec r10
jne 0x1400229c0
mov rcx, rsi
call fcn.140022880
mov r10, rax
test rbp, rbp
je 0x140022bca
test r15, r15
je 0x140022bca
cmp rax, r14
ja 0x140022bca
mov rdx, rdi
lea r11, [0x140000000]
test rsi, rsi
je 0x140022b7f
mov r9, r15
cmp rdx, rsi
jae 0x140022af1
movzx eax, byte [rdx + rbp]
inc rdx
jmp 0x140022af3
mov eax, edi
cmp rdx, rsi
jae 0x140022b02
movzx r8d, byte [rdx + rbp]
inc rdx
jmp 0x140022b05
mov r8d, edi
cmp rdx, rsi
jae 0x140022b13
movzx ecx, byte [rdx + rbp]
inc rdx
jmp 0x140022b15
mov ecx, edi
shl eax, 8
add r9, 4
add eax, r8d
shl eax, 8
add eax, ecx
mov ecx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r11 + 0x1c6d50]
mov byte [r9 - 4], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11 + 0x1c6d50]
mov byte [r9 - 3], al
mov eax, ecx
and ecx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11 + 0x1c6d50]
mov byte [r9 - 2], al
movzx eax, byte [rcx + r11 + 0x1c6d50]
mov byte [r9 - 1], al
cmp rdx, rsi
jb 0x140022ae8
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rsi, rax
cmp dword [r11 + rsi*4 + 0x156ee0], edi
jle 0x140022bc2
lea rax, [r15 - 1]
add rax, r10
nop word [rax + rax]
mov byte [rax], 0x3d
inc edi
dec rax
cmp edi, dword [r11 + rsi*4 + 0x156ee0]
jl 0x140022bb0
mov qword [r12], r10
mov al, 1
jmp 0x140022bcc
xor al, al
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400d1680
mov rbp, qword [rsp + 0x228]
add rsp, 0x1e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140023820
Capabilities:
Encode data using xor

Disassembly:
mov r9d, dword [0x1401cbd80]
mov eax, 0x2aaaaaab
mov ecx, r9d
imul ecx, r9d
mov r8d, ecx
imul r8d, r9d
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 2
jne 0x140023911
and ecx, 0x80000007
jge 0x140023869
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 3
jne 0x14002390e
xor edx, edx
mov ecx, edx
mov eax, edx
inc edx
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
add r9d, eax
cmp edx, 0x100
jl 0x140023874
mov dword [0x1401cbd80], r9d
xor al, al
ret
mov al, 1
ret