joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069ac0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140069be4
cmp r8d, 0xff
jne 0x140069b21
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140069b0b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x8d6d0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400464d0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400464d0
cmp r8d, 0xfb
jne 0x140069b33
lea r9, str.WILL
jmp 0x140069b71
cmp r8d, 0xfc
jne 0x140069b45
lea r9, str.WONT
jmp 0x140069b71
cmp r8d, 0xfd
jne 0x140069b57
lea r9, [0x14008e0f4]
jmp 0x140069b71
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x140069bcd
cmp r10d, 0x27
jg 0x140069ba4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x8dcf0]
test r8, r8
jne 0x140069bb4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400464d0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140069b8b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400464d0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400464d0
add rsp, 0x38
ret

Function at 0x140069f30
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140069f8f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140046350
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140069ac0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a140
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14006a2e8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14006a1a5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14006a1a5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14006a1a5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14006a1dc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14006a232
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14006a232
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14006a232
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14006a232
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14006a232
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140069bf0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14006a294
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140046350
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140069fc0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006a2e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140046350
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14006ba50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14006bae5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14006bb46
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140046350
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14007f150
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14006bc01
sub ecx, 1
je 0x14006bc74
sub ecx, 1
je 0x14006bbb0
cmp ecx, 1
je 0x14006bb93
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14008bb50]
call fcn.140046350
jmp 0x14006bc74
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14006b780
test eax, eax
je 0x14006bc74
jmp 0x14006bb1a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14006bc74
sub rax, rsi
cmp rax, rbp
jae 0x14006bc74
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400464d0
jmp 0x14006bc74
cmp r8d, 4
jle 0x14006bc74
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14006bc74
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140046270
mov esi, eax
test eax, eax
je 0x14006bc53
mov edx, 5
mov rcx, rbx
call fcn.14006c740
mov eax, esi
jmp 0x14006bb1a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140054b70
mov rcx, r14
call fcn.140054e50
test eax, eax
je 0x14006bb18
mov edx, 5
mov rcx, rbx
call fcn.14006c740
mov eax, Ordinal_45
jmp 0x14006bb1a
Function at 0x14007ea10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14007ea52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007ea99
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007eaf2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007eab0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007eb33
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400912da]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400912db]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007eb00
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007eb50
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007eb8a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007eb8f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007ebd8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007ebd8
dec r8
sub rdx, 1
jne 0x14007ebbe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007ff64
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14006c0f0]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.14000219c
lea r8, [0x1400530e0]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002228
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x14005307c]
mov rbx, rax
test rax, rax
jne 0x140005170
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140005276
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
mov r8, r13
call fcn.140003c50
mov esi, eax
jmp 0x140005257
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140003d88
mov esi, eax
test eax, eax
jns 0x1400051b1
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.140003c18
mov rcx, rbx
call fcn.140003d00
jmp 0x140005257
lea r8, [0x1400530e8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002228
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400051fd
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xd5
call fcn.140003c50
mov esi, eax
jmp 0x1400051a4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003d88
mov esi, eax
test eax, eax
jns 0x140005234
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xd7
call fcn.140003c18
mov rcx, rdi
call fcn.140003d00
jmp 0x1400051a4
mov rcx, rdi
call fcn.140003d00
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.140003d00
xor esi, esi
test esi, esi
jns 0x140005276
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.140003c18
mov eax, esi
jmp 0x14000527b
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14004b4d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14000e044
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r11, r8
mov r10, rdx
xor r8d, r8d
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
mov rdi, rcx
mov rbx, rdx
shr rbx, 1
lea rax, [rbx + rbx*2]
sub r10, rax
cmp r10, 1
mov rax, r10
setne r8b
add r8, 2
neg rax
sbb rax, rax
and rax, r8
lea rax, [rax + rbx*4]
inc rax
cmp rax, 0x81
ja 0x14000e1b4
xor r9d, r9d
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_x
xor esi, esi
test rbx, rbx
je 0x14000e12a
movzx ecx, byte [rdi]
inc esi
movzx edx, byte [rdi + 2]
mov eax, ecx
movzx r8d, byte [rdi + 1]
and cl, 3
shr rax, 2
add rdi, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, r8d
shr rax, 4
and r8b, 0xf
or rcx, rax
shl r8b, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
mov eax, edx
shr rax, 6
and edx, 0x3f
movzx ecx, r8b
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 2], al
mov al, byte [rdx + r14]
mov byte [r9 + r11 + 3], al
add r9, 4
mov eax, esi
cmp rax, rbx
jb 0x14000e0b9
sub r10, 1
je 0x14000e180
cmp r10, 1
jne 0x14000e1af
movzx ecx, byte [rdi]
movzx edx, byte [rdi + 1]
mov eax, ecx
shr rax, 2
and cl, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, edx
shr rax, 4
and dl, 0xf
or rcx, rax
shl dl, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
movzx eax, dl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 2], al
mov byte [r9 + r11 + 3], 0x3d
jmp 0x14000e1ab
movzx ecx, byte [rdi]
mov eax, ecx
and cl, 3
shr rax, 2
shl cl, 4
mov al, byte [rax + r14]
mov byte [r9 + r11], al
movzx eax, cl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 1], al
mov word [r9 + r11 + 2], 0x3d3d
add r9, 4
mov byte [r9 + r11], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x140010748
Capabilities:
Parse pe header

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
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x140010779
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.140010470
test eax, eax
je 0x14001097d
mov edx, 0x40
call fcn.140010470
test eax, eax
je 0x14001097d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001097d
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x14001097d
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.140010470
test eax, eax
je 0x14001097d
cmp dword [rcx], 0x4550
jne 0x14001097d
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x14001097d
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x140010822
cmp rax, 0x60
jb 0x14001097d
mov edx, 0xe0
call fcn.140010470
test eax, eax
je 0x14001097d
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x140010853
mov edx, 0x20b
cmp word [rcx], dx
jne 0x14001097d
cmp rax, 0x70
jb 0x14001097d
mov edx, 0xf0
call fcn.140010470
test eax, eax
je 0x14001097d
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x14001097d
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x14001097d
test rdx, rdx
je 0x14001097d
lea rdi, [rax + r8]
test rdi, rdi
je 0x14001097d
mov rcx, rdi
call fcn.140010470
test eax, eax
je 0x14001097d
mov ebp, 0x10
cmp rdx, rbp
jb 0x14001097d
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x14001097d
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x1400108e3
mov rdx, r14
call fcn.140010470
test eax, eax
je 0x14001097d
cmp word [rcx], bp
je 0x1400108e3
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x1400108c3
cmp rsi, rbx
je 0x14001097d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140010965
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.140010470
test eax, eax
je 0x14001097d
cmp word [rbx + 0xe], r11w
jne 0x14001091b
cmp word [rbx + 0xc], r11w
je 0x14001097d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140010470
test eax, eax
je 0x14001097d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140010965
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.140010470
test eax, eax
je 0x14001097d
cmp word [rbx + 0xe], r11w
jne 0x140010955
cmp word [rbx + 0xc], r11w
je 0x14001097d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140010470
test eax, eax
je 0x14001097d
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.140010470
test eax, eax
je 0x14001097d
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140011ae4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
and qword [r11 + 0x10], 0
lea rdx, [r11 + 0x20]
mov rax, r8
mov r9d, 4
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rdx
mov rdx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rcx, rcx
je 0x140011b44
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140011b54
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, r9
mov qword [r11 + 8], rbp
mov rsi, r8
mov r10, rcx
test rdx, rdx
je 0x140011bb4
lea rax, [r11 + 8]
mov r9d, 0x20006
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011c5a
mov r10, qword [rsp + 0x40]
mov rcx, rbp
test rdi, rdi
je 0x140011bf4
mov ecx, 0xc350
mov rax, rdi
mov edx, ecx
cmp word [rax], bp
je 0x140011bd5
add rax, 2
sub rdx, 1
jne 0x140011bc6
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140011bef
sub rcx, rdx
jmp 0x140011bf9
mov rcx, rbp
jmp 0x140011bf9
mov ebx, 0x80070057
test ebx, ebx
js 0x140011c02
add rcx, rcx
jmp 0x140011c05
mov rcx, rbp
test ebx, ebx
jns 0x140011c24
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreenduserwindowsupdate_ruximplugliblibplugutils.cpp
mov r9d, ebx
mov edx, 0x13c
call fcn.140003c18
jmp 0x140011c5a
add rcx, 2
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, r10
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011c70
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140011c90
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
and qword [r11 + 0x10], 0
lea rdx, [r11 + 0x20]
mov rax, r8
mov dword [rsp + 0x28], 8
mov qword [r11 - 0x18], rdx
mov r9d, 0xb
mov rdx, rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rcx, rcx
je 0x140011cf4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140011d04
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
mov rdi, r9
mov rsi, r8
test rdx, rdx
je 0x140011d58
lea rax, [r11 - 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011dad
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov dword [rsp + 0x58], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011dad
cmp dword [rsp + 0x50], 4
je 0x140011dab
mov ebx, 0x8007139f
jmp 0x140011dad
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140011dc3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140011ddc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov r15, r9
mov r14, r8
mov rsi, rcx
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov ebx, 0x80070000
test rdx, rdx
je 0x140011e4f
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x18]
mov qword [r11 - 0x58], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140011f46
mov rsi, qword [rbp - 0x18]
mov dword [rbp + 0x38], r12d
mov dword [rbp + 0x30], r12d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140011f46
cmp dword [rbp + 0x38], 1
je 0x140011ea0
mov edi, 0x8007139f
jmp 0x140011f46
mov eax, dword [rbp + 0x30]
inc eax
mov dword [rbp + 0x30], eax
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004c62c
mov rbx, rax
mov qword [rbp - 8], rax
test rax, rax
jne 0x140011ed8
mov edi, 0x8007000e
jmp 0x140011f33
mov dword [rbp + 0x38], r12d
mov eax, dword [rbp + 0x30]
mov dword [rbp - 0x20], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140011f33
mov eax, dword [rbp + 0x30]
dec eax
mov word [rbx + rax*2], r12w
mov rdx, rbx
mov rcx, r15
call fcn.140008078
mov edi, r12d
test rbx, rbx
je 0x140011f46
mov edx, 2
mov rcx, rbx
call fcn.14004bb7c
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140011f5b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret