joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009890
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [0x140010c10]
mov rdi, qword [0x140010c90]
mov qword [rdi], rax
call fcn.140008da0
mov rbp, qword [0x140010fd0]
mov rbx, rax
cmp qword [rbp], 0
jne 0x1400098c6
call fcn.140008d40
mov rsi, qword [rbp]
lea rdx, [0x14000f4b3]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140009996
mov rcx, rsi
lea rdx, [0x14000f4b5]
call sub.msvcrt.dll_fopen
mov rsi, rax
test rax, rax
jne 0x14000990d
mov rax, qword [0x140010c40]
cmp byte [rax], 0
je 0x140009996
call fcn.1400087f0
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x140009908
mov rcx, rsi
call sub.msvcrt.dll_ftell
mov ebx, eax
cmp eax, 0xffffffff
je 0x140009908
movsxd r12, eax
mov rcx, r12
call fcn.14000c6c0
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rdi], rax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x140009908
mov rcx, qword [rdi]
mov r9, rsi
mov r8, r12
mov edx, 1
call sub.msvcrt.dll_fread
cmp ebx, eax
jne 0x140009908
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, qword [0x140010c60]
cmp byte [rax], 0
jne 0x140009996
mov rax, qword [rdi]
mov r9, qword [rbp]
lea rcx, str.Read_KMS_data_file_version__u._u__s_n
movzx edx, word [rax + 6]
movzx r8d, word [rax + 4]
call fcn.140009ea0
mov rax, qword [rdi]
movsxd rsi, ebx
xor edx, edx
cmp byte [rax + rsi - 1], 0
lea r8, [rax + rsi]
je 0x1400099ae
call fcn.1400087c0
mov rcx, qword [rax + rdx + 0x20]
add rcx, rax
mov qword [rax + rdx + 0x20], rcx
cmp r8, rcx
jb 0x1400099a9
add rdx, 8
cmp rdx, 0x28
jne 0x1400099ae
movzx r10d, byte [rax + 8]
lea rdx, [rax + 0x48]
xor ecx, ecx
cmp ecx, r10d
jae 0x1400099f1
mov r9, qword [rdx]
add rdx, 0x20
add r9, rax
mov qword [rdx - 0x20], r9
cmp r8, r9
jb 0x1400099a9
inc ecx
jmp 0x1400099d5
xor edx, edx
mov rbx, qword [rdi]
cmp edx, dword [rbx + 0x18]
jae 0x140009a1a
mov eax, edx
shl rax, 5
add rax, qword [rbx + 0x38]
add rbx, qword [rax]
mov qword [rax], rbx
mov rax, qword [rdi]
add rax, rsi
cmp rax, rbx
jb 0x1400099a9
inc edx
jmp 0x1400099f3
mov eax, dword [rbx + 0x10]
mov r8d, 4
add eax, dword [rbx + 0xc]
mov rcx, rbx
add eax, dword [rbx + 0x14]
lea rdx, [0x14000f4dd]
mov edi, eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400099a9
cmp word [rbx + 6], 2
jne 0x1400099a9
mov eax, edi
xor edx, edx
lea r8, [rbx + rsi]
shl rax, 5
add rax, 0x68
cmp rax, rsi
jae 0x1400099a9
cmp edx, edi
jae 0x140009aaf
mov rax, rdx
shl rax, 5
add rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x10]
add rcx, rbx
mov qword [rax + 0x10], rcx
cmp rcx, r8
jae 0x1400099a9
mov ecx, dword [rbx + 0xc]
test ecx, ecx
je 0x140009a9e
movzx r9d, byte [rax + 0x18]
cmp ecx, r9d
jle 0x1400099a9
movzx eax, byte [rax + 0x19]
inc rdx
cmp eax, dword [rbx + 0x10]
jl 0x140009a66
jmp 0x1400099a9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140009ed0
Capabilities:
Get socket status

