joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449540
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rcx, r14
test rcx, rcx
je 0x449588
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x90]
nop dword [rax + rax]
test rcx, rcx
je 0x449588
mov qword [rsp + 0x68], rcx
nop
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
jmp 0x449598
mov eax, 1
add rsp, 0x70
pop rbp
ret
mov rax, qword [rsp + 0x60]
mov rcx, qword [sym.imp.kernel32.dll_RtlLookupFunctionEntry]
lea rdx, [rsp + 0x58]
mov rbx, qword [rax + 0xf8]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0
call fcn.00432480
xorps xmm15, xmm15
mov r14, qword [0x00604658]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
nop
test rax, rax
je 0x449671
mov rcx, qword [rsp + 0x58]
mov rdx, qword [sym.imp.kernel32.dll_RtlVirtualUnwind]
mov rbx, qword [rsp + 0x60]
mov rsi, rbx
lea rdi, [rsp + 0x50]
mov r8, qword [rsi + 0xf8]
mov qword [rsp], rdx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
call fcn.00432700
xorps xmm15, xmm15
mov r14, qword [0x00604658]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], rax
ja 0x449671
cmp qword [rcx + 8], rax
ja 0x449593
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x45c920
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45c9c3
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00459260
nop
test bl, bl
je 0x45c9bd
mov qword [rsp + 0x18], rax
lea rcx, [0x0045ca00]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046b500
xorps xmm15, xmm15
mov r14, qword [0x00604658]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046b620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045c920

Function at 0x468880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4689f7
movzx edx, byte [rax]
test edx, edx
jne 0x4688b4
nop dword [rax]
test r8b, r8b
jne 0x4688b4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x4688c7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4689b7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x4689a5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x468997
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x46891d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x468960
mov eax, 1
cmp rax, rbx
ja 0x46894b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046d9c0
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x46898f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x468953
mov rcx, r11
mov eax, r12d
jmp 0x468922
mov rcx, rbx
call fcn.0046d900
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046d900
mov eax, r8d
mov rcx, rbx
call fcn.0046d9c0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4689ed
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x4689b0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4688cd
mov eax, edx
mov rcx, rbx
call fcn.0046d900
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046d900
nop
int3
Function at 0x469f00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x469faf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
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 rsi, [0x00456920]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046b500
xorps xmm15, xmm15
mov r14, qword [0x00604658]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046b620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00469f00
Function at 0x46d420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404083
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409d40
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046b620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404060
cmp byte [0x006043e9], 0
je 0x46d435
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x46a660
jmp 0x404060

Function at 0x46d440
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x00604748]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00604740]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x006043e9], 0
je 0x46d475
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00604a80]
aesenc xmm0, xmmword [0x00604a90]
aesenc xmm0, xmmword [0x00604aa0]
movq rax, xmm0
ret
jmp 0x409f20

Function at 0x46d480
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x00604748]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00604740]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x006043e9], 0
je 0x46d4b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00604a80]
aesenc xmm0, xmmword [0x00604a90]
aesenc xmm0, xmmword [0x00604aa0]
movq rax, xmm0
ret
jmp 0x409f60

Function at 0x46f240
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
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 0x46f274
mov rcx, 0x28
jmp 0x46f27f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00604658], rcx
pop rbp
ret
Function at 0x487060
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48779f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48708d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x487311
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48733d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x0051aaa0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004c9e20]
lea rbx, [0x00518900]
call fcn.00465f00
inc rax
cmp rax, r8
jge 0x487362
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x487397
lea rdi, [0x004c9ea0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x487083
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x48737b
jmp 0x487350
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046b620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.00487060

Function at 0x487940
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x487957
inc rax
cmp rax, 4
jge 0x48796f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x487954
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x487980
inc rax
cmp rax, 4
jge 0x48798e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4879b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x48799b
jmp 0x48797d

Function at 0x48b500
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48b5ca
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403560
xorps xmm15, xmm15
mov r14, qword [0x00604658]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48b5af
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004c9f20]
xor ebx, ebx
mov rcx, rdx
call fcn.004672a0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0048bfe0
inc rbx
cmp rcx, rbx
jae 0x48b59e
mov edi, 1
lea rsi, [0x004c9f20]
call fcn.00467380
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00518b48]
lea rsi, [0x00518148]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046b620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048b500
Function at 0x498aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x498b4c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call fcn.00403560
xorps xmm15, xmm15
mov r14, qword [0x00604658]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x498b13
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.0044dbe0
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x498b26
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x498b39
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x498b23
mov byte [rax + rcx], dl
jmp 0x498b23
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.00467b40
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call fcn.0046b620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.00498aa0
Function at 0x14000ebd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000ebdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000ebed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000ebd5
lea eax, [rcx + 1]
jmp 0x14000ebfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14000ec0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000ebf4
sub eax, 3
jb 0x14000ec2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000ec7d
sar eax, 1
movsxd rbp, eax
jb 0x14000ec64
jmp 0x14000ec3c
add ebx, ebx
jne 0x14000ec3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14000ec64
inc ecx
add ebx, ebx
jne 0x14000ec4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14000ec64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000ec5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000ec4c
add ecx, 2
jmp 0x14000ec69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14000eb92
jmp 0x14000ebdd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2000
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000ecc9
cmp rsi, rcx
jae 0x14000ecd1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000ecb0
cmp al, 0x8f
ja 0x14000ecb0
cmp byte [rsi - 2], 0xf
je 0x14000ecb6
sub al, 0xe8
cmp al, 1
ja 0x14000ec9a
cmp rsi, rcx
jae 0x14000ecd1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000eca0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000ecd1
lodsb al, byte [rsi]
jmp 0x14000ecb0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc000]
mov eax, dword [rdi]
or eax, eax
je 0x14000ed2e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000ecde
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000ed28
mov qword [rbx], rax
add rbx, 8
jmp 0x14000ecfe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000ed68
cmp al, 0xef
ja 0x14000ed5a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000ed3a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000ed49
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14000ede7], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14000ede7
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000edd7
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov esi, edx
mov rbx, rcx
mov r8d, dword [rax + rcx + 0x88]
mov edi, dword [r8 + rcx + 0x1c]
mov r11d, dword [r8 + rcx + 0x20]
mov r14d, dword [r8 + rcx + 0x24]
add r11, rcx
add r14, rcx
lea rbp, [rcx + rdi]
test edi, edi
je 0x1400010aa
nop word [rax + rax]
mov edx, dword [r11]
mov rax, 0xffffffffffffffff
add rdx, rbx
mov r8d, 0x99
inc rax
cmp byte [rdx + rax], 0
jne 0x140001063
xor r9d, r9d
test rax, rax
je 0x140001099
nop dword [rax]
nop dword [rax + rax]
movsx ecx, byte [rdx]
lea r8d, [r8 + r8*2]
inc r9d
lea rdx, [rdx + 1]
add r8d, ecx
movsxd rcx, r9d
cmp rcx, rax
jb 0x140001080
cmp r8d, esi
je 0x1400010c3
inc r10d
add r11, 4
cmp r10d, edi
jb 0x140001050
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
movzx ecx, word [r14 + r10*2]
mov eax, dword [rbp + rcx*4]
add rax, rbx
jmp 0x1400010ac
Function at 0x1400044e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140003fc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000451f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14003f2a0]
jmp 0x140004529
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140024b90
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140004170
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14021ca50]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400041fe
lea r8, [rsp + 0x38]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x1400041f8
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x44], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140161940
add rsp, 0x68
ret

Function at 0x140004220
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x460
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x478], rbx
mov rax, qword [0x14021ca50]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.140012980
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140004278
mov ecx, 0x80004005
call fcn.14000a340
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004319
mov dword [rsp + 0x34], 0x400
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProgramFilesDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000a220
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140161940
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret
Function at 0x140004430
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14021ca50]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.140163930
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x140004532
mov ecx, dword [rsp + 0x24]
cmp ecx, 5
jne 0x1400044a2
cmp dword [rsp + 0x28], eax
jb 0x140004532
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140161940
add rsp, 0x158
ret
mov eax, dword [rsp + 0x28]
cmp ecx, 6
jne 0x14000450e
test eax, eax
jne 0x1400044ca
lea eax, [rcx - 4]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140161940
add rsp, 0x158
ret
cmp eax, 1
jne 0x1400044ec
mov eax, 3
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140161940
add rsp, 0x158
ret
cmp eax, 2
jne 0x140004510
mov eax, 4
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140161940
add rsp, 0x158
ret
jb 0x140004532
cmp eax, 3
jb 0x140004532
mov eax, 5
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140161940
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140161940
add rsp, 0x158
ret

Function at 0x1400045d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14021ca50]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, qword [r8]
lea rax, [rsp + 0x40]
mov r10d, 0x200
mov r11, rsi
mov rbp, rcx
mov rdi, r8
mov rbx, rdx
mov r9d, r10d
sub r11, rax
lea rcx, [rsp + 0x40]
nop word [rax + rax]
lea rax, [r9 + 0x7ffffdfe]
test rax, rax
je 0x140004644
movzx eax, word [r11 + rcx]
test ax, ax
je 0x140004644
mov word [rcx], ax
add rcx, 2
dec r9
jne 0x140004620
jmp 0x140004649
test r9, r9
jne 0x14000464d
sub rcx, 2
xor r9d, r9d
lea rax, [rsp + 0x40]
mov word [rcx], r9w
mov rcx, r10
nop dword [rax]
cmp word [rax], r9w
je 0x140004671
add rax, 2
dec rcx
jne 0x140004660
jmp 0x1400046cd
test rcx, rcx
je 0x1400046cd
mov rdx, r10
sub rdx, rcx
sub r10, rdx
mov qword [rsp + 0x30], rdx
lea rax, [rsp + rdx*2 + 0x40]
je 0x1400046c5
lea r8, [0x1401dd39c]
lea rcx, [r10 + rdx + 0x7ffffdff]
sub r8, rax
nop dword [rax]
test rcx, rcx
je 0x1400046c0
movzx edx, word [r8 + rax]
test dx, dx
je 0x1400046c0
mov word [rax], dx
add rax, 2
dec rcx
dec r10
jne 0x1400046a0
jmp 0x1400046c5
test r10, r10
jne 0x1400046c9
sub rax, 2
mov word [rax], r9w
mov eax, dword [rsi - 0x10]
mov rdx, qword [rbx]
mov r9d, 1
add eax, eax
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004715
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140004730
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140161940
mov rbx, qword [rsp + 0x488]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004760
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov rdi, rdx
mov rdx, qword [rdx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov dword [rsp + 0x50], 0
or ebx, 0xffffffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400047bb
cmp dword [rsp + 0x48], 4
cmove ebx, dword [rsp + 0x50]
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400047da
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret