joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057870
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 0x1400578c2
cmp qword [rcx], 0
je 0x1400578c2
cmp dword [rcx + 8], 0x40
jb 0x1400578c2
xor r9d, r9d
test r8, r8
je 0x14005789d
mov qword [r8], r9
test rdi, rdi
je 0x1400578a5
mov qword [rdi], r9
mov r10, qword [rsp + 0x38]
test r10, r10
je 0x1400578b2
mov qword [r10], r9
mov rax, qword [rcx]
mov edx, dword [rcx + 8]
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x1400578ce
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 0x1400578c2
add ecx, 0x18
mov qword [rsp + 0x18], rbx
lea rbx, [rax + r8]
cmp ecx, edx
ja 0x1400579e0
cmp dword [rbx], 0x4550
jne 0x1400579e0
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 0x1400579db
movzx eax, bp
add ecx, eax
cmp ecx, edx
ja 0x1400579db
movzx eax, word [rbx + 0x18]
lea r8, [rbx + 0x18]
mov r11d, 0x10b
sub ax, r11w
mov r11d, 0xfeff
test r11w, ax
jne 0x1400579db
movzx r11d, word [r14 + 2]
lea eax, [r11 + r11*4]
lea ecx, [rcx + rax*8]
cmp ecx, edx
ja 0x1400579db
cmp dword [r8 + 0x3c], edx
ja 0x1400579db
movzx ebp, bp
add rbp, r8
test r11d, r11d
je 0x1400579a1
lea rcx, [rbp + 0x10]
nop dword [rax]
mov eax, dword [rcx + 4]
add eax, dword [rcx]
cmp eax, edx
ja 0x1400579db
mov eax, dword [rcx - 8]
add eax, dword [rcx - 4]
cmp eax, dword [r8 + 0x38]
ja 0x1400579db
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140057980
test r15, r15
je 0x1400579a9
mov qword [r15], rbx
test rsi, rsi
je 0x1400579b1
mov qword [rsi], r14
test rdi, rdi
je 0x1400579b9
mov qword [rdi], r8
test r10, r10
je 0x1400579c1
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 0x1400579c3
mov rbx, qword [rsp + 0x18]
or eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
pop r15
pop rdi
ret
Function at 0x140057a00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
mov qword [rsp + 0x78], 0
mov ebp, r8d
lea rcx, [rsp + 0x58]
mov esi, edx
lea r8, [0x140057b50]
sub rcx, 8
lea rdx, [rsp + 0x38]
call fcn.140025270
mov edx, 0x104
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], 0
mov rdi, rax
or rbx, 0xffffffffffffffff
call fcn.140026f40
test ebp, ebp
je 0x140057a95
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call sub.WTSAPI32.dll_WTSQueryUserToken
movsxd rcx, eax
call fcn.140170a40
test rax, rax
jne 0x140057a95
lea rdx, str.failed_get_token_for_active_user__m
mov rcx, rdi
call fcn.140026210
jmp 0x140057b0d
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140057abe
lea rdx, str.failed_get_path_for_cid__d
jmp 0x140057b02
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.1400263f0
mov rax, qword [r14]
test rax, rax
je 0x140057afb
cmp byte [rax], 0
je 0x140057afb
nop dword [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140057ae0
cmp byte [rbx + rax - 1], 0x5c
jne 0x140057af7
mov byte [rbx + rax - 1], 0
xor ebx, ebx
jmp 0x140057b1a
lea rdx, str.got_empty_path_for__d
mov r8d, esi
mov rcx, rdi
call fcn.1400262c0
mov rdx, qword [rdi]
mov ecx, 0x610003
call fcn.140028e10
test ebp, ebp
je 0x140057b28
lea rcx, [rsp + 0x30]
call fcn.14003e170
lea rcx, [rsp + 0x78]
call fcn.140026da0
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140059840
Capabilities:
List tcp connections and listeners

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14026d5f0]
mov rbx, rcx
mov rcx, qword [rcx]
mov edx, eax
mov dword [rsp + 0x40], eax
call fcn.140180120
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 0x1400598fb
mov edx, dword [rsp + 0x40]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rdi
call fcn.140180120
mov edx, dword [0x14026d5f0]
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 [0x14026d5f0], 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 0x1400598f4
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400598f4
call fcn.140174cec
mov qword [rbx], 0
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x1400604a0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.140173680
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 0x14006a280
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 0x14006a2c0
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 0x14006a410
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 0x14006a8d0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14006a8f7
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 0x14006a8e0
movzx eax, r9b
ret
Function at 0x14006aaa0
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 0x14006ab5d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x14006ab5d
mov qword [rsp + 0x160], rsi
lea rbx, [rsp + 0x188]
call fcn.14001bfd0
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.140179f40
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.14001bfd0
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.140179f40
mov byte [rsp + 0x15f], bl
call fcn.14006a940
xor ecx, ecx
test eax, eax
jle 0x14006ac1b
lea rdx, str.OpenSSL
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rdi, rax
test rax, rax
je 0x14006ac33
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 0x14006ac08
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 0x14006f550
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x14026f378]
jmp fcn.14006a280

Function at 0x1400788e0
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 0x140078948
movzx eax, byte [rcx]
test al, al
je 0x140078948
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.1400c2320
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 0x140078905
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 0x1400a9940
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.140174280
test eax, eax
jle case.0x1400a9a19.2
xor r8d, r8d
test esi, esi
jle 0x1400a9999
mov rdx, rbp
mov rcx, rbx
sub rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
cmp byte [rdx + rcx], al
jne 0x1400a9999
inc rcx
inc r8d
mov rax, rcx
sub rax, rbx
cmp rax, rsi
jl 0x1400a9980
lea edx, [rsi - 1]
movsxd rax, edx
test edx, edx
js 0x1400a99c6
mov r9, rbp
lea rcx, [rax + rbx]
sub r9, rbx
nop dword [rax]
cmp byte [rcx + r9], 0
jne 0x1400a99c6
cmp byte [rcx], 0xff
jne 0x1400a99c6
dec edx
dec rcx
cmp rcx, rbx
jns 0x1400a99b0
cmp r8d, edx
jl case.0x1400a9a19.2
jle 0x1400a99de
lea eax, [r8*8]
jmp 0x1400a9a60
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.0x1400a9a19.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0xa9a98]
mov ecx, dword [r11 + rax*4 + 0xa9a78]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1400a9a4a
mov eax, 6
jmp 0x1400a9a4a
mov eax, 5
jmp 0x1400a9a4a
mov eax, 4
jmp 0x1400a9a4a
mov eax, 3
jmp 0x1400a9a4a
mov eax, 2
jmp 0x1400a9a4a
mov eax, 1
test dl, r10b
jne case.0x1400a9a19.2
and r9b, dl
cmp r9b, dl
jne case.0x1400a9a19.2
lea eax, [rax + r8*8]
jmp 0x1400a9a60
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 0x1400baca0
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.14006c050
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call fcn.14006bee0
test rax, rax
je 0x1400bad0d
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.14006bf60
mov rcx, rdi
call fcn.14006c100
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x1400bad15
mov rcx, rdi
call fcn.14006c100
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400bb1c0
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 0x1400bb1e7
xor r9d, r9d
cmp rdx, r8
jae 0x1400bb200
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 0x1400bb231
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 0x1400bb220
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.14005f8a0
test eax, eax
je 0x1400bb262
cmp dword [rsp + 0x40], 0x10
jne 0x1400bb262
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400bb400
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400bb488
test r8, r8
je 0x1400bb488
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x1400bb446
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 0x1400bb430
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x1400bb488
sub r8, rax
mov eax, reloc.WS2_32.dll_recv
cmp r8, rax
cmova r8, rax
xor ecx, ecx
test r8, r8
je 0x1400bb488
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 0x1400bb470
ret

Function at 0x1400c1940
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x60]
call fcn.140173680
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 0x1400c4130
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.1400c2d20
test eax, eax
je 0x1400c4166
xor edx, edx
mov rcx, rbx
call fcn.1400c31b0
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 0x1400c41ae
mov edx, ebp
mov rcx, rbx
call fcn.1400c3720
test rax, rax
je 0x1400c421d
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 0x1400c41ce
mov qword [r8], rcx
test rdi, rdi
jle 0x1400c420e
sub r14, rax
nop word [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 0x1400c41e0
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x1400c4218
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 0x1400cf0c0
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.14005ed80
cmp eax, 0x72
jne 0x1400cf2e3
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.140060180
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.1400cee30
test eax, eax
je 0x1400cf18c
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.14006a4a0
mov rsi, rax
test rax, rax
jne 0x1400cf1a9
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.140069ef0
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.1400b2b10
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.1400cee30
test eax, eax
jne 0x1400cf1f8
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.14006a5c0
jmp 0x1400cf185
xor ecx, ecx
test rdi, rdi
je 0x1400cf2c1
cmp rdi, 0x40
jb 0x1400cf29b
lea rdx, [rbp - 1]
lea rax, [rdi - 1]
add rdx, rdi
add rax, rsi
cmp rbp, rax
ja 0x1400cf225
cmp rdx, rsi
jae 0x1400cf29b
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 0x1400cf240
cmp rcx, rdi
jae 0x1400cf2c1
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 0x1400cf2b0
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.14006a5c0
mov eax, 1
jmp 0x1400cf187
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.1400cee30
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 0x1400d6700
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x1400d6738
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.140069ef0
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x1400d674b
mov dword [rdx], r8d
cmp r9, 1
jne 0x1400d676f
test r11, r11
je 0x1400d6765
movzx eax, byte [r10]
test r8d, r8d
je 0x1400d6763
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 0x1400d678c
mov eax, 1
mov ebx, eax
jmp 0x1400d683f
cmp cl, 0xff
jne 0x1400d687d
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x1400d682f
cmp rcx, 8
jb 0x1400d681b
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 0x1400d67c0
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 0x1400d682f
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1400d6820
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x1400d687d
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x1400d687d
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.140069ef0
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x1400d68d1
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 0x1400d68cc
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 0x1400d68b0
mov rdi, qword [rsp + 0x30]
mov rax, r9
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400d69b0
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.1400d69d0
Function at 0x1400d69d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
xor r10d, r10d
xor bl, bl
mov r14, r9
mov rdi, rcx
test rcx, rcx
je 0x1400d6ae6
test rdx, rdx
je 0x1400d6ae6
movzx eax, byte [rcx]
test r8d, r8d
jne 0x1400d6a1a
cmp al, 0x7f
jbe 0x1400d6ade
mov r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1400d6aee
mov bl, 0xff
cmp al, 0x80
jbe 0x1400d6a31
mov r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1400d6aee
jne 0x1400d6ade
mov eax, 1
lea rcx, [rdx - 1]
cmp rdx, rax
jbe 0x1400d6acf
cmp rcx, 8
jb 0x1400d6aba
and ecx, 7
mov r8, rdx
sub r8, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop
movd xmm1, dword [rdi + rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rdi + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, r8
jb 0x1400d6a60
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd r10d, xmm2
cmp rax, rdx
jae 0x1400d6acf
nop
movzx ecx, byte [rax + rdi]
inc rax
or r10d, ecx
cmp rax, rdx
jb 0x1400d6ac0
neg r10d
sbb bl, bl
movzx ebx, bl
mov r10d, ebx
and r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1400d6aee
mov eax, 1
mov rdx, r10
mov qword [rsp + 0x10], rsi
test r14, r14
je 0x1400d6b44
mov rsi, qword [r9]
test rsi, rsi
je 0x1400d6b44
movzx r8d, bl
lea r11, [rdi + rdx]
and r8d, 1
mov byte [rsi], bl
test rdx, rdx
je 0x1400d6b41
mov r9, r11
mov r10d, r10d
sub r9, rdi
add r10, rsi
nop
movzx edx, byte [r11 - 1]
lea r11, [r11 - 1]
dec r9
movzx ecx, bl
xor edx, ecx
add r8d, edx
mov byte [r10 + r9], r8b
shr r8d, 8
test r9, r9
jne 0x1400d6b20
add qword [r14], rax
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
pop r14
ret

Function at 0x1400d9540
Capabilities:
Hash data using sha224

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x70]
call fcn.140173680
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 0x1400d98d0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x70]
call fcn.140173680
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