Disassembly:
push r12
xor edx, edx
xor r8d, r8d
xor ecx, ecx
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rdi, qword [0x140011060]
mov rsi, qword [0x140010d50]
mov dword [rsp + 0x38], edx
lea rbp, [rsp + 0x38]
mov ebx, dword [rdi]
mov r11, qword [rsi]
cmp ebx, r8d
jle 0x140009f45
mov edx, dword [rsp + 0x38]
mov r10, qword [r11 + r8*8]
xor eax, eax
cmp eax, edx
jae 0x140009f1f
inc rax
cmp qword [rbp + rax*8], r10
jne 0x140009f0f
jmp 0x140009f35
cmp edx, eax
jne 0x140009f35
cmp edx, 0x40
je 0x140009f35
mov eax, eax
inc edx
mov qword [rsp + rax*8 + 0x40], r10
mov dword [rsp + 0x38], edx
mov rax, qword [r11 + r8*8]
cmp rcx, rax
cmovb rcx, rax
inc r8
jmp 0x140009f00
xor eax, eax
lea rbp, [rsp + 0x38]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbp
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140009f8c
or rax, 0xffffffffffffffff
jmp 0x140009faa
mov rax, qword [rsi]
mov rdx, rbp
lea r12, [rbx*8]
mov rcx, qword [rax + rbx*8]
inc rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x140009f92
cmp dword [rdi], ebx
jg 0x140009f6e
jmp 0x140009f68
mov rax, qword [rsi]
mov rcx, qword [rax + r12]
cmp rcx, 0xffffffffffffffff
je 0x140009f68
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
add rsp, 0x240
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000b970
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
mov rdi, rcx
push rsi
mov rsi, rdx
push rbx
mov ebx, r8d
sub rsp, 0x28
mov rbp, qword [sym.imp.WS2_32.dll_recv]
test r9b, r9b
je 0x14000b994
mov rbp, qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call rbp
test eax, eax
jns 0x14000b9b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000b9c3
jmp 0x14000b994
je 0x14000b9c3
movsxd rdx, eax
sub ebx, eax
add rsi, rdx
test ebx, ebx
jg 0x14000b994
test ebx, ebx
sete al
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14000b9e0
Capabilities:
Set socket configuration

Disassembly:
push r14
mov r8d, 0x1006
push r13
push r12
mov r12d, edx
mov edx, 0xffff
push rbp
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x110
mov rax, qword [0x140010d30]
mov rsi, qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
lea rbp, [rsp + 0x90]
imul eax, dword [rax], 0x3e8
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x48], eax
call rsi
mov r9, qword [rsp + 0x38]
mov r8d, 0x1005
mov rcx, rbx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call rsi
mov dword [rsp + 0x4c], pe_nt_image_headers64
mov rdx, rbp
mov rcx, rbx
lea r8, [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_getpeername]
mov r13, qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x14000bb20
lea rsi, [rsp + 0x50]
mov r9d, dword [rsp + 0x4c]
mov r8, rbp
mov edx, 0x40
mov rcx, rsi
call fcn.1400096d0
test al, al
je 0x14000bb20
cmp word [rsp + 0x90], 0x17
mov rax, qword [0x140010fb0]
je 0x14000bab6
mov rax, qword [0x140010fa0]
mov rdi, qword [rax]
lea r14, str._s_connection__s:__s._n
mov r9, rsi
lea r8, str.accepted
mov rcx, r14
mov rdx, rdi
call fcn.140009ea0
mov rax, qword [0x140010d10]
test byte [rax], 2
jne 0x14000baf1
mov r8, rsi
mov edx, r12d
mov rcx, rbx
call fcn.14000b6e0
jmp 0x14000bb0b
xor edx, edx
mov rcx, rbp
call fcn.140009770
test al, al
jne 0x14000bae1
lea rcx, str.Client_with_public_IP_address_rejected_n
call fcn.140009ea0
mov r9, rsi
lea r8, str.closed
mov rdx, rdi
mov rcx, r14
call fcn.140009ea0
mov rcx, rbx
call r13
add rsp, 0x110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000bb40
Capabilities:
Create thread

Disassembly:
push rdi
mov rdi, rcx
mov ecx, 0x10
push rsi
mov esi, edx
push rbx
sub rsp, 0x30
call fcn.14000c6c0
mov qword [rax], rdi
mov rbx, rax
mov dword [rax + 8], esi
mov rax, qword [0x140010c60]
cmp byte [rax], 0
jne 0x14000bb8d
mov rax, qword [0x140010cf0]
cmp dword [rax], 0x7fffffff
je 0x14000bb8d
mov rax, qword [0x140010ce0]
or edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
xor edx, edx
xor ecx, ecx
mov r9, rbx
mov dword [rsp + 0x20], edx
lea r8, [0x14000bbf0]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
test rax, rax
jne 0x14000bbd9
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call sub.msvcrt.dll_free
call fcn.14000a9a0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
xor eax, eax
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000c850
Capabilities:
Initialize winsock library

Disassembly:
push rsi
mov esi, ecx
push rbx
mov rbx, rdx
sub rsp, 0x28
call fcn.14000145e
mov rax, qword [0x140011000]
mov rcx, qword [0x140010d00]
mov dword [rax], esi
mov rax, qword [0x140011010]
mov qword [rax], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x14000c8aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
jne 0x14000c8aa
mov rax, qword [0x140010c80]
mov byte [rax], 0
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140009fc0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1391ea0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1391ead
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1391ebd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1391ea5
lea eax, [rcx + 1]
jmp 0x1391ecb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1391ede
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1391ec4
sub eax, 3
jb 0x1391efe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1391f4d
sar eax, 1
movsxd rbp, eax
jb 0x1391f34
jmp 0x1391f0c
add ebx, ebx
jne 0x1391f0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1391f34
inc ecx
add ebx, ebx
jne 0x1391f1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1391f34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1391f2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1391f1c
add ecx, 2
jmp 0x1391f39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01391e62
jmp 0x1391ead
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xf8f000]
mov eax, dword [rdi]
or eax, eax
je 0x1391fad
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf924ec]
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 0x1391f5d
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 0x1391fa7
mov qword [rbx], rax
add rbx, 8
jmp 0x1391f7d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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.01392030], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.01392030
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1392020
sub rsp, 0xffffffffffffff80
jmp 0x4014e0

Function at 0x1800111ae
Capabilities:
Terminate process

