joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1408734ba
Capabilities:
Encode data using base64

Disassembly:
mov edi, r9d
not edx
ror r8w, cl
xchg r11b, dil
lea edx, [rcx + rdx + 0x483d6265]
xor edx, 0xb6b5e182
bt r8d, 0x35
dec edx
push rsi
lea rcx, [r9 - 0x215d2343]
xor dword [rsp + rcx + 0x215cc81b], edx
neg r11b
dec r8d
pop rsi
add rdi, rdi
sal r11w, 0x8e
dec r9w
movsxd rdx, edx
ror r8b, cl
adc rbp, rdx
movzx eax, byte [r8 + r10 - 0x711c945d]
and r9, rcx
add dil, dil
lea rdx, [rcx*4 + 0x6832ff3f]
xor al, sil
xor al, 0xa9
sal rdx, 0xcb
sbb al, r11b
push rdx
btc rcx, 0x82
rol al, cl
xadd word [rsp + rcx + 0x215cc825], r9w
ja 0x140873907
or r9, r11
sbb al, r9b
btc rcx, r11
neg al
xor sil, al
lea rax, [rsp + rax + 8]
add r11w, word [rdi + rax - 0xb7e4]
call fcn.140836625
mov edx, 0x1ca4273d
movzx ecx, dl
mov edi, 0x10873b0
mov eax, dword [r10 + rdx*2 - 0x39484e7a]
push rdx
movsx r9d, word [rsp + rdx - 0x1ca42739]
not edi
lea r10, [r10 + rdx*2 - 0x39484e76]
btr cx, dx
and qword [rsp + rdx*2 - 0x39484e7a], r9
not word [rsp + rdx - 0x1ca4273a]
xor eax, esi
mov r11d, dword [rsp + rdx - 0x1ca4273c]
shr r9b, 1
inc eax
xor r11b, 0xf
xchg edx, edi
sar r11d, 0xa1
not eax
sal edx, cl
neg eax
xchg dword [rsp + rcx*2 - 0x79], edi
bswap eax
jmp 0x14086310c
inc eax
push rdx
dec di
movzx r8d, byte [rsp + rcx - 0x32]
xor eax, 0x7082531d
mov word [rsp + rcx*2 - 0x6f], di
xadd dword [rsp + rcx - 0x35], ecx
sal r8, 0xc1
mov qword [rsp + r9 + 8], rsi
bswap rdx
bt r8, 0x3a
sal word [rsp + r9 + 3], 0x8b
xor dword [rsp + r8*2 - 0x288], eax
mov rsi, qword [rsp + r8*2 - 0x288]
mov qword [rsp + r9 + 8], rdx
movsxd rax, eax
add rbp, rax
movd eax, xmm1
lea rbx, [rbx + r9*4 - 4]
jmp 0x14086ca2d
call fcn.140804d63
mov edi, dword [r10]
mov eax, 0x4d0ab591
lea rcx, [rax*4 - 0x7ce9d07b]
lea r10, [r10 + rax - 0x4d0ab58d]
lea r11, [rax + rax*8 - 0x50657c74]
movzx r9d, ax
xchg r9b, cl
xor edi, esi
lea r8, [rax + r11*8 + 0x521b3702]
bswap ecx
neg edi
not rcx
bswap edi
rol cx, cl
imul r9, r8
bts r11d, 0x3f
mov qword [rsp + rcx*2 - 0x5b4a84a0], rdi
mov rsi, qword [rsp + rcx - 0x2da54248]
mov dword [rbx + rdi - 0x6c9ee499], r8d
lea rbx, [rcx + rbx - 0x2da54248]
xor dword [rsp + rdi - 0x6c9ee4a0], 0x7b8cf71b
jno 0x1407fef3b
mov r8d, 0x711c5b28
mov edx, dword [r10 + r8 - 0x711c5b28]
movsx ecx, r8w
mov r9d, ecx
mov r11d, 0x2932a4b9
xor edx, esi
inc ecx
jns 0x14084773b
movsx r9d, di
shr qword [rsp + r9 - 0x7448], 4
sbb cx, 0xa538
mov eax, dword [rsp + r9 - 0x7444]
xor edi, r9d
lea r9, [rax*2 + 0x623ee0bb]
not cx
push rdi
xor si, cx
xadd r9d, edi
movsx r8d, di
lea rcx, [rsp + rcx + 0x10]
mov dword [rcx + rax*8 - 0x1d8038], r11d
call fcn.140851f31
mov r9d, dword [rbx]
mov edi, 0xa02b88ac
movzx ecx, dil
movsx r11d, dil
mov r8d, dword [rbx + rcx*4 - 0x2ac]
xchg rcx, rdi
inc r11w
jne 0x1408150e8
Function at 0x140874878
Capabilities:
Authenticate hmac

Disassembly:
or dx, word [rbx + rdx + 2]
mov qword [rsp + rax*2], rdi
add byte [rsp + rax*2], r8b
shr dil, 0xc7
lea rbx, [rbx + rax*8 + 4]
movzx r11d, byte [rax + r10 + 4]
movsx r9d, al
add ecx, ecx
xor r8, r9
lea r10, [r10 + rax*2 + 5]
push rax
imul r9w, r8w
pop rcx
xor r11b, sil
dec r11b
shl ecx, 0x33
not r11b
xor cl, dil
or word [rsp + rax*2 + 1], 0x5434
call fcn.140820bb7
lea rax, [r9*2 + 0x12a34e2c]
mov r11d, 0x50426b9
xor edi, 0xb6b5e182
cwde
movzx ecx, r11w
dec edi
push rsi
btc ecx, eax
setae r9b
xor dword [rsp + r9 - 0x17be2b01], edi
sal cl, 0x21
imul r9w, ax
xor r11d, r9d
pop rsi
xor cl, cl
dec rax
imul cl
movsxd rdi, edi
mov edx, eax
add r11d, eax
call fcn.140869e07
mov eax, 0xb09eb7aa
mov r9d, dword [r10 + riz]
lea rdi, [rax*2 - 0x6bf26e5a]
xor r9d, esi
movzx ecx, al
neg r9d
cqo
not di
idiv di
xor r9d, 0x2c05d813
bswap rax
and ax, dx
neg r9d
movsx r11d, cl
ror r9d, 1
cbw
push rsi
imul ax
shr r11b, 0x67
shr edx, cl
xor dword [rsp + rcx - 0xaa], r9d
pop rsi
add r11b, dl
mov dword [rbx + rdx*4 - 4], r9d
mov cl, byte [r10 + rcx - 0xa6]
dec edi
shl dx, 0x8e
xor cl, sil
sub cl, 0x8d
not cl
movsx r9d, dil
cqo
mul rdi
sbb cl, 9
inc r9w
idiv r11b
rol cl, 1
movsx r8d, ax
rol r8b, 0xe2
xor sil, cl
xadd r11, rdi
cwd
mov word [rdx + rbx - 0x43120006], cx
lea r11, [r8*4 + 0x1b91eaaa]
lea rbx, [rbx + rdx - 0x43120006]
mov r9d, dword [r10 + rdx - 0x4311fffb]
lea r10, [r10 + rdx - 0x4311fff7]
xor r9d, esi
inc r9d
dec r8b
call fcn.140852930
inc r11
sar r8w, cl
adc rbp, rax
shl rdi, 0xf9
push r8
xor r11d, edi
mov r11, qword [rbx + r11*2 - 0x64747dea]
call fcn.140831d02
Function at 0x14087568f
Capabilities:
Authenticate hmac
Encode data using base64

Disassembly:
shl r11d, 0xc8
xor dl, 0x89
sub dl, 0x96
sal rax, 0x94
xor dl, 0x95
xchg r9w, ax
sal r8d, 0x82
xor sil, dl
call fcn.140822ba9
xor qword [rsp + rdi*2 - 0x26], r8
mov qword [rsp + rdi*2 - 0x26], rbp
ret
call fcn.140814eea
movsxd r11, r11d
lea rcx, [rdi - 0x4aef09e4]
imul dx, r8w
add rbp, r11
mov eax, 0x37897d83
mul r8b
mov rcx, qword [rbx + r9 - 0x19c4c5fb]
movzx edx, byte [r9 + r10 - 0x19c4c5f7]
movsx r11d, r8w
xchg r11b, dil
or r9w, 0x88ac
xor dl, sil
lea r11, [r11 + rax*2 - 0x7dc88d58]
shl r8b, 0xa6
bt r8, r11
neg dl
sal r8d, 0xe6
shl r11w, 0xe1
bts rdi, r11
ror dl, 1
jmp 0x14080029c
sal r11w, 0x47
not dx
add r11, r11
and dil, byte [rsp + r11 + 0x17b31006]
mov qword [rsp + r11 + 0x17b31008], 0xffffffffc12dec8d
or r8w, dx
mov word [rbx + r11 + 0x17b31000], r8w
mov edx, edi
movsx eax, word [rsp + r11*4 + 0x5ecc400c]
dec r9
mov qword [rsp + r11 + 0x17b31000], rbp
ret 8
sar r8b, 0x82
pop rdx
pop r11
jp fcn.140847ec1
jbe 0x140813d07
pop rax
adc rbp, rdx
and dword [rsp + r8 - 0x709af90e], r8d
mov r8w, word [rbx + r8 - 0x709af90e]
mov dx, word [rbx + r11 + 0xbd92b12]
lea rbx, [rbx + r9*2 - 0x1f1fe]
xor edi, 0x64bd81af
not r8w
adc r9w, 0x9c91
jne 0x1408212c5
sub dil, 0x11
cdqe
not dil
cwde
xor dil, 0xb1
sub dword [rsp + rdx*4 + 0x12], r9d
rol dil, 1
xor r8w, r8w
rol r9d, 0xc1
xor sil, dil
bt edx, ecx
lea rdi, [rsp + rdi + 0x18]
adc dx, word [rsp + rdx*4 + 0xe]
xor cl, byte [rdi + rdx*8]
and r11w, word [rsp + rdx + 0x10]
mov word [rbx + rdx*8 - 4], cx
lea rbx, [rbx + rdx*2 - 4]
lea rcx, [rax*2 - 0x5b5bd1cf]
mov ecx, dword [rdx + r10 + 2]
call fcn.140862aee
mov r9d, dword [r10]
push 0xffffffff892e05a3
mov eax, 0x48a63c16
add qword [rsp + rax - 0x48a63c16], rax
lea r10, [r10 + rax - 0x48a63c12]
movzx r11d, al
add qword [rsp + rax - 0x48a63c16], rax
xor r9d, esi
xchg r11d, eax
bswap r11
sub al, r11b
rol r9d, 2
shr r11, 0xaa
sal rax, 0xee
btr ax, ax
dec r9d
sar r11b, 0x61
sbb al, r11b
sal dword [rsp + r11*8 - 0x2c789f], 0x43
neg r9d
xor rax, r11
sbb byte [rsp + r11 - 0x58f12], 0x15
sbb r9d, 0xdf9afa21
xor rax, r11
xor r9d, 0x938a4207
sub r11b, al
sar r11b, 1
not r9d
bts r11w, 0x22
shl byte [rsp + r11 - 0x58f14], 0xe4
xor dword [rsp + r11*2 - 0xb1e24], 0x7691853f
mov qword [rsp + r11*8 - 0x2c78a0], rsi
inc r11
xor dword [rsp + r11 - 0x58f15], r9d
btc r11d, r11d
sal r11, 0x46
sub r11, r11
pop rsi
not r11
movsxd r9, r9d
bswap eax
xadd r11, rax
adc r11w, r11w
add rbp, r9
and r11d, eax
mov rax, qword [rbx + rax*2 + 2]
setnp r11b
neg r11d
mov r11, qword [rbx + r11 - 0x150000f8]
jge 0x1408320d8
movsx r8d, byte [rsp + rax - 0x17e45]
lea rbx, [rbx + rax*4 - 0x5f922]
jle 0x14082b86e
Function at 0x140876fa7
Capabilities:
Authenticate hmac

Disassembly:
shl rcx, 0x7f
lea rdi, [rsp + rdi + 0x18]
imul dx, dx
mov word [r8 + rdi], ax
push rcx
not byte [rsp + r8*2 + 0xd]
inc dx
mov r11d, dword [r10 + r8*4]
shl r8d, 0x7a
push rcx
lea r10, [r8 + r10 + 4]
lea r9, [r8*8 + 0x5f97c99a]
pop rcx
xor r11d, esi
not dword [rsp + r8 + 0x19]
jmp 0x14086dec7
dec r11d
not r11d
dec r11d
xadd byte [rsp + r8*4 + 0x15], r9b
lea rdi, [rcx*8 + 0x1f1e4506]
shr r8b, 0x62
neg r11d
call fcn.14082d97b
dec cx
cqo
not rax
not cx
mul dl
sbb cx, 0xc2aa
xchg rdx, r11
sal rdx, 0x36
lea r9, [r11 + 0x158780a8]
xor si, cx
mov edi, edx
mul r9
dec dil
mov qword [rsp + r8], r9
xchg edx, r9d
rol edx, 0x63
xor sil, dil
lea r11, [r8 + r8*2 + 0x36a8a72c]
jmp 0x14083ba19
Function at 0x140002a5c
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret

Function at 0x140002f18
Capabilities:
Create directory

Disassembly:
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp fcn.14013effc
Function at 0x140011a50
Capabilities:
Encrypt data using dpapi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rbx, rcx
mov eax, dword [rdx + 0x10]
mov rdi, qword [rdx + 8]
lea rcx, [rsp + 0x38]
mov dword [rcx], eax
lea r14, [rsp + 0x48]
and dword [r14], 0
mov qword [rcx + 8], rdi
and qword [r14 + 8], 0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], r14
and qword [rsp + 0x20], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.crypt32.dll_CryptUnprotectData
mov rax, qword [r14 + 8]
mov ecx, dword [r14]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rcx
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.14008728c
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140052637
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14005b1e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14005b260
cmp r10, r11
jb 0x14005b2d7
cmp r10, rdx
ja 0x14005b2e9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14005b262
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14005b240
jmp 0x14005b2c4
ja 0x14005b26a
mov r11, r10
cmp rax, r8
jne 0x14005b20e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14005b2a0
mov rdi, r8
sub ecx, edx
jns 0x14005b2bb
jmp 0x14005b2c6
cmp r8, rsi
je 0x14005b2f8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14005b2c6
xor al, 1
cmp rdi, rsi
jne 0x14005b280
jmp 0x14005b2c6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140256e70
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140256a90
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140256ee0
int3
Function at 0x140060885
Capabilities:
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
movaps xmmword [rsp + 0x240], xmm10
movaps xmmword [rsp + 0x230], xmm9
movdqa xmmword [rsp + 0x220], xmm8
movaps xmmword [rsp + 0x210], xmm7
movaps xmmword [rsp + 0x200], xmm6
mov edi, ecx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x30], edx

Function at 0x1400649ec
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x140064a12
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x1400649fc
mov qword [rcx], rax
ret

Function at 0x140064afa
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor ecx, ecx
test rbx, rbx
setne cl
call fcn.1400649c1
test rbx, rbx
je 0x140064b33
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400649ec
mov cl, byte [rdi + 8]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400649e4
Function at 0x14008eb11
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov rbx, qword [0x14033a160]
test rbx, rbx
jne 0x14008ec5e
lea rcx, [0x140294ea5]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14008eb8c
mov rbx, rax
lea rdx, [0x140294ec6]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14008eb8c
mov rdi, rax
lea rdx, [0x140294ed4]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14008eb8c
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 0x18], rax
jmp 0x14008ec16
lea rcx, [0x140294e60]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14008ec71
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14008ec71
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov ch, 0x62
and byte [rax], al
and qword [rsi + 8], 0
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140090fc7
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
push 0x20
pop r14
mov r15d, 0xffffffff
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
test r14, r14
je 0x14009101e
cmp r14, r15
mov ebx, 0xffffffff
cmovb rbx, r14
mov rcx, rdi
mov edx, ebx
call r12
test al, al
je 0x140091022
sub r14, rbx
add rdi, rbx
jmp 0x140090ff9
mov al, 5
jmp 0x140091067
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov qword [rbp - 0x10], rdi
push 8
pop rcx
mov rdx, rcx
call fcn.14000b70b
mov qword [rax], rdi
lea rcx, str.couldnt_generate_random_bytesNoTimerCoarseTimerNotMonotonicTinyVariantionsTooManyStuckC:Users_stillthesame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.5.6_src_rngs_thread.rscould_not_initialize_thread_rng:_GX__
mov qword [rsi], rcx
mov qword [rsi + 8], 0x1e
mov qword [rsi + 0x10], rax
lea rax, fcn.14008f6d8
mov qword [rsi + 0x18], rax
xor eax, eax
mov byte [rsi + 0x20], al
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret

Function at 0x140092124
Capabilities:
Encrypt data using hc-128 via wolfssl

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1030
call fcn.140254a20
sub rsp, rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x1018]
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008f7b9
cmp qword [rbx], 0
je 0x140092188
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
movzx eax, byte [rsp + 0x48]
cmp eax, 2
je 0x1400921b2
cmp eax, 5
je 0x1400921a9
mov r8, qword [rdi + 0x1008]
lea rdx, [rsp + 0x28]
mov rax, qword [rdi + 0x1008]
or byte [rax], dl
add byte [rax], al
call fcn.140090f82
xor ebx, ebx
Function at 0x1400d0c3d
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x78]
mov rcx, qword [rdx + 0x68]
mov rdx, qword [rdx + 0x70]
lea r9, [0x14029ad60]
call fcn.1400d0a1f
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xf0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x1400d0d8c
test eax, eax
je 0x1400d0d19
cmp eax, 0x90317
je 0x1400d0d86
cmp eax, 0x90321
jne 0x1400d0daa
mov dword [rdi + 0xd0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xd4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400d0be7
and qword [rdi + 0x110], 0
mov byte [rsi + 1], bl
jmp 0x1400d0db8
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x40]
and qword [rdi + 0x50], 0
call fcn.1400d0dc2
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call case.0x1400dc200.342
and qword [rdi + 0x58], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400d0be7
xor eax, eax
cmp qword [rdi + 0x78], rbx
sete al
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
jmp 0x1400d0db8
mov byte [rsi + 1], 1
jmp 0x1400d0da6
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x1400d0db8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d12bb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, r8
mov qword [rbp - 8], rcx
mov qword [rcx + 0x38], rdx
mov rcx, r8
call fcn.1400d11cf
mov rbx, rax
mov r14, rdx
lea r15, [rbp - 0x20]
mov rdx, qword [rbp - 8]
mov rcx, rdx
call fcn.1400d12a0
test rdx, rdx
mov rdx, qword [rbp - 8]
jne 0x1400d10cc
mov rcx, r15
call fcn.1400cfb40
mov eax, dword [rbp - 0x20]
cmp eax, 2
je 0x1400d1137
test eax, eax
mov rdx, qword [rbp - 8]
je 0x1400d10cc
cmp qword [rdx + 0x110], 0
je 0x1400d10b4
mov rcx, rdx
call fcn.1400d0a57
mov rdi, rdx
test rax, rax
jne 0x1400d1141
test rdi, rdi
mov rdx, qword [rbp - 8]
je 0x1400d10cc
and qword [rdx + 0x110], 0
mov rcx, r15
call fcn.1400d0c3d
cmp byte [rbp - 0x20], 0
jne 0x1400d1137
cmp byte [rbp - 0x1f], 0
mov rdx, qword [rbp - 8]
je 0x1400d1058
mov rcx, rdx
call fcn.1400d12a0
mov r15, rax
mov rdi, rdx
test rax, rax
je 0x1400d1141
cmp r14, rdi
cmovb rdi, r14
lea r9, [0x14029a600]
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.140001050
lea rcx, [0x14029a618]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r15
mov r9, rdi
call fcn.1400889d8
mov rcx, qword [rbp - 8]
mov rax, qword [rcx + 0x58]
add rax, rdi
cmp rax, qword [rcx + 0x50]
ja 0x1400d118c
mov qword [rcx + 0x58], rax
mov rcx, rsi
mov rdx, rdi
call fcn.1400d123c
jmp 0x1400d116f
mov rdi, qword [rbp - 0x18]
mov qword [rbp - 0x20], rdi
jmp 0x1400d114a
mov qword [rbp - 0x20], rdi
test rdi, rdi
je 0x1400d116f
mov rcx, rdi
call fcn.14006789e
mov rcx, qword [rbp - 8]
and qword [rcx + 0x38], 0
cmp al, 0xd
jne 0x1400d117a
lea rcx, [rbp - 0x20]
call fcn.14007aac1
push 1
pop rax
xor edi, edi
jmp 0x1400d117c
mov rax, qword [rbp - 8]
and qword [rax + 0x38], 0
xor edi, edi
xor eax, eax
mov rdx, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, [0x14029a72e]
lea r8, [0x14029a770]
push 0x3b
pop rdx
call fcn.140256b00
ud2
cmp dword [rcx], 2
jne 0x1400d101e
add rcx, 8
jmp fcn.14012bbb2
Function at 0x1400d12cd
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r9
mov r14, r8
mov rax, rcx
mov qword [rcx + 0x38], rdx
lea rsi, [rbp - 0x48]
mov rcx, rsi
mov qword [rbp - 8], rax
mov rdx, rax
call fcn.1400cfb40
mov eax, dword [rbp - 0x48]
cmp eax, 2
jne 0x1400cf8cf
mov rsi, qword [rbp - 0x40]
jmp 0x1400cfaad
test eax, eax
mov r12, qword [rbp - 8]
je 0x1400cfa65
mov rdx, qword [r12 + 0x98]
cmp rdx, qword [r12 + 0x90]
jne 0x1400cfa9d
mov rdi, qword [rbp - 0x40]
mov eax, edi
shr rdi, 0x20
cmp rbx, rdi
cmovb rdi, rbx
mov r15d, dword [rbp - 0x44]
lea rbx, [rdi + r15]
add rax, rbx
cmp rdx, rax
jae 0x1400cf92e
lea rcx, [r12 + 0x80]
mov rdx, rax
call fcn.1400d09a1
mov r12, qword [rbp - 8]
mov rdx, qword [r12 + 0x90]
mov rcx, qword [r12 + 0x88]
lea rax, [0x14029ad90]
mov qword [rsp + 0x20], rax
mov r8, r15
mov r9, rbx
call fcn.1400d0a08
lea rcx, [0x14029ada8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r14
mov r9, rdi
call fcn.1400889d8
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x88]
mov rdx, qword [rax + 0x90]
lea r9, [0x14029adc0]
mov r8, r15
call fcn.1400d0a1f
mov r14, rax
mov r12, rdx
xor eax, eax
test r14, r14
cmove r12d, eax
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x88]
mov rdx, qword [rax + 0x90]
lea rax, [0x14029add8]
mov qword [rsp + 0x20], rax
mov r8, r15
mov r9, rbx
call fcn.1400d0a08
mov r15, rax
mov r13, rdx
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x88]
mov rdx, qword [rax + 0x90]
lea r9, [0x14029adf0]
mov r8, rbx
call fcn.14000eed2
xor ecx, ecx
test r15, r15
cmove r13d, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov dword [rbp - 0x48], r12d
mov dword [rbp - 0x44], 7
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r13d
mov dword [rbp - 0x34], 1
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], edx
mov dword [rbp - 0x24], 6
mov qword [rbp - 0x20], rax
movabs rax, 0x400000000
lea r8, [rbp - 0x58]
mov qword [r8], rax
mov qword [r8 + 8], rsi
mov r12, qword [rbp - 8]
lea rcx, [r12 + 0xf0]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1400cfa71
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1400cfab1
movabs rsi, 0x8009031700000002
jmp 0x1400cfab1
mov eax, dword [rbp - 0x38]
add eax, dword [rbp - 0x48]
add eax, dword [rbp - 0x28]
cmp qword [r12 + 0x90], rax
jb 0x1400cfa8c
mov qword [r12 + 0x90], rax
and qword [r12 + 0x98], 0
mov qword [r12 + 0x118], rdi
mov rcx, r12
call fcn.1400d08e3
test rax, rax
je 0x1400cfaf6
mov rsi, rdx
mov r12, qword [rbp - 8]
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x40], rsi
mov rcx, rsi
call fcn.14006789e
and qword [r12 + 0x38], 0
cmp al, 0xd
jne 0x1400cfadc
lea rcx, [rbp - 0x40]
call fcn.14007aac1
push 2
jmp 0x1400cfade
push 1
pop rax
mov rdx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp - 8]
mov rsi, qword [rax + 0x118]
and qword [rax + 0x38], 0
xor eax, eax
jmp 0x1400cfadf
cmp dword [rcx], 2
jne 0x1400cf87b
add rcx, 8
jmp fcn.14012bee2