joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bfc0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47c12a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x47bfd8
cmp edx, ecx
jne 0x47c118
nop dword [rax]
test rsi, rsi
jne 0x47c118
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x47c034
nop
call fcn.0049a380
xorps xmm15, xmm15
mov r14, qword [0x005d5088]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.0047bec0
mov rcx, qword [0x00582178]
mov rdx, qword [0x00582170]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x47c113
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x47c108
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00582b70]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00582b70], rbx
nop
mov edx, 1
lea rsi, [0x00582b78]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x47c0f7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004d8811]
mov ebx, 0x28
call fcn.0046d980
mov rcx, rax
mov rax, rsi
call fcn.00498500
call fcn.0046bfa0
lea rax, [0x004d7e94]
mov ebx, 0x23
call fcn.0046d980
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00495e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047bfc0
Function at 0x487780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4878f8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x4877bc
test r8b, r8b
jne 0x4877bc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x4877cf
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4878b8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x4878a6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x48789c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x487823
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x487866
mov eax, 1
cmp rax, rbx
ja 0x487855
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.004985c0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x487894
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x48785d
mov r8d, eax
mov eax, r10d
jmp 0x487828
mov rcx, rbx
call fcn.00498500
xor eax, eax
mov rcx, rax
call fcn.00498500
mov eax, r8d
mov rcx, rbx
call fcn.004985c0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4878ee
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x4878b1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4877d5
mov eax, edx
mov rcx, rbx
call fcn.00498500
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00498500
nop
int3
Function at 0x48f100
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48f1b9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x0048f200]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00495d40
xorps xmm15, xmm15
mov r14, qword [0x005d5088]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00495e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0048f100
Function at 0x497f80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005d5140]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005d4e6f], 0
je 0x497fb6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005d54e0]
aesenc xmm0, xmmword [0x005d54f0]
aesenc xmm0, xmmword [0x005d5500]
movq rax, xmm0
ret
jmp 0x445b80

Function at 0x499ea0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle_1]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005d5460]
mov qword [rsp + 8], rdx
lea r8d, [0x005d4e88]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile_1]
call rax
call fcn.00497e60
add rsp, 0x30
ret

Function at 0x49a3e0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x49a40c
call fcn.00497e60
shl rcx, 3
add rcx, 0x1480
mov qword [0x005d5088], rcx
ret
Function at 0xa03058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a031df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xa03089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa0306f
add dl, dl
jne 0xa03096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa030f6
xor eax, eax
add dl, dl
jne 0xa030a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa031ad
add dl, dl
jne 0xa030b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa030c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa030d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa030dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xa030ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xa0307e
mov eax, 1
add dl, dl
jne 0xa03106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa03113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa030fb
sub eax, ebx
mov ebx, 1
jne 0xa0314c
mov ecx, 1
add dl, dl
jne 0xa0312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa03123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa0307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa03168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa03175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa0315d
cmp eax, 0x7d00
jae 0xa0319b
cmp eax, 0x500
jb 0xa03196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa0307e
cmp eax, 0x7f
ja 0xa0319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa0307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xa031d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xa0307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001250
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea r8d, [rax + 0x68]
call fcn.140003df0
mov dword [rsp + 0x80], 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor ebx, ebx
mov dword [rsp + 0xbc], 0x100
mov qword [rsp + 0xe0], rax
lea r8, str.test
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, str.test
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea r9d, [rbx + 2]
mov qword [rsp + 0x40], rbx
lea rax, str.cmd.exe
mov qword [rsp + 0x38], rbx
lea rcx, str.test
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1400013d9
mov qword [rsp + 0x110], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x78]
mov dword [rsp + 0x30], 2
lea edx, [rbx + 4]
mov r8, rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
mov edx, 1
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400013c0
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400028e0
add rsp, 0x100
pop rbx
ret
mov edx, edi
lea rcx, str.Error_duplicating_handle__d_n
call fcn.1400011f0
mov ecx, 1
call fcn.140004aa8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:__d_n
call fcn.1400011f0
mov ecx, 1
call fcn.140004aa8
int3
Function at 0x140001400
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtImpersonateThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [rsp + 0x20]
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x34], 2
mov dword [rsp + 0x30], 0xc
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rdx, rcx
call rbx
mov rcx, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
jne 0x1400014b7
lea r9, [rsp + 0x28]
xor r8d, r8d
lea edx, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1400014d6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400028e0
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, ebx
lea rcx, str.Error_impersonating_thread__08X_n
call fcn.1400011f0
mov ecx, 1
call fcn.140004aa8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_opening_thread_token:__d_n
call fcn.1400011f0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 1
call fcn.140004aa8
int3
Function at 0x14000309c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000312d
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14000312d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000312d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140003111
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000310b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140003113
add rdx, 0x28
jmp 0x1400030f0
xor edx, edx
test rdx, rdx
jne 0x14000311c
xor al, al
jmp 0x140003133
test dword [rdx + 0x24], 0x80000000
je 0x140003129
xor al, al
jmp 0x140003133
mov al, 1
jmp 0x140003133
xor al, al
jmp 0x140003133
add rsp, 0x18
ret

Function at 0x140004aa8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000487c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000487c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000487c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000487c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000487c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000487c
cmp dword [rcx + 0xf8], esi
je 0x14000487c
mov ecx, r14d
call fcn.1400049c4
mov ecx, 2
call fcn.140007c84
nop
cmp byte [0x140021230], 0
jne 0x140004946
mov r15d, 1
mov eax, r15d
xchg dword [0x140021220], eax
test ebx, ebx
jne 0x1400048ef
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140021228]
cmp rcx, rax
je 0x1400048e6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400032bc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400213d8]
jmp 0x1400048fb
cmp ebx, r15d
jne 0x140004901
lea rcx, [0x1400213f0]
call fcn.1400074e0
nop
test ebx, ebx
jne 0x140004918
lea rdx, [0x140015328]
lea rcx, [0x140015308]
call fcn.140006ee0
lea rdx, [0x140015338]
lea rcx, [0x140015330]
call fcn.140006ee0
movzx eax, byte [0x140021230]
test esi, esi
cmove eax, r15d
mov byte [0x140021230], al
jmp 0x140004946
mov ecx, 2
call fcn.140007cd8
test esi, esi
jne 0x14000495d
mov ecx, r14d
call fcn.140004978
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000480c
Function at 0x14000bb60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14002b190]
test rax, rax
je 0x14000bbaa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bbaa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bbaa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bbaa
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bbaa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bbac
xor al, al
add rsp, 0x28
ret

Function at 0x14001a26c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a068
Function at 0x140001070
Capabilities:
Persist via appcertdlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x120
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov eax, dword [0x1400022f0]
lea rdx, [rsp + 0x60]
movups xmm0, xmmword [str.SystemCurrentControlSetControlSession_ManagerAppCertDlls]
mov dword [rsp + 0x98], eax
xor ebx, ebx
movzx eax, byte [0x1400022f4]
xor r9d, r9d
movups xmm1, xmmword [0x1400022c8]
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov byte [rsp + 0x9c], al
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x30], rbx
movups xmm0, xmmword [0x1400022d8]
mov dword [rsp + 0x28], 0x20006
movups xmmword [rsp + 0x70], xmm1
mov dword [rsp + 0x20], ebx
movsd xmm1, qword [0x1400022e8]
movups xmmword [rsp + 0x80], xmm0
movsd qword [rsp + 0x90], xmm1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140001130
lea rcx, str.Open_Key_Failed...._n
call fcn.140001010
lea eax, [rbx - 1]
jmp 0x1400011fc
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x5c]
xorps xmm0, xmm0
mov dword [rsp + 0x58], 0x64
xor eax, eax
movaps xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x100], eax
lea rdx, str.Default
lea rax, [rsp + 0x58]
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0xa0]
movaps xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x20], rax
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm0
mov dword [rsp + 0x5c], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
lea rax, str.C:Users_adminDesktopinject_test_api_add_user_dll.dll
mov dword [rsp + 0x28], 0x38
lea rdx, str.Default
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400011ef
lea rcx, str.Set_Key_Failed...._n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400011fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140001230
add rsp, 0x120
pop rbx
ret

Function at 0x140001b04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b50
xor al, al
add rsp, 0x28
ret
Function at 0x140005ab0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140042060]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005b84
cmp byte [rcx + 0x72], 0
je 0x140005b84
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140005b80
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140005b46
sub eax, 1
je 0x140005b4a
cmp eax, 2
jne 0x140005b80
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000aa10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005b77
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140013608
cmp rdi, rax
jne 0x140005b80
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140005b2e
xor al, al
jmp 0x140005b2e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000aa10
add rsp, 0x60
pop rbx
ret

Function at 0x140018ae0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001890c
Function at 0x14001ec04
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14001e92a
call fcn.14001417c
mov dword [rax], 0x16
call fcn.140010afc
jmp 0x14001ea75
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001ea75
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001ea75
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001e959
lock or dword [rcx + 0x14], 0x10
jmp 0x14001ea75
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001e96d
call fcn.14001d950
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14001e97d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14001e980
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14001cd10
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140026f0c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14001ea63
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14001ea11
mov rcx, rbx
call fcn.14001cd10
cmp eax, 0xffffffff
je 0x14001e9fc
mov rcx, rbx
call fcn.14001cd10
cmp eax, 0xfffffffe
je 0x14001e9fc
mov rcx, rbx
call fcn.14001cd10
movsxd rdi, eax
lea r14, [0x140043f30]
mov rcx, rbx
sar rdi, 6
call fcn.14001cd10
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14001ea03
lea rdx, [0x1400422a0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001ea11
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14001ea35
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14001ea35
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14001ea35
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14001ea53
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14001ea5e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14001ea7a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14001e8f4
Function at 0x140014cc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002f0a8]
test rcx, rcx
je 0x140014d0a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140014cfd
mov rcx, qword [0x14002f0a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002f0a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400318c0], 1
jne 0x140014dcf
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
lea rsi, [0x14002f0c0]
mov qword [rsp + 0x30], rsi
lea rbx, [0x140026212]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rsi
call r15
cmp eax, 0xffffffff
je 0x140014dcf
and eax, 0x10
je 0x140014dcf
mov ecx, 0x64
call r12
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
mov rcx, r14
call rdi
add ebp, 0xffffffff
jne 0x140014d80
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret