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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rcx, r8
mov byte [rsp + 0x78], 0
mov r13, r8
mov r12, rdx
mov r14b, 1
call fcn.14000b610
mov dword [rsp + 0x20], 9
nop dword [rax]
mov r15, qword [rsp + 0x88]
xor ebp, ebp
mov rbx, r12
nop dword [rax]
movzx edi, byte [rbx]
mov r8, r15
movzx ecx, dil
mov rdx, r13
call fcn.14000b620
lea esi, [rbp + 1]
mov dl, 1
add sil, r14b
movzx ecx, dil
and sil, 3
call fcn.14000abf0
movzx ecx, al
mov dl, 1
movzx eax, sil
add cl, byte [rax + r12]
add cl, sil
call fcn.14000abf0
inc ebp
mov byte [rbx], al
lea rbx, [rbx + 1]
cmp ebp, 4
jl 0x140003bd0
mov rdx, r15
mov rcx, r13
call fcn.14000ac70
movzx edi, byte [rsp + 0x78]
movzx r14d, al
mov r15d, dword [rsp + 0x20]
add dil, al
dec r15d
mov byte [rsp + 0x78], dil
mov dword [rsp + 0x20], r15d
test r15d, r15d
jg 0x140003bc0
mov rax, qword [rsp + 0x70]
mov ecx, dword [r12]
mov rbx, qword [rsp + 0x80]
xor dword [rax], ecx
movzx eax, dil
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003e30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r11, r8
mov al, 0xf
test cl, cl
je 0x140003ef0
cmp dl, 2
jb 0x140003ef0
mov qword [rsp], rbx
movzx ebx, byte [r8]
cmp bl, 0x1f
jbe 0x140003e62
mov rbx, qword [rsp]
xor eax, eax
add rsp, 8
ret
mov r9d, 7
mov r10d, r9d
nop dword [rax + rax]
add al, al
movzx ecx, r10b
movzx edx, bl
shr dl, cl
and dl, 1
or dl, al
movzx r8d, dl
movzx eax, r8b
xor al, 0xd
test r8b, 0x10
movzx eax, al
cmove eax, r8d
and al, 0xf
sub r10d, 1
jns 0x140003e70
movzx r10d, byte [r11 + 1]
nop dword [rax]
nop word [rax + rax]
add al, al
movzx ecx, r9b
movzx edx, r10b
shr dl, cl
and dl, 1
or dl, al
movzx r8d, dl
movzx eax, r8b
xor al, 0xd
test r8b, 0x10
movzx eax, al
cmove eax, r8d
and al, 0xf
sub r9d, 1
jns 0x140003eb0
mov rbx, qword [rsp]
xor ecx, ecx
test al, al
sete cl
mov eax, ecx
add rsp, 8
ret
xor ecx, ecx
cmp byte [r8], al
setbe cl
mov eax, ecx
add rsp, 8
ret
Function at 0x140003f00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
movzx eax, byte [rcx + 6]
mov rbx, rcx
movzx r11d, byte [rcx + 7]
lea r8d, [rax + 6]
mov r9d, r8d
xor r9d, 0xba
test r8b, 1
cmovne r9d, r8d
shr r9d, 1
mov r10d, r9d
xor r10d, eax
lea edx, [r9 + r11]
test dl, 1
lea ecx, [rdx + 0x126]
cmovne ecx, edx
shr ecx, 1
movzx r9d, cl
xor byte [rbx], r9b
lea edx, [r9 + r10]
mov r8d, edx
xor r8d, 0xba
test dl, 1
cmovne r8d, edx
shr r8d, 1
xor r10d, r8d
lea edx, [r9 + r8]
test dl, 1
lea ecx, [rdx + 0x126]
cmovne ecx, edx
shr ecx, 1
movzx r9d, cl
xor byte [rbx + 1], r9b
lea edx, [r9 + r10]
mov r8d, edx
xor r8d, 0xba
test dl, 1
cmovne r8d, edx
shr r8d, 1
xor r10d, r8d
lea edx, [r9 + r8]
test dl, 1
lea ecx, [rdx + 0x126]
cmovne ecx, edx
shr ecx, 1
movzx r9d, cl
xor byte [rbx + 2], r9b
lea edx, [r9 + r10]
mov r8d, edx
xor r8d, 0xba
test dl, 1
cmovne r8d, edx
shr r8d, 1
xor r10d, r8d
lea edx, [r9 + r8]
test dl, 1
lea ecx, [rdx + 0x126]
cmovne ecx, edx
shr ecx, 1
movzx r8d, cl
xor byte [rbx + 3], r8b
lea edx, [r10 + r8]
mov r9d, edx
xor r9d, 0xba
test dl, 1
cmovne r9d, edx
shr r9d, 1
lea edx, [r8 + r9]
test dl, 1
lea ecx, [rdx + 0x126]
cmovne ecx, edx
xor r10d, r9d
shr ecx, 1
movzx r8d, cl
xor byte [rbx + 4], r8b
add r10d, r8d
mov ecx, r10d
xor ecx, 0xba
test r10b, 1
cmovne ecx, r10d
shr ecx, 1
add ecx, r8d
test cl, 1
lea edx, [rcx + 0x126]
cmovne edx, ecx
mov ecx, 6
shr edx, 1
mov r9d, ecx
xor byte [rbx + 5], dl
nop
movzx r8d, cl
add r8d, eax
mov edx, r8d
xor edx, 0xba
test r8b, 1
cmovne edx, r8d
shr edx, 1
movzx ecx, dl
xor eax, ecx
lea edx, [rcx + r11]
test dl, 1
lea ecx, [rdx + 0x126]
cmovne ecx, edx
shr ecx, 1
movzx r11d, cl
sub r9, 1
jne 0x140004050
movzx ecx, al
lea edx, [r11 + r11]
xor edx, 0xe4
shr edx, 1
mov r9d, edx
add edx, ecx
xor r9d, r11d
test dl, 1
lea eax, [rdx + 0x148]
cmovne eax, edx
shr eax, 1
movzx r8d, al
add byte [rbx + 5], r8b
movzx ecx, byte [rbx + 5]
add ecx, r9d
mov edx, ecx
xor edx, 0xe4
test cl, 1
cmovne edx, ecx
shr edx, 1
xor r9d, edx
lea ecx, [r8 + rdx]
test cl, 1
lea eax, [rcx + 0x148]
cmovne eax, ecx
shr eax, 1
movzx r8d, al
add byte [rbx + 4], r8b
movzx ecx, byte [rbx + 4]
add ecx, r9d
mov edx, ecx
xor edx, 0xe4
test cl, 1
cmovne edx, ecx
shr edx, 1
mov r10d, edx
xor r10d, r9d
lea ecx, [r8 + rdx]
test cl, 1
lea eax, [rcx + 0x148]
cmovne eax, ecx
shr eax, 1
movzx r8d, al
add byte [rbx + 3], r8b
movzx ecx, byte [rbx + 3]
add ecx, r10d
mov edx, ecx
xor edx, 0xe4
test cl, 1
cmovne edx, ecx
shr edx, 1
xor r10d, edx
lea ecx, [r8 + rdx]
test cl, 1
lea eax, [rcx + 0x148]
cmovne eax, ecx
shr eax, 1
movzx edx, al
add byte [rbx + 2], dl
movzx ecx, byte [rbx + 2]
add ecx, r10d
mov r9d, ecx
xor r9d, 0xe4
test cl, 1
cmovne r9d, ecx
shr r9d, 1
lea ecx, [rdx + r9]
test cl, 1
lea eax, [rcx + 0x148]
cmovne eax, ecx
xor r10d, r9d
shr eax, 1
movzx r8d, al
add byte [rbx + 1], r8b
movzx ecx, byte [rbx + 1]
add ecx, r10d
mov eax, ecx
xor eax, 0xe4
test cl, 1
cmovne eax, ecx
shr eax, 1
add eax, r8d
test al, 1
lea ecx, [rax + 0x148]
cmovne ecx, eax
shr ecx, 1
add byte [rbx], cl
mov rbx, qword [rsp + 8]
ret
Function at 0x1400041c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov esi, r9d
lea rcx, [rsp + 0x38]
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ecx, ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x30], ecx
xor r9d, r9d
mov dword [rsp + 0x20], ecx
lea r8d, [rcx + 2]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
je 0x1400042c0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400042c0
mov edx, eax
mov qword [rsp + 0x60], rbx
mov ecx, 1
mov r8d, 0x4d525356
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x14000425d
mov eax, 0xc000009a
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov eax, dword [rsp + 0x30]
mov r8d, 2
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x14000429f
mov edx, 0x4d525356
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x140004248
mov r8, rsi
lea rdx, [rbx + 0xc]
mov rcx, rbp
call fcn.140001820
mov edx, 0x4d525356
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140004248
mov rbp, qword [rsp + 0x68]
mov eax, 0xc0000034
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000aca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x10
mov eax, dword [rcx + 0x43c]
and eax, 0x1f0000
movzx edi, r8w
movzx ebx, dx
cmp eax, 0x1f0000
jne 0x14000ae7d
movzx r9d, word [rcx + 0x99]
movzx r10d, word [rcx + 0x95]
movzx eax, r9w
movzx r11d, word [rcx + 0x97]
shr ax, 0xc
mov byte [rsp + 0x20], al
movzx eax, r9w
shr ax, 8
and al, 0xf
mov byte [rsp + 0x21], al
movzx eax, r9b
and r9b, 0xf
shr al, 4
and al, 0xf
mov byte [rsp + 0x23], r9b
mov byte [rsp + 0x22], al
lea r9, [rsp]
xor r8d, r8d
nop word [rax + rax]
movzx ecx, r8w
lea r9, [r9 + 1]
movzx edx, r10w
movzx eax, r11w
shr dx, cl
inc r8w
and dl, 1
shr ax, cl
add dl, dl
and al, 1
or dl, al
mov byte [r9 - 1], dl
cmp r8w, 0x10
jb 0x14000ad20
movzx r10d, byte [rsp + 0xf]
movzx r8d, bx
shr r8w, 8
movzx edx, di
shr dx, 8
xor al, al
movzx ecx, dl
shl cl, 4
movzx r9d, cl
shl r9d, 4
movzx ecx, dl
and ecx, 0xfffffff0
or r9d, ecx
movzx ecx, dil
shl cl, 4
movzx edx, cl
movzx ecx, r8b
shl r9d, 4
or r9d, edx
shl cl, 4
movzx edx, cl
shl r9d, 8
or r9d, edx
movzx ecx, r8b
shl r9d, 4
mov r8d, 0xf
movzx edx, dil
and edx, 0xfffffff0
shl edx, 8
or edx, ecx
lea r11d, [r8 - 7]
and edx, 0xfffffff0
movzx ecx, bl
or r9d, edx
shr ecx, 4
shl r9d, 4
shl bl, 4
or r9d, ecx
movzx ecx, bl
or r9d, ecx
nop dword [rax]
movzx ecx, r10b
movzx edx, byte [rsp + rcx + 0x20]
movzx ecx, r9w
and cx, 0xf
shr r9d, 4
xor dx, cx
xor r8w, dx
movzx ecx, r8w
movzx r10d, byte [rsp + rcx]
movzx ecx, al
add cl, cl
movzx edx, r10b
and dl, 1
movzx eax, dl
or al, cl
sub r11, 1
jne 0x14000ade0
movzx r8d, al
movzx ecx, al
shr cl, 2
and r8b, 0x40
or r8b, cl
movzx edx, al
and dl, 2
shr r8b, 2
movzx ecx, al
and cl, 0x20
or r8b, cl
movzx ecx, al
and cl, 0x10
shr r8b, 2
or r8b, cl
movzx ecx, al
shl cl, 2
or dl, cl
shr r8b, 1
movzx ecx, al
shl dl, 2
and al, 8
and cl, 4
or dl, cl
shl dl, 2
or dl, al
lea eax, [rdx + rdx]
or al, r8b
not al
mov rbx, qword [rsp + 0x28]
add rsp, 0x10
pop rdi
ret
mov rbx, qword [rsp + 0x28]
mov al, 0xff
add rsp, 0x10
pop rdi
ret
Function at 0x140010b10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1a0
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rax, cr8
test al, al
je 0x140010b45
mov eax, 1
jmp 0x140010c3e
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call fcn.140001b70
lea rax, [rbx + 0x14f8]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0xa0]
lea rax, str.RegistryMACHINESystemCurrentControlSetMultiKeyDumps
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x100
lea rax, [0x1400010d8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
call fcn.140003570
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
mov qword [rsp + 0x70], 0
mov edx, 0x20006
mov dword [rsp + 0x80], 0x40
lea rcx, [rsp + 0x40]
movdqu xmmword [rsp + 0x88], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x140010c39
mov rdx, rbp
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov r9d, 3
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
shr ebx, 0x1f
mov eax, ebx
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400017b0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rax, qword [0x140024728]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rbx
mov byte [rcx], bl
xor r8d, r8d
lea rdx, [0x140020657]
call fcn.1400020e0
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x140001859
cmp byte [rsp + 0x50], al
je 0x140001849
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001840
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400020e0
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140003d50
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret

Function at 0x140001920
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140024728]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [r11 - 0x30], 0xf
mov qword [r11 - 0x38], r14
mov byte [r11 - 0x48], r14b
xor r8d, r8d
lea rdx, [0x140020657]
lea rcx, [r11 - 0x48]
call fcn.1400020e0
nop
cmp qword [rbx + 0x18], 0x10
jb 0x140001986
mov rbx, qword [rbx]
lea rdx, [0x1400206c4]
mov rcx, rbx
call fcn.140004f58
mov rbp, rax
test rax, rax
jne 0x1400019d9
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r14
mov byte [rsi], al
xor r8d, r8d
lea rdx, [0x140020657]
mov rcx, rsi
call fcn.1400020e0
nop
cmp qword [rsp + 0x48], 0x10
jb 0x140001a92
mov rcx, qword [rsp + 0x30]
call fcn.140005280
jmp 0x140001a92
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call fcn.1400057a0
mov rcx, rbp
call fcn.14000569c
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1400057a0
lea rcx, [rbx + 1]
call fcn.140004694
mov rdi, rax
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140005184
mov rbx, rax
mov rcx, rbp
call fcn.1400058ec
mov byte [rbx + rdi], 0
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400020e0
mov rcx, rdi
call fcn.140004654
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r14
mov byte [rsi], 0
mov rcx, qword [rsp + 0x48]
cmp rcx, 0x10
jae 0x140001a7d
mov r8, qword [rsp + 0x40]
inc r8
je 0x140001a85
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140003f20
mov rcx, qword [rsp + 0x48]
jmp 0x140001a85
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003d50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140001d80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1080
call fcn.14000f8b0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x10a8], rbx
mov rax, qword [0x140024728]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rbx
xor ebp, ebp
mov dword [rsp + 0x38], ebp
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rbp
mov byte [rcx], bpl
xor r8d, r8d
lea rdx, [0x140020657]
call fcn.1400020e0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x40], rbp
mov byte [rsp + 0x70], bpl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x71]
call fcn.1400064d0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x1000
cmp qword [rdi + 0x18], 0x10
jb 0x140001e30
mov rdx, qword [rdi]
jmp 0x140001e33
mov rdx, rdi
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140001ec3
cmp qword [rbx + 0x18], 0x10
jb 0x140001e55
mov rdx, qword [rbx]
jmp 0x140001e58
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001eb7
cmp byte [rsp + 0x70], al
jne 0x140001e8e
mov r8, rbp
jmp 0x140001eaa
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140001ea0
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400020e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rdi + 0x18], 0x10
jb 0x140001ed2
mov rcx, qword [rdi]
call fcn.140005280
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbp
mov byte [rdi], 0
cmp qword [rbx + 0x18], 0x10
jb 0x140001ef0
mov rcx, qword [rbx]
call fcn.140005280
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rbp
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.140003d50
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1080
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001f30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r14d, dword [r9 + 0x10]
xor r15d, r15d
mov rbx, r9
inc r14d
cmp qword [rdx + 0x18], 0x10
mov rdi, r8
mov rsi, rdx
mov ebp, r15d
jb 0x140001f60
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001fe8
cmp qword [rbx + 0x18], 0x10
jb 0x140001fa4
mov rax, qword [rbx]
jmp 0x140001fa7
mov rax, rbx
cmp qword [rdi + 0x18], 0x10
jb 0x140001fb3
mov rdx, qword [rdi]
jmp 0x140001fb6
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], r14d
mov r14d, 1
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebp, r14d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsi + 0x18], 0x10
jb 0x140001ff7
mov rcx, qword [rsi]
call fcn.140005280
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r15
mov byte [rsi], r15b
cmp qword [rdi + 0x18], 0x10
jb 0x140002015
mov rcx, qword [rdi]
call fcn.140005280
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r15
mov byte [rdi], r15b
cmp qword [rbx + 0x18], 0x10
jb 0x140002033
mov rcx, qword [rbx]
call fcn.140005280
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r15
mov byte [rbx], r15b
mov rbx, qword [rsp + 0x90]
mov eax, ebp
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005eec
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005d54
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001b290]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001b2a0]
mov dword [rax], 1
mov rax, qword [0x14001b2b0]
mov dword [rax], 1
mov rax, qword [0x14001b210]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14001b280]
mov dword [0x14001e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001b360]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001b340]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001b1f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400118b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140011920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001e2e4]
mov rbx, rcx
test esi, esi
jle 0x140011a50
mov rax, qword [0x14001e2e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001196b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400119f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140011950
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140011a72
mov rax, qword [0x14001e2e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001e2e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140011a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400119ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140011a00
add dword [0x14001e2e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001e2e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400119ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140011978
mov rax, qword [0x14001e2e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140012000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001e340]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e320]
test rbx, rbx
je 0x14001205c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140012053
test eax, eax
jne 0x140012053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140012038
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]