joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e590
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14004e738
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 0x14004e5f5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14004e5f5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14004e5f5
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 0x14004e62c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14004e682
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004e682
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004e682
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004e682
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004e682
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.14004e040
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 0x14004e6e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002a7c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14004e410
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 0x14004e730
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002a7c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14004fea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14007e080]
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 0x14004ff35
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 0x14004ff96
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14002a7c0
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.140063030
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 0x140050051
sub ecx, 1
je 0x1400500c4
sub ecx, 1
je 0x140050000
cmp ecx, 1
je 0x14004ffe3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14006e890]
call fcn.14002a7c0
jmp 0x1400500c4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14004fbd0
test eax, eax
je 0x1400500c4
jmp 0x14004ff6a
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 0x1400500c4
sub rax, rsi
cmp rax, rbp
jae 0x1400500c4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14002a940
jmp 0x1400500c4
cmp r8d, 4
jle 0x1400500c4
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 0x1400500c4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14002a6e0
mov esi, eax
test eax, eax
je 0x1400500a3
mov edx, 5
mov rcx, rbx
call fcn.140050b90
mov eax, esi
jmp 0x14004ff6a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140038fc0
mov rcx, r14
call fcn.1400392a0
test eax, eax
je 0x14004ff68
mov edx, 5
mov rcx, rbx
call fcn.140050b90
mov eax, Ordinal_46
jmp 0x14004ff6a
Function at 0x140062e60
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 0x140062ea2
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 0x140062ee9
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 0x140062f42
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 0x140062f00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140062f83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007401a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007401b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140062f50
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 0x140063cdc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140063d26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140063d26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140063d26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140063d26
cmp dword [rcx + 0x84], 0xe
jbe 0x140063d26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140063d28
xor al, al
add rsp, 0x28
ret
Function at 0x140001f1c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
add rcx, 0x50
mov qword [rbp - 0x10], rcx
and dword [rbp - 8], 0
and dword [rbp - 4], 0
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140001f5c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov eax, 1
lock xadd dword [rbp - 8], eax
inc eax
cmp eax, 1
jne 0x140001f80
cmp dword [rbp - 4], 0
jne 0x14000209e
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [rbp - 4], eax
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movzx eax, byte [rcx + rsi]
xor rdx, rax
movabs r8, 0x100000001b3
imul rdx, r8
inc rcx
cmp rcx, 8
jb 0x140001f8c
mov rcx, qword [rdi + 0x30]
and rcx, rdx
add rcx, rcx
mov rdx, qword [rdi + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
cmp rax, qword [rdi + 8]
je 0x140001fdd
mov r8, qword [rdx + rcx*8]
mov rcx, qword [rsi]
jmp 0x140001fd5
cmp rax, r8
je 0x140001fdd
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x140001fcc
jmp 0x140001fdf
xor eax, eax
test rax, rax
cmove rax, qword [rdi + 8]
cmp rax, qword [rdi + 8]
je 0x140002039
mov rbx, qword [rax + 0x18]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [rdi + 0x48]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140002025
and qword [rbx + 0x18], 0
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400206a8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, rsi
mov rcx, rdi
call fcn.14000236c
mov eax, dword [rbp - 8]
test eax, eax
je 0x14000206b
or eax, 0xffffffff
lock xadd dword [rbp - 8], eax
cmp eax, 1
jne 0x14000205c
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 4], eax
jne 0x1400020ab
and dword [rbp - 4], 0
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [rbp - 8]
jmp 0x14000203c
cmp dword [rbp - 4], 0
je 0x14000207c
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 4], eax
jne 0x140002091
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
xor edx, edx
mov ecx, 0x131f4c3
call fcn.140001d78
int3
xor edx, edx
mov ecx, 0x131f4c4
call fcn.140001d78
int3
xor edx, edx
mov ecx, 0x131f4c5
call fcn.140001d78
int3
Function at 0x14000236c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov r11, rdx
mov r10, rcx
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx eax, byte [r9 + rdx]
movabs rcx, 0x100000001b3
xor r8, rax
inc r9
imul r8, rcx
cmp r9, 8
jb 0x140002383
and r8, qword [r10 + 0x30]
mov r9, qword [r10 + 0x18]
mov rdx, r8
mov rax, qword [r10 + 8]
add rdx, rdx
mov rcx, qword [r9 + rdx*8 + 8]
cmp rcx, rax
je 0x14000242d
mov r11, qword [r11]
jmp 0x1400023cd
cmp rcx, qword [r9 + rdx*8]
je 0x1400023d5
mov rcx, qword [rcx + 8]
cmp r11, qword [rcx + 0x10]
jne 0x1400023c3
jmp 0x1400023d7
xor ecx, ecx
test rcx, rcx
je 0x14000242d
shl r8, 4
add r8, r9
cmp qword [r9 + rdx*8 + 8], rcx
jne 0x1400023ff
cmp qword [r8], rcx
jne 0x1400023f4
mov qword [r8], rax
jmp 0x1400023f8
mov rax, qword [rcx + 8]
mov qword [r9 + rdx*8 + 8], rax
jmp 0x14000240a
cmp qword [r8], rcx
jne 0x14000240a
mov rdx, qword [rcx]
mov qword [r8], rdx
mov r8, qword [rcx]
dec qword [r10 + 0x10]
mov rdx, qword [rcx + 8]
mov qword [rdx], r8
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14000242f
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400028f4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140002924
cvtsi2ss xmm0, rdx
jmp 0x140002939
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140023fe8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140002967
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140002967
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140002995
cmp rbx, 0x200
jae 0x140002992
shl rbx, 3
cmp rbx, rcx
jae 0x140002995
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x1400029be
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140002b18
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140002ad9
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 8
jb 0x140002a17
mov r10, qword [rsi + 0x30]
mov r11, qword [rsi + 0x18]
and r10, r8
add r10, r10
cmp qword [r11 + r10*8], rbx
jne 0x140002a56
mov qword [r11 + r10*8], rax
mov qword [r11 + r10*8 + 8], rax
jmp 0x140002acd
mov rdx, qword [r11 + r10*8 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x140002a90
mov rdi, qword [rdx]
cmp rdi, rax
je 0x140002a4f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140002a4f
mov rdi, rdx
jmp 0x140002aa2
mov rdx, qword [rdx + 8]
mov rdi, rdx
cmp r8, qword [rdx + 0x10]
je 0x140002aef
cmp qword [r11 + r10*8], rdx
jne 0x140002a95
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + r10*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140002a07
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140002acd
Function at 0x140016158
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14002b010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 8]
call fcn.14001b45c
lea rdx, [0x140022fe4]
lea rcx, [rbp - 0x30]
call fcn.14000a89c
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000a89c
nop
lea rcx, [rdi + 0x20]
mov qword [rbp - 0x50], rcx
and dword [rbp - 0x48], 0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rbp - 0x48]
mov rcx, rdi
call fcn.140016534
mov rsi, qword [rdi]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14001620a
movzx eax, byte [rcx + rdx]
xor r9, rax
movabs r10, 0x100000001b3
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x1400161ed
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140016b58
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x140016227
mov rbx, qword [rsi + 8]
mov rcx, rdi
call fcn.140016534
mov rax, qword [rdi]
cmp rbx, qword [rax + 8]
setne bl
mov eax, dword [rbp - 0x48]
test eax, eax
jmp 0x140016256
lock dec dword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov ecx, dword [rbp - 0x48]
test ecx, ecx
jne 0x140016240
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14001626e
inc rdx
mov rcx, qword [rbp - 0x30]
call fcn.140001a70
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001e1c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001628c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14002b010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 8]
call fcn.14001b45c
lea rdx, [0x140022fe4]
lea rcx, [rbp - 0x30]
call fcn.14000a89c
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000a89c
nop
lea rcx, [rdi + 0x20]
mov qword [rbp - 0x50], rcx
and dword [rbp - 0x48], 0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [rbp - 0x48]
mov rcx, rdi
call fcn.140016534
mov rsi, qword [rdi]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14001633e
movzx eax, byte [rcx + rdx]
xor r9, rax
movabs r10, 0x100000001b3
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140016321
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140016b58
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x14001635b
mov rbx, qword [rsi + 8]
mov rcx, rdi
call fcn.140016534
mov rax, qword [rdi]
cmp rbx, qword [rax + 8]
je 0x140016372
movzx ebx, word [rbx + 0x30]
jmp 0x140016374
xor ebx, ebx
mov eax, dword [rbp - 0x48]
test eax, eax
jmp 0x140016391
lock dec dword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov ecx, dword [rbp - 0x48]
test ecx, ecx
jne 0x14001637b
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400163a9
inc rdx
mov rcx, qword [rbp - 0x30]
call fcn.140001a70
movzx eax, bx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001e1c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016938
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x140016984
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbp, qword [rsi + 8]
lea rax, [rdx - 1]
or rax, 1
lea r12, [rsi + 0x18]
bsr rcx, rax
mov ebx, 1
mov r8, rbp
inc ecx
shl rbx, cl
mov rcx, r12
lea rdx, [rbx + rbx]
call fcn.140002b18
lea rax, [rbx - 1]
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x30], rax
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
mov rdi, rbx
cmp rbx, rbp
je 0x140016b3b
mov rdi, qword [rdi]
lea r15, [rbx + 0x10]
cmp qword [r15 + 0x18], 0x10
mov r8, r15
mov r13, qword [r15 + 0x10]
jb 0x1400169e8
mov r8, qword [r15]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r13, r13
je 0x140016a17
movzx eax, byte [rdx + r8]
movabs r9, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r9
cmp rdx, r13
jb 0x1400169f9
mov r14, qword [rsi + 0x30]
mov r12, qword [r12]
and r14, rcx
add r14, r14
cmp qword [r12 + r14*8], rbp
jne 0x140016a39
mov qword [r12 + r14*8], rbx
mov qword [r12 + r14*8 + 8], rbx
jmp 0x140016b2b
mov rsi, qword [r12 + r14*8 + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x140016a50
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x140016a5d
mov rcx, qword [r15]
cmp r13, rax
jne 0x140016aa1
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140016aa1
mov r8, qword [rsi]
cmp r8, rbx
je 0x140016a97
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + r14*8 + 8], rbx
jmp 0x140016b26
cmp qword [r12 + r14*8], rsi
je 0x140016b01
mov rsi, qword [rsi + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x140016abd
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x140016aca
mov rcx, qword [r15]
cmp r13, rax
jne 0x140016aa1
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140016aa1
mov r8, qword [rsi]
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x140016b26
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rsi
mov rax, qword [rsi + 8]
mov qword [rax], rbx
mov qword [rsi + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + r14*8], rbx
mov rsi, qword [rsp + 0x50]
lea r12, [rsi + 0x18]
mov rbx, rdi
cmp rdi, rbp
jne 0x1400169d0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001dd8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], rbp
jne 0x140001e14
lea r8, str.m_hKey___0
mov edx, 0x16a6
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140081b60
test rbx, rbx
je 0x140001e60
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001e1d
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r8, str.__atl_condVal
mov edx, 0x16a7
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140081b60
mov ecx, 0x80004005
call fcn.140001ae4
int3

Function at 0x140001e84
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rsi, rdx
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r9d, 0x2001f
mov qword [rsp + 0x58], rax
call fcn.140001d24
jmp 0x140001eea
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001e84
mov ebx, eax
test eax, eax
jne 0x140001f50
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
xor ebx, ebx
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140001edb
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001f43
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140001ba0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001f60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret