joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005a6a
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400d4b2c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140002ccf
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d4bb6
cmp byte [rbp - 0x21], r15b
je 0x1400d4bb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d4bec
call fcn.1400060af
test eax, eax
jne 0x1400d4bd8
cmp byte [rbp - 0x21], r15b
je 0x1400d4bd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d4bec
cmp byte [rbp - 0x21], r15b
je 0x1400d4be9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140006429
test eax, eax
jne 0x1400d4c8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002ccf
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d4c2b
cmp byte [rbp - 0x21], r15b
je 0x1400d4c60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d4c60
call fcn.1400060af
test eax, eax
jne 0x1400d4c4c
cmp byte [rbp - 0x21], r15b
je 0x1400d4c45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d4c60
cmp byte [rbp - 0x21], r15b
je 0x1400d4c5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140006429
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d4c8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d4c8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d4c9d
mov rcx, rdi
call fcn.14000125d
cmp byte [rbp + 0x3f], r15b
je 0x1400d4cac
mov rcx, qword [rbp + 0x27]
call fcn.14000125d
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140005c04
Capabilities:
Parse pe header

Disassembly:
jmp 0x140071a2c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400717f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400717f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400717f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400717f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400717f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400717f7
cmp dword [rcx + 0xf8], 0
je 0x1400717f7
mov ecx, ebx
call fcn.140071970
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400714e0
nop
cmp dword [rbp + 0x20], 0
je 0x140071845
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140071880
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140071788

Function at 0x140005ca9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x14002bc08
jmp 0x14004b6a8
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14002bc3a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14002bc1d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14000408e

Function at 0x14001354c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001354c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013596
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013596
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013596
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013596
cmp dword [rcx + 0x84], 0xe
jbe 0x140013596
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013598
xor al, al
add rsp, 0x28
ret
Function at 0x1400ca970
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140001e33
sub rsp, rax
mov rax, qword [0x140114028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140005db7
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400ca9bf
mov rax, rbp
jmp 0x1400caac7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x118970]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140002ad1
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x118970]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400caac3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400caac3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140002ad1
test rax, rax
js 0x1400caac3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400caac3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400caab5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400caab5
cmp byte [rcx], 0xd
jne 0x1400caa9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400caaaa
cmp byte [rcx + 1], 0xa
jne 0x1400caaaa
inc rcx
jmp 0x1400caaaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x114b80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400caa7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400caac7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140003517
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cb7b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140118970]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400cb80e
cmp word [rdx], r12w
jne 0x1400cb80e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400cb814
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400cb96f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400cb94a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400cb84d
mov rcx, r9
jmp 0x1400cb870
cmp r9, rdx
jae 0x1400cb887
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400cb831
jmp 0x1400cb96f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cb944
cmp dword [rsp + 0x80], edi
je 0x1400cb944
mov rdx, r14
lea r11, [0x140118970]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400cb91d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400cb8f0
mov word [rbx], r12w
jmp 0x1400cb96b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400cb8f9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400cb96b
cmp word [rsp + 0x70], r12w
jne 0x1400cb92a
cmp rbx, rsi
je 0x1400cb8ea
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140001ce4
cmp word [rsp + 0x70], r12w
je 0x1400cb96f
mov word [rbx], r13w
jmp 0x1400cb96b
lea r11, [0x140118970]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400cb967
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400cb96f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov al, byte [rsp + 0x67]
mov r10b, al
xor r10b, 1
xor dl, 1
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov ecx, dword [rsp + 0x44]
mov r8d, ecx
mov r9d, r8d
mov r8d, eax
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x10], rdx

Function at 0x1400026c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, ecx
mov dword [rsp + 4], edx
cdq
idiv r8d
movsxd r9, edx
mov r10, qword [rsp + 0x30]
mov r11b, byte [r10 + r9]
movzx ecx, r11b
mov esi, dword [rsp + 4]
add esi, ecx

Function at 0x1400026e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov r8d, 0x100
add ecx, 1
mov qword [rsp + 8], rax
mov eax, esi
mov dword [rsp], edx
cdq
idiv r8d
movsxd rdi, edx
mov bl, byte [r10 + rdi]
mov bp, word [rsp + 0x56]
imul bp, word [rsp + 0x56]
mov word [rsp + 0x56], bp
mov byte [r10 + r9], bl
mov byte [r10 + rdi], r11b
movzx r8d, byte [r10 + r9]
add r8d, ecx
mov byte [rsp + 0x67], 0x9b
and r8d, 0xff
mov r11b, 0x44
mov bl, byte [rsp + 0x2f]
mov al, bl
mul r11b
mov byte [rsp + 0x67], al
mov ecx, r8d
mov r9d, ecx
mov al, byte [r10 + r9]
mov r9, qword [rsp + 0x38]
mov rdi, qword [rsp + 8]
xor al, byte [r9 + rdi]
mov r14, qword [rsp + 0x48]
mov byte [r14 + rdi], al
add rdi, 1
mov r15, qword [rsp + 0x18]
cmp rdi, r15
mov ecx, dword [rsp]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x10], rdi
je 0x14000266a
jmp 0x1400026ad

Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x20
lea rax, [fcn.140002780]
mov qword [rsp + 0x18], 0x330210ae
mov qword [rsp + 8], rax
jmp 0x1400027e7
mov ax, word [rsp + 0x16]
sub ax, word [rsp + 0x16]
mov rcx, qword [rsp + 0x18]
xor rcx, 0xffffffffccfde0ae
mov word [rsp + 0x16], ax
mov rdx, qword [rsp]
add rdx, rcx
and rdx, 0xfffffffffffff000
mov qword [rsp + 8], rdx
jmp 0x1400027e7
mov rax, qword [rsp]
add rsp, 0x20
ret
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x1400027cb
jmp 0x14000279b
mov rax, qword [rsp + 8]
cmp word [rax], 0x5a4d
mov qword [rsp], rax
je 0x1400027d4
jmp 0x14000279b

Function at 0x140002be8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
and al, 0x46
xor r8w, 0xffff
mov rdx, qword [rsp + 0x20]
mov r9b, byte [rdx + rcx]
movzx r10d, r9b
mov word [rsp + 0x46], r8w
mov r11d, ecx
mov dword [rsp], eax
mov eax, r11d
xor edx, edx
mov r11d, dword [rsp + 0x2c]
div r11d
mov edx, edx
mov esi, edx
mov rdi, qword [rsp + 0x30]
movzx edx, byte [rdi + rsi]
mov ebx, dword [rsp + 0x58]
invalid
ret
invalid
xlatb

Function at 0x140002c30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
add ebp, r10d
add ebp, edx
mov eax, ebp
cdq
idiv ebx
movsxd rsi, edx
mov r14, qword [rsp + 0x20]

Function at 0x140002c58
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
and r8w, 0xe
mov word [rsp + 0x46], r8w
cmp rcx, 0x100
mov qword [rsp + 8], rcx
mov dword [rsp + 4], edx
jne 0x140002bcd
invalid
invalid
invalid
Function at 0x140003568
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x18], 0x2a10
mov dword [rcx + 0x18], 0x2a10
and al, 0x4e
add r9w, 0xb75
mov rcx, qword [rsp + 0xa0]
mov word [rsp + 0xce], r9w
mov r10b, byte [rsp + 0xbf]
sub rax, qword [rsp + 0xd0]
add rcx, 0x36da
rcr edx, 0x36
add byte [rax], al
mov rdx, qword [rsp + 0x98]
mov byte [rsp + 0xbf], r10b
mov r11, qword [rsp + 0x50]
mov qword [r11], rcx
mov qword [rsp + 0xc0], 0x36c9803f
mov qword [r11 + 8], rax
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0xc8], 0xf64d2b0
add rax, 0x592
add byte [rax], al
mov qword [r11 + 0x10], rax
cmp rdx, 0x78089fad
jbe 0x1400033e4
jmp 0x140003636
call fcn.140001550
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x18000d5c0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov r9d, 1
bsr r8, rax
mov rsi, rcx
shlx rax, r9, r8
cmp rdx, rax
jbe 0x18000d5f5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, r9
bsr rcx, rax
mov qword [rsp + 0x40], rdi
mov r8, rbx
inc ecx
mov qword [rsp + 0x48], r14
shlx rdi, r9, rcx
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18000d340
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 0x18000d77a
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte ds:[rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18000d6ee
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18000d769
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x18000d72c
mov r10, qword ds:[rdx]
cmp r10, rax
je 0x18000d726
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
mov qword [r11 + 8], rax
jmp 0x18000d769
cmp r9, rdx
je 0x18000d745
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18000d78f
nop dword [rax + rax]
cmp r9, rdx
jne 0x18000d731
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18000d670
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
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 0x18000d769
Function at 0x180011ea0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov r8d, 1
bsr rcx, rax
shlx rax, r8, rcx
cmp rdx, rax
jbe 0x180011ed3
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18013e468]
or rax, r8
bsr rcx, rax
mov qword [rsp + 0x20], rdi
inc ecx
shlx rdi, r8, rcx
mov r8, rbx
lea rcx, [0x18013e478]
lea rdx, [rdi + rdi]
call fcn.18000d340
mov rax, qword [0x18013e468]
lea r9, [rdi - 1]
mov qword [0x18013e490], r9
mov qword [0x18013e498], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18001205c
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18013e478]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180011f9f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180012018
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180011fdc
mov r10, qword [rdx]
cmp r10, rax
je 0x180011fd6
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
mov qword [r11 + 8], rax
jmp 0x180012018
nop dword [rax]
cmp r9, rdx
je 0x180011ff4
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180012031
cmp r9, rdx
jne 0x180011fe5
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180012057
mov r9, qword [0x18013e490]
jmp 0x180011f50
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 0x180012018
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x18001b9a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
lea r9, [rsp + 0x30]
mov rbx, rcx
mov r8d, 0x40
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001b9d3
lea rdx, str.Failed_to_apply_byte_patch._VirtualProtect_failed_with_error_code:
jmp 0x18001ba1f
mov r8, qword ds:[rbx + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
test r8, r8
je 0x18001b9fc
test rcx, rcx
je 0x18001ba88
test rdx, rdx
je 0x18001ba83
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001ba7d
lea rdx, str.Failed_to_restore_memory_protection_after_applying_byte_patch._VirtualProtect_failed_with_error_code:
lea rcx, [0x180148978]
call fcn.18000f3a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [0x180148978]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rax, qword [0x180148978]
mov dl, 0xa
movsxd rcx, dword [rax + 4]
add rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx edx, al
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
lea rcx, [0x180148970]
call fcn.180009a80
add rsp, 0x20
pop rbx
ret
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 0x16
mov dword [rax], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rdx, str.Failed_to_apply_byte_patch._memcpy_s_failed_with_error_code:
lea rcx, [0x180148978]
call fcn.18000f3a0
mov edx, ebx
lea rbx, [0x180148978]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
jmp 0x18001ba46
Function at 0x18001bae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
lea r9, [rsp + 0x30]
mov rbx, rcx
mov r8d, 0x40
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001bb13
lea rdx, str.Failed_to_restore_byte_patch._VirtualProtect_failed_with_error_code:
jmp 0x18001bb5f
mov r8, qword ds:[rbx + 0x20]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 8]
test r8, r8
je 0x18001bb3c
test rcx, rcx
je 0x18001bbc8
test rdx, rdx
je 0x18001bbc3
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001bbbd
lea rdx, str.Failed_to_restore_memory_protection_after_restoring_byte_patch._VirtualProtect_failed_with_error_code:
lea rcx, [0x180148978]
call fcn.18000f3a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [0x180148978]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rax, qword [0x180148978]
mov dl, 0xa
movsxd rcx, dword [rax + 4]
add rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx edx, al
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
lea rcx, [0x180148970]
call fcn.180009a80
add rsp, 0x20
pop rbx
ret
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 0x16
mov dword [rax], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rdx, str.Failed_to_restore_byte_patch._memcpy_s_failed_with_error_code:
lea rcx, [0x180148978]
call fcn.18000f3a0
mov edx, ebx
lea rbx, [0x180148978]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
jmp 0x18001bb86