joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400212c8
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x140021350
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.140031844
test al, al
je 0x140021350
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140031844
test al, al
je 0x140021350
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.140054e00
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140021378
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x1400213d6
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140031844
test al, al
je 0x1400213d6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140054e00
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400213fc
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14002145a
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140031844
test al, al
je 0x14002145a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140054e00
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140021788
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x20], rbx
jbe 0x1400217db
mov qword [rcx + 0x20], rbx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140055c00
mov rcx, qword [rdi]
lea eax, [rbx + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x1400217dd
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140021ad4
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.14003091c
cmp word [rax], 0x2e
je 0x140021b27
cmp word [rax], 0x20
je 0x140021b27
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140021b5c
mov rcx, rbx
call fcn.1400211bc
cmp eax, 0xffffffff
jne 0x140021b6f
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140031844
test al, al
je 0x140021b6f
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140021b6f
test dil, dil
je 0x140021b6b
mov edx, esi
mov rcx, rbx
call fcn.140021238
xor eax, eax
jmp 0x140021b89
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140021b84
cmp eax, 3
mov eax, 1
jne 0x140021b89
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140054e00
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140022e38
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140022eec
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140022f16
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140031844
test al, al
je 0x140022ec3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140022f16
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140022edf
cmp eax, 3
je 0x140022edf
cmp eax, 0x12
je 0x140022edf
mov eax, 1
jmp 0x140022ee1
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140022fac
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140022f0c
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140022fac
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140045524
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.14003103c
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.140046848
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140046848
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140046848
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.140054e00
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret
Function at 0x140028868
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xe8]
mov bl, dl
xor edx, edx
mov r8d, 0x4000
call fcn.140055c00
xor r11d, r11d
cmp bl, r11b
je 0x140028972
cmp byte [rdi + 0x6169], r11b
jne 0x140028972
mov eax, dword [rdi + 0x110]
mov ecx, dword [rdi + 0x6164]
shr eax, 2
cmp ecx, eax
ja 0x140028972
mov r10d, r11d
cmp ecx, r11d
jbe 0x1400289b3
mov ebx, 0x3ffff
mov rcx, qword [rdi + 0xe0]
mov r9d, r10d
inc r10d
movzx eax, byte [rcx + r9 + 1]
movzx r8d, byte [rcx + r9]
imul r8d, r8d, 0x2773
xor r8d, eax
movzx eax, byte [rcx + r9 + 2]
imul r8d, r8d, 0x2773
xor r8d, eax
mov rax, qword [rdi + 0xf0]
mov ecx, r8d
and rcx, rbx
imul r8d, r8d, 0x2773
mov word [rax + rcx*2], r11w
mov rax, qword [rdi + 0xe0]
movzx edx, byte [rax + r9 + 3]
mov rax, qword [rdi + 0xf8]
xor edx, r8d
mov ecx, edx
and rcx, rbx
imul edx, edx, 0x2773
mov dword [rax + rcx*4], r11d
mov rax, qword [rdi + 0xe0]
movzx ecx, byte [rax + r9 + 4]
mov eax, edx
xor rcx, rax
mov eax, dword [rdi + 0x114]
and rcx, rax
mov rax, qword [rdi + 0x100]
mov dword [rax + rcx*4], r11d
cmp r10d, dword [rdi + 0x6164]
jb 0x1400288cc
jmp 0x1400289b3
mov rcx, qword [rdi + 0xf0]
xor edx, edx
mov r8d, 0x80000
call fcn.140055c00
mov rcx, qword [rdi + 0xf8]
xor edx, edx
mov r8d, 0x100000
call fcn.140055c00
mov r8d, dword [rdi + 0x110]
mov rcx, qword [rdi + 0x100]
shl r8, 2
xor edx, edx
call fcn.140055c00
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002a868
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov ebp, dword [rsp + 0x58]
xor r11d, r11d
mov eax, r9d
lea esi, [r11 + 1]
mov r12d, r8d
mov r10d, 0x400
cmp ebp, esi
mov r14d, r11d
mov r9d, esi
jl 0x14002a94c
lea eax, [rbp + rbp]
lea ecx, [rsi + 7]
sub r12d, eax
mov ebx, r11d
mov edi, r12d
mov r8, rdx
mov r15d, 4
cmp edi, ecx
mov eax, edi
mov r11, r8
cmovg eax, ecx
movsxd r13, eax
add r13, r8
cmp r8, r13
jae 0x14002a910
lea rbp, [r8 + rsi]
mov dl, byte [rbp]
mov al, byte [rsi + rbp]
sub al, dl
sub dl, byte [r11]
movsx ecx, al
movsx eax, dl
sub eax, ecx
mov ecx, 0x20
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
inc r11
inc rbp
add ebx, ecx
cmp r11, r13
jb 0x14002a8dc
mov ecx, 8
add r8, 0x40
sub edi, 0x40
sub r15, 1
jne 0x14002a8c3
mov ebp, dword [rsp + 0x58]
xor r11d, r11d
cmp ebx, r10d
jge 0x14002a934
cmp ebx, 0x10
mov r14d, r9d
mov r10d, ebx
jl 0x14002a948
mov rdx, qword [rsp + 0x40]
inc r9d
inc rsi
cmp r9d, ebp
jle 0x14002a8b4
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
imul r10d, eax
cmp r10d, 0xc000
cmovl r11d, r14d
mov eax, r11d
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14002b3d4
Capabilities:
Encode data using xor

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 r12
sub rsp, 0xa0
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x90], rax
and dword [rsp + 8], 0
and dword [rsp + 4], 0
and dword [rsp], 0
lea ebp, [r8 - 0x78]
xor r9d, r9d
lea rbx, [rdx + 2]
lea r8, [rsp]
cmp r9d, ebp
jge 0x14002b4a3
mov r10d, dword [r8]
mov ecx, ebp
mov eax, 0x88888889
sub ecx, r9d
lea r12, [rsp + 0x10]
mov rdi, rbx
dec ecx
mul ecx
shr edx, 0xa
lea esi, [rdx + 1]
xor edx, edx
mov r11, rdi
mov cl, byte [r11 - 1]
mov al, byte [r11 - 2]
add rdx, 3
sub al, cl
mov byte [rsp + rdx + 0xe], cl
mov byte [rsp + rdx + 0xd], al
mov al, byte [r11]
add r11, 3
sub al, cl
cmp rdx, 0x78
mov byte [rsp + rdx + 0xf], al
jl 0x14002b448
mov ecx, 3
mov al, byte [rsp + rcx + 0x10]
inc rcx
sub al, byte [r12 + rcx - 4]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add r10d, eax
cmp rcx, 0x78
jl 0x14002b476
add rdi, 0x780
sub rsi, 1
jne 0x14002b443
mov dword [r8], r10d
inc r9d
add r8, 4
inc rbx
cmp r9d, 2
jle 0x14002b41f
mov eax, dword [rsp]
mov ecx, dword [rsp + 4]
cmp eax, ecx
ja 0x14002b4cc
cmp eax, dword [rsp + 8]
ja 0x14002b4cc
xor eax, eax
jmp 0x14002b4d6
cmp dword [rsp + 8], ecx
sbb eax, eax
neg eax
inc eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140054e00
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140030a68
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x58]
mov sil, r8b
mov rbp, rdx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor r12d, r12d
lea r8, [rsp + 0x40]
lea edx, [r12 + 0x1a]
xor ecx, ecx
mov word [rbx], r12w
mov dil, r12b
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, r12d
jne 0x140030b0e
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, r12d
je 0x140030b0e
cmp word [rbx], r12w
je 0x140030b0e
mov rdx, rbp
mov rcx, rbx
call fcn.140030990
lea rdx, [0x140067558]
mov r8, rbp
mov rcx, rbx
call fcn.140045560
mov rcx, rbx
call fcn.14002176c
mov dil, al
cmp al, r12b
jne 0x140030b0e
cmp sil, r12b
je 0x140030b0e
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140021ad4
cmp eax, r12d
sete dil
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov al, dil
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140031194
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rdx
lea rax, [rsp + 0x30]
mov sil, r8b
mov rbx, rcx
mov word [rcx], bp
lea r9d, [rbp + 1]
lea rdx, str.SoftwareWinRARPaths
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x14003120f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.AppData
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], bp
je 0x140031221
mov rcx, rbx
call fcn.14002176c
cmp al, bpl
jne 0x14003124a
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.140030a68
cmp al, bpl
jne 0x14003124a
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140031160
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140031844
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1030
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor r14d, r14d
mov r12, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x140031a7a
call fcn.140030d60
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.1400316f8
cmp al, r14b
je 0x140031967
mov rcx, rbx
call fcn.140030d60
cmp al, r14b
je 0x1400318f6
lea rax, [r13 + 4]
cmp r12, rax
jbe 0x140031a7a
lea r8d, [r14 + 4]
lea rdx, [0x1400675e8]
mov rcx, rsi
call fcn.1400566e4
sub rsi, rbx
movzx ecx, word [rbx]
add rbx, 2
mov word [rsi + rbx + 6], cx
cmp cx, r14w
jne 0x1400318dd
mov al, 1
jmp 0x140031a7c
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x140031a7a
add rbx, 2
cmp word [rbx], bp
jne 0x140031a7a
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140031a7a
lea r8d, [rbp - 0x58]
lea rdx, [0x1400675e8]
mov rcx, rsi
call fcn.1400566e4
lea rdx, [0x1400675e0]
mov rcx, rsi
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x14003193e
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xc], ax
cmp ax, r14w
jne 0x140031953
jmp 0x1400318ef
mov edi, 0x7ff
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r14d
je 0x140031a7a
cmp eax, edi
ja 0x140031a7a
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x140031a2e
cmp eax, 0x2f
je 0x140031a2e
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.140030990
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx + r13 + 3]
cmp r12, rax
jbe 0x140031a7a
lea r8d, [rbp - 0x58]
lea rdx, [0x1400675e8]
mov rcx, rsi
call fcn.1400566e4
lea rax, [rsp + 0x20]
mov rcx, rsi
sub rcx, rax
lea rdx, [rsp + 0x20]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x1400319f2
cmp word [rbx], 0x2e
jne 0x140031a1b
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140031a17
cmp eax, 0x2f
jne 0x140031a1b
add rbx, 4
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140045560
jmp 0x1400318ef
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140031a7a
lea rdx, [0x1400675e8]
mov r8d, 4
mov rcx, rsi
call fcn.1400566e4
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400566e4
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xa], ax
cmp ax, r14w
jne 0x140031a63
jmp 0x1400318ef
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140054e00
add rsp, 0x1030
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003569c
Capabilities:
Encode data using xor

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 r12
sub rsp, 0x20
and dword [rcx + 4], 0
and dword [rcx], 0
mov eax, 0x8000
cmp r8d, eax
mov r12, rcx
mov rcx, qword [rcx + 0x10]
cmovb eax, r8d
mov ebp, r8d
mov rbx, r9
mov r8d, eax
mov rsi, rdx
call fcn.140054fe0
xor dil, dil
cmp ebp, 1
jbe 0x1400356fb
lea rcx, [rsi + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x1400356ef
mov edx, 8
mov rcx, r12
call fcn.1400239e8
and dword [rbx + 0x28], 0
cmp dil, byte [rsi]
jne 0x14003576d
mov r8d, ebp
mov rdx, rsi
mov rcx, r12
call fcn.140035558
mov edi, eax
test eax, eax
je 0x14003576d
mov edx, 1
mov rcx, rbx
call fcn.1400355fc
movsxd rcx, dword [rbx + 0x28]
mov rdx, rcx
inc ecx
mov dword [rbx + 0x28], ecx
imul rdx, rdx, 0x38
add rdx, qword [rbx]
lea rax, [rdx + 0xc]
mov dword [rdx], 0x28
mov dword [rax], edi
mov qword [rdx + 0x18], rax
lea rax, [rdx + 0x24]
mov qword [rdx + 0x30], rax
mov eax, 3
mov dword [rdx + 0x20], eax
mov dword [rdx + 8], eax
jmp 0x1400357ed
mov edx, 1
mov rcx, rbx
call fcn.1400355fc
movsxd rax, dword [rbx + 0x28]
xor r8d, r8d
mov rcx, rax
inc eax
mov dword [rbx + 0x28], eax
imul rcx, rcx, 0x38
add rcx, qword [rbx]
lea rax, [rcx + 0xc]
mov dword [rcx], 0x16
mov qword [rcx + 0x18], rax
lea rax, [rcx + 0x24]
mov qword [rcx + 0x30], rax
mov eax, 3
mov dword [rcx + 0x20], eax
mov dword [rcx + 8], eax
cmp dword [rbx + 0x28], r8d
jle 0x1400357ed
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x1400357ce
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x1400357e0
lea rax, [rcx + rdx + 0x24]
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x1400357b9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14003add4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbx, r9d
mov r12, r8
mov rdi, rdx
mov rbp, rcx
lea rsi, [0x140086bd0]
lea r13, [0x1400863d0]
cmp ebx, dword [0x1400863cc]
je 0x14003ae5f
mov rcx, rsi
call fcn.1400177e8
xor r11d, r11d
mov r9, r13
mov r8d, 0x100
movzx eax, r11b
mov rdx, qword [rsi + rax*8]
test ebx, ebx
je 0x14003ae49
mov r10d, ebx
mov rax, rdx
movzx ecx, dl
mov rdx, qword [rsi + rcx*8]
shr rax, 8
xor rdx, rax
sub r10, 1
jne 0x14003ae32
mov qword [r9], rdx
inc r11
add r9, 8
sub r8, 1
jne 0x14003ae23
mov dword [0x1400863cc], ebx
or rsi, 0xffffffffffffffff
cmp qword [rbp + 0x10078], 0
jne 0x14003ae7e
mov ecx, 0x400001
call fcn.140054c7c
mov qword [rbp + 0x10078], rax
mov r15, qword [rbp + 0x10078]
cmp rdi, r12
jae 0x14003af98
mov r13, qword [rsp + 0x80]
mov r14d, 0x400000
cmp rsi, 0xffffffffffffffff
jne 0x14003af98
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x20]
mov r8, r12
mov rax, qword [rcx]
sub r8, rdi
mov rdx, r15
cmp r8, r14
cmova r8, r14
call qword [rax + 0x10]
cmp eax, ebx
mov r14d, eax
mov dword [rsp + 0x78], eax
jl 0x14003af98
mov r8d, ebx
mov rdx, r15
xor ecx, ecx
mov r12d, ebx
call fcn.1400178b4
xor edx, edx
xor r8d, r8d
lea r9, [0x140086bd0]
lea r10, [0x1400863d0]
mov r11, rax
sub r14d, ebx
cmp r11, qword [r13 + 0x60]
je 0x14003af43
lea rcx, [r8 + rbx]
inc edx
movzx eax, byte [rcx + r15]
xor rax, r11
movzx ecx, al
movzx eax, byte [r8 + r15]
inc r8
mov rcx, qword [r9 + rcx*8]
xor rcx, qword [r10 + rax*8]
mov rax, r11
shr rax, 8
mov r11, rcx
xor r11, rax
cmp edx, r14d
jbe 0x14003af08
jmp 0x14003af78
mov rcx, qword [r13 + 0x30]
mov esi, edx
mov r8, r12
add rdx, r15
call fcn.140054fe0
mov r11d, dword [rbp + 0x100b0]
cmp ebx, r11d
jae 0x14003af75
mov rax, qword [r13 + 0x30]
sub r11d, ebx
xor edx, edx
lea rcx, [r12 + rax]
mov r8d, r11d
call fcn.140055c00
add rsi, rdi
cmp dword [rsp + 0x78], ebx
je 0x14003af98
mov r12, qword [rsp + 0x70]
mov ecx, r14d
mov r14d, 0x400000
add rdi, rcx
cmp rdi, r12
jb 0x14003ae9c
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003f77c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x2060
call fcn.140062a30
sub rsp, rax
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, rcx
je 0x14003f7bb
mov rdx, rcx
mov rcx, rbx
call fcn.140045524
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareWinRARGeneral
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r12d, r12d
cmp eax, r12d
jne 0x14003f8b3
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, 0x7ff
lea r9, [rsp + 0x40]
not rcx
lea rdx, [0x140067ef8]
xor r8d, r8d
dec rcx
sub eax, ecx
mov rcx, qword [rsp + 0x38]
add eax, eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1050]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x14003f8a8
mov edi, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1050]
mov r8d, edi
mov word [rsp + 0x50], r12w
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.140030990
mov rcx, rsi
call fcn.140030e54
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rax
call fcn.140045560
lea rcx, [rsp + 0x50]
call fcn.14002176c
cmp al, r12b
je 0x14003f8a8
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rbx
call fcn.140045524
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140054e00
add rsp, 0x2060
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret