joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e9d0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x60
xor r12d, r12d
mov r15, r9
mov rsi, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
je 0x14001eba6
mov qword [rsp + 0x98], rbx
test r8b, r8b
je 0x14001ea3c
movzx eax, byte [rdx]
test al, 8
je 0x14001ea3c
or al, 8
mov dword [rbp + 0x30], r12d
mov byte [rdx], al
lea r9, [rbp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rbp - 0x18]
setne dl
call fcn.14001e910
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.14001e910
test ebx, ebx
je 0x14001eba2
mov qword [rsp + 0xa0], r13
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0xa8], r14
lea r13, [0x14012c2f8]
mov r14, qword [0x14012c300]
add rcx, r14
mov dword [rbp - 0x2c], r12d
cmp rcx, 1
jbe 0x14001eaac
mov rax, qword [0x14012c2f8]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov r14, qword [0x14012c300]
jmp 0x14001eaae
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x18]
add rax, 2
mov dword [rbp - 0x30], 0x2733
mov qword [rbp - 0x20], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x20]
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rbp - 0x30]
movsd qword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
call fcn.14001b460
test al, al
jne 0x14001eb4b
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x2c], r12d
add rax, r14
cmp rax, 1
jbe 0x14001eb11
mov rax, qword [0x14012c2f8]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x14001eb13
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x18]
add rax, 2
mov dword [rbp - 0x30], 0x4d5
mov qword [rbp - 0x20], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x20]
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rbp - 0x30]
movsd qword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
call fcn.14001b460
test al, al
je 0x14001eb7c
lea r8, [rbp + 0x30]
mov dword [rbp + 0x30], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rsi], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.14001e910
mov r13, qword [rsp + 0xa0]
mov eax, ebx
mov r14, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, ebx
jmp 0x14001eb8e
mov eax, r12d
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f510
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, qword [rsp + 0xa0]
lea r9, [rax + 0x20]
xor r14d, r14d
mov qword [rax - 0x48], r14
mov qword [rax - 0x50], r14
mov dword [rax - 0x58], r14d
mov dword [rax + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x14012c300]
lea rbp, [0x14012c2f8]
movabs r15, 0x4d54ee85da812030
mov dword [rsp + 0x44], r14d
add rdx, r15
mov edi, eax
cmp rdx, 1
jbe 0x14001f596
mov rcx, qword [0x14012c2f8]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, rbp
call r8
jmp 0x14001f59b
test edi, edi
setne al
movzx eax, al
movabs r10, 0x4800144005b3
add rax, 2
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rbp
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x14001f5de
mov eax, dword [rbx]
mov r8d, eax
jmp 0x14001f60e
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x14001f650
mov rcx, qword [0x14012c300]
add rcx, r15
mov dword [rsp + 0x44], r14d
cmp rcx, 1
jbe 0x14001f644
mov rax, qword [0x14012c2f8]
mov edx, 0x2746
mov rcx, rbp
call qword [rax + 0x30]
mov dword [rsp + 0x40], 0x2746
jmp 0x14001f6bf
mov al, 1
mov dword [rsp + 0x40], 0x2746
jmp 0x14001f6bf
cmp r9, 1
jne 0x14001f683
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x14001f6e3
mov rcx, qword [0x14012c300]
add rcx, r15
mov dword [rsp + 0x44], r14d
cmp rcx, 1
jbe 0x14001f6b5
mov rax, qword [0x14012c2f8]
mov edx, 0x274d
mov rcx, rbp
call qword [rax + 0x30]
jmp 0x14001f6b7
mov al, 1
mov dword [rsp + 0x40], 0x274d
movzx eax, al
mov qword [rsp + 0x48], rbp
add rax, 2
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test esi, esi
je 0x14001f6ee
mov eax, 0xffffffff
jmp 0x14001f70b
mov eax, dword [rsp + 0x98]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rsp + 0x50], r14
movsd xmm0, qword [rsp + 0x50]
movsd qword [rbx + 0x10], xmm0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001f730
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, qword [rbp + 0x220]
mov rax, r8
mov qword [rsp + 0x50], rax
movzx r13d, dl
mov qword [rsp + 0x48], r9
mov r12, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001f7ed
mov rcx, qword [0x14012c300]
lea r14, [0x14012c2f8]
xor esi, esi
movabs r15, 0x4d54ee85da812030
add rcx, r15
mov dword [rsp + 0x34], esi
cmp rcx, 1
jbe 0x14001f7b8
mov rax, qword [0x14012c2f8]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
jmp 0x14001f7ba
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x40], rax
xor eax, eax
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x14001f996
cmp byte [rbp + 0x218], 0
je 0x14001f81b
test r13b, 0x10
je 0x14001f81b
xorps xmm0, xmm0
xor esi, esi
movups xmmword [rdi], xmm0
mov qword [rsp + 0x68], rsi
xor eax, eax
movsd xmm0, qword [rsp + 0x68]
movsd qword [rdi + 0x10], xmm0
jmp 0x14001f996
mov r8, r9
mov qword [rsp + 0x2f8], rbx
mov rdx, rax
mov qword [rsp + 0x20], rdi
call fcn.14001f510
test eax, eax
jns 0x14001f98c
and r13b, 1
lea r14, [0x14012c2f8]
xor esi, esi
movabs r15, 0x4d54ee85da812030
test r13b, r13b
jne 0x14001f9b8
mov rbx, qword [0x14012c300]
mov dword [rsp + 0x34], esi
lea rax, [rbx + r15]
cmp rax, 1
jbe 0x14001f88b
mov rax, qword [0x14012c2f8]
mov edx, 0x2733
mov rcx, r14
call qword [rax + 0x30]
mov rbx, qword [0x14012c300]
jmp 0x14001f88d
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x70]
add rax, 2
mov dword [rsp + 0x30], 0x2733
mov qword [rsp + 0x40], rax
mov rcx, rdi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rbp - 0x80], xmm1
movups xmmword [rsp + 0x70], xmm0
call fcn.14001b460
test al, al
jne 0x14001f934
lea rax, [rbx + r15]
mov dword [rsp + 0x34], esi
cmp rax, 1
jbe 0x14001f8ee
mov rax, qword [0x14012c2f8]
mov edx, 0x4d5
mov rcx, r14
call qword [rax + 0x30]
jmp 0x14001f8f0
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x58]
add rax, 2
mov dword [rsp + 0x30], 0x4d5
mov qword [rsp + 0x40], rax
mov rcx, rdi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x58], xmm0
call fcn.14001b460
test al, al
je 0x14001f9b8
lea ecx, [r12 + 1]
mov qword [rbp - 0x68], r12
xor r9d, r9d
mov dword [rbp - 0x70], 1
lea r8, [rbp - 0x70]
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov edx, eax
mov rcx, rdi
shr edx, 0x1f
mov ebx, eax
call fcn.14001e910
test ebx, ebx
je 0x14001f96d
js 0x14001f9b8
mov r8, qword [rsp + 0x48]
mov rcx, r12
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call fcn.14001f510
test eax, eax
js 0x14001f852
mov eax, eax
mov rbx, qword [rsp + 0x2f8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400c86b0
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14001f98e
Function at 0x140029390
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, rdx
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movabs rax, 0xaaaaaaaaaaaaaaab
mov rbx, rcx
mul r8
mov r9, rcx
shr rdx, 1
mov r11, rdx
je 0x140029424
nop
movzx eax, byte [r10]
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r9], al
movzx eax, byte [r10 + 1]
movsx ecx, byte [r10]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
movzx eax, byte [rcx + rdi]
mov byte [r9 + 1], al
movzx eax, byte [r10 + 2]
movsx ecx, byte [r10 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
movzx eax, byte [rax + rdi]
mov byte [r9 + 2], al
movsx rax, byte [r10 + 2]
add r10, 3
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r9 + 3], al
add r9, 4
sub r11, 1
jne 0x1400293c0
lea rax, [rdx + rdx*2]
sub r8, rax
sub r8, 1
je 0x140029479
cmp r8, 1
jne 0x1400294a5
movzx eax, byte [r10]
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r9], al
movsx ecx, byte [r10]
movzx eax, byte [r10 + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
movzx eax, byte [rcx + rdi]
mov byte [r9 + 1], al
movsx rax, byte [r10 + 1]
and eax, 0xf
movzx eax, byte [rdi + rax*4]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
jmp 0x1400294a1
movzx eax, byte [r10]
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r9], al
movsx rax, byte [r10]
and eax, 3
add rax, rax
movzx eax, byte [rdi + rax*8]
mov byte [r9 + 1], al
mov word [r9 + 2], 0x3d3d
add r9, 4
mov rdi, qword [rsp + 0x10]
sub r9, rbx
mov rbx, qword [rsp + 8]
mov rax, r9
ret
Function at 0x14002d300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx eax, word [r8]
mov r14, rcx
add ax, ax
movzx ecx, word [r8 + 0x1e]
mov word [rsp + 0x22], ax
add ax, word [r8 + 2]
add ax, ax
movsxd rbx, edx
mov word [rsp + 0x24], ax
add ax, word [r8 + 4]
add ax, ax
mov word [rsp + 0x26], ax
add ax, word [r8 + 6]
add ax, ax
mov word [rsp + 0x28], ax
add ax, word [r8 + 8]
add ax, ax
mov word [rsp + 0x2a], ax
add ax, word [r8 + 0xa]
add ax, ax
mov word [rsp + 0x2c], ax
add ax, word [r8 + 0xc]
add ax, ax
mov word [rsp + 0x2e], ax
add ax, word [r8 + 0xe]
add ax, ax
mov word [rsp + 0x30], ax
add ax, word [r8 + 0x10]
add ax, ax
mov word [rsp + 0x32], ax
add ax, word [r8 + 0x12]
add ax, ax
mov word [rsp + 0x34], ax
add ax, word [r8 + 0x14]
add ax, ax
mov word [rsp + 0x36], ax
add ax, word [r8 + 0x16]
add ax, ax
mov word [rsp + 0x38], ax
add ax, word [r8 + 0x18]
add ax, ax
mov word [rsp + 0x3a], ax
add ax, word [r8 + 0x1a]
add ax, ax
mov word [rsp + 0x3c], ax
add ax, word [r8 + 0x1c]
add ax, ax
mov word [rsp + 0x3e], ax
movzx eax, ax
add ecx, eax
cmp ecx, 0x8000
je 0x14002d40c
mov r8d, 0x85
lea rdx, [0x14010da40]
lea rcx, str.code__bl_count_maxBits__1___1__maxBits__1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbp, rbx
test ebx, ebx
js 0x14002d4ba
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r15
xor r15d, r15d
mov esi, r15d
movzx edi, word [r14 + rsi*4 + 2]
test edi, edi
je 0x14002d49d
lea rcx, [rsp + 0x20]
movzx ebx, word [rcx + rdi*2]
lea rcx, [rcx + rdi*2]
lea eax, [rbx + 1]
mov word [rcx], ax
cmp edi, 0x20
jbe 0x14002d46e
mov r8d, 0x2be
lea rdx, str.E:_boost_1_83_0_boost_beastzlibdetaildeflate_stream.hpp
lea rcx, str.len___8__sizeof_unsigned_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx eax, r15w
nop dword [rax]
nop word [rax + rax]
movzx ecx, bx
shr bx, 1
and cx, 1
or ax, cx
add ax, ax
add edi, 0xffffffff
jne 0x14002d480
shr ax, 1
mov word [r14 + rsi*4], ax
inc rsi
cmp rsi, rbp
jle 0x14002d432
mov r15, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400c86b0
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
Function at 0x140039340
Capabilities:
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rbp - 9], rax
mov eax, dword [rcx + 0x40]
mov rdi, rcx
mov dword [rbp - 0x39], eax
xor esi, esi
mov eax, dword [rcx + 0x44]
mov ebx, select
mov dword [rbp - 0x35], eax
mov eax, dword [rcx + 0x48]
lea r14, [rdi + 0x3c]
mov dword [rbp - 0x31], eax
mov eax, dword [rcx + 0x4c]
mov dword [rbp - 0x2d], eax
mov eax, dword [rcx + 0x50]
movdqu xmm9, xmmword [rbp - 0x39]
mov dword [rbp - 0x29], eax
mov eax, dword [rcx + 0x54]
mov dword [rbp - 0x25], eax
mov eax, dword [rcx + 0x58]
mov dword [rbp - 0x21], eax
mov eax, dword [rcx + 0x5c]
mov rcx, qword [rcx + 0x60]
mov dword [rbp - 0x1d], eax
mov rax, rcx
movdqu xmm8, xmmword [rbp - 0x29]
shr rax, 4
mov dword [rbp - 0x19], eax
lea rax, [rbp - 0xd]
shr rcx, 0x24
mov dword [rbp - 0x69], 0x61707865
mov dword [rbp - 0x65], 0x3320646e
mov dword [rbp - 0x61], 0x79622d32
mov dword [rbp - 0x5d], 0x6b206574
mov dword [rbp - 0x15], ecx
mov dword [rbp - 0xd], 0xdeadbeef
mov dword [rbp - 0x11], 0xdeadbeef
movdqu xmm7, xmmword [rbp - 0x19]
movdqu xmm6, xmmword [rbp - 0x69]
movdqu xmmword [rbp - 0x49], xmm6
cmp rdi, rax
ja 0x140039449
lea rax, [rbp - 0x49]
cmp r14, rax
jb 0x140039449
mov r8d, ebx
lea rdx, [rbp - 0x49]
sub r8, rsi
lea rcx, [rdi + rsi*4]
shl r8, 2
lea rdx, [rdx + rsi*4]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call fcn.14003b230
jmp 0x140039474
movups xmmword [rdi], xmm6
movups xmmword [rdi + 0x10], xmm9
movups xmmword [rdi + 0x20], xmm8
movups xmmword [rdi + 0x30], xmm7
mov rcx, rdi
call fcn.14003b230
lea rax, [rbp - 0xd]
cmp rdi, rax
ja 0x1400394a1
lea rax, [rbp - 0x49]
cmp r14, rax
jb 0x1400394a1
lea rdx, [rbp - 0x49]
mov rcx, rsi
sub rdx, rdi
lea rax, [rdi + rsi*4]
sub rbx, rcx
nop word [rax + rax]
mov ecx, dword [rdx + rax]
add dword [rax], ecx
lea rax, [rax + 4]
sub rbx, 1
jne 0x140039490
jmp 0x1400394d9
movdqu xmm0, xmmword [rdi]
paddd xmm6, xmm0
movdqu xmmword [rdi], xmm6
movdqu xmm0, xmmword [rdi + 0x10]
paddd xmm0, xmm9
movdqu xmmword [rdi + 0x10], xmm0
movdqu xmm0, xmmword [rdi + 0x20]
paddd xmm0, xmm8
movdqu xmmword [rdi + 0x20], xmm0
movdqu xmm0, xmmword [rdi + 0x30]
paddd xmm0, xmm7
movdqu xmmword [rdi + 0x30], xmm0
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400c86b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003de20
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x30
mov rdi, r8
lea r12, [0x1401313d0]
sub rdi, r12
mov r15, rcx
sar rdi, 2
test rdi, rdi
je 0x14003e004
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], rsi
sar rbx, 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
cmp rdi, 0x26f
jb 0x14003de76
mov eax, 0xb
jmp 0x14003dea4
cmp rdi, 0x44
jb 0x14003de83
mov eax, 7
jmp 0x14003dea4
cmp rdi, 0x27
jb 0x14003de90
mov eax, 5
jmp 0x14003dea4
cmp rdi, 7
jb 0x14003de9d
mov eax, 3
jmp 0x14003dea4
lea rax, [rdi - 1]
shr rax, 1
mov rsi, rdi
lea r14, [rbx + 1]
sub rsi, rax
shr rsi, 1
lea r13, [rsi + rax]
cmp rdi, rbx
jbe 0x14003debd
mov r14, rdi
mov r8, rdi
mov qword [rsp + 0x58], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r14, r14
je 0x14003df6a
xor edx, edx
lea rax, [rcx + rsi]
div rdi
mov r11d, dword [r12 + rdx*4]
lea r10, [r12 + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [r12 + rdx*4]
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
mov r8d, dword [r12 + rdx*4]
xor r8d, dword [rbp]
xor r8d, r11d
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14003df2e
mov rax, rbx
jmp 0x14003df42
cmp rcx, rbx
ja 0x14003df3f
mov rax, qword [r15]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x14003df42
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [r12 + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r14
jb 0x14003dee1
add r14, rdi
cmp rcx, r14
jae 0x14003dfeb
inc rsi
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [rsi + rbp]
div rdi
mov r10d, dword [r12 + rdx*4]
lea r11, [r12 + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [r12 + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [r12 + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [r12 + rdx*4], r8d
mov dword [r12 + r9*4], r8d
cmp rax, r14
jb 0x14003df80
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
Function at 0x140045d90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140045df1
lea r8, [r9 + 8]
nop dword [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 0x140045db0
mov ecx, dword [r9]
jmp 0x140045edb
cmp ecx, 0x4e0
jb 0x140045edb
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]
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 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140045e10
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 0x140045e60
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 0x14004e390
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x10
lea r8, [rcx + 0x10]
mov rsi, rdx
cmp rcx, r8
je 0x14004e59c
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
nop word [rax + rax]
mov r11, qword [rcx + 8]
mov eax, dword [rsi]
mov r10, r11
mov r9, qword [rcx]
mov dword [rsp], eax
cmp r11, 4
jb 0x14004e419
movzx ebx, byte [rsp + 2]
mov rdx, r11
movzx edi, byte [rsp + 1]
shr rdx, 2
imul r11, rdx, 0xfffffffffffffffc
add r11, r10
movzx r10d, byte [rsp + 3]
nop dword [rax]
nop word [rax + rax]
xor byte [r9], al
xor byte [r9 + 1], dil
xor byte [r9 + 2], bl
xor byte [r9 + 3], r10b
add r9, 4
sub rdx, 1
jne 0x14004e400
test r11, r11
je 0x14004e580
xor r10d, r10d
cmp r11, 8
jb 0x14004e513
lea rdx, [r9 - 1]
add rdx, r11
lea rax, [rsp + r11 - 1]
cmp r9, rax
ja 0x14004e44d
lea rax, [rsp]
cmp rdx, rax
jae 0x14004e513
cmp r11, 0x40
jb 0x14004e4de
mov rdx, r11
mov rbx, r11
and edx, 0x3f
sub rbx, rdx
lea rdi, [rsp]
sub rdi, r9
lea rbp, [rsp + 0x10]
sub rbp, r9
lea rax, [r9 + 0x20]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
add r10, 0x40
movdqu xmm1, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [rax + rbp - 0x60]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax + rbp - 0x40]
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm1, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp r10, rbx
jb 0x14004e480
cmp rdx, 8
jb 0x14004e50e
mov rdx, r11
and rdx, 0xfffffffffffffff8
lea rbx, [rsp]
sub rbx, r9
lea rax, [r10 + r9]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [rbx + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, rdx
jb 0x14004e4f0
cmp r10, r11
jae 0x14004e540
lea rdx, [r10 + r9]
lea rbx, [rsp]
sub rbx, r9
mov r9, r11
sub r9, r10
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14004e530
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov rax, r11
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsi], al
lea rax, [r11 + 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsi + 1], al
lea rax, [r11 - 2]
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsi + 2], al
lea rax, [r11 - 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsi + 3], al
add rcx, 0x10
cmp rcx, r8
jne 0x14004e3c0
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
add rsp, 0x10
pop rsi
ret