joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402392b0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1402392cc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140239320
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140239445
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x140239445
test rax, rax
je 0x140239445
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x140239445
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1402393ba
lea rax, [0x140239470]
jmp 0x140239413
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140239445
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140239433
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1402393e0
lea rax, [0x1402394a0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x14023945a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x140239ce0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.14035a4d8]
mov rbx, rax
test rax, rax
jne 0x140239d23
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x140239d70
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x140239dd2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x140239d90
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x140239e11
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1403a09e8]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1403a09e9]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x140239de0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

Function at 0x14023b3a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [rbx], eax
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14023b3d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14023b410
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
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 0x14023c690
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], edx
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
mov edi, eax
test eax, eax
jns 0x14023c6d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x140400661]
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea edx, [rbx + 5]
lea ecx, [rbx + 2]
call fcn.1401d8bf0
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14023c6f0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x38
cmp dword [0x1406c6c50], 0
jne 0x14023c784
xor edx, edx
mov dword [0x1406c6c50], 1
mov r8d, 0x198
lea rcx, [0x1406c6c60]
call fcn.140376d40
mov ecx, 0x202
lea rdx, [0x1406c6c60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14023c784
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov dword [rsp + 0x20], 0
lea r9, [0x140400661]
mov r8d, eax
lea ecx, [rdx - 7]
call fcn.1401d8bf0
mov edx, reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x20], 0
lea r9, [0x140400661]
lea r8d, [rdx + 0xa]
lea ecx, [rdx - 0x50]
call fcn.1401d8bf0
mov eax, 0xffffffff
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
Function at 0x14023cb40
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor edi, edi
mov ebx, r9d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
cmp r9d, 0x17
ja 0x14023ccb4
mov eax, 0x800005
bt eax, ebx
jae 0x14023ccb4
call fcn.14023c6f0
cmp eax, 1
jne 0x14023ccd0
mov eax, dword [rsp + 0xa0]
mov ecx, edi
mov qword [rsp + 0x80], r15
xorps xmm0, xmm0
mov dword [rsp + 0x30], ecx
xorps xmm1, xmm1
mov dword [rsp + 0x34], ebx
mov r15d, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], edi
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
test rsi, rsi
je 0x14023cbcd
test ebx, ebx
jne 0x14023cbcd
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x14023cbd8
or ecx, ebp
mov dword [rsp + 0x30], ecx
mov rbp, qword [rsp + 0xa8]
lea r8, [rsp + 0x30]
mov r9, rbp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x14023cc3b
nop word [rax + rax]
cmp ebx, 8
je 0x14023cc8e
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x14023cc4d
btr ecx, 0xa
lea r8, [rsp + 0x30]
or ecx, 4
mov r9, rbp
mov dword [rsp + 0x30], ecx
mov rdx, r14
mov rcx, rsi
mov r15d, ebx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x14023cc00
mov r15, qword [rsp + 0x80]
mov edi, 1
jmp 0x14023ccd0
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400661]
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call fcn.1401d8bf0
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.14023c7b0
mov rdx, rax
mov ecx, 1
call fcn.1401d9270
mov r15, qword [rsp + 0x80]
jmp 0x14023ccd0
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400661]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call fcn.1401d8bf0
mov r15, qword [rsp + 0x80]
jmp 0x14023ccd0
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400661]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call fcn.1401d8bf0
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14023cd10
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r9
mov rbx, r8
mov esi, edx
mov r14, rcx
call fcn.14023c6f0
cmp eax, 1
je 0x14023cd4b
xor eax, eax
jmp 0x14023ceff
xor edx, edx
mov qword [rsp + 0x480], rbp
mov r8d, 0x400
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x61]
call fcn.140376d40
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x51], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x59], eax
neg esi
mov word [rsp + 0x5d], ax
mov ecx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x5f], al
mov edx, 0x1c
sbb eax, eax
xorps xmm0, xmm0
and eax, 0xa
mov r9d, 0x401
cmp word [r14], 2
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
cmove edx, ecx
mov dword [rsp + 0x28], 0x20
mov rcx, r14
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x41], xmm0
call qword [sym.imp.WS2_32.dll_getnameinfo]
xor esi, esi
mov ebp, eax
test eax, eax
je 0x14023ce0b
lea r9, [0x140400661]
mov dword [rsp + 0x20], esi
mov edx, 0x86
lea ecx, [rsi + 0x20]
lea r8d, [rsi + 2]
call fcn.1401d8bf0
mov ecx, ebp
call fcn.14023c7b0
mov rdx, rax
lea ecx, [rsi + 1]
call fcn.1401d9270
xor eax, eax
jmp 0x14023cef7
cmp byte [rsp + 0x40], sil
jne 0x14023ce52
movzx eax, word [r14]
cmp ax, 2
jne 0x14023ce23
movzx ecx, word [r14 + 2]
jmp 0x14023ce32
cmp ax, 0x17
jne 0x14023ce30
movzx ecx, word [r14 + 2]
jmp 0x14023ce32
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x140401178]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.1401bcda0
test rbx, rbx
je 0x14023ce6e
xor r8d, r8d
lea rdx, [0x140400661]
lea rcx, [rsp + 0x60]
call fcn.14023c350
mov qword [rbx], rax
test rdi, rdi
je 0x14023ce8a
xor r8d, r8d
lea rdx, [0x140400661]
lea rcx, [rsp + 0x40]
call fcn.14023c350
mov qword [rdi], rax
test rbx, rbx
je 0x14023ce94
cmp qword [rbx], rsi
je 0x14023cea3
test rdi, rdi
je 0x14023cef2
cmp qword [rdi], rsi
jne 0x14023cef2
test rbx, rbx
je 0x14023cebd
mov rcx, qword [rbx]
lea rdx, [0x140400661]
xor r8d, r8d
call fcn.1401ba680
mov qword [rbx], rsi
test rdi, rdi
je 0x14023ced2
mov rcx, qword [rdi]
lea rdx, [0x140400661]
xor r8d, r8d
call fcn.1401ba680
mov qword [rdi], rsi
mov edx, 0x86
mov dword [rsp + 0x20], esi
lea r9, [0x140400661]
lea ecx, [rdx - 0x66]
lea r8d, [rdx - 0x45]
call fcn.1401d8bf0
xor eax, eax
jmp 0x14023cef7
mov eax, 1
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140244fb0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140244fd7
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x140244fc0
movzx eax, r9b
ret
Function at 0x14024a120
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0x6a09e667f3bcc908
mov dword [rsp + 0xf4], 0x40
mov qword [rsp + 0x20], rax
lea rsi, [0x1406c76d0]
movabs rax, 0xbb67ae8584caa73b
test r8, r8
mov qword [rsp + 0x28], rax
mov rbx, rdx
movabs rax, 0x3c6ef372fe94f82b
cmovne rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rcx
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xf0], eax
test rdx, rdx
je 0x14024a247
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x14024a230
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.14024a3c0
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x14024a247
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.1403766a0
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140249910
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call fcn.14023bdd0
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret
Function at 0x14025de50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
jmp fcn.14025e090

Function at 0x14025e090
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x14025e191
test r10, r10
je 0x14025e191
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14025e0d5
cmp al, 0x7f
jbe 0x14025e18a
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14025e199
mov r11b, 0xff
cmp al, 0x80
jbe 0x14025e0eb
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14025e199
jne 0x14025e18a
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14025e17f
cmp rcx, 8
jb 0x14025e171
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [rbx + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14025e120
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14025e17f
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14025e171
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14025e199
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x18], rdi
test rsi, rsi
je 0x14025e1f5
mov rdi, qword [r9]
test rdi, rdi
je 0x14025e1f5
mov r8d, r11d
mov byte [rdi], r11b
and r8d, 1
lea r9, [rbx + r10]
test r10, r10
je 0x14025e1f2
mov ebx, edx
add rbx, rdi
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14025e1d0
add qword [rsi], rax
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
pop rsi
ret
Function at 0x14025e210
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, rcx
test r9, r9
jne 0x14025e242
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea r9, [0x140400661]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 4]
call fcn.1401d8bf0
xor eax, eax
add rsp, 0x38
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x14025e255
mov dword [rdx], r11d
cmp r9, 1
jne 0x14025e277
test r10, r10
je 0x14025e26d
movzx eax, byte [r8]
test r11d, r11d
je 0x14025e26b
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x14025e289
mov eax, 1
jmp 0x14025e33a
xor eax, eax
cmp cl, 0xff
jne 0x14025e373
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x14025e32f
cmp rcx, 8
jb 0x14025e320
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [r8 + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14025e2c0
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14025e32f
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14025e320
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x14025e373
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x14025e373
mov edx, 0xe2
mov dword [rsp + 0x20], 0
lea r9, [0x140400661]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.1401d8bf0
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x14025e3bd
neg r11d
sbb r11d, r11d
add r9, r8
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x14025e3bd
mov r8, rbx
nop
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r8 + r10], dl
shr edx, 8
test r8, r8
jne 0x14025e3a0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140264be0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x140264c4c
movzx ecx, byte [rcx]
test cl, cl
je 0x140264c4c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140264c00
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x140264c60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140264ce8
movzx eax, byte [rcx]
test al, al
je 0x140264ce8
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.14023d380
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x140264c85
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140267010
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x1406c7760]
jmp fcn.14023b3d0
Function at 0x14028d750
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
mov rsi, qword [rcx + 0x70]
mov rbx, r8
mov r8d, dword [rsi + 0x70]
lea r13, [rsi + 0x70]
mov qword [rsp + 0x38], r13
mov rbp, r9
mov r14, rdx
test r8d, r8d
je 0x14028d7c6
test r9, r9
je 0x14028d7a2
cmp r8d, 0x40
jae 0x14028d7a2
mov eax, r8d
inc r8d
movzx ecx, byte [rax + rsi + 0x30]
xor cl, byte [rbx]
inc rbx
mov byte [r14], cl
inc r14
sub rbp, 1
jne 0x14028d780
mov dword [r13], r8d
test rbp, rbp
je 0x14028d8f9
cmp r8d, 0x40
jne 0x14028d7c6
mov dword [r13], 0
add dword [rsi + 0x20], 1
jne 0x14028d7c6
inc dword [rsi + 0x24]
mov ecx, dword [rsi + 0x20]
lea rax, [rsi + 0x20]
mov qword [rsp + 0x80], r12
mov r12d, ebp
and r12d, 0x3f
mov qword [rsp + 0x88], r15
mov r15d, r12d
sub rbp, r15
mov dword [rsp + 0x30], r12d
cmp rbp, 0x40
jb 0x14028d886
mov qword [rsp + 0x78], rdi
lea r13, [rsi + 0x20]
mov r12d, 0x10000000
mov r15d, ecx
nop dword [rax + rax]
mov rdx, rbp
mov qword [rsp + 0x20], r13
shr rdx, 6
mov r9, rsi
cmp rdx, r12
cmova rdx, r12
mov rdi, rdx
lea eax, [rdx + r15]
xor r15d, r15d
mov ecx, eax
cmp rcx, rdx
cmovae r15d, eax
sub rdi, rcx
cmp rcx, rdx
mov rcx, r14
cmovae rdi, rdx
mov rdx, rbx
shl rdi, 6
mov r8, rdi
call fcn.1402ecf90
sub rbp, rdi
mov dword [r13], r15d
add rbx, rdi
add r14, rdi
test r15d, r15d
jne 0x14028d86a
inc dword [rsi + 0x24]
cmp rbp, 0x40
jae 0x14028d810
mov r12d, dword [rsp + 0x30]
lea rax, [rsi + 0x20]
mov rdi, qword [rsp + 0x78]
mov r15d, r12d
mov r13, qword [rsp + 0x38]
test r12d, r12d
je 0x14028d8e9
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov r9, rsi
movups xmmword [rcx], xmm0
mov r8d, 0x40
mov rdx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
call fcn.1402ecf90
test r12d, r12d
je 0x14028d8e5
sub rsi, rbx
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 0x30]
xor al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub r15, 1
jne 0x14028d8d0
mov dword [r13], r12d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140290600
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 1
mov rdi, rcx
call fcn.1401d6fe0
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call fcn.1401d7190
test rax, rax
je 0x14029066d
mov qword [rsp + 0x30], rbx
mov r8d, esi
xor ebx, ebx
mov rdx, rax
xor ecx, ecx
lea r9d, [rbx + 2]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
mov rcx, rdi
cmove rbx, rsi
mov rdx, rbx
lea r8, [rbx*8]
call fcn.1401d7220
mov rcx, rdi
call fcn.1401d6fc0
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140290675
mov rcx, rdi
call fcn.1401d6fc0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1402990b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1402990bb
xor eax, eax
ret
lea r11, [0x1403bdd90]
not ecx
cmp r8d, 8
jb 0x140299191
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1402990e0
test r8d, r8d
je 0x1402991bd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1402991a0
not ecx
mov eax, ecx
ret