joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400a8482
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x1400a8482
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x1400a849d
cmp eax, 0x42
jne 0x1400a8482
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x1400a84da
cmp byte [rdi + rcx], 0x5f
jne 0x1400a84da
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400a85d2
mov rcx, rsi
xor edx, edx
call fcn.1400a4050
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.1400a4050
test al, al
jne 0x1400a84d5
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400a854c
lea rdx, [0x140107b9a]
mov r8d, 1
call fcn.140050da0
test al, al
je 0x1400a854c
mov dil, 2
jmp 0x1400a8491
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x1400a862c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x1400a85c6
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400a852f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400a851e
add dl, 0xa9
jmp 0x1400a852d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400a862c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x1400a862c
movzx edx, bl
add rax, rdx
jae 0x1400a84f0
jmp 0x1400a862c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400a8491
xor ebx, ebx
lea r14, [0x140107f6e]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400a8584
cmp byte [rax + rcx], 0x45
je 0x1400a8684
sub rbx, 1
jb 0x1400a85a9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400a85a9
mov r8d, 2
mov rdx, r14
call fcn.140050da0
test al, al
jne 0x1400a84d5
mov rcx, rsi
call fcn.1400a8690
test al, al
jne 0x1400a84d5
mov rax, qword [rsi]
test rax, rax
jne 0x1400a8570
jmp 0x1400a8491
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x1400a862c
cmp rax, r9
jae 0x1400a8629
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400a867d
cmp qword [rsi + 0x20], 0
je 0x1400a8676
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400a8430
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400a8493
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400a866c
lea rax, [0x140107f39]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140050da0
mov dil, 2
test al, al
jne 0x1400a8491
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x1400a8491
mov bl, 1
xor r8d, r8d
jmp 0x1400a862e
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400a8491
Function at 0x1400b0036
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov r14, qword [rsp + 0x58]
mov r10d, dword [rdx]
mov edi, r8d
rol edi, 0x19
mov r11d, dword [rdx + 4]
mov ebx, r10d
rol ebx, 0x19
mov eax, dword [rdx + 8]
mov ebp, r11d
rol ebp, 0x19
mov r15d, eax
rol r15d, 0x19
mov esi, r8d
rol esi, 0xe
xor esi, edi
mov edi, r10d
rol edi, 0xe
xor edi, ebx
mov ebx, r11d
rol ebx, 0xe
xor ebx, ebp
mov ebp, eax
rol ebp, 0xe
xor ebp, r15d
shr r8d, 3
xor r8d, esi
add r8d, r10d
shr r10d, 3
xor r10d, edi
add r10d, r11d
shr r11d, 3
xor r11d, ebx
add r11d, eax
shr eax, 3
xor eax, ebp
add eax, dword [rdx + 0xc]
add r8d, dword [r14 + 0xc]
add r10d, dword [r9]
add r11d, dword [r9 + 4]
add eax, dword [r9 + 8]
mov ebp, dword [r14 + 4]
mov ebx, ebp
rol ebx, 0xf
mov edi, dword [r14]
mov edx, ebp
rol edx, 0xd
xor edx, ebx
shr ebp, 0xa
xor ebp, edx
add ebp, eax
mov eax, edi
rol eax, 0xf
mov edx, edi
rol edx, 0xd
xor edx, eax
shr edi, 0xa
xor edi, edx
mov eax, ebp
rol eax, 0xf
add edi, r11d
mov edx, ebp
rol edx, 0xd
xor edx, eax
mov eax, ebp
shr eax, 0xa
xor eax, edx
add eax, r10d
mov edx, edi
rol edx, 0xf
mov esi, edi
rol esi, 0xd
xor esi, edx
mov edx, edi
shr edx, 0xa
xor edx, esi
add edx, r8d
mov dword [rcx], edx
mov dword [rcx + 4], eax
mov dword [rcx + 8], edi
mov dword [rcx + 0xc], ebp
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400b095e
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x1400b097a
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x1400b5e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400b5e53
test ecx, ecx
jne 0x1400b5ea2
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400b5e60
test ecx, ecx
jne 0x1400b5ea2
mov rcx, rdi
call fcn.1400b5d00
movzx r10d, al
test bl, bl
jne 0x1400b5ea9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x1400b5e96.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1400b601c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x1400b5e96.2
xor r10d, r10d
test bl, bl
je 0x1400b5e70
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400b5ffe
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1400b5edb
xor edi, edi
jmp 0x1400b5f58
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1400b5f20
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1400b5f3b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400b5f00
jmp 0x1400b5f58
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1400b5f3b
cmp ebx, 0x5c
je 0x1400b5f3b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400b5f20
jmp 0x1400b5f58
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1400b600c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x1400b5f82
mov al, 9
cmp rdx, 2
je 0x1400b5f86
cmp rdx, 1
jne 0x1400b5f96
cmp byte [r9], 0x2e
jne 0x1400b5f96
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400b5f96
mov al, 0xa
jmp 0x1400b5f96
cmp byte [r9], 0x2e
jne 0x1400b5f96
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x1400b5e96.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x1400b5e96.2
mov esi, 2
jmp case.0x1400b5e96.2
lea r8, str.library_std_srcpath.rs
call fcn.1400d9120
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400d9120
ud2
Function at 0x1400ba2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1400ba32d
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x1400ba42f
test r15w, r15w
je 0x1400ba32d
cmp r15w, 0x2e
jne 0x1400ba42f
test r12w, r12w
jne 0x1400ba42f
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.1400cb6b0
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x1400ba414
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov rbp, qword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x1400ba390
mov rcx, rdi
mov rdx, rbx
call rbp
test eax, eax
je 0x1400ba414
cmp word [rsp + 0xac], 0x2e
jne 0x1400ba3b9
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400ba380
cmp ax, 0x2e
jne 0x1400ba3b9
cmp word [rsp + 0xb0], 0
je 0x1400ba380
lock inc qword [r14]
jle 0x1400ba51b
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x1400ba45a
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400ba4a6
mov qword [rsi], 0
jmp 0x1400ba509
lock inc qword [r14]
jle 0x1400ba51b
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1400caa40
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1400caa40
jmp 0x1400ba4b9
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r15w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.1400caa40
mov qword [rsi + 0x258], r14
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x1400bff30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400bff7f
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400bfff3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400bff93
cmp eax, 0x2739
jne 0x1400bffe0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400bffda
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x1400bfffa
mov qword [rsi + 8], rdi
jmp 0x1400bff76
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]

Function at 0x1400c0040
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400c00b5
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400c00b5
mov r10d, r8d
imul rdx, r10, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400c00b5
imul rdx, r10, 0x431bde83
shr rdx, 0x32
imul r10d, edx, 0xf4240
mov rdx, rax
inc rdx
sete r11b
cmp r8d, r10d
setne r8b
cmove rdx, rax
and r8b, r11b
jne 0x1400c00b5
mov r9d, 0xffffffff
cmp rdx, r9
cmovb r9, rdx
test r9, r9
je 0x1400c00f4
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400c00e1
xor eax, eax
jmp 0x1400c00ef
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x1400c00ef

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400c053a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400c0551
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x1400c0560
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400c059f
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400c05c7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400c05b4
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400c05c7
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x20
pop rsi
ret

Function at 0x1400c0d30
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.140060540
mov rsi, rax
test rax, rax
je 0x1400c0e02
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400c0e90]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c0df4
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400c0dd2
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.1400605d0
mov edx, 8
mov rcx, rsi
call fcn.1400605d0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.1400d8e00
ud2

Function at 0x1400c0fb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400c0ff3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400b7290]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400d9060
ud2
Function at 0x1400c5690
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x1400c56b1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x1400c56e7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400c56e2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400c56e7
call fcn.1400c0fb0
mov r8d, dword [0x14011ec80]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x20], 1
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rdx
add rsp, 0x38
ret

Function at 0x1400c5bc6
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
mov rdx, rcx
sub rdx, rax
mov rcx, rax
cmp rdx, 0x20
jb fcn.1400551c0
jmp fcn.140050160
Function at 0x1400c9adc
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1068
call fcn.1400c9f50
sub rsp, rax
mov r14, rdx
mov r12, rcx
mov rsi, qword [rdx]
mov ebx, dword [rdx + 8]
lea r15, [rsp + 0x4c]
mov dword [r15], 0x800
lea rdi, [rsp + 0x68]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1400cb6b0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
mov edx, ebx
mov r8, rdi
mov r9, r15
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
je 0x1400c9b4e
cmp eax, 0x103
jne 0x1400c9b86
and qword [r12], 0
jmp 0x1400c9bbe
mov edx, dword [rsp + 0x4c]
lea r8, str.C:UsersDeveloper.cargo_registry_srcgithub.com_1ecc6299db9ec823winreg_0.10.1_srclib.rs
lea rcx, [rsp + 0x68]
call fcn.1400c9bcf
mov r8, rdx
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rax
call fcn.140028450
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400c9b92
mov rax, qword [rsp + 0x50]
jmp 0x1400c9b9c
shl rax, 0x20
or rax, 2
xor ecx, ecx
jmp 0x1400c9ba1
movabs rax, 0x900000002
mov rdx, qword [rsp + 0x60]
inc ebx
mov dword [r14 + 8], ebx
mov qword [r12], 1
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rcx
mov qword [r12 + 0x18], rdx
add rsp, 0x1068
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400c9bf9
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.1400c9f50
sub rsp, rax
mov qword [rsp + 0x58], rcx
mov rsi, qword [rdx]
mov qword [rsp + 0x78], rdx
mov eax, dword [rdx + 8]
mov dword [rsp + 0x50], eax
mov edi, 0x800
mov dword [rsp + 0x48], edi
lea rcx, [rsp + 0x98]
mov r8d, 0x1000
xor edx, edx
call fcn.1400cb6b0
mov dword [rsp + 0x4c], edi
and dword [rsp + 0x54], 0
mov ecx, 0x800
mov edx, 1
call fcn.14008f2f3
test rax, rax
je 0x1400c9dfe
mov rdi, rax
lea rbx, [rsp + 0x80]
mov qword [rbx], 0x800
mov qword [rbx + 8], rax
and qword [rbx + 0x10], 0
mov rbp, qword [rsi]
lea r15, [rsp + 0x4c]
lea r12, [rsp + 0x54]
lea r13, [rsp + 0x98]
lea r14, [rsp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
and qword [rsp + 0x20], 0
mov rcx, rbp
mov edx, dword [rsp + 0x50]
mov r8, r13
mov r9, r14
call sub.advapi32.dll_RegEnumValueW
cmp eax, 0xea
jne 0x1400c9ce2
inc dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, rbx
call fcn.14008f54e
mov rdi, qword [rsp + 0x88]
jmp 0x1400c9c9a
mov esi, eax
test eax, eax
je 0x1400c9cfa
cmp esi, 0x103
jne 0x1400c9d65
mov bl, 0xd
mov bpl, 1
jmp 0x1400c9d7d
mov edx, dword [rsp + 0x48]
lea r8, str.C:UsersDeveloper.cargo_registry_srcgithub.com_1ecc6299db9ec823winreg_0.10.1_srclib.rs
lea rcx, [rsp + 0x98]
call fcn.1400c9bcf
mov r8, rdx
lea rsi, [rsp + 0x60]
mov rcx, rsi
mov rdx, rax
call fcn.140028450
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x1400c9d6f
mov rsi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x4c]
mov qword [rsp + 0x90], rcx
mov ebx, dword [rsp + 0x54]
cmp ebx, 0xb
jbe 0x1400c9de2
mov rcx, rsi
call fcn.14008f332
movabs rsi, 0xde00000002
jmp 0x1400c9d79
shl rsi, 0x20
or rsi, 2
jmp 0x1400c9d79
movabs rsi, 0xd00000002
mov bl, 0xc
xor ebp, ebp
mov rcx, qword [rsp + 0x80]
mov rdx, rdi
call fcn.14008f332
test bpl, bpl
je 0x1400c9d99
mov rcx, qword [rsp + 0x58]
jmp 0x1400c9dc8
mov bl, 0xc
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rcx + 0x18], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x28], rax
mov edx, dword [rsp + 0x50]
inc edx
mov rax, qword [rsp + 0x78]
mov dword [rax + 8], edx
mov qword [rcx], rsi
mov byte [rcx + 0x30], bl
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400c9d9b
mov ecx, 0x800
mov edx, 1
call fcn.1400d8e00
ud2

Function at 0x1400ca710
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ca75a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ca75a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ca75a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ca75a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ca75a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ca75c
xor al, al
add rsp, 0x28
ret
Function at 0x1400ceb08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ce8f8
Function at 0x1400d1b70
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, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400d1ba0
xor eax, eax
jmp 0x1400d1c63
mov rbp, rbx
cmp word [rax], si
je 0x1400d1bc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d1bac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d1ba8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400d1ac0
movsxd r14, eax
test eax, eax
jne 0x1400d1c03
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400d1b99
mov rcx, r14
call fcn.1400d2a24
mov rdi, rax
test rax, rax
jne 0x1400d1c1c
xor ecx, ecx
call fcn.1400d0150
jmp 0x1400d1bf8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400d1ac0
test eax, eax
jne 0x1400d1c4d
mov rcx, rdi
call fcn.1400d0150
jmp 0x1400d1c57
xor ecx, ecx
call fcn.1400d0150
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret