joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bdb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1401e0970]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14001bde8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14001be50
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14001be60
mov esi, dword [0x1401e6c98]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14001bed0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14001bf18
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14001bdd7
mov rcx, rbx
call fcn.14001bcb0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14001bdd7
call fcn.14001bcb0
mov qword [rbx + 0x10], rax
jmp 0x14001bdd7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14001bf7a
mov r9d, dword [0x140022680]
test r9d, r9d
je 0x14001bfa8
lock add dword [0x1401e6ca0], 1
jne 0x14001bfdc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14001bf87
mov eax, dword [rsi]
test eax, eax
je 0x14001bdf1
lock sub dword [0x1401e6ca0], 1
js 0x14001bdf1
mov rcx, qword [0x1401e6ca8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14001bdf1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x14001c003
mov qword [rax], rdi
mov ecx, dword [0x1401e6c98]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001be2b
call r13
jmp 0x14001be2b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x14001c003
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14001bef3
call fcn.14001bd50
mov dword [0x140022680], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14001be7c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14001bdf1
mov rax, qword [0x1401e6c90]
lea r12, [rax + 1]
mov qword [0x1401e6c90], r12
mov qword [rbx + 0x10], r12
jmp 0x14001be97
lock add dword [0x140022684], 1
je 0x14001bf61
mov r8d, dword [0x140022680]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140022680]
test r8d, r8d
jne 0x14001bf70
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14001bfd0
jmp 0x14001bf70
mov rcx, qword [0x1401e6ca8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001be8a
lock sub dword [0x1401e6ca0], 1
jmp 0x14001be8a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14001c020
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001c02a
mov qword [rcx + 8], r8
test r9, r9
je 0x14001c034
cmp qword [rcx], rdx
je 0x14001c038
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140004170
Capabilities:
Read file on windows

Disassembly:
jmp 0x140617ec4
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 0x140617efa
call fcn.14000ae60
mov dword [rax], 0x16
call fcn.14008a4c8
jmp 0x14061804a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14061804a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14061804a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140617f29
lock or dword [rcx + 0x14], 0x10
jmp 0x14061804a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140617f3d
call fcn.1400a4a20
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140617f4d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140617f50
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14003defc
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140067804
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140618038
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140617fe3
mov rcx, rbx
call fcn.14003defc
cmp eax, 0xffffffff
je 0x140617fce
mov rcx, rbx
call fcn.14003defc
cmp eax, 0xfffffffe
je 0x140617fce
mov rcx, rbx
call fcn.14003defc
movsxd rdi, eax
lea rsi, [0x140970620]
mov rcx, rbx
sar rdi, 6
call fcn.14003defc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140617fd5
lea rdx, [0x140678ae0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140617fe3
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140618007
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140618007
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140618007
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140618025
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140618030
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14061804f
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
Function at 0x140021df8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140092854
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140092886
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140092869
mov rax, r8
ret
Function at 0x14002df6c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002dff3
mov rsi, rbx
cmp word [rax], bp
je 0x14002dfb2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002df9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002df98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004697c
mov rdi, rax
test rax, rax
je 0x14002dfe0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1405f7a20
mov rbp, rdi
xor ecx, ecx
call fcn.14008669c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002f6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x140652b00]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], di
mov qword [rbp + 0xa8], rdi
mov dword [rbp + 0x98], edi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x70]
call fcn.1405f80d0
mov dword [rbp + 0xa0], 0xfe
lea rdx, [rsp + 0x50]
lea ecx, [rdi + 0x13]
call fcn.14003f330
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0x14]
call fcn.14003f330
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f800
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x98]
xor r8d, r8d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002f7f2
cmp dword [rbp + 0x98], 1
jne 0x14002f7f2
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140020ba0
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14002f83e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f839
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f8a0
call fcn.14002bfb4
movdqa xmm0, xmmword [0x140652b00]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14002f88f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f88a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f89a
call fcn.14002bfb4
add rsp, 0x170
pop rdi
pop rbx
pop rbp
ret
call fcn.140012048
nop
call fcn.140012048
nop
int3
Function at 0x14004ccf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004cd18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004cd18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14004eca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov ebp, ecx
xor edi, edi
cmp qword [rdx + 0x18], 0x10
jb 0x14004ecd4
mov rbx, qword [rdx + 0x10]
mov rax, rbx
mov rcx, qword [rdx]
jmp 0x14004ecde
mov rax, qword [rdx + 0x10]
mov rbx, rax
mov rcx, r14
mov rdx, rdi
add rcx, rdx
sub rbx, rax
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call fcn.1405f7a20
mov qword [r14 + 0x10], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
cmp ebp, 0xa
ja case.default.0x14004ed25
lea rdx, [0x140000000]
mov ecx, dword [rdx + rbp*4 + 0x4ef10]
add rcx, rdx
jmp rcx
lea r8, [0x14096d478]
mov r9d, 0x18
jmp 0x14004edb2
lea r8, [0x14096d510]
jmp 0x14004edac
lea r8, [0x14096d530]
mov r9d, 0x18
jmp 0x14004edb2
lea r8, [0x14096d5a8]
jmp 0x14004edac
lea r8, [0x14096d588]
jmp 0x14004edac
lea r8, [0x14096d4a8]
jmp 0x14004edac
lea r8, [0x14096d548]
mov r9d, 0x28
jmp 0x14004edb2
lea r8, [0x14096d490]
mov r9d, 0x18
jmp 0x14004edb2
lea r8, [0x14096d570]
mov r9d, 0x18
jmp 0x14004edb2
lea r8, [0x14096d4c8]
mov r9d, 0x28
jmp 0x14004edb2
lea r8, [0x14096d4f0]
mov r9d, 0x20
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14006fef0
mov r9, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub r9, rbx
lea rcx, [r9 - 1]
test rcx, rcx
je 0x14004edee
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + rcx - 1]
sub byte [rbx + rcx], al
sub rcx, 1
jne 0x14004ede0
test r9, r9
je 0x14004ee7d
cmp r9, 0x40
jb 0x14004ee64
mov rcx, r9
and rcx, 0xffffffffffffffc0
movdqa xmm2, xmmword [0x140652ba0]
lea rax, [rbx + 0x20]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
add rdi, 0x40
lea rax, [rax + 0x40]
cmp rdi, rcx
jb 0x14004ee10
cmp rdi, r9
jae 0x14004ee7d
lea rax, [rbx + rdi]
mov rcx, r9
sub rcx, rdi
nop
xor byte [rax], 0xfa
lea rax, [rax + 1]
sub rcx, 1
jne 0x14004ee70
lea rdx, [rbx + 8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14004ee90
lea rax, [r9 - 8]
cmp r8, rax
jb 0x14004eea7
lea r8, [r9 - 9]
mov rcx, r14
call fcn.1400a92b0
mov rdi, qword [rsp + 0x30]
jmp 0x14004eeb9
mov rbx, rdi
test rbx, rbx
je 0x14004eeed
sub rdi, rbx
cmp rdi, 0x1000
jb 0x14004eee2
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14004ef08
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14002bfb4
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
call fcn.140012048
int3
Function at 0x140051d90
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x68
cmp dword [0x140971424], 0
jne 0x140051e4f
mov qword [rax + 0x20], rbx
xor ebx, ebx
mov qword [rax + 0x18], rbx
mov r9d, 0x220
mov qword [rax - 8], rdi
mov dl, 2
mov dword [rax + 0x10], 0
lea rcx, [rsp + 0x78]
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea edi, [rbx + 1]
test eax, eax
je 0x140051e3c
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140051e2e
mov eax, dword [0x140971420]
cmp dword [rsp + 0x70], ebx
cmovne eax, edi
mov dword [0x140971420], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rbx, qword [rsp + 0x88]
mov dword [0x140971424], edi
mov rdi, qword [rsp + 0x60]
mov eax, dword [0x140971420]
add rsp, 0x68
ret
Function at 0x140052050
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140069ec8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140069ec8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400521a0
cmp rax, 0xffffffffffffffff
je 0x1400521a0
xor edi, edi
test rbp, rbp
jle 0x14005214b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000bb80
mov rbx, rax
test rax, rax
jne 0x1400520d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140052141
mov edx, 0x8000
mov ecx, r14d
call fcn.1400629f0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400041fc
cmp eax, 0xffffffff
je 0x140052121
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400520e8
mov edx, r15d
mov ecx, r14d
call fcn.1400629f0
jmp 0x140052141
cmp byte [rsi + 0x38], dil
je 0x140052138
cmp dword [rsi + 0x34], 5
jne 0x140052138
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140052141
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008669c
jmp 0x1400521b4
jns 0x1400521b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140069ec8
cmp rax, 0xffffffffffffffff
jne 0x14005216c
cmp byte [rsi + 0x30], dil
je 0x1400521b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400521b4
mov ecx, r14d
call fcn.14002d4ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400521b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400521b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400521ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400521b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140069ec8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14006b564
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14006b596
call fcn.14000ae60
mov dword [rax], 0x16
call fcn.14008a4c8
jmp 0x14006b6b5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006b6b5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006b6b5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14006b5c5
lock or dword [rcx + 0x14], 0x10
jmp 0x14006b6b5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14006b5d9
call fcn.1400a4a20
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14003defc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140067804
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14006b6a3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14006b66e
mov rcx, rsi
call fcn.14003defc
cmp eax, edi
je 0x14006b659
mov rcx, rsi
call fcn.14003defc
cmp eax, 0xfffffffe
je 0x14006b659
mov rcx, rsi
call fcn.14003defc
movsxd rbx, eax
lea r14, [0x140970620]
mov rcx, rsi
sar rbx, 6
call fcn.14003defc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14006b660
lea rdx, [0x140678ae0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006b66e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14006b692
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14006b692
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14006b692
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14006b6b8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14007c6e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007c732
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007c732
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007c732
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007c732
cmp dword [rcx + 0x84], 0xe
jbe 0x14007c732
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007c734
xor al, al
add rsp, 0x28
ret
Function at 0x140090580
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rsi, rdx
mov edi, ecx
xor r14d, r14d
mov ebx, r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movdqa xmm1, xmmword [0x140652b00]
movdqu xmmword [rbp + 0x27], xmm1
mov word [rbp + 0x17], r14w
movups xmmword [rbp - 9], xmm0
movdqu xmmword [rbp + 7], xmm1
mov word [rbp - 9], r14w
mov qword [rbp + 0x7f], r14
lea rdx, [rbp + 0x17]
lea ecx, [r14 + 0xf]
call fcn.14003f330
lea rdx, [rbp - 9]
lea ecx, [r14 + 0x10]
call fcn.14003f330
test edi, edi
jne 0x14009066c
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400906e7
mov dword [rbp + 0x67], r14d
mov dword [rbp + 0x77], 4
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x67]
xor r8d, r8d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400906e7
cmp dword [rbp + 0x67], 4
jne 0x1400906e7
mov ebx, edi
jmp 0x1400906e7
cmp edi, 1
jne 0x1400906e7
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400906e7
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
lea r9d, [rdi + 3]
xor r8d, r8d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove ebx, edi
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x1400906f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140090733
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009072e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090797
call fcn.14002bfb4
movdqa xmm0, xmmword [0x140652b00]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140090781
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009077c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090791
call fcn.14002bfb4
mov eax, ebx
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140012048
nop
call fcn.140012048
nop
int3
Function at 0x140095cac
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 0x140095cdc
xor eax, eax
jmp 0x140095d9f
mov rbp, rbx
cmp word [rax], si
je 0x140095d01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140095ce8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140095ce4
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.14005be40
movsxd r14, eax
test eax, eax
jne 0x140095d3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140095cd5
mov rcx, r14
call fcn.14004697c
mov rdi, rax
test rax, rax
jne 0x140095d58
xor ecx, ecx
call fcn.14008669c
jmp 0x140095d34
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.14005be40
test eax, eax
jne 0x140095d89
mov rcx, rdi
call fcn.14008669c
jmp 0x140095d93
xor ecx, ecx
call fcn.14008669c
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