joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d7140
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
mov dword [rsp + 0x30], 1
cmp qword [rdx + 0x10], rbp
je 0x1401d726b
mov edx, 0x104
mov word [rsp + 0x20], bp
lfence
mov r9, rdx
call fcn.140072e50
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d71ad
mov rdx, qword [rbx]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401d71ba
mov rcx, qword [rsi]
mov r8d, dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
cmp rdx, qword [rbx + 0x10]
jbe 0x1401d7246
lfence
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1401d71f2
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d71e8
lfence
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], bp
jmp 0x1401d71a0
lfence
sub rdx, rax
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx + 0x18]
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x1401d723e
lea r9, [rcx + rdx]
mov qword [rbx + 0x10], r9
mov r8, rbx
cmp rdi, 8
jb 0x1401d7222
lfence
mov r8, qword [rbx]
lea rdi, [r8 + rcx*2]
test rdx, rdx
je 0x1401d7234
movzx eax, bp
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r8 + r9*2], bp
jmp 0x1401d71a0
mov rcx, rbx
jmp 0x1401d718e
test eax, eax
jne 0x1401d7260
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d7257
mov rax, qword [rbx]
mov qword [rbx + 0x10], rbp
mov word [rax], bp
jmp 0x1401d726b
xor r8d, r8d
mov rcx, rbx
call fcn.140073040
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1401d7290
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rdx, str.ServicesActive
xor ecx, ecx
mov r8d, 4
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x1401d7328
mov r8d, 4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1401d731f
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1401d7316
cmp dword [rsp + 0x3c], 4
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401d8f60
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r14, rcx
mov dword [rsp + 0x40], 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
lea r8, [0x1405e45bc]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140374040
lea r8, [rbp + 0x1c0]
mov edx, 0x104
lea rcx, [rbp + 0x3d0]
call fcn.140368338
lea r8, [0x1405fa6b8]
mov edx, 0x104
lea rcx, [rbp + 0x3d0]
call fcn.140374040
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401d9185
xor r15d, r15d
nop dword [rax + rax]
test byte [rsp + 0x70], 0x10
je 0x1401d9166
movzx ecx, word [rbp - 0x64]
movzx eax, word [rbp - 0x62]
cmp cx, 0x2e
jne 0x1401d9057
test ax, ax
je 0x1401d9166
cmp cx, cx
jne 0x1401d9057
cmp ax, cx
jne 0x1401d9057
cmp word [rbp - 0x60], 0
je 0x1401d9166
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
lea rax, [rbp + 0x1c0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1401d9080
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x48]
call fcn.1400739a0
nop
lea rax, [rbp - 0x64]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1401d90b0
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1401d90ff
lea rdi, [rcx + rdx]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp r8, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp - 0x64]
call fcn.14035bc80
mov word [rbx + rdi*2], r15w
jmp 0x1401d9115
lfence
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x64]
lea rcx, [rsp + 0x48]
call fcn.1400735a0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400e6b30
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1401d9166
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d9161
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d91b1
call fcn.140359090
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401d9020
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140368068
int3
Function at 0x1401dc430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rdx + 0x10]
cmp qword [rbx + 0x10], rcx
jae 0x1401dc459
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov qword [rsp + 0x30], rbp
jb 0x1401dc46b
mov rax, qword [rdx]
lea r8, [rcx + rcx]
lea rcx, [r8 + rax]
jb 0x1401dc478
mov r14, qword [rdx]
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1401dc485
mov rax, qword [rbx]
lea rbp, [r8 + rax]
jb 0x1401dc48e
mov rbx, qword [rbx]
sub rcx, r14
mov rax, rbp
sub rax, rbx
xor rcx, rax
test rcx, 0xfffffffffffffffe
je 0x1401dc4b6
mov rbp, qword [rsp + 0x30]
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
cmp rbx, rbp
je 0x1401dc4f6
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx esi, word [r14 + rbx]
call fcn.140383514
movzx ecx, si
movzx edi, ax
call fcn.140383514
cmp di, ax
jne 0x1401dc513
add rbx, 2
cmp rbx, rbp
jne 0x1401dc4d0
mov al, 1
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x1401dc4f8
Function at 0x1401e4710
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
lea rbp, [rcx + 8]
mov r14, r8
mov rcx, rbp
mov rsi, rdx
call fcn.1401e4a90
mov rbx, rax
test rax, rax
je 0x1401e47dc
test rsi, rsi
je 0x1401e47d1
mov qword [rsp + 0x40], rdi
call fcn.1400785f0
mov qword [rsp + 0x30], r14
lea rdx, [rbx + 0x20]
mov qword [rsp + 0x28], 0
mov r8d, 0x7d0
mov qword [rsp + 0x20], rsi
mov rsi, 0xffffffffffffffff
mov rcx, qword [rax]
mov r9, rsi
call fcn.14036e5f0
test eax, eax
cmovs eax, esi
test eax, eax
js 0x1401e47cc
cdqe
mov qword [rbx + 0xfc0], rax
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x1401e47c2
test byte [rcx + 0x1c], 1
je 0x1401e47c2
cmp byte [rcx + 0x19], 4
jb 0x1401e47c2
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xb]
lea r9, [rbx + 0x20]
lea r8, [0x140607db0]
call fcn.1400786c0
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rbp
call fcn.1401e49e0
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401e9910
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
lea rcx, [0x140687688]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140687648], 0
jne 0x1401e9a51
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x40110000
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rsi, str.0cg_
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1401e99ed
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1401e9ab1
mov edx, 0x3e8
lea rcx, str..pipehmpalert
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1401e9a85
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x40110000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401e9990
xor r9d, r9d
mov dword [rsp + 0x40], 2
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x1401e9a4a
mov rax, qword [str.0cg_]
cmp rax, rsi
je 0x1401e9a4a
test byte [rax + 0x1c], 1
je 0x1401e9a4a
cmp byte [rax + 0x19], 4
jb 0x1401e9a4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.0cg_]
lea r8, [0x1406082e8]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140082b10
mov qword [0x140687648], rbx
mov bl, 1
lea rcx, [0x140687688]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140359070
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rax, qword [str.0cg_]
cmp rax, rsi
je 0x1401e9ae1
test byte [rax + 0x1c], 1
je 0x1401e9ae1
cmp byte [rax + 0x19], 4
jb 0x1401e9ae1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.0cg_]
mov edx, 0xb
jmp 0x1401e9ace
mov rcx, qword [str.0cg_]
cmp rcx, rsi
je 0x1401e9ae1
test byte [rcx + 0x1c], 1
je 0x1401e9ae1
cmp byte [rcx + 0x19], 4
jb 0x1401e9ae1
mov edx, 0xa
mov rcx, qword [rcx + 0x10]
lea r8, [0x1406082e8]
mov r9d, eax
call fcn.140082b10
cmp rbx, 0xffffffffffffffff
jne 0x1401e99ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1401e9afe
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1401e9a53
Function at 0x1401eb870
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rsi, rdx
cmp qword [r9 + 8], 0
jne 0x1401eb8a1
mov al, 1
jmp 0x1401eb9cd
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.1401ec680
mov rbx, rax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400733c0
nop
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400ae170
mov r9d, 7
mov dword [rsp + 0x88], r9d
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401eb938
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401eb92b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401eb9ee
call fcn.140359090
mov r9d, dword [rsp + 0x88]
mov eax, dword [rsp + 0x78]
sub eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401eb9c0
mov rdx, qword [rsp + 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401eb9a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401eb9e8
call fcn.140359090
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x50]
call fcn.140073b90
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140359070
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
call fcn.140368068
int3
call fcn.140368068
int3
Function at 0x1401ee4a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1401ee544
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1401ee500
mov ecx, dword [r10]
jmp 0x1401ee627
cmp ecx, 0x4e0
jb 0x1401ee627
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1401ee560
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1401ee5b0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x1401ee4e0
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x1401ee4d0
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x1401ef340
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub rsp, 0x248
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x140687684]
test al, al
jne 0x1401ef501
mov qword [rsp + 0x240], rbx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
xor ebx, ebx
call fcn.14035c350
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1401ef3e6
dec eax
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x1401ef3b8
lea r8, [0x1405e45bc]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140374040
lea r8, str.System32
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140374040
lea r8, [0x1405e45bc]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140374040
jmp 0x1401ef3eb
mov ebx, 0x800
lea r8, str.advapi32.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140374040
mov r8d, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x1401ef4f2
lea rdx, [0x140608408]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1406083f0]
mov rcx, rbx
mov qword [0x1406876e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140608430]
mov rcx, rbx
mov qword [0x1406876f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptHashData
mov rcx, rbx
mov qword [0x140687700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptGetHashParam
mov rcx, rbx
mov qword [0x140687708], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140608478]
mov rcx, rbx
mov qword [0x140687710], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1406876e8], 0
mov qword [0x1406876f0], rax
je 0x1401ef4e8
cmp qword [0x1406876f8], 0
je 0x1401ef4e8
cmp qword [0x140687700], 0
je 0x1401ef4e8
cmp qword [0x140687708], 0
je 0x1401ef4e8
cmp qword [0x140687710], 0
je 0x1401ef4e8
test rax, rax
je 0x1401ef4e8
mov al, 1
mov byte [0x140687684], al
jmp 0x1401ef4f9
xor al, al
mov byte [0x140687684], al
jmp 0x1401ef4f9
movzx eax, byte [0x140687684]
mov rbx, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140359070
add rsp, 0x248
ret
Function at 0x1401f1b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1401f1b97
xor al, al
jmp 0x1401f1d0b
lea rax, vtable.AutoLock.0
mov qword [rsp + 0x40], rax
lea r14, [0x140687718]
mov qword [rsp + 0x48], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400733c0
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1401f1bd6
mov rcx, qword [rax]
mov edx, dword [rax + 0x10]
call qword [sym.imp.USER32.dll_CharLowerBuffW]
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x60], xmm0
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rcx, rdi
call fcn.140073b90
lea rcx, [rsp + 0x50]
mov rdi, qword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rbp, xmm0
cmp rbp, 8
cmovae rcx, rdi
movabs r9, 0xcbf29ce484222325
movq rax, xmm1
lea rdx, [rax + rax]
test rdx, rdx
je 0x1401f1c73
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
xor r9, rax
imul r9, r8
inc rbx
cmp rbx, rdx
jb 0x1401f1c60
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.1401f3ff0
mov rcx, qword [rax + 8]
mov rax, qword [0x140689968]
mov rbx, rax
test rcx, rcx
cmovne rbx, rcx
cmp rbp, 8
jb 0x1401f1cd5
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1401f1cc6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f1d23
mov rcx, rdi
call fcn.140359090
mov rax, qword [0x140689968]
cmp rbx, rax
je 0x1401f1cfd
lea rdx, [rbx + 0x30]
cmp rsi, rdx
je 0x1401f1cf9
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1401f1cf1
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.1400739a0
mov bl, 1
jmp 0x1401f1cff
xor bl, bl
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140368068
nop
int3
Function at 0x1401f2ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [rsp + 0xb0]
mov rdi, r9
test rsi, rsi
jne 0x1401f3020
mov eax, 0xc000000d
jmp 0x1401f319d
lea rax, [rsp + 0x58]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f319d
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1401f318b
test byte [rsp + 0x60], 3
je 0x1401f318b
mov ecx, dword [rsp + 0x50]
call fcn.140368330
mov rcx, qword [rsp + 0x58]
mov rbx, rax
test rax, rax
je 0x1401f316a
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1401f3174
test byte [rsp + 0x60], 3
je 0x1401f3174
mov edx, dword [rsp + 0x50]
xor ecx, ecx
shr edx, 1
je 0x1401f30e7
lea ecx, [rdx - 1]
cmp word [rbx + rcx*2], ax
cmovne ecx, edx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 7
call fcn.1400739a0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400730d0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1401f315d
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f3158
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f31b1
call fcn.140359090
mov rcx, rbx
call fcn.1403683a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1401f3198
mov rcx, rbx
call fcn.1403683a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1401f3198
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140359070
add rsp, 0x78
pop rdi
pop rsi
ret
call fcn.140368068
int3
Function at 0x1401f3dd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x40
movabs rax, 0xfffffffffffffff
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x1401f3fd4
lea rax, [rdx - 1]
mov qword [rsp + 0x68], rdi
mov rdi, qword [0x140689968]
or rax, rbx
bsr rcx, rax
mov r8, rdi
inc ecx
shl rbx, cl
lea rcx, [0x140689978]
lea rdx, [rbx + rbx]
call fcn.14008f7e0
mov r11, qword [0x140689968]
lea r10, [rbx - 1]
mov qword [0x140689998], rbx
mov qword [0x140689990], r10
mov r11, qword [r11]
mov rbx, r11
cmp r11, rdi
je 0x1401f3fc9
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], r12
movabs r12, 0x100000001b3
mov qword [rsp + 0x30], r13
movabs r13, 0xcbf29ce484222325
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp qword [r11 + 0x28], 8
lea r8, [r11 + 0x10]
mov rbx, qword [rbx]
mov r9, qword [r11 + 0x20]
jb 0x1401f3e96
mov r8, qword [r11 + 0x10]
xor edx, edx
mov rcx, r13
add r9, r9
je 0x1401f3eb4
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r12
cmp rdx, r9
jb 0x1401f3ea0
mov r15, qword [0x140689978]
and rcx, r10
shl rcx, 4
add r15, rcx
mov rbp, qword [r15]
cmp rbp, rdi
jne 0x1401f3ed9
mov qword [r15], r11
mov qword [r15 + 8], r11
jmp 0x1401f3f71
mov r10, qword [r15 + 8]
lea rcx, [r11 + 0x10]
lea rdx, [r10 + 0x10]
call fcn.140070240
test al, al
je 0x1401f3f1d
mov r8, qword [r10]
cmp r8, r11
je 0x1401f3f17
mov rdx, qword [r11 + 8]
mov qword [rdx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], r11
mov qword [r8 + 8], rcx
mov qword [rbx + 8], rdx
mov qword [r11 + 8], rax
mov qword [r15 + 8], r11
jmp 0x1401f3f71
mov rsi, r10
cmp rbp, r10
je 0x1401f3f4d
nop word [rax + rax]
mov r10, qword [r10 + 8]
lea rcx, [r11 + 0x10]
mov rsi, r10
lea rdx, [r10 + 0x10]
call fcn.140070240
test al, al
jne 0x1401f3f85
cmp rbp, r10
jne 0x1401f3f30
mov rdx, qword [r11 + 8]
mov qword [rdx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rsi
mov rax, qword [rsi + 8]
mov qword [rax], r11
mov qword [rsi + 8], rcx
mov qword [rbx + 8], rdx
mov qword [r11 + 8], rax
mov qword [r15], r11
mov r11, rbx
cmp rbx, rdi
je 0x1401f3fab
mov r10, qword [0x140689990]
jmp 0x1401f3e80
mov r8, qword [r10]
mov rdx, qword [r11 + 8]
mov qword [rdx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], r11
mov qword [r8 + 8], rcx
mov qword [rbx + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1401f3f71
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140332c94
int3