joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055ae0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r15
mov rdi, r9
mov rsi, r8
mov r15, rdx
test rcx, rcx
je 0x140055b32
cmp qword [rcx], 0
je 0x140055b32
cmp dword [rcx + 8], 0x40
jb 0x140055b32
xor r9d, r9d
test r8, r8
je 0x140055b0d
mov qword [r8], r9
test rdi, rdi
je 0x140055b15
mov qword [rdi], r9
mov r10, qword [rsp + 0x38]
test r10, r10
je 0x140055b22
mov qword [r10], r9
mov rax, qword [rcx]
mov edx, dword [rcx + 8]
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x140055b3e
or eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
pop r15
pop rdi
ret
movsxd r8, dword [rax + 0x3c]
lea ecx, [r8 + 0x14]
cmp ecx, edx
ja 0x140055b32
add ecx, 0x18
mov qword [rsp + 0x18], rbx
lea rbx, [rax + r8]
cmp ecx, edx
ja 0x140055c50
cmp dword [rbx], 0x4550
jne 0x140055c50
mov qword [rsp + 0x20], rbp
mov r8d, 0xe0
movzx ebp, word [rbx + 0x14]
mov qword [rsp + 0x28], r14
movzx eax, bp
sub ax, r8w
lea r14, [rbx + 4]
mov r8d, 0xffef
test r8w, ax
jne 0x140055c4b
movzx eax, bp
add ecx, eax
cmp ecx, edx
ja 0x140055c4b
movzx eax, word [rbx + 0x18]
lea r8, [rbx + 0x18]
mov r11d, 0x10b
sub ax, r11w
mov r11d, 0xfeff
test r11w, ax
jne 0x140055c4b
movzx r11d, word [r14 + 2]
lea eax, [r11 + r11*4]
lea ecx, [rcx + rax*8]
cmp ecx, edx
ja 0x140055c4b
cmp dword [r8 + 0x3c], edx
ja 0x140055c4b
movzx ebp, bp
add rbp, r8
test r11d, r11d
je 0x140055c11
lea rcx, [rbp + 0x10]
nop dword [rax]
mov eax, dword [rcx + 4]
add eax, dword [rcx]
cmp eax, edx
ja 0x140055c4b
mov eax, dword [rcx - 8]
add eax, dword [rcx - 4]
cmp eax, dword [r8 + 0x38]
ja 0x140055c4b
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140055bf0
test r15, r15
je 0x140055c19
mov qword [r15], rbx
test rsi, rsi
je 0x140055c21
mov qword [rsi], r14
test rdi, rdi
je 0x140055c29
mov qword [rdi], r8
test r10, r10
je 0x140055c31
mov qword [r10], rbp
xor eax, eax
mov rbp, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x30]
pop r15
pop rdi
ret
or eax, 0xffffffff
jmp 0x140055c33
mov rbx, qword [rsp + 0x18]
or eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
pop r15
pop rdi
ret

Function at 0x140055c70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov ebx, 0x1000
mov edx, 1
mov ecx, ebx
mov r14, r8
call fcn.1401760a4
mov rcx, qword [rsi]
mov rdi, rax
test rcx, rcx
je 0x140055cb2
call fcn.1401760ac
mov qword [rsi], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rdi
mov ecx, ebp
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rsp + 0x48]
cmp eax, 0xc0000004
je 0x140055cd3
cmp ecx, ebx
jbe 0x140055ce7
lea eax, [rcx + rbx*2]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.14017d3c4
mov rdi, rax
jmp 0x140055cb2
xor eax, eax
test r14, r14
je 0x140055cf1
mov dword [r14], ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov qword [rsi], rdi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14005a520
Capabilities:
List tcp connections and listeners

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14027a2e4]
mov rbx, rcx
mov rcx, qword [rcx]
mov edx, eax
mov dword [rsp + 0x40], eax
call fcn.14017d3c4
mov r9d, 2
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rbx], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 5
mov rcx, rax
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x14005a5db
mov edx, dword [rsp + 0x40]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rdi
call fcn.14017d3c4
mov edx, dword [0x14027a2e4]
mov r9d, 2
cmp edx, dword [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x28], 0
cmovb edx, dword [rsp + 0x40]
xor r8d, r8d
mov dword [0x14027a2e4], edx
lea rdx, [rsp + 0x40]
mov qword [rbx], rax
mov dword [rsp + 0x20], 5
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov edi, eax
test eax, eax
je 0x14005a5d4
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a5d4
call fcn.1401760ac
mov qword [rbx], 0
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x14005a5f0
Capabilities:
List udp connections and listeners

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14027a2e8]
mov rbx, rcx
mov rcx, qword [rcx]
mov edx, eax
mov dword [rsp + 0x40], eax
call fcn.14017d3c4
mov r9d, 2
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rbx], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 1
mov rcx, rax
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
cmp eax, 0x7a
jne 0x14005a6ab
mov edx, dword [rsp + 0x40]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rdi
call fcn.14017d3c4
mov edx, dword [0x14027a2e8]
mov r9d, 2
cmp edx, dword [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x28], 0
cmovb edx, dword [rsp + 0x40]
xor r8d, r8d
mov dword [0x14027a2e8], edx
lea rdx, [rsp + 0x40]
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov edi, eax
test eax, eax
je 0x14005a6a4
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a6a4
call fcn.1401760ac
mov qword [rbx], 0
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x14005efc0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x60]
call fcn.140174ac0
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
add rsp, 0x20
pop rbx
ret

Function at 0x14005f160
Capabilities:
Hash data using sha224

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x70]
call fcn.140174ac0
mov eax, 1
mov dword [rbx], 0xc1059ed8
mov dword [rbx + 4], 0x367cd507
mov dword [rbx + 8], 0x3070dd17
mov dword [rbx + 0xc], 0xf70e5939
mov dword [rbx + 0x10], 0xffc00b31
mov dword [rbx + 0x14], 0x68581511
mov dword [rbx + 0x18], 0x64f98fa7
mov dword [rbx + 0x1c], 0xbefa4fa4
mov dword [rbx + 0x6c], 0x1c
add rsp, 0x20
pop rbx
ret
Function at 0x14005f4f0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x70]
call fcn.140174ac0
mov eax, 1
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov dword [rbx + 0x6c], 0x20
add rsp, 0x20
pop rbx
ret

Function at 0x1400604b0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.140174ac0
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret

Function at 0x14006c680
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 0x14006c6c0
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 0x14006c810
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 0x14006e1f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
mov ebx, esi
lea edx, [rsi + 1]
call fcn.140060130
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.14005ffc0
mov r14, rax
test rax, rax
je 0x14006e291
lea r9d, [rsi + 1]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14006e26a
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rbx, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbx*8]
mov rdx, rbx
mov rcx, rdi
call fcn.140060040
mov rcx, rdi
call fcn.1400601e0
mov rbx, rax
test rax, rax
jne 0x14006e32d
mov edx, 1
mov rcx, rdi
call fcn.140060130
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.14005ffc0
mov r14, rax
test rax, rax
je 0x14006e31b
mov r9d, reloc.WS2_32.dll_shutdown
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14006e2fd
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rsi, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rsi*8]
mov rdx, rsi
mov rcx, rdi
call fcn.140060040
mov rcx, rdi
call fcn.1400601e0
mov rbx, rax
test rbx, rbx
je 0x14006e325
mov rax, rbx
jmp 0x14006e32d
mov rcx, rdi
call fcn.1400601e0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14006e7f0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14006e817
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 0x14006e800
movzx eax, r9b
ret
Function at 0x14006e9c0
Capabilities:
Access the windows event log
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x168
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
test rax, rax
je 0x14006ea7d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x14006ea7d
mov qword [rsp + 0x160], rsi
lea rbx, [rsp + 0x188]
call fcn.14001fb00
mov r9, qword [rsp + 0x180]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov esi, 0x100
xor ebx, ebx
mov r8d, esi
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x20], rbx
call fcn.14017b9e8
or ecx, 0xffffffff
mov qword [rsp + 0x20], rbx
test eax, eax
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
cmovs eax, ecx
mov rcx, rdi
test eax, eax
cmovs eax, esi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x160]
add rsp, 0x168
pop rdi
pop rbx
ret
lea rbx, [rsp + 0x188]
call fcn.14001fb00
mov r9, qword [rsp + 0x180]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov r8d, 0xff
xor ebx, ebx
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x20], rbx
call fcn.14017b9e8
mov byte [rsp + 0x15f], bl
call fcn.14006e860
xor ecx, ecx
test eax, eax
jle 0x14006eb3b
lea rdx, str.OpenSSL
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rdi, rax
test rax, rax
je 0x14006eb53
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x60]
mov ecx, 1
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov edx, ecx
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x14006eb28
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0x168
pop rdi
pop rbx
ret
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.OpenSSL:_FATAL
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_MessageBoxA]
add rsp, 0x168
pop rdi
pop rbx
ret

Function at 0x140071290
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x14027c0b8]
jmp fcn.14006c680

Function at 0x1400790a0
Capabilities:
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 0x140079108
movzx eax, byte [rcx]
test al, al
je 0x140079108
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.1400c3280
or eax, esi
lea rdi, [rdi + 1]
mov ecx, eax
add esi, 0x100
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol ebx, cl
xor ebx, eax
movzx eax, byte [rdi]
test al, al
jne 0x1400790c5
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
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aa930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rbx, rdx
mov r8, rsi
mov rbp, rcx
call fcn.1401752e0
test eax, eax
jle case.0x1400aaa09.2
xor r8d, r8d
test esi, esi
jle 0x1400aa989
mov rdx, rbp
mov rcx, rbx
sub rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
cmp byte [rdx + rcx], al
jne 0x1400aa989
inc rcx
inc r8d
mov rax, rcx
sub rax, rbx
cmp rax, rsi
jl 0x1400aa970
lea edx, [rsi - 1]
movsxd rax, edx
test edx, edx
js 0x1400aa9b6
mov r9, rbp
lea rcx, [rax + rbx]
sub r9, rbx
nop dword [rax]
cmp byte [rcx + r9], 0
jne 0x1400aa9b6
cmp byte [rcx], 0xff
jne 0x1400aa9b6
dec edx
dec rcx
cmp rcx, rbx
jns 0x1400aa9a0
cmp r8d, edx
jl case.0x1400aaa09.2
jle 0x1400aa9ce
lea eax, [r8*8]
jmp 0x1400aaa50
movsxd rax, r8d
movzx r9d, byte [rax + rbx]
movzx r10d, byte [rax + rbp]
movzx edx, r9b
xor dl, r10b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1400aaa09.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0xaaa88]
mov ecx, dword [r11 + rax*4 + 0xaaa68]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1400aaa3a
mov eax, 6
jmp 0x1400aaa3a
mov eax, 5
jmp 0x1400aaa3a
mov eax, 4
jmp 0x1400aaa3a
mov eax, 3
jmp 0x1400aaa3a
mov eax, 2
jmp 0x1400aaa3a
mov eax, 1
test dl, r10b
jne case.0x1400aaa09.2
and r9b, dl
cmp r9b, dl
jne case.0x1400aaa09.2
lea eax, [rax + r8*8]
jmp 0x1400aaa50
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400bc000
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x1400bc027
xor r9d, r9d
cmp rdx, r8
jae 0x1400bc040
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov r9d, reloc.WS2_32.dll_recv
cmp r9, 0x10
jae 0x1400bc071
sub r8, r10
lea rax, [r9 + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, r9
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400bc060
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.140061fa0
test eax, eax
je 0x1400bc0a2
cmp dword [rsp + 0x40], 0x10
jne 0x1400bc0a2
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400bc240
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400bc2c8
test r8, r8
je 0x1400bc2c8
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x1400bc286
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1400bc270
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x1400bc2c8
sub r8, rax
mov eax, reloc.WS2_32.dll_recv
cmp r8, rax
cmova r8, rax
xor ecx, ecx
test r8, r8
je 0x1400bc2c8
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x1400bc2b0
ret
Function at 0x1400c50a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.1400c3c80
test eax, eax
je 0x1400c50d4
mov rcx, rbx
call fcn.1400c4220
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x1400c511c
mov edx, ebp
mov rcx, rbx
call fcn.1400c4690
test rax, rax
je 0x1400c518d
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x1400c513c
mov qword [r8], rcx
test rdi, rdi
jle 0x1400c517e
sub r14, rax
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x1400c5150
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x1400c5188
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x1400d0030
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r12
push r15
sub rsp, 0x48
mov r15, r9
mov rbx, r8
mov r12, rdx
mov rdi, rcx
call fcn.140061820
cmp eax, 0x72
jne 0x1400d0253
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x40], r14
mov r14, rbx
shr r14, 1
and ebx, 1
lea r13, [rbx + r14]
call fcn.1400b34c0
mov rdi, qword [rsp + 0xa0]
mov rcx, rax
mov rax, qword [rsp + 0x90]
mov r9, r15
mov rbp, qword [rsp + 0x98]
mov r8, r13
mov qword [rsp + 0x30], rdi
mov rdx, r12
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.1400cfda0
test eax, eax
je 0x1400d00fc
mov r8d, 0x104
mov qword [rsp + 0x78], rsi
lea rdx, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
mov rcx, rdi
call fcn.14006c8a0
mov rsi, rax
test rax, rax
jne 0x1400d0119
lea r9, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
mov dword [rsp + 0x20], 0x105
lea edx, [rax + 0x6f]
lea ecx, [rax + 0x34]
lea r8d, [rax + 0x41]
call fcn.14006c250
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbx
ret
lea rbx, [r14 + r12]
call fcn.1400b3b80
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x90]
mov r9, r15
mov qword [rsp + 0x28], rsi
mov r8, r13
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400cfda0
test eax, eax
jne 0x1400d0168
mov r9d, 0x10a
lea r8, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
mov rdx, rdi
mov rcx, rsi
call fcn.14006c9c0
jmp 0x1400d00f5
xor ecx, ecx
test rdi, rdi
je 0x1400d0231
cmp rdi, 0x40
jb 0x1400d020b
lea rdx, [rbp - 1]
lea rax, [rdi - 1]
add rdx, rdi
add rax, rsi
cmp rbp, rax
ja 0x1400d0195
cmp rdx, rsi
jae 0x1400d020b
mov r8, rdi
and r8, 0xffffffffffffffc0
mov rdx, rsi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movdqu xmm0, xmmword [rax]
add rcx, 0x40
movdqu xmm1, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rdx + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rdx + rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
cmp rcx, r8
jb 0x1400d01b0
cmp rcx, rdi
jae 0x1400d0231
mov r8, rsi
lea rax, [rcx + rbp]
sub r8, rbp
mov rdx, rdi
sub rdx, rcx
movzx ecx, byte [rax + r8]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400d0220
mov r9d, 0x10f
lea r8, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
mov rdx, rdi
mov rcx, rsi
call fcn.14006c9c0
mov eax, 1
jmp 0x1400d00f7
mov rax, qword [rsp + 0xa0]
mov r9, r15
mov qword [rsp + 0x30], rax
mov r8, rbx
mov rax, qword [rsp + 0x98]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.1400cfda0
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbx
ret
Function at 0x1400d69e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x1400d6a18
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_asn1_a_int.c
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 4]
call fcn.14006c250
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x1400d6a2b
mov dword [rdx], r8d
cmp r9, 1
jne 0x1400d6a4f
test r11, r11
je 0x1400d6a45
movzx eax, byte [r10]
test r8d, r8d
je 0x1400d6a43
not al
inc al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
test cl, cl
jne 0x1400d6a6c
mov eax, 1
mov ebx, eax
jmp 0x1400d6b1f
cmp cl, 0xff
jne 0x1400d6b5d
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x1400d6b0f
cmp rcx, 8
jb 0x1400d6afb
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop
movd xmm1, dword [r10 + rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
movd xmm1, dword [r10 + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x1400d6aa0
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x1400d6b0f
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1400d6b00
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x1400d6b5d
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x1400d6b5d
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_asn1_a_int.c
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.14006c250
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x1400d6bb1
neg r8d
mov qword [rsp + 0x30], rdi
lea r8, [rbx + r10]
sbb edi, edi
add r8, r9
movzx edi, dil
mov ecx, edi
and ecx, 1
test r9, r9
je 0x1400d6bac
mov rdx, r8
sub rdx, rbx
sub rdx, r10
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, edi
add ecx, eax
mov byte [rdx + r11], cl
shr ecx, 8
test rdx, rdx
jne 0x1400d6b90
mov rdi, qword [rsp + 0x30]
mov rax, r9
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400d6c90
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.1400d6cb0