Disassembly:
jmp 0x180014fd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140015dc0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1400850b0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r11, rcx
mov qword [rsp], rcx
xor r9b, r9b
lea r10, [rsp + 0x30]
mov ebx, 0x10
nop word [rax + rax]
movzx eax, r9b
lea r10, [r10 + 4]
movzx r8d, byte [rax + r11]
lea rdx, [rax + r11]
shl r8d, 8
movzx eax, r9b
add r9b, 4
movzx ecx, byte [rax + r11 + 1]
movzx eax, byte [rdx + 2]
or r8d, ecx
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
or r8d, eax
mov dword [r10 - 4], r8d
sub rbx, 1
jne 0x140015e10
mov r10b, 0x10
lea r9, [rsp + 0x30]
nop
mov ecx, dword [r9 + 4]
lea r9, [r9 + 4]
mov r8d, ecx
movzx eax, r10b
rol r8d, 0xe
inc r10b
mov edx, dword [rsp + rax*4 + 0x28]
mov eax, ecx
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r9 + 0x20]
add r8d, dword [r9 - 4]
mov dword [r9 + 0x3c], r8d
cmp r10b, 0x40
jb 0x140015e60
movups xmm0, xmmword [r11 + 0x50]
lea rax, [r11 + 0x50]
xor esi, esi
movups xmm1, xmmword [rax + 0x10]
mov qword [rsp + 8], rax
movups xmmword [rsp + 0x10], xmm0
mov r15d, dword [rsp + 0x18]
lea r13d, [rsi + 0x40]
mov r12d, dword [rsp + 0x14]
mov ebx, dword [rsp + 0x10]
mov r11d, dword [rsp + 0x1c]
movups xmmword [rsp + 0x20], xmm1
mov ebp, dword [rsp + 0x28]
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x20]
mov eax, dword [rsp + 0x2c]
nop dword [rax]
nop dword [rax + rax]
mov ecx, edi
lea rsi, [rsi + 4]
rol ecx, 7
mov r10d, edi
ror r10d, 0xb
mov edx, edi
xor r10d, ecx
not edx
and edx, ebp
mov ecx, edi
ror ecx, 6
mov r9d, r12d
xor r10d, ecx
mov r8d, r15d
mov ecx, r14d
and ecx, edi
xor edx, ecx
lea rcx, [0x140076d30]
add r10d, edx
mov edx, ebx
add r10d, dword [rsi + rcx - 4]
mov ecx, ebx
add r10d, dword [rsp + rsi + 0x2c]
rol ecx, 0xa
add r10d, eax
ror edx, 0xd
mov eax, ebp
xor edx, ecx
mov ebp, r14d
mov ecx, ebx
mov r14d, edi
ror ecx, 2
lea edi, [r11 + r10]
xor edx, ecx
mov r11d, r15d
mov r15d, r12d
and r9d, r11d
mov r12d, ebx
mov ecx, r15d
or ecx, r11d
and ebx, ecx
lea ecx, [r10 + rdx]
or ebx, r9d
add ebx, ecx
sub r13, 1
jne 0x140015f00
lea r8, [rsp + 0x10]
mov dword [rsp + 0x2c], eax
sub r8, qword [rsp]
lea edx, [r13 + 8]
mov rax, qword [rsp + 8]
mov dword [rsp + 0x10], ebx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x18], r15d
mov dword [rsp + 0x14], r12d
mov dword [rsp + 0x1c], r11d
mov ecx, dword [r8 + rax - 0x50]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140015fc1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140031c70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001ac00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, qword [rsp + 0x90]
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test r9, r9
jne 0x14001ac27
mov rdx, qword [rdx + 0x18]
jmp 0x14001ac5d
cmp qword [rdx + 0x18], 8
jb 0x14001ac31
mov rdx, qword [rdx]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001acef
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001ac98
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001ac93
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001ade1
mov rcx, r8
call fcn.140031c90
xor esi, esi
mov word [rbx], si
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001ace8
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001ace3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001ade1
mov rcx, r8
call fcn.140031c90
xor al, al
jmp 0x14001adc7
xor bpl, bpl
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001acff
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001ad31
cmp dword [rsp + 0x30], 3
mov eax, 1
movzx ebp, bpl
cmove ebp, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001ad77
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001ad72
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001ade1
mov rcx, r8
call fcn.140031c90
xor esi, esi
mov word [rbx], si
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001adc3
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001adbe
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001ade1
mov rcx, r8
call fcn.140031c90
movzx eax, bpl
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400447c4
int3
Function at 0x14001adf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x1400850b0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rbx
cmp qword [rdx + 0x18], 8
jb 0x14001ae2e
mov rdx, qword [rdx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001aeec
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001ae95
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001ae90
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b038
mov rcx, r8
call fcn.140031c90
xor esi, esi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001aee5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001aee0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b03e
mov rcx, r8
call fcn.140031c90
xor al, al
jmp 0x14001b006
xor bpl, bpl
mov dword [rsp + 0x30], 0x800
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001af04
mov rdx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001af6b
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14001af6b
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001af50
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140007930
mov bpl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001afb6
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001afb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b038
mov rcx, r8
call fcn.140031c90
xor esi, esi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001b002
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001affd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b03e
mov rcx, r8
call fcn.140031c90
movzx eax, bpl
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140031c70
mov rbx, qword [rsp + 0x880]
add rsp, 0x860
pop rdi
pop rsi
pop rbp
ret
call fcn.1400447c4
nop
call fcn.1400447c4
int3
Function at 0x14001b050
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov rbx, r9
mov rsi, r8
mov r14, rdx
jb 0x14001b06c
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rbp
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001b183
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x14001b0dd
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b0d8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b2d7
mov rcx, r8
call fcn.140031c90
xor edi, edi
mov word [r14], di
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14001b12e
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b129
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b2d7
mov rcx, r8
call fcn.140031c90
mov word [rsi], di
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001b17c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b177
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b2d7
mov rcx, r8
call fcn.140031c90
xor al, al
jmp 0x14001b2b5
cmp qword [rbx + 0x18], 8
mov dil, 1
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x14001b19d
mov rax, qword [rbx]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x14001b1aa
mov rdx, qword [rsi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
movzx ebp, dil
xor edi, edi
test eax, eax
cmovne ebp, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x14001b21c
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b217
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b2d7
mov rcx, r8
call fcn.140031c90
mov word [r14], di
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14001b267
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b262
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b2d7
mov rcx, r8
call fcn.140031c90
mov word [rsi], di
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001b2b1
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b2ac
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b2d7
mov rcx, r8
call fcn.140031c90
movzx eax, bpl
mov word [rbx], di
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
call fcn.1400447c4
int3
Function at 0x14001b2e0
Capabilities:
Delete registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x48
cmp qword [rdx + 0x18], 8
mov rbx, r8
mov rdi, rdx
jb 0x14001b2f7
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbp
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001b3bf
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001b368
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b363
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b499
mov rcx, r8
call fcn.140031c90
xor esi, esi
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001b3b8
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b3b3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b499
mov rcx, r8
call fcn.140031c90
xor al, al
jmp 0x14001b479
cmp qword [rbx + 0x18], 8
mov sil, 1
mov rdx, rbx
jb 0x14001b3cf
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
movzx ebp, sil
xor esi, esi
test eax, eax
cmovne ebp, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001b42b
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b426
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b499
mov rcx, r8
call fcn.140031c90
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001b475
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001b470
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b499
mov rcx, r8
call fcn.140031c90
movzx eax, bpl
mov word [rbx], si
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x60]
add rsp, 0x48
pop rdi
pop rbx
ret
call fcn.1400447c4
int3