joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010920
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push rdi
sub rsp, 0x20
movzx r9d, byte [rcx + 8]
mov rax, qword [rcx]
mov rsi, rcx
lea rcx, [r9 + rax - 4]
mov rdi, r8
mov r9d, 4
mov rbx, rdx
lea r8, [rsp + 0x58]
mov edx, r9d
call fcn.14001953c
mov edx, 1
mov ecx, 0x100
call fcn.1400194f8
mov r11, rax
test rax, rax
jne 0x140010974
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x48], r12
mov eax, r9d
mov qword [rsp + 0x50], r13
nop dword [rax]
mov byte [rax + r11], al
inc rax
cmp rax, 0x100
jne 0x140010990
movzx r12d, byte [rsi + 8]
mov r13, qword [rsi]
mov r10, r11
neg r10
mov rbp, r9
mov rsi, r11
nop word [rax + rax]
movzx r8d, byte [rsi]
lea rax, [r10 + rsi]
xor edx, edx
div r12
inc rsi
movzx ecx, byte [rdx + r13]
add rcx, rbp
add rcx, r8
movzx ebp, cl
movzx eax, byte [r11 + rbp]
mov byte [rsi - 1], al
lea rax, [r10 + rsi]
mov byte [r11 + rbp], r8b
cmp rax, 0x100
jne 0x1400109c0
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rdx, r9
test rdi, rdi
je 0x140010a5d
nop dword [rax]
lea rax, [rdx + 1]
movzx edx, al
movzx ecx, byte [rdx + r11]
lea rax, [r9 + rcx]
movzx r9d, al
movzx eax, byte [r9 + r11]
mov byte [r9 + r11], cl
mov byte [rdx + r11], al
movzx ecx, byte [r9 + r11]
add ecx, eax
and ecx, 0x800000ff
jge 0x140010a4a
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
inc rbx
movzx ecx, byte [rax + r11]
xor byte [rbx - 1], cl
dec rdi
jne 0x140010a10
mov rcx, r11
call fcn.140018b3c
mov al, 1
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140010d80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov rbp, r9
mov rsi, r8
mov rbx, rdx
jb 0x140010da0
mov rcx, qword [rdx]
jmp 0x140010da3
mov rcx, rdx
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea edx, [r12 + 0x23]
lea r8d, [r12 + 2]
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140010dfd
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
jne 0x140010e10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 8
jb 0x140010e0c
mov rcx, qword [rbx]
call fcn.1400187b4
xor al, al
jmp 0x140010e27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 8
jb 0x140010e25
mov rcx, qword [rbx]
call fcn.1400187b4
mov al, 1
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015120
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x776c6853
mov dword [rbp - 0x3c], 0x2e697061
mov dword [rbp - 0x38], 0x6c6c64
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x140015179
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140015268
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r12
mov dword [rbp - 0x30], 0x65444853
mov dword [rbp - 0x2c], 0x6574656c
mov dword [rbp - 0x28], 0x5779654b
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov dword [rbp - 0x20], 0x68746150
mov r12, rax
mov dword [rbp - 0x1c], 0x656c6946
mov dword [rbp - 0x18], 0x73697845
mov dword [rbp - 0x14], 0x577374
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r12, r12
je 0x140015258
test rax, rax
je 0x140015258
lea rdx, [rdi + 0x70]
cmp qword [rdx + 0x18], 8
jb 0x1400151f6
mov rdx, qword [rdx]
mov rcx, 0xffffffff80000003
call r12
cmp qword [rdi + 0x28], 8
lea rbx, [rdi + 0x10]
jb 0x140015210
mov rcx, qword [rbx]
jmp 0x140015213
mov rcx, rbx
call rsi
test eax, eax
je 0x14001522c
cmp qword [rbx + 0x18], 8
jb 0x140015223
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rdi + 0x50], 8
lea rbx, [rdi + 0x38]
jb 0x14001523c
mov rcx, qword [rbx]
jmp 0x14001523f
mov rcx, rbx
call rsi
test eax, eax
je 0x140015258
cmp qword [rbx + 0x18], 8
jb 0x14001524f
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rsi, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400194d0
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x140015340
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r8
mov rbx, rdx
xor dil, dil
xor r12d, r12d
mov rcx, rbx
call fcn.140003250
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400153c8
lea ecx, [rax - 0xc]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc dil
cmp dil, 5
jb 0x140015377
cmp rsi, 0xffffffffffffffff
jne 0x1400153f2
cmp qword [rbx + 0x18], 8
jb 0x1400153dd
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
jmp 0x1400154fe
mov dword [rsp + 0x40], r12d
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbp]
mov rdx, qword [rcx + 8]
mov dword [rsp + 0x44], edx
mov ecx, edx
add rcx, 4
mov eax, eax
cmp rax, rcx
jne 0x140015435
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
cmp dword [rsp + 0x40], 4
je 0x140015485
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbx + 0x18], 8
jb 0x140015473
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
jmp 0x1400154fe
mov rax, qword [rbp]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rsp + 0x40]
mov rcx, rsi
cmp dword [rsp + 0x44], r11d
je 0x1400154d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbx + 0x18], 8
jb 0x1400154c6
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
jmp 0x1400154fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbx + 0x18], 8
jb 0x1400154ee
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
mov rdi, qword [rbp + 8]
test rdi, rdi
je 0x140015524
lock dec dword [rdi + 8]
jne 0x140015524
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock dec dword [rdi + 0xc]
jne 0x140015524
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400194d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140015550
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r13
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rbx, rdx
mov qword [r11 - 0x28], rdx
cmp qword [rdx + 0x18], 8
jb 0x140015591
mov rcx, qword [rdx]
jmp 0x140015594
mov rcx, rdx
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400155ec
cmp qword [rbx + 0x18], 8
jb 0x1400155d5
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
xor eax, eax
jmp 0x140015742
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
sub rcx, qword [rsi]
cmp rcx, 5
mov rcx, rdi
jae 0x140015625
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 8
jb 0x140015617
mov rcx, qword [rbx]
jmp 0x14001561a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsi], r13
jmp 0x1400155c6
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
cmp eax, 0xffffffff
jne 0x140015646
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r13
jmp 0x1400155c6
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, 4
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x44], 4
je 0x140015681
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400155c6
add qword [rsi], 4
movsxd rcx, dword [rsp + 0x40]
mov edx, 1
call fcn.1400194f8
mov rbp, rax
mov rcx, rdi
test rax, rax
jne 0x1400156ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add qword [rsi], 0xfffffffffffffffc
jmp 0x1400155c6
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x40]
cmp r11d, dword [rsp + 0x44]
je 0x140015708
mov rcx, rbp
call fcn.140018b3c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 8
jb 0x1400156ef
mov rcx, qword [rbx]
jmp 0x1400156f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsi], r13
mov rcx, rbx
call fcn.140001840
jmp 0x1400155e5
add qword [rsi], r11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x10
call fcn.140018b7c
mov rdi, rax
test rax, rax
je 0x140015734
movsxd rax, dword [rsp + 0x40]
mov qword [rdi], rbp
mov qword [rdi + 8], rax
jmp 0x140015737
mov rdi, r13
mov rcx, rbx
call fcn.140001840
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400194d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x140016590
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x60], rdx
mov qword [r11 - 0x70], 7
xor ebp, ebp
mov qword [r11 - 0x78], rbp
mov word [rsp + 0x40], bp
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.140001b20
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400159f0
mov rbx, rax
test rax, rax
jne 0x140016618
cmp qword [rdi + 0x18], 8
jb 0x140016611
mov rcx, qword [rdi]
call fcn.1400187b4
xor eax, eax
jmp 0x1400166c9
mov word [rsp + 0x70], bp
xor eax, eax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], 4
mov r9d, esi
lea r8, [0x14002ca40]
lea edx, [rax + 0x18]
lea rcx, [rsp + 0x70]
call fcn.140019eac
lea r11, [rsp + 0x34]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
je 0x1400166ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140016602
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x30]
cmp qword [rdi + 0x18], 8
jb 0x1400166c7
mov rcx, qword [rdi]
call fcn.1400187b4
mov eax, ebx
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov word [rdi], bp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400194d0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016700
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x60], rdx
mov qword [r11 - 0x70], 7
xor ebp, ebp
mov qword [r11 - 0x78], rbp
mov word [rsp + 0x40], bp
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.140001b20
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400159f0
mov rbx, rax
test rax, rax
jne 0x140016797
cmp qword [rdi + 0x18], 8
jb 0x140016781
mov rcx, qword [rdi]
call fcn.1400187b4
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov word [rdi], bp
xor eax, eax
jmp 0x1400168af
mov word [rsp + 0x70], bp
xor eax, eax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
mov r9d, esi
lea r8, [0x14002ca40]
lea edx, [rax + 0x18]
lea rcx, [rsp + 0x70]
call fcn.140019eac
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001681c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140016772
mov ecx, dword [rsp + 0x30]
mov edx, 1
call fcn.1400194f8
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x140016841
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140016772
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
je 0x14001687c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140018b3c
nop
jmp 0x140016772
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
call fcn.140018b7c
mov rbx, rax
test rax, rax
je 0x1400168a1
mov eax, dword [rsp + 0x30]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
jmp 0x1400168a4
mov rbx, rbp
mov rcx, rdi
call fcn.140001840
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400194d0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016d50
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xb8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, r9d
mov rdi, r8
mov rbx, rcx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x58], 7
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov word [rsp + 0x40], bp
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140001b20
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400168e0
mov rbx, rax
test rax, rax
jne 0x140016ddd
cmp qword [rdi + 0x18], 8
jb 0x140016dd6
mov rcx, qword [rdi]
call fcn.1400187b4
xor al, al
jmp 0x140016e80
mov word [rsp + 0x70], bp
xor eax, eax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
mov r9d, esi
lea r8, [0x14002ca40]
lea edx, [rax + 0x18]
lea rcx, [rsp + 0x70]
call fcn.140019eac
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
test eax, eax
je 0x140016e68
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140016dc7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rdi + 0x18], 8
jb 0x140016e7e
mov rcx, qword [rdi]
call fcn.1400187b4
mov al, 1
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov word [rdi], bp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400194d0
add rsp, 0xb8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140016eb0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x48], 7
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140001b20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400168e0
mov rbx, rax
test rax, rax
jne 0x140016f40
cmp qword [rdi + 0x18], 8
jb 0x140016f39
mov rcx, qword [rdi]
call fcn.1400187b4
xor al, al
jmp 0x140016fe0
mov word [rsp + 0x68], r12w
xor eax, eax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov dword [rsp + 0x92], eax
mov word [rsp + 0x96], ax
mov r9d, ebp
lea r8, [0x14002ca40]
lea edx, [rax + 0x18]
lea rcx, [rsp + 0x68]
call fcn.140019eac
mov r11, qword [rsi + 8]
mov rax, qword [rsi]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
test eax, eax
je 0x140016fc8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140016f2a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rdi + 0x18], 8
jb 0x140016fde
mov rcx, qword [rdi]
call fcn.1400187b4
mov al, 1
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400194d0
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400179b0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r8, rdx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x1400179f0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x100
mov rdi, rdx
mov esi, 0x104
mov edx, 2
mov ecx, esi
mov rbp, r8
call fcn.1400194f8
mov r8d, esi
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140017a50
mov r8d, esi
xor edx, edx
mov rcx, rbx
call fcn.140018cd0
mov r8, rbp
mov edx, esi
mov rcx, rbx
call fcn.140019f58
jmp 0x140017a9a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdx, rsi
lea r8, [0x14002c120]
not rcx
dec rcx
sub rdx, rcx
mov rcx, rbx
call fcn.140019ed0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov r8, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
sub rsi, rcx
mov rcx, rbx
mov rdx, rsi
call fcn.140019ed0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140018cd0
xor ecx, ecx
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0xb8], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0xac], 0x101
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140017b67
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140018b3c
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [0x14002bed0]
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xe0]
mov r8d, 3
mov qword [rsp + 0x128], rax
call fcn.1400185b8
lea rdx, [0x1400360a0]
lea rcx, [rsp + 0xe0]
call fcn.140018c20
int3
Function at 0x14001c363
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003ae50]
jne 0x1400194ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400194e6
repz ret
ror rcx, 0x10
jmp 0x14001c2bc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003cff0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003d0e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001c341
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003cff0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001c363
mov rax, qword [rsp + 0x88]
mov qword [0x14003d0e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003d088], rax
mov rax, qword [0x14003d0e8]
mov qword [0x14003cf60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003d070], rax
mov dword [0x14003cf50], 0xc0000409
mov dword [0x14003cf54], 1
mov rax, qword [0x14003ae50]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003ae58]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003cfe8], eax
mov ecx, 1
call fcn.140021f94
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002d938]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003cfe8], 0
jne 0x14001c3ea
mov ecx, 1
call fcn.140021f94
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14001e5d8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001e448