joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1337c0f37490
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r9, rcx
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x70], xmm0
mov qword [rcx + 0x80], rax
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x10], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x18], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [r9 + 0x2c], ecx
mov dword [r9 + 0x38], r8d
shr r8, 0x20
mov dword [r9 + 0x3c], r8d
mov qword [r9 + 0x30], rax
ret

Function at 0x1337c0f37600
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1337c0f35840
lea rcx, [fcn.1337c0f37600]
xor rax, rcx
xor rax, rbx
mov r8, rax
shr r8, 0x11
xor r8, rax
and r8d, 0xf
add r8, 1
je 0x1337c0f37683
mov r9d, setsockopt
movabs r10, 0xbf58476d1ce4e5b9
movabs r11, 0x94d049bb133111eb
nop dword [rax]
test rax, rax
cmove rax, r9
mov rcx, rax
shr rcx, 0x1e
xor rcx, rax
imul rcx, r10
mov rdx, rcx
shr rdx, 0x1b
xor rdx, rcx
imul rdx, r11
mov rax, rdx
shr rax, 0x1f
xor rax, rdx
sub r8, 1
jne 0x1337c0f37650
add rsp, 0x20
pop rbx
ret
Function at 0x1337c0fbd540
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r15
mov eax, 0x28
call fcn.1337c1024f90
sub rsp, rax
mov rsi, qword [rsp + 0x88]
mov r10, r9
mov r15, qword [rsp + 0x80]
mov rdi, r8
mov rbp, rdx
mov r12, rcx
mov ebx, dword [rsi]
test ebx, ebx
je 0x1337c0fbd5a3
nop dword [rax]
test rdi, rdi
je 0x1337c0fbd5a3
mov eax, ebx
dec rdi
movzx ecx, byte [rax + r15]
xor cl, byte [r12]
inc r12
mov byte [rbp], cl
inc rbp
inc ebx
and ebx, 0xf
jne 0x1337c0fbd580
mov r9, qword [rsp + 0x90]
cmp rdi, 0x10
jb 0x1337c0fbd669
mov qword [rsp + 0x60], r13
mov rsi, rbp
mov r13, rdi
mov qword [rsp + 0x20], r14
shr r13, 4
mov r14, r12
imul rax, r13, 0xfffffffffffffff0
sub rsi, r15
sub r14, r15
add rdi, rax
mov rax, r13
shl rax, 4
add rbp, rax
mov qword [rsp + 0x68], rbp
add r12, rax
mov rbp, qword [rsp + 0x78]
mov r8, rbp
mov rdx, r15
mov rcx, r15
call r9
cmp ebx, 0x10
jae 0x1337c0fbd635
mov edx, recv
mov ecx, ebx
sub edx, ebx
add rcx, r15
shr edx, 3
inc edx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r14 + rcx]
xor rax, qword [rcx]
mov qword [rsi + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1337c0fbd620
mov r9, qword [rsp + 0x90]
add rsi, 0x10
add r14, 0x10
xor ebx, ebx
sub r13, 1
jne 0x1337c0fbd5f0
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x88]
mov r10, qword [rsp + 0x78]
test rdi, rdi
je 0x1337c0fbd696
mov r8, r10
mov rdx, r15
mov rcx, r15
call r9
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [r15 + rcx]
xor al, byte [rcx + r12]
mov byte [rcx + rbp], al
sub rdi, 1
jne 0x1337c0fbd680
mov dword [rsi], ebx
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1337c0fbd880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x20
call fcn.1337c1024f90
sub rsp, rax
cmp dword [rsp + 0x90], 0
mov r10, r9
mov rbp, qword [rsp + 0x88]
mov rdi, r8
mov r15, qword [rsp + 0x80]
mov rsi, rdx
mov r14, rcx
mov ebx, dword [rbp]
je 0x1337c0fbd9e0
test ebx, ebx
je 0x1337c0fbd8f9
test rdi, rdi
je 0x1337c0fbd8f9
movzx eax, byte [r14]
dec rdi
mov ecx, ebx
inc r14
xor byte [rcx + r15], al
movzx eax, byte [rcx + r15]
mov byte [rsi], al
inc rsi
inc ebx
and ebx, 0xf
jne 0x1337c0fbd8d3
mov r9, qword [rsp + 0x98]
cmp rdi, 0x10
jb 0x1337c0fbd9a4
mov r12, rsi
mov r13, rdi
shr r13, 4
mov rbp, r14
imul rax, r13, 0xfffffffffffffff0
sub r12, r15
sub rbp, r15
add rdi, rax
mov rax, r13
shl rax, 4
add rsi, rax
mov qword [rsp + 0x68], rsi
add r14, rax
mov rsi, qword [rsp + 0x78]
nop dword [rax]
mov r8, rsi
mov rdx, r15
mov rcx, r15
call r9
cmp ebx, 0x10
jae 0x1337c0fbd97a
mov edx, recv
mov ecx, ebx
sub edx, ebx
add rcx, r15
shr edx, 3
inc edx
mov rax, qword [rcx + rbp]
xor qword [rcx], rax
mov rax, qword [rcx]
mov qword [r12 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1337c0fbd962
mov r9, qword [rsp + 0x98]
add r12, 0x10
add rbp, 0x10
xor ebx, ebx
sub r13, 1
jne 0x1337c0fbd940
mov rsi, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
test rdi, rdi
je 0x1337c0fbdaed
mov r8, r10
mov rdx, r15
mov rcx, r15
call r9
nop dword [rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r14]
xor byte [r15 + rcx], al
movzx eax, byte [r15 + rcx]
mov byte [rsi + rcx], al
sub rdi, 1
jne 0x1337c0fbd9c0
jmp 0x1337c0fbdaed
test ebx, ebx
je 0x1337c0fbda0c
test rdi, rdi
je 0x1337c0fbda0c
movzx edx, byte [r14]
dec rdi
mov ecx, ebx
inc r14
movzx eax, dl
xor al, byte [rcx + r15]
mov byte [rsi], al
inc rsi
inc ebx
mov byte [rcx + r15], dl
and ebx, 0xf
jne 0x1337c0fbd9e4
mov r13, qword [rsp + 0x98]
cmp rdi, 0x10
jb 0x1337c0fbdab6
mov rbp, rdi
mov r12, rsi
shr rbp, 4
sub r12, r15
imul rax, rbp, 0xfffffffffffffff0
add rdi, rax
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x78]
nop dword [rax]
mov r8, rdi
mov rdx, r15
mov rcx, r15
call r13
cmp ebx, 0x10
jae 0x1337c0fbda90
mov r9d, recv
mov r8d, ebx
sub r9d, ebx
mov r10, r14
shr r9d, 3
add r8, r15
sub r10, rsi
inc r9d
nop dword [rax]
lea rcx, [r12 + r8]
mov rdx, qword [rcx + r10]
lea r8, [r8 + 8]
mov rax, rdx
xor rax, qword [r8 - 8]
mov qword [rcx], rax
mov qword [r8 - 8], rdx
sub r9, 1
jne 0x1337c0fbda70
add rsi, 0x10
add r12, 0x10
add r14, 0x10
xor ebx, ebx
sub rbp, 1
jne 0x1337c0fbda40
mov rdi, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
test rdi, rdi
je 0x1337c0fbdaed
mov r8, r10
mov rdx, r15
mov rcx, r15
call r13
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx edx, byte [rcx + r14]
movzx eax, dl
xor al, byte [rcx + r15]
mov byte [rsi + rcx], al
mov byte [rcx + r15], dl
sub rdi, 1
jne 0x1337c0fbdad0
mov dword [rbp], ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1337c0fbfa00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x78
call fcn.1337c1024f90
sub rsp, rax
mov rax, qword [0x1337c124bac0]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx edi, byte [rcx]
mov rbp, r9
mov r10, qword [rsp + 0xe0]
mov r13, r9
mov r9, qword [rcx + 0x30]
mov r15, r8
mov rax, qword [rcx + 0x28]
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rbx, rcx
mov qword [rsp + 0x40], r10
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x48], rax
test dil, 0x40
jne 0x1337c0fbfa78
lea rdx, [rcx + 0x10]
mov r8, r9
call rax
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov r12d, recv
xor esi, esi
mov r8d, edi
mov eax, r12d
and r8d, 7
mov ecx, esi
sub eax, r8d
mov dword [rsp + 0x40], r8d
mov byte [rbx], r8b
cmp eax, r12d
jae 0x1337c0fbfab8
mov edx, eax
add rdx, rbx
movzx eax, byte [rdx]
mov byte [rdx], sil
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
sub r8, 1
jne 0x1337c0fbfaa1
movzx eax, byte [rbx + 0xf]
or rcx, rax
mov byte [rbx + 0xf], 1
cmp rcx, rbp
je 0x1337c0fbfad2
mov eax, 0xffffffff
jmp 0x1337c0fbfbfd
mov rdi, rbp
shr rdi, 4
test rdi, rdi
je 0x1337c0fbfb53
lea rax, [rbx + 0x10]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call r10
shl rdi, 4
add r14, rdi
add r15, rdi
sub rbp, rdi
je 0x1337c0fbfba9
shr rdi, 4
lea r8, [rbx + 0x10]
mov r9, 0xfffffffffffffff8
mov rdx, rsi
sub r9, rbx
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
add rdx, rax
movzx ecx, dil
add rdx, rcx
shr rdi, 8
mov byte [r8], dl
lea rax, [r9 + r8]
shr rdx, 8
test rax, rax
je 0x1337c0fbfb58
test rdi, rdi
jne 0x1337c0fbfb20
test rdx, rdx
jne 0x1337c0fbfb20
jmp 0x1337c0fbfb58
test r13, r13
je 0x1337c0fbfba9
mov rdi, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov r8, rdi
mov rcx, rbx
call r13
test rbp, rbp
je 0x1337c0fbfb9a
mov rcx, rsi
nop dword [rax + rax]
movzx eax, byte [rcx + r14]
inc esi
xor al, byte [rsp + rcx + 0x50]
mov byte [rcx + r15], al
xor byte [rcx + rbx + 0x10], al
mov ecx, esi
cmp rcx, rbp
jb 0x1337c0fbfb80
lea rcx, [rbx + 0x10]
mov r8, rdi
mov rdx, rcx
call r13
jmp 0x1337c0fbfbb3
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
sub r12d, dword [rsp + 0x40]
cmp r12d, 0x10
jae 0x1337c0fbfbd4
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r12d
sub r8d, r12d
add rcx, rbx
xor edx, edx
call fcn.1337c1053be0
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call r13
mov rax, qword [rsp + 0x50]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x58]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1337c1025070
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1337c1003130
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
movd xmm4, r8d
mov r10d, r8d
pshufd xmm4, xmm4, 0
lea rcx, [rdx + 0x3c]
lea rax, [r9 + 0x3c]
cmp rdx, rax
ja 0x1337c1003181
cmp rcx, r9
jb 0x1337c1003181
sub r9, rdx
mov r8d, reloc.WS2_32.dll_recv
nop dword [rax + rax]
mov ecx, dword [r9 + rdx]
lea rdx, [rdx + 4]
mov eax, ecx
xor eax, dword [rdx - 4]
and eax, r10d
xor ecx, eax
mov dword [r9 + rdx - 4], ecx
xor dword [rdx - 4], eax
sub r8, 1
jne 0x1337c1003160
ret
sub r9, rdx
mov eax, 4
nop dword [rax]
movdqu xmm1, xmmword [r9 + rdx]
movdqu xmm2, xmmword [rdx]
lea rdx, [rdx + 0x10]
movdqa xmm3, xmm1
xorps xmm3, xmm2
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [r9 + rdx - 0x10], xmm0
movdqu xmmword [rdx - 0x10], xmm3
sub rax, 1
jne 0x1337c1003190
ret
Function at 0x1337c1008610
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x30
call fcn.1337c1024f90
sub rsp, rax
xor edi, edi
mov qword [rsp + 0x40], rbp
movsxd rbx, r9d
mov r11, r8
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
mov rbp, rcx
mov r10d, edi
test r9d, r9d
jle 0x1337c1008734
cmp ebx, 8
jb 0x1337c1008734
lea rax, [rbx - 1]
lea rcx, [rax + rdx]
add rax, r8
cmp rdx, rax
ja 0x1337c1008669
cmp rcx, r8
jae 0x1337c1008734
sub r8, rdx
cmp ebx, 0x40
jb 0x1337c10086fe
mov eax, ebx
mov qword [rsp + 0x48], rsi
and eax, 0xffffffc0
mov r9, 0xfffffffffffffff0
movsxd rsi, eax
sub r9, rdx
lea rcx, [rdx + 0x10]
movdqu xmm0, xmmword [rcx - 0x10]
add r10d, 0x40
movdqu xmm1, xmmword [rcx + r8 - 0x10]
lea rcx, [rcx + 0x40]
lea rax, [r9 + rcx]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx + r8 - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm2, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [rcx + r8 - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [rcx + r8 - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, rsi
jl 0x1337c1008690
mov rsi, qword [rsp + 0x48]
mov eax, ebx
and al, 0x3f
cmp al, 8
jb 0x1337c1008734
mov ecx, ebx
and ecx, 0xfffffff8
movsxd rax, r10d
movsxd r9, ecx
lea rcx, [rax + rdx]
nop dword [rax]
movq xmm0, qword [rcx]
add r10d, 8
movq xmm1, qword [r8 + rcx]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add rcx, 8
mov rax, rcx
sub rax, rdx
cmp rax, r9
jl 0x1337c1008710
movsxd rcx, r10d
mov r8, rbx
cmp rcx, rbx
jge 0x1337c1008761
sub r11, rdx
lea rax, [rcx + rdx]
sub r8, rcx
nop dword [rax]
movzx ecx, byte [r11 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x1337c1008750
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0x58]
mov r9, rdx
mov dword [rsp + 0x20], ebx
call fcn.1337c0f7ee90
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x1337c1008794
cmp dword [rsp + 0x58], ebx
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1337c1008920
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov r10, rcx
test rdx, rdx
je 0x1337c100899b
test r8, r8
je 0x1337c100899b
mov r9, qword [rcx + 0x28]
cmp r8, r9
cmovb r9, r8
test r9, r9
je 0x1337c1008961
add rcx, 0x30
sub rdx, r10
nop word [rax + rax]
movzx eax, byte [rdx + rcx - 0x30]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1337c1008950
mov rax, qword [r10 + 0x28]
cmp r8, rax
jbe 0x1337c100899b
sub r8, rax
cmp r8, 0x10
jbe 0x1337c100897b
mov r8d, reloc.WS2_32.dll_recv
jmp 0x1337c1008980
test r8, r8
je 0x1337c100899b
xor ecx, ecx
mov rax, qword [r10 + 0x28]
add rax, rcx
movzx eax, byte [rax + r11]
xor byte [r10 + rcx + 0x50], al
inc rcx
cmp rcx, r8
jb 0x1337c1008982
ret
Function at 0x140015188
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x14001519f
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x1400151a9
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x1400151bc
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
in eax, dx
fisttp dword [rbx - 0x7fa30a20]
in eax, 0xe3
sub al, 0x6d
insd dword [rdi], dx
insd dword [rdi], dx
cmc
out dx, al
mov edi, 0xfb08b045
invalid
pop rcx
js 0x140093649
std
imul ecx, dword [rax + 0x5098a2a], 0xffffff84
invalid
lodsb al, byte [rsi]
jg 0x1400936a6
or dword [0x144908501], edx
mov dl, 0x98
stosd dword [rdi], eax
cmp dword [rdi + 0x54086dc], esi
in al, 0xe4
jle 0x1400936c7
invalid
invalid
or eax, 0xa6cba077
invalid
in eax, 0xf0
invalid
or ecx, ebx
sahf
invalid
test eax, 0x25442e39
cmp dh, bl
movabs dword [0xb2345dd0550c1165], eax
in eax, 0x44
sbb ah, ah
push rbp
rcr byte [rbp + 0x34], 1
mov dl, 0xe5
sbb r12b, spl
jmp 0x1400938e7

Function at 0x1400151c4
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x1400151f9
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
loopne 0x140093a28
pop rbx
sar byte [rdi], 1
loop 0x140093a42
push qword [rdx - 0x6600005b]
invalid
out 0x39, al
xchg edi, eax
out 0xe0, eax
test al, 0xff
test eax, 0xd1cf3111
add dword [rbx - 0x1424f95f], ebx
hlt
stosd dword [rdi], eax
fucomi st(0)
ret 0xb86d
nop
pop rdi
push rdx
invalid
call [rcx - 0x152b0031]
mov eax, 0x69afbb89
adc al, 0xe1
jo 0x1400940b6
outsd dx, dword [rsi]
cld
mov bh, 0xff
scasb al, byte [rdi]
push rax
fisttp dword [r10 + rbp*2 - 0x60]
mov al, 0xa9
scasd eax, dword [rdi]
and edi, dword [rax + 0x47030092]
mov eax, 0x47030092
movabs rax, 0x7243d649ba1c15d2
invalid
add al, 0x2e
invalid
rol dword [rdx], 0xaa
invalid
sub eax, 0x617e2f5a
sub cl, ah
push rbp
invalid
invalid
iretd
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
movsd dword [rdi], dword [rsi]
invalid
bnd jle 0x14003f654
jbe 0x14003f6a2
sbb esi, ecx
cmp dword [rdx - 0x50], edi
insd dword [rdi], dx
pop rdx
or al, 0xf
sub eax, edi
movabs byte [0x273bf01de4875e5e], al
invalid
neg dword [rdi + 0x17303165]
fild dword [rdx + 0x2e8bcde5]
movsb byte [rdi], byte [rsi]
invalid
movsb byte [rdi], byte cs:[rsi]
mov ebp, dword [rbx]
scasd eax, dword [rdi]
add al, 0x26
add edx, dword [rbp - 0x25df5453]
pop rbx
invalid
dec byte [rbx + 0xec6d8b0]
pop rdi
push rsi
jrcxz 0x14003f67a
invalid
cld
pop rbp
pop rsp
js case.0x140007272.3
sar dword [rdi + 0xb], 0x7f
sti
cld
imul ebx, r13d, 0x86c5425e
cli
std
insb byte [rdi], dx
invalid
cmp al, 0x4a
hlt
int3
sti
add eax, 0x97108b7c
pop rcx
invalid
imul esi, dword [rdi + 0x7e984d07], 0x52
xchg r9d, eax
invalid
Function at 0x140001000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x1400010cf
lea r8, str.LYSHARK
mov qword [rsp + 0x48], rdi
mov edx, 0x66
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400010ca
mov rdx, rax
mov qword [rsp + 0x30], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x1400010c5
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400010c5
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400010b7
lea rdx, [0x14001b918]
lea rcx, str.C:WindowsSystem32_netserv.dll
call fcn.14000562c
mov rdi, rax
test rax, rax
je 0x1400010b7
mov r8d, ebp
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.140005bcc
mov rcx, rdi
call fcn.1400057c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
lea rcx, [0x14001b8b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001104
lea rdx, [0x14001b8f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400010fb
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001b08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b52
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b54
xor al, al
add rsp, 0x28
ret

Function at 0x14000698c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006788
Function at 0x140009ac0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140009ad6
mov al, 1
jmp 0x140009b36
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140009ae7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140009b34
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000c338
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009b34
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140009b34
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140009b34
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140009b36
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000b818
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 0x14000b848
xor eax, eax
jmp 0x14000b90b
mov rbp, rbx
cmp word [rax], si
je 0x14000b86d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000b854
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000b850
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.14000b738
movsxd r14, eax
test eax, eax
jne 0x14000b8ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000b841
mov rcx, r14
call fcn.14000c8f4
mov rdi, rax
test rax, rax
jne 0x14000b8c4
xor ecx, ecx
call fcn.140007f94
jmp 0x14000b8a0
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.14000b738
test eax, eax
jne 0x14000b8f5
mov rcx, rdi
call fcn.140007f94
jmp 0x14000b8ff
xor ecx, ecx
call fcn.140007f94
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