joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017ed20
Capabilities:
Read file on windows

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
mov rbx, rcx
test rcx, rcx
jne 0x14017ea42
call fcn.140168318
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1401660c8
jmp 0x14017eb92
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14017eb92
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14017eb92
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14017ea71
lock or dword [rcx + 0x14], 0x10
jmp 0x14017eb92
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14017ea85
call fcn.14018052c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14017ea95
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14017ea98
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14017d7d4
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14017fb5c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14017eb80
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14017eb2b
mov rcx, rbx
call fcn.14017d7d4
cmp eax, 0xffffffff
je 0x14017eb16
mov rcx, rbx
call fcn.14017d7d4
cmp eax, 0xfffffffe
je 0x14017eb16
mov rcx, rbx
call fcn.14017d7d4
movsxd rdi, eax
lea rsi, [0x14022d860]
mov rcx, rbx
sar rdi, 6
call fcn.14017d7d4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14017eb1d
lea rdx, [0x140222330]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14017eb2b
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14017eb4f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14017eb4f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14017eb4f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14017eb6d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14017eb78
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14017eb97
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14017ea0c
Function at 0x14017f038
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14015f440
sub rsp, rax
mov rax, qword [0x140221f78]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14017d7d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14017f087
mov rax, rbp
jmp 0x14017f18f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x22d860]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140180334
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x22d860]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14017f18b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14017f18b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140180334
test rax, rax
js 0x14017f18b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14017f18b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14017f17d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14017f17d
cmp byte [rcx], 0xd
jne 0x14017f163
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14017f172
cmp byte [rcx + 1], 0xa
jne 0x14017f172
inc rcx
jmp 0x14017f172
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x222380]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14017f145
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14017f18f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14015eb70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14017f6b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14022d860]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14017f70e
cmp word [rdx], r12w
jne 0x14017f70e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14017f714
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14017f86f
mov r9d, reloc.OLEAUT32.dll_SafeArrayCopy
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14017f84a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14017f74d
mov rcx, r9
jmp 0x14017f770
cmp r9, rdx
jae 0x14017f787
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.OLEAUT32.dll_SafeArrayCopy
add rbx, 2
cmp rcx, rdx
jb 0x14017f731
jmp 0x14017f86f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14017f844
cmp dword [rsp + 0x80], edi
je 0x14017f844
mov rdx, r14
lea r11, [0x14022d860]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14017f81d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14017f7f0
mov word [rbx], r12w
jmp 0x14017f86b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14017f7f9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14017f86b
cmp word [rsp + 0x70], r12w
jne 0x14017f82a
cmp rbx, rsi
je 0x14017f7ea
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14018033c
cmp word [rsp + 0x70], r12w
je 0x14017f86f
mov word [rbx], r13w
jmp 0x14017f86b
lea r11, [0x14022d860]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14017f867
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14017f86f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140188838
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.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140188868
xor eax, eax
jmp 0x14018892b
mov rbp, rbx
cmp word [rax], si
je 0x14018888d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140188874
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140188870
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.1401868dc
movsxd r14, eax
test eax, eax
jne 0x1401888cb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
jmp 0x140188861
mov rcx, r14
call fcn.140180b30
mov rdi, rax
test rax, rax
jne 0x1401888e4
xor ecx, ecx
call fcn.14017c974
jmp 0x1401888c0
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.1401868dc
test eax, eax
jne 0x140188915
mov rcx, rdi
call fcn.14017c974
jmp 0x14018891f
xor ecx, ecx
call fcn.14017c974
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.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
Function at 0x14018d394
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14018033c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14018033c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14018d4e4
cmp rax, 0xffffffffffffffff
je 0x14018d4e4
xor edi, edi
test rbp, rbp
jle 0x14018d48f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14017c9b0
mov rbx, rax
test rax, rax
jne 0x14018d41c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14018d485
mov edx, 0x8000
mov ecx, r14d
call fcn.14017c058
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14017e6fc
cmp eax, 0xffffffff
je 0x14018d465
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14018d42c
mov edx, r15d
mov ecx, r14d
call fcn.14017c058
jmp 0x14018d485
cmp byte [rsi + 0x38], dil
je 0x14018d47c
cmp dword [rsi + 0x34], 5
jne 0x14018d47c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x14018d485
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14017c974
jmp 0x14018d4f8
jns 0x14018d4f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14018033c
cmp rax, 0xffffffffffffffff
jne 0x14018d4b0
cmp byte [rsi + 0x30], dil
je 0x14018d4f8
mov edi, dword [rsi + 0x2c]
jmp 0x14018d4f8
mov ecx, r14d
call fcn.140188ef8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x14018d4f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x14018d4f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14018d4f1
mov eax, dword [rsi + 0x2c]
jmp 0x14018d4f6
mov eax, reloc.OLEAUT32.dll_SafeArrayAccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14018033c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140002160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, qword [rdx + 0x20]
mov r11, qword [rdx + 0x28]
lea r10, [r11 + 1]
mov qword [rdx + 0x28], r10
mov al, 1
cmp r10, rsi
jae 0x1400021a0
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + r10]
mov al, 1
cmp edi, 0x2b
je 0x140002195
cmp edi, 0x2d
jne 0x1400021a0
xor eax, eax
add r11, 2
mov qword [rdx + 0x28], r11
mov r10, r11
cmp r10, rsi
jae 0x14000233f
mov rdi, qword [rdx + 0x18]
movzx r11d, byte [rdi + r10]
lea rbx, [r10 + 1]
mov qword [rdx + 0x28], rbx
add r11b, 0xd0
cmp r11b, 0xa
jae 0x14000234a
movzx r11d, r11b
cmp rbx, rsi
jae 0x14000223d
mov ebx, 1
sub rbx, rsi
add r10, 2
jmp 0x1400021fc
movzx esi, sil
lea r11d, [r11 + r11*4]
lea r11d, [rsi + r11*2]
lea rsi, [rbx + r10]
inc rsi
inc r10
cmp rsi, 2
je 0x14000223d
movzx esi, byte [rdi + r10 - 1]
add sil, 0xd0
cmp sil, 0xa
jae 0x14000223d
mov qword [rdx + 0x28], r10
cmp r11d, 0xccccccb
jle 0x1400021e0
cmp r11d, 0xccccccc
jne 0x140002228
cmp sil, 7
jbe 0x1400021e0
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
call fcn.1403e3210
jmp 0x14000232c
mov r10d, dword [rsp + 0x80]
test al, al
je 0x14000225a
lea eax, [r10 + r11]
sar eax, 0x1f
add eax, 0x80000000
add r10d, r11d
jmp 0x14000226a
xor eax, eax
cmp r10d, r11d
setns al
add eax, 0x7fffffff
sub r10d, r11d
cmovo r10d, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x1403f4000]
subpd xmm1, xmmword [0x1403f4010]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jb 0x1400022dc
xorpd xmm1, xmm1
movsd xmm2, qword [0x1403f4020]
nop dword [rax + rax]
ucomisd xmm0, xmm1
jne 0x1400022b8
jnp 0x140002315
test r10d, r10d
jns 0x140002373
divsd xmm0, xmm2
add r10d, 0x134
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jae 0x1400022b0
mov eax, eax
mov r9, qword [0x1405c1250]
movsd xmm1, qword [r9 + rax*8]
test r10d, r10d
js 0x140002334
mulsd xmm0, xmm1
movq rax, xmm0
movabs r9, 0x7fffffffffffffff
and r9, rax
movabs rax, 0x7ff0000000000000
cmp r9, rax
je 0x140002373
test r8b, r8b
jne 0x140002322
xorpd xmm0, xmmword [0x1403f4030]
movsd qword [rcx + 8], xmm0
xor eax, eax
mov qword [rcx], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x14000231a
jmp 0x140002322
mov qword [rsp + 0x28], 5
jmp 0x140002353
mov qword [rsp + 0x28], 0xc
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1403e32b0
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14000232c
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1403e32b0
mov rcx, rsi
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140002329
Function at 0x1400e1cf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x1400e1d86
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdetC:Userswarden.cargo_registry_srcindex.crates.io_6f17d22bba15001fgeneric_array_0.14.6_srchex.rs]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x140405890]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400e40b0
test rdi, rdi
je 0x1400e1e15
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x1400e1e2e
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x1400e1f26
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x1400e1fa8
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x1400e1f33
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x1400e1df0
cmp r9, 8
jae 0x1400e1f3c
jmp 0x1400e1fa8
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400e40b0
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, r9
mov r8, qword [rsp + 0x30]
add r8, rax
mov rdx, qword [rsp + 0x38]
add rdx, rcx
rol rax, 0xd
xor rax, r8
rol rcx, 0x10
rol r8, 0x20
xor rcx, rdx
add rdx, rax
rol rax, 0x11
add r8, rcx
xor rax, rdx
rol rcx, 0x15
xor rcx, r8
rol rdx, 0x20
xor r8, r9
xor rdx, 0xff
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
rol rcx, 0x10
xor rcx, rdx
rol r8, 0x20
add rdx, rax
add r8, rcx
rol rax, 0x11
xor rax, rdx
rol rcx, 0x15
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
rol rcx, 0x10
xor rcx, rdx
rol r8, 0x20
add rdx, rax
add r8, rcx
rol rax, 0x11
xor rax, rdx
rol rcx, 0x15
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
shl rcx, 0x10
xor rcx, rdx
add rdx, rax
shr rax, 0x2f
shr rcx, 0x2b
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x1400e1fa8
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x1400e1fa8
mov r8, rcx
cmp r9, 8
jb 0x1400e1fa8
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x1400e1f40
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400e40b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400e40f2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400e40fa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400e410b
jmp 0x1400e4122
xor r10d, r10d
jmp 0x1400e41ad
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400e4122
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400e4139
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400e4159
add r11, r8
jmp 0x1400e4289
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400e4222
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400e41d0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400e423f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x1400e4250
jmp 0x1400e426b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x1400e426b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x1400e4285
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400efb60
Capabilities:
Get session user name

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp - 0xc], 0
lea rdx, [rbp - 0xc]
xor ecx, ecx
call qword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
jne 0x1400efc8a
mov r14d, dword [rbp - 0xc]
lea rdi, [r14 + r14]
test r14, r14
je 0x1400efbcb
movzx eax, byte [0x1405c4221]
mov edx, 2
mov rcx, rdi
call fcn.1400ebbf0
mov rbx, rax
test rax, rax
jne 0x1400efbd0
mov ecx, 2
mov rdx, rdi
call fcn.1403f1990
mov ebx, 2
mov dword [rbp - 0xc], r14d
lea rdx, [rbp - 0xc]
mov rcx, rbx
call qword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
je 0x1400efbfb
mov r8d, dword [rbp - 0xc]
test r8, r8
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x28], r14
je 0x1400efc51
dec r8
jmp 0x1400efc54
movzx eax, byte [0x1405c4221]
mov ecx, 7
mov edx, 1
call fcn.1400ebbf0
test rax, rax
je 0x1400efca2
mov dword [rax + 3], 0x6e776f6e
mov dword [rax], 0x6e6b6e75
mov qword [rsi], 7
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 7
mov byte [rsi + 0x18], 1
test r14d, r14d
je 0x1400efc7c
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
jmp 0x1400efc77
xor r8d, r8d
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov rdx, rbx
call fcn.1403a8fa0
cmp dword [rbp - 0x28], 0
je 0x1400efc7c
mov r8d, 2
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
call fcn.1400ebc00
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.assertion_failed:_successC:Userswarden.cargo_registry_srcindex.crates.io_6f17d22bba15001fwhoami_1.2.3_srcwindows.rs
lea r8, [0x1404072f0]
mov edx, 0x19
call fcn.1403f1d50
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rdi
mov ecx, 1
mov edx, 7
call fcn.1403f1990
ud2
Function at 0x14010ce50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov rcx, qword [rcx]
mov rsi, qword [rdx]
call fcn.1403bb550
mov r8, rdx
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1403aba10
mov rcx, rsi
call fcn.1403bb550
mov r8, rdx
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.1403aba10
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
cmp rbx, r14
jne 0x14010cf15
movzx eax, byte [rsp + 0x58]
cmp al, byte [rsp + 0x98]
jne 0x14010cf15
cmp byte [rsp + 0x59], 2
jne 0x14010cf15
cmp byte [rsp + 0x99], 2
jne 0x14010cf15
movzx eax, byte [rsp + 0x30]
cmp al, 6
jne 0x14010cee0
cmp byte [rsp + 0x70], 3
jae 0x14010ceff
jmp 0x14010cf15
movzx ecx, byte [rsp + 0x70]
cmp cl, 6
jne 0x14010cef0
cmp al, 3
jae 0x14010ceff
jmp 0x14010cf15
cmp al, 3
setb al
cmp cl, 3
setb cl
xor cl, al
jne 0x14010cf15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14010d1fe
movzx eax, byte [rsp + 0x30]
cmp al, 6
je 0x14010cf45
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x1af], rcx
movups xmm0, xmmword [rsp + 0x31]
movups xmm1, xmmword [rsp + 0x41]
movaps xmmword [rsp + 0x1a0], xmm1
movaps xmmword [rsp + 0x190], xmm0
movzx ecx, byte [rsp + 0x5a]
movzx r8d, byte [rsp + 0x58]
movzx r9d, byte [rsp + 0x59]
movzx edx, byte [rsp + 0x70]
cmp dl, 6
je 0x14010cf8d
mov r10, qword [rsp + 0x90]
mov qword [rsp + 0x1df], r10
movups xmm0, xmmword [rsp + 0x71]
movups xmm1, xmmword [rsp + 0x81]
movaps xmmword [rsp + 0x1d0], xmm1
movaps xmmword [rsp + 0x1c0], xmm0
movzx r10d, byte [rsp + 0x9a]
movzx r11d, word [rsp + 0x98]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], rbx
mov byte [rsp + 0xb0], al
movaps xmm0, xmmword [rsp + 0x190]
movaps xmm1, xmmword [rsp + 0x1a0]
movups xmmword [rsp + 0xb1], xmm0
movups xmmword [rsp + 0xc1], xmm1
mov rax, qword [rsp + 0x1af]
mov qword [rsp + 0xd0], rax
mov byte [rsp + 0xd8], r8b
mov byte [rsp + 0xd9], r9b
mov byte [rsp + 0xda], cl
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x158], r14
mov byte [rsp + 0x160], dl
movaps xmm0, xmmword [rsp + 0x1c0]
movaps xmm1, xmmword [rsp + 0x1d0]
movups xmmword [rsp + 0x161], xmm0
movups xmmword [rsp + 0x171], xmm1
mov rax, qword [rsp + 0x1df]
mov qword [rsp + 0x180], rax
mov word [rsp + 0x188], r11w
mov byte [rsp + 0x18a], r10b
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0xa0]
call fcn.1403a9d60
movzx ebx, byte [rsp + 0xe0]
cmp bl, 0xa
jne 0x14010d09c
xor r14d, r14d
jmp 0x14010d0d2
mov al, 1
jmp 0x14010d1ea