joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c65c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call fcn.14003a7e0
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14002c75f
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14002c73f
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14002c73f
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14002c73f
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x14002c73f
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14002c74e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14002c75f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret

Function at 0x14002e074
Capabilities:
Query environment variable

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 ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14002e0c6
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14002e102
cmp edi, esi
je 0x14002e102
cmp edi, 0x8000
ja 0x14002e102
cmp edi, esi
jb 0x14002e0fd
mov rcx, rbx
mov rdx, rdi
call qword [fcn.14003d1c4]
mov rbx, rax
test rax, rax
jne 0x14002e099
mov rcx, rbp
call qword [fcn.14003d1d4]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14002e0e2
mov rcx, rbx
jmp 0x14002e0da
jmp 0x14002e074
Function at 0x14002e108
Capabilities:
Query environment variable

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 ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14002e0c6
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14002e102
cmp edi, esi
je 0x14002e102
cmp edi, 0x8000
ja 0x14002e102
cmp edi, esi
jb 0x14002e0fd
mov rcx, rbx
mov rdx, rdi
call qword [fcn.14003d1c4]
mov rbx, rax
test rax, rax
jne 0x14002e099
mov rcx, rbp
call qword [fcn.14003d1d4]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14002e0e2
mov rcx, rbx
jmp 0x14002e0da
jmp 0x14002e074

Function at 0x140031ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x140031bc1
call fcn.14003d1a4
mov dword [rax], 0x273f
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x140031bd4
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400970d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, str._d._d._d._d
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.1400295dc
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140031c35
test rax, rax
je 0x140031c6a
cmp rax, rdi
jae 0x140031c6a
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rdx, [rsp + 0x40]
mov cl, byte [rdx]
mov byte [r8 + rdx], cl
inc rdx
test cl, cl
jne 0x140031c58
mov rax, rbx
jmp 0x140031c77
call fcn.14003d1a4
mov dword [rax], 0x1c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140039270
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140034c8c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1400970d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call fcn.140050cd0
mov rbp, rax
test rax, rax
jne 0x140034d0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140030c7c
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.14001ea9c
mov ebx, 0x4d
jmp 0x140034e52
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140034d5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140030c7c
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x140034cf3
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140034da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140030c7c
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.14001ea9c
mov ebx, 0x4d
jmp 0x140034e49
mov rbx, qword [rsp + 0x48]
mov eax, 0x100000
cmp rbx, rax
jle 0x140034dcb
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14001ea9c
jmp 0x140034d9e
lea rcx, [rbx + 1]
call qword [section..data]
mov rsi, rax
test rax, rax
jne 0x140034de2
lea ebx, [rax + 0x1b]
jmp 0x140034e49
test rbx, rbx
je 0x140034e2b
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140034e95
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140034e22
mov ebx, r13d
jmp 0x140034e24
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x140034de7
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.140034aac
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [fcn.14003d1d4]
test rbp, rbp
je 0x140034e68
mov rcx, rbp
call fcn.14003d1d4
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140039270
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140030c7c
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x140034d90
Function at 0x140036cfc
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov ebp, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x140036e05
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140036d7e
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + ioctlsocket]
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]
test rbp, rbp
je 0x140036dfa
mov rsi, rbp
mov al, 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 + ioctlsocket]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rdi + 0x10]
call qword [rbx + ioctlsocket]
sub rbp, 1
jne 0x140036d8e
jmp 0x140036dfa
mov rcx, qword [rdi + 8]
lea rdx, [0x140072aa9]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140072aaa]
mov r8d, 1
call qword [rbx + ioctlsocket]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x140036dcf
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14004e978
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004e6dc
Function at 0x140055948
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400557e8
call fcn.14003d1a4
mov dword [rax], socket
call fcn.14003d054
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400557d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400557d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14005581a
lock or dword [rax + 0x14], 0x10
jmp 0x1400557d0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140055837
mov rcx, qword [rbp + 0x10]
call fcn.14005d7d4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140053790
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140051278
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14005588e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400557d0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400558fa
mov rcx, qword [rbp + 0x10]
call fcn.140053790
cmp eax, 0xffffffff
je 0x1400558e1
mov rcx, qword [rbp + 0x10]
call fcn.140053790
cmp eax, 0xfffffffe
je 0x1400558e1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140053790
movsxd rdi, eax
lea rsi, [0x1400990a0]
mov rcx, rbx
sar rdi, 6
call fcn.140053790
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400558e8
lea rax, [0x140097590]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400558fa
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140055930
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14005592c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14005592c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400557d3
jmp 0x1400557a0
Function at 0x1400617e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.1400012c0
test eax, eax
js 0x140061a44
mov ecx, dword [rbx + 0xf0]
lea eax, [rcx*4]
movsxd r9, eax
test eax, eax
jle 0x140061873
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop dword [rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140061820
mov ecx, dword [rbx + 0xf0]
mov r11d, 1
cmp ecx, r11d
jle 0x140061a42
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x84610]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x83a10]
movzx eax, byte [rdi + rax*4 + 0x84610]
xor r8d, dword [rdi + rax*4 + 0x84210]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x84610]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x83610]
movzx ecx, byte [rdi + rax*4 + 0x84610]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x83e10]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x84610]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x83e10]
movzx eax, byte [rdi + rcx*4 + 0x84610]
xor r8d, dword [rdi + rax*4 + 0x83a10]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x84610]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x84210]
movzx ecx, byte [rdi + rax*4 + 0x84610]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x83610]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x84610]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x83e10]
movzx eax, byte [rdi + rcx*4 + 0x84610]
xor r8d, dword [rdi + rax*4 + 0x83a10]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x84610]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x84210]
movzx ecx, byte [rdi + rax*4 + 0x84610]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x83610]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x84610]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x83e10]
movzx eax, byte [rdi + rcx*4 + 0x84610]
xor r8d, dword [rdi + rax*4 + 0x83a10]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x84610]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x84210]
movzx ecx, byte [rdi + rax*4 + 0x84610]
xor r8d, dword [rdi + rcx*4 + 0x83610]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1400618a0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000544c
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x1c0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x1c0], rbx
mov qword [rbp + 0x1c8], rsi
mov qword [rbp + 0x1d0], rdi
mov rax, qword [0x140013130]
xor rax, rbp
mov qword [rbp + 0x190], rax
mov eax, dword [0x140013f00]
mov r15d, 1
test r15b, al
jne 0x1400054d3
or eax, r15d
mov ebx, 0x114
lea rcx, [rbp + 0x70]
mov r8d, ebx
xor edx, edx
mov dword [0x140013f00], eax
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x70], ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetVersionExW]
mov r11d, dword [rbp + 0x80]
mov dword [0x140013f04], r15d
mov dword [0x140013ea8], r11d
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_1.dll_VirtualQuery]
test rax, rax
jne 0x140005500
xor eax, eax
jmp 0x1400055ca
mov rbx, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetSystemInfo]
mov eax, dword [rbp + 0x3c]
mov ecx, 0x11000
lea edi, [rax - 1]
mov r14d, eax
not rdi
and rdi, rsi
mov esi, 0x2000
sub rdi, rax
mov eax, dword [0x140013ea8]
cmp eax, r15d
cmove esi, ecx
add rsi, rbx
cmp rdi, rsi
jb 0x1400054f9
cmp eax, r15d
je 0x1400055aa
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_1.dll_VirtualQuery]
test rax, rax
je 0x1400054f9
add rbx, qword [rbp + 0x20]
test dword [rbp + 0x28], reloc.msvcrt.dll___C_specific_handler
je 0x140005543
test dword [rbp + 0x2c], reloc.msvcrt.dll___C_specific_handler
mov rbx, qword [rbp + 8]
je 0x14000557a
mov eax, r15d
jmp 0x1400055ca
cmp rdi, rbx
jb 0x1400054f9
cmp rbx, rsi
mov r9d, 4
mov r8d, 0x1000
cmovb rbx, rsi
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_1.dll_VirtualAlloc]
mov eax, dword [0x140013ea8]
jmp 0x1400055ad
mov rbx, rdi
mov r8d, 0x104
cmp eax, r15d
lea r9, [rbp]
mov rdx, r14
mov rcx, rbx
cmove r8d, r15d
call qword [sym.imp.api_ms_win_core_memory_l1_1_1.dll_VirtualProtect]
mov rcx, qword [rbp + 0x190]
xor rcx, rbp
call fcn.14000e510
mov rbx, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
mov rdi, qword [rbp + 0x1d0]
lea rsp, [rbp + 0x1a0]
pop r15
pop r14
pop rbp
ret
Function at 0x14000567c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140013130]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x140005794
test rcx, rcx
je 0x140005702
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x140005794
jmp 0x14000572f
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14000567c
mov ebx, eax
test eax, eax
jne 0x140005769
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], reloc.msvcrt.dll___C_specific_handler
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140005716
jmp 0x140005770
mov rcx, qword [rsp + 0x48]
jmp 0x140005794
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005785
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400057f4
mov ebx, eax
jmp 0x140005769
test rcx, rcx
je 0x14000579f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000e510
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009458
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140013130]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rcx
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140001360]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009566
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
xor edi, edi
mov dword [rsp + 0x40], reloc.msvcrt.dll___C_specific_handler
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
inc edi
cmp eax, 0x103
je 0x140009554
test eax, eax
jne 0x140009554
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000929c
test al, al
je 0x14000954d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140008ecc
mov rbx, qword [rsp + 0x50]
jmp 0x1400094e6
test rbx, rbx
je 0x140009562
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
jmp 0x140009566
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000e510
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140009b5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x20], r9
mov rdi, r9
mov rbx, rdx
mov qword [r11 - 0x28], rdx
lea r9, [r11 - 0x18]
xor esi, esi
xor r8d, r8d
mov rdx, rax
mov dword [rsp + 0x30], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x30]
mov r11d, eax
test ecx, ecx
je 0x140009bd2
cmp ecx, 2
jbe 0x140009be7
cmp ecx, 7
jne 0x140009bd2
test byte [rdi], 1
jne 0x140009bd2
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009bd2
test rbx, rbx
je 0x140009bfd
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009bd2
cmp word [rbx + rax*2 - 4], si
je 0x140009bfd
mov eax, 0xd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test byte [rdi], 1
jne 0x140009bd2
test rbx, rbx
je 0x140009bfd
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009bd2
mov eax, r11d
jmp 0x140009bd7