joyce8/EMBER2024-capa huggingface dataset:
Function at 0x649620
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x649644
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call fcn.006494e0
test eax, eax
je 0x64963b
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00649520

Function at 0x649c10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x007f1340]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x007f1320]
test rbx, rbx
je 0x649c64
mov rbp, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x649c5b
test rsi, rsi
je 0x649c5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x649c40
mov rax, qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea rcx, [0x007f1340]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x654c89
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov byte [rsp + 0x21], r8b
mov rcx, rdx
mov byte [rsp + 0x22], r9b
mov esi, r8d
mov edi, r9d
mov rbp, qword [rbx]
xor r9d, r9d
mov byte [rsp + 0x20], 0xff
lea rdx, [rsp + 0x20]
mov r8d, 3
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x654cdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
mov rcx, rbp
call fcn.0044ea90
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.00654b70
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [rcx]
cmp edx, 0x1f
mov rdi, rcx
mov rbx, qword [rbp + 0x91d8]
jne 0x655231
lea rax, [rbx + 0x1cb9]
lea rsi, [rbx + 0x1eb8]
lea r12, [rbx + 0x1cb8]
mov byte [rbx + 0x1cb8], 0xff
cmp rsi, rax
mov qword [rbx + 0x1eb8], rax
jbe 0x65508e
lea rax, [rbx + 0x1cba]
mov byte [rbx + 0x1cb9], 0xfa
mov qword [rbx + 0x1eb8], rax
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x6550a8
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov byte [rax], 0x1f
movzx ecx, word [rbx + 0x1ca8]
mov r13, qword [sym.imp.WS2_32.dll_htons]
call r13
movzx ecx, word [rbx + 0x1caa]
mov word [rsp + 0x2c], ax
call r13
mov word [rsp + 0x2e], ax
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x6550ea
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov dl, byte [rsp + 0x2c]
mov byte [rax], dl
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x655107
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov dl, byte [rsp + 0x2d]
mov byte [rax], dl
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x655124
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov dl, byte [rsp + 0x2e]
mov byte [rax], dl
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x655141
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov dl, byte [rsp + 0x2f]
mov byte [rax], dl
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x65515b
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov byte [rax], 0xff
mov rax, qword [rbx + 0x1eb8]
cmp rsi, rax
jbe 0x655175
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov byte [rax], 0xf0
cmp byte [rbp + 0x448], 0
mov rax, qword [rbx + 0x1eb8]
mov qword [rbx + 0x1eb8], r12
mov qword [rbx + 0x1ec0], rax
je 0x6551ae
sub rax, r12
lea r8, [rbx + 0x1cba]
mov edx, 0x3e
lea r9, [rax - 2]
mov rcx, rbp
call fcn.00654cfe
xor r9d, r9d
mov rcx, qword [rdi + 0x190]
mov r8d, 3
mov rdx, r12
mov rsi, qword [sym.imp.WS2_32.dll_send]
call rsi
test eax, eax
jns 0x6551e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
mov rcx, rbp
call fcn.0044ea90
lea rdx, [rbx + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.00469490
xor r9d, r9d
lea rdx, [rbx + 0x1cbf]
mov rcx, qword [rdi + 0x190]
mov r8d, 2
call rsi
test eax, eax
jns 0x655231
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
mov rcx, rbp
call fcn.0044ea90
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x65523e
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x968
cmp byte [rcx + 0x448], 0
mov rbx, qword [rcx + 0x91d8]
mov r13, rdx
mov rbp, rcx
mov rdx, qword [rbx + 0x1ec0]
mov rax, qword [rbx + 0x1eb8]
je 0x65528d
sub rdx, rax
lea r8, [rbx + 0x1cb8]
lea r9, [rdx + 2]
mov edx, 0x3c
call fcn.00654cfe
mov rax, qword [rbx + 0x1eb8]
lea rdx, [rax + 1]
mov qword [rbx + 0x1eb8], rdx
mov al, byte [rax]
cmp al, 0x23
je 0x655300
cmp al, 0x27
je 0x6553c3
cmp al, 0x18
jne 0x655506
add rbx, 0x1c08
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r12, [rsp + 0x160]
repne scasb al, byte [rdi]
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov rsi, rcx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0
not rsi
mov dword [rsp + 0x28], 0x18
lea rdi, [rsi - 1]
jmp 0x655349
add rbx, 0x1c28
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r12, [rsp + 0x160]
repne scasb al, byte [rdi]
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov rsi, rcx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0
not rsi
mov dword [rsp + 0x28], 0x23
lea rdi, [rsi - 1]
lea r8, str._c_c_c_c_s_c_c
mov r9d, 0xff
mov edx, 0x800
mov rcx, r12
mov dword [rsp + 0x20], 0xfa
call fcn.0044b120
xor r9d, r9d
lea r8d, [rsi + 5]
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x65539b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
mov rcx, rbp
call fcn.0044ea90
cmp byte [rbp + 0x448], 0
je 0x655506
lea r9, [rdi + 4]
lea r8, [r12 + 2]
mov edx, 0x3e
mov rcx, rbp
call fcn.00654cfe
jmp 0x655506
lea r12, [rsp + 0x160]
lea r8, [0x006631f7]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x27
mov dword [rsp + 0x20], 0xfa
mov r9d, 0xff
mov edx, 0x800
mov rcx, r12
lea r15, [rsp + 0xe0]
call fcn.0044b120
mov rbx, qword [rbx + 0x1cb0]
lea r14, [rsp + 0x60]
mov esi, 4
or r11, 0xffffffffffffffff
test rbx, rbx
je 0x655491
mov r10, qword [rbx]
xor eax, eax
mov rcx, r11
mov rdi, r10
repne scasb al, byte [rdi]
not rcx
lea rdi, [rsi + rcx]
cmp rdi, 0x7f9
ja 0x65548b
lea rdx, str._127_____127s
mov rcx, r10
mov r9, r15
mov r8, r14
mov qword [rsp + 0x58], r11
call sub.msvcrt.dll_sscanf
lea rcx, [r12 + rsi]
mov edx, 0x800
lea r8, str._c_s_c_s
sub rdx, rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rsi, rdi
call fcn.0044b120
mov r11, qword [rsp + 0x58]
mov rbx, qword [rbx + 8]
jmp 0x65541a
lea rcx, [r12 + rsi]
lea r8, [0x00663218]
mov edx, 0x800
sub rdx, rsi
mov r9d, 0xff
mov dword [rsp + 0x20], 0xf0
call fcn.0044b120
xor r9d, r9d
lea r8d, [rsi + 2]
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x6554e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
mov rcx, rbp
call fcn.0044ea90
cmp byte [rbp + 0x448], 0
je 0x655506
lea r8, [r12 + 2]
mov r9, rsi
mov edx, 0x3e
mov rcx, rbp
call fcn.00654cfe
nop
add rsp, 0x968
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140006840
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006864
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1400068f2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400068c0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400068c0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400afde0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400068dd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400068e5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006881
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400069d0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140006909
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000690b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000693d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400afde0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400069cd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006978
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400069ae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400897f0
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400069cd
cmp rsi, rax
ja 0x140006981
test rsi, rsi
je 0x1400069cd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400897f0
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140012420
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor r14d, r14d
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov ebp, 1
mov dword [rsp + 0x20], ebp
test eax, eax
je 0x1400125a5
mov dil, 0x41
movsx eax, dil
sub eax, 0x41
movzx ecx, al
bt esi, ecx
jae 0x140012598
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
movsx edx, dil
mov r8d, 1
lea rcx, [rsp + 0x28]
call fcn.140017060
nop
mov r8d, 2
lea rdx, [0x1400d313c]
lea rcx, [rsp + 0x28]
call fcn.1400086b0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
or ebp, 2
mov dword [rsp + 0x20], ebp
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14001250e
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x48], r14w
add qword [rbx + 8], 0x20
jmp 0x140012520
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.14000b4b0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14001255a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012554
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400125bd
call fcn.140079cc0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140012598
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012593
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400125c3
call fcn.140079cc0
inc dil
cmp dil, 0x5a
jle 0x140012472
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14008a000
nop
call fcn.14008a000
int3
Function at 0x140014450
Capabilities:
Hash data using sha1

Disassembly:
mov rcx, qword [rcx + 0xc8]
jmp 0x140048e80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1400f6cb8], 0
mov rbx, rdx
mov rdi, rcx
jne 0x140048e9e
call fcn.1400526a0
cmp byte [0x1400f6cc2], 0
mov rdx, rbx
mov rcx, rdi
je 0x140048ec5
xor r9d, r9d
mov r8d, 0x40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400530c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140046b00

Function at 0x140017f40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140017fa1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140017f60
mov ecx, dword [r9]
jmp 0x14001808b
cmp ecx, 0x4e0
jb 0x14001808b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140017fc0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140018010
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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 eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400182a0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0xd10
mov rax, qword [0x1400ee500]
xor rax, rsp
mov qword [rsp + 0xd00], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x50], 0x640
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140018400
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140018330
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140004b50
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x58]
cmova rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140018950
mov rdx, rax
mov rcx, rbx
call fcn.1400154a0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400183c2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400183bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018422
call fcn.140079cc0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140018400
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400183fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001841c
call fcn.140079cc0
mov rax, rbx
mov rcx, qword [rsp + 0xd00]
xor rcx, rsp
call fcn.140079ca0
add rsp, 0xd10
pop rbx
ret
call fcn.14008a000
nop
call fcn.14008a000
int3
Function at 0x140018430
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0xd10
mov rax, qword [0x1400ee500]
xor rax, rsp
mov qword [rsp + 0xd00], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x50], 0x640
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140018590
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400184c0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140004b50
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x58]
cmova rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140018950
mov rdx, rax
mov rcx, rbx
call fcn.1400154a0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140018552
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001854c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400185b2
call fcn.140079cc0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140018590
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001858b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400185ac
call fcn.140079cc0
mov rax, rbx
mov rcx, qword [rsp + 0xd00]
xor rcx, rsp
call fcn.140079ca0
add rsp, 0xd10
pop rbx
ret
call fcn.14008a000
nop
call fcn.14008a000
int3
Function at 0x1400439b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400ee500]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140043a48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140043a48
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140043a6c
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140079ca0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140008990
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140043b20
lea rdx, [0x1400ec840]
lea rcx, [rsp + 0x50]
call fcn.14007bef8
int3

Function at 0x140043f20
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ee500]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1400f78d0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400f57e0], ecx
jg 0x140043fff
mov eax, ebx
cmp rbx, rax
jne 0x140043fc1
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x140043fc1
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x1400f57d8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140044042
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140079ca0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140008990
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140043b20
lea rdx, [0x1400ec840]
lea rcx, [rsp + 0x40]
call fcn.14007bef8
nop
lea rcx, [0x1400f57e0]
call fcn.14007a708
cmp dword [0x1400f57e0], 0xffffffff
jne 0x140043f6c
lea rcx, [0x1400f57d8]
call fcn.1400439b0
lea rcx, [0x1400b5f30]
call fcn.140079ffc
nop
lea rcx, [0x1400f57e0]
call fcn.14007a69c
jmp 0x140043f6c
lea rdx, [0x1400bdec8]
lea rcx, [rsp + 0x20]
call fcn.140008990
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140043b20
lea rdx, [0x1400ec840]
lea rcx, [rsp + 0x40]
call fcn.14007bef8
int3
Function at 0x140048e80
Capabilities:
Hash data using sha1

Disassembly:
mov rcx, qword [rcx + 0xc8]
jmp 0x140048e80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1400f6cb8], 0
mov rbx, rdx
mov rdi, rcx
jne 0x140048e9e
call fcn.1400526a0
cmp byte [0x1400f6cc2], 0
mov rdx, rbx
mov rcx, rdi
je 0x140048ec5
xor r9d, r9d
mov r8d, 0x40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400530c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140046b00

Function at 0x14004b130
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x14004b167
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x14004b150
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x14004b258
sub rcx, r10
cmp r9, 8
jb 0x14004b239
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x14004b1c0
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x14004b258
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x14004b240
test r8d, r8d
sete al
ret
Function at 0x14004b260
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x14004b3f6
cmp r9, 4
jb 0x14004b29a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x14004b281
xor r11d, r11d
test r9, r9
je 0x14004b3f6
cmp r9, 8
jb 0x14004b3cd
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14004b2cc
cmp r10, r8
jae 0x14004b3cd
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x14004b2e1
cmp r10, rdx
jae 0x14004b3cd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14004b387
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x14004b320
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14004b3bf
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x14004b3a0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14004b3f6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x14004b3e0
add rsp, 8
ret