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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov byte [r11 + 0x18], r8b
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13b, r8b
mov rbx, rcx
test rdx, rdx
je 0x14000248c
test rcx, rcx
je 0x14000248c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000248c
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
jne 0x14000248c
and dword [rsp + 0x78], 0
lea r9, [r11 + 0x20]
xor r8d, r8d
mov dl, r13b
call fcn.1400026f8
mov rdi, rax
test rax, rax
je 0x14000248c
cmp dword [rsp + 0x78], 0
je 0x14000248c
mov r12d, dword [rax + 0x14]
test r12d, r12d
je 0x14000248c
mov r8d, dword [rax + 0x20]
test r13b, r13b
je 0x1400023df
mov r15d, dword [rax + 0x1c]
lea r14, [rbx + r8]
mov eax, dword [rax + 0x24]
add r15, rbx
add rax, rbx
jmp 0x14000240e
mov rdx, rbx
mov rcx, rsi
call fcn.140002880
mov r8d, dword [rdi + 0x1c]
mov rdx, rbx
mov rcx, rsi
mov r14, rax
call fcn.140002880
mov r8d, dword [rdi + 0x24]
mov rdx, rbx
mov rcx, rsi
mov r15, rax
call fcn.140002880
xor ebp, ebp
mov qword [rsp + 0x78], rax
test r12d, r12d
je 0x14000248c
movzx eax, word [rax + rbp*2]
mov r12d, dword [r15 + rax*4]
test r12d, r12d
je 0x140002479
mov r8d, dword [r14 + rbp*4]
test r13b, r13b
je 0x140002439
lea r13, [rbx + r8]
add r12, rbx
jmp 0x140002458
mov rdx, rbx
mov rcx, rsi
call fcn.140002880
mov r8d, r12d
mov rdx, rbx
mov rcx, rsi
mov r13, rax
call fcn.140002880
mov r12, rax
mov rax, qword [rsp + 0x68]
cmp rax, 0xffff
jbe 0x140002474
mov rdx, r13
mov rcx, rax
call fcn.1400036a4
test eax, eax
je 0x140002487
mov r13b, byte [rsp + 0x70]
inc ebp
cmp ebp, dword [rdi + 0x14]
jae 0x14000248c
mov rax, qword [rsp + 0x78]
jmp 0x14000241a
mov rax, r12
jmp 0x14000248e
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400026f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
and dword [r9], 0
mov r10b, dl
test rcx, rcx
jne 0x14000270c
xor eax, eax
jmp 0x140002783
movsxd rdx, dword [rcx + 0x3c]
mov r11d, 0x5a4d
lea rax, [rcx + rdx]
cmp word [rcx], r11w
jne 0x14000273e
test edx, edx
jle 0x14000273e
cmp edx, 0x10000000
jae 0x14000273e
cmp dword [rax], 0x4550
jne 0x14000273e
lea rdx, [rax + 4]
add rax, 0x18
jmp 0x140002745
mov rdx, rcx
lea rax, [rcx + 0x14]
mov r11d, 0x10b
cmp word [rax], r11w
je 0x140002771
mov r11d, 0x20b
cmp word [rax], r11w
jne 0x140002708
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov dl, r10b
call fcn.14000269c
jmp 0x140002783
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov dl, r10b
call fcn.140002640
add rsp, 0x38
ret

Function at 0x140002830
Capabilities:
Enumerate pe sections

Disassembly:
xor edx, edx
mov r10d, r8d
test rcx, rcx
je 0x140002878
movzx r9d, word [rcx + 6]
test r9d, r9d
je 0x140002878
movzx r11d, word [rcx + 0x14]
add r11, 0x18
add r11, rcx
test r9d, r9d
je 0x140002878
mov eax, edx
lea rcx, [rax + rax*4]
lea r8, [r11 + rcx*8]
mov ecx, dword [r8 + 0xc]
cmp r10d, ecx
jb 0x140002871
add ecx, dword [r8 + 0x10]
cmp r10d, ecx
jb 0x14000287b
inc edx
cmp edx, r9d
jb 0x140002855
xor eax, eax
ret
mov rax, r8
ret
Function at 0x140003fd8
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
movdqa xmm0, xmmword [0x1400059a0]
lea r8, [rsp]
mov r10d, 7
mov dword [rsp + 0x10], 0x4b
movdqu xmmword [rsp], xmm0
mov r9d, r10d
mov dword [rsp + 0x14], 0x46
mov dword [rsp + 0x18], 0x5e
mov rdx, rcx
movzx eax, word [r8]
lea r8, [r8 + 4]
xor ax, r10w
mov word [rdx], ax
lea rdx, [rdx + 2]
sub r9, 1
jne 0x140004011
xor eax, eax
mov word [rcx + 0xe], ax
add rsp, 0x28
ret

Function at 0x140004038
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
movdqa xmm0, xmmword [0x1400059e0]
mov eax, 0x4f
movdqa xmm1, xmmword [0x140005930]
mov rdx, rcx
movdqa xmmword [rbp - 0x39], xmm0
xor ecx, ecx
movdqa xmm0, xmmword [0x1400059d0]
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmm1, xmmword [0x140005980]
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [0x1400058f0]
movdqa xmmword [rbp - 9], xmm1
movdqa xmm1, xmmword [0x140005940]
movdqa xmmword [rbp + 7], xmm0
movdqa xmm0, xmmword [0x140005920]
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmm1, xmmword [0x1400058e0]
movdqa xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp + 0x37], xmm1
mov dword [rbp + 0x47], 0x47
mov dword [rbp + 0x4b], eax
mov dword [rbp + 0x4f], eax
mov al, byte [rbp + rcx*4 - 0x39]
xor al, 0x23
mov byte [rcx + rdx], al
inc rcx
cmp rcx, 0x23
jl 0x1400040c5
mov byte [rdx + 0x23], 0
add rsp, 0x90
pop rbp
ret

Function at 0x1400040e4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x98
movdqa xmm0, xmmword [0x1400059c0]
movdqa xmm1, xmmword [str.WINDFQMFTJMG]
movdqu xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [0x1400059b0]
movdqu xmmword [rax - 0x78], xmm1
movdqa xmm1, xmmword [0x140005990]
movdqu xmmword [rax - 0x68], xmm0
movdqa xmm0, xmmword [0x140005900]
movdqu xmmword [rax - 0x58], xmm1
movdqa xmm1, xmmword [0x140005970]
movdqu xmmword [rax - 0x48], xmm0
movdqa xmm0, xmmword [0x140005960]
movdqu xmmword [rax - 0x38], xmm1
movdqa xmm1, xmmword [0x140005950]
movdqu xmmword [rax - 0x28], xmm0
movdqa xmm0, xmmword [str.________________1]
movdqu xmmword [rax - 0x18], xmm1
xor eax, eax
movdqa xmmword [rsp], xmm0
movdqu xmm1, xmmword [rsp + rax*4 + 0x10]
movd xmm0, dword [rsp]
andps xmm1, xmmword [0x1400059f0]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
xorps xmm1, xmm0
movd dword [rax + rcx], xmm1
add rax, 4
cmp rax, 0x20
jl 0x140004166
mov byte [rcx + 0x20], 0
add rsp, 0x98
ret
Function at 0x1400041a8
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
jne 0x1400041de
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x30]
mov rcx, rbx
or edx, 4
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call fcn.140001224
test eax, eax
je 0x1400041f0
mov ecx, eax
call fcn.1400010d8
jmp 0x140004223
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140004223
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.1400030b4
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1009eb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1009eb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1009eb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1009eb06f
add dl, dl
jne 0x1009eb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1009eb0f6
xor eax, eax
add dl, dl
jne 0x1009eb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1009eb1ad
add dl, dl
jne 0x1009eb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009eb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009eb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009eb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1009eb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1009eb07e
mov eax, 1
add dl, dl
jne 0x1009eb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009eb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1009eb0fb
sub eax, ebx
mov ebx, 1
jne 0x1009eb14c
mov ecx, 1
add dl, dl
jne 0x1009eb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1009eb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1009eb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1009eb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1009eb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1009eb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1009eb15d
cmp eax, 0x7d00
jae 0x1009eb19b
cmp eax, 0x500
jb 0x1009eb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1009eb07e
cmp eax, 0x7f
ja 0x1009eb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1009eb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1009eb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1009eb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140833fa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140833fad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140833fbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140833fa5
lea eax, [rcx + 1]
jmp 0x140833fcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140833fde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140833fc4
sub eax, 3
jb 0x140833ffe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14083404d
sar eax, 1
movsxd rbp, eax
jb 0x140834034
jmp 0x14083400c
add ebx, ebx
jne 0x14083400a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140834034
inc ecx
add ebx, ebx
jne 0x14083401a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140834034
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14083402d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14083401c
add ecx, 2
jmp 0x140834039
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140833f62
jmp 0x140833fad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1ae00
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140834099
cmp rsi, rcx
jae 0x1408340a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140834080
cmp al, 0x8f
ja 0x140834080
cmp byte [rsi - 2], 0xf
je 0x140834086
sub al, 0xe8
cmp al, 1
ja 0x14083406a
cmp rsi, rcx
jae 0x1408340a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140834070
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1408340a1
lodsb al, byte [rsi]
jmp 0x140834080
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x831000]
mov eax, dword [rdi]
or eax, eax
je 0x1408340fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x102cdbc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1408340ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1408340f8
mov qword [rbx], rax
add rbx, 8
jmp 0x1408340ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140834138
cmp al, 0xef
ja 0x14083412a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14083410a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140834119
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1408341b7], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1408341b7
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408341a7
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x140009e66
Capabilities:
Check for debugger via api

Disassembly:
push rsi
sub rsp, 0x30
lea rsi, [rsp + 0x2c]
and dword [rsi], 0
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, rsi
call sub.kernel32.dll_CheckRemoteDebuggerPresent
test eax, eax
setne cl
cmp dword [rsi], 0
setne al
and al, cl
add rsp, 0x30
pop rsi
ret

Function at 0x140012170
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 0x1400121f0
cmp r11, r10
ja 0x140012267
cmp r10, rdx
ja 0x140012279
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x1400121f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400121d0
jmp 0x140012254
ja 0x1400121fa
mov r11, r10
cmp rax, r8
jne 0x14001219e
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 0x140012230
mov rdi, r8
sub ecx, edx
jns 0x14001224b
jmp 0x140012256
cmp r8, rsi
je 0x140012288
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140012256
xor al, 1
cmp rdi, rsi
jne 0x140012210
jmp 0x140012256
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.1400eae80
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400eacc0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400eafe0
int3
Function at 0x140058d95
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne fcn.14007499d
add rcx, 8
jmp fcn.1400d56d3

Function at 0x140058da7
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [rcx], 2
jne fcn.14007470c
add rcx, 8
jmp fcn.1400d59fa
Function at 0x14007dad0
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 + 0x170]
mov rcx, qword [rdx + 0x160]
mov rdx, qword [rdx + 0x168]
lea r9, str.C:Users16956.cargo_registry_srcmirrors.ustc.edu.cn_12df342d903acd47_schannel_0.1.23_src_tls_stream.rs
call fcn.14007d9f4
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 + 0x1e8]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14007dc3f
test eax, eax
je 0x14007dbb8
cmp eax, 0x90317
je 0x14007dc39
cmp eax, 0x90321
jne 0x14007dc5d
mov dword [rdi + 0x1c8], 0x10000
xor ebx, ebx
mov byte [rdi + 0x1cc], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x170]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14007da71
and qword [rdi + 0x208], 0
mov byte [rsi + 1], bl
jmp 0x14007dc6b
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x160]
mov rdx, qword [rdi + 0x168]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x138]
and qword [rdi + 0x148], 0
call fcn.14007dc75
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14001984d
and qword [rdi + 0x150], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x170]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14007da71
xor eax, eax
cmp qword [rdi + 0x170], rbx
sete al
mov qword [rdi + 0x208], rax
mov byte [rsi + 1], 0
jmp 0x14007dc6b
mov byte [rsi + 1], 1
jmp 0x14007dc59
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x208], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x14007dc6b
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 0x14007f2a0
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 + 0x48]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rdx + 0x40]
lea r9, str.C:Users16956.cargo_registry_srcmirrors.ustc.edu.cn_12df342d903acd47_schannel_0.1.23_src_tls_stream.rs
call fcn.14007d9f4
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 + 0xe8]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14007f3ee
test eax, eax
je 0x14007f37c
cmp eax, 0x90317
je 0x14007f3e8
cmp eax, 0x90321
jne 0x14007f40c
mov dword [rdi + 0xa0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xa4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x48]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14007f24a
and qword [rdi + 0x108], 0
mov byte [rsi + 1], bl
jmp 0x14007f41a
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rdi + 0x40]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x10]
and qword [rdi + 0x20], 0
call fcn.14007dc75
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14001984d
and qword [rdi + 0x28], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x48]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14007f24a
xor eax, eax
cmp qword [rdi + 0x48], rbx
sete al
mov qword [rdi + 0x108], rax
mov byte [rsi + 1], 0
jmp 0x14007f41a
mov byte [rsi + 1], 1
jmp 0x14007f408
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x108], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x14007f41a
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 0x1400c2f60
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400c2f85
cmp rax, rcx
je 0x1400c2f8b
cmp rdx, 4
jae 0x1400c2f92
xor eax, eax
xor r8d, r8d
jmp 0x1400c3030
pop rbp
jmp fcn.14000d500
xor eax, eax
jmp 0x1400c3047
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400ee5d0]
movdqa xmm3, xmmword [0x1400ee5e0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400c2fc0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400c3047
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400c3030
pop rbp
ret

Function at 0x1400c6bff
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400c6c29
mov rdx, qword [rsp + 0x20]
jmp 0x1400c6c31
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400c6edd
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x30], 4
mov dword [rbp + 0x18], 0x400010
movabs rax, 0x8000000000000000
cmp qword [rcx + 0x18], rax
je 0x1400c6f3b
mov edx, dword [rcx + 0x28]
mov dword [rbp - 8], edx
mov rdx, qword [rcx + 0x20]
mov qword [rbp], rdx
cmp qword [rcx + 0x30], rax
je 0x1400c6f72
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1400c6f6d
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x14016d230]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x1400c6f5a
jmp 0x1400c6f6f
xor edx, edx
mov dword [rbp + 8], edx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400c6fc2
mov rax, rbx
shr rax, 0x3c
jne 0x1400c7084
mov rdi, qword [rcx + 8]
lea rsi, [rbx*8]
push 8
pop rcx
mov rdx, rsi
call fcn.1400433d6
test rax, rax
je 0x1400c7089
xor edx, edx
mov rcx, qword [rdi + rdx*8]
mov qword [rax + rdx*8], rcx
inc rdx
cmp rbx, rdx
jne 0x1400c6faa
mov qword [rbp + 0x58], rbx
mov edx, ebx
jmp 0x1400c6fcd
xor eax, eax
mov qword [rbp + 0x58], rax
push 8
pop rax
xor edx, edx
lea rcx, [rbp - 0x30]
mov dword [rcx + 4], edx
mov qword [rbp + 0x50], rax
mov qword [rcx + 8], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x20], rcx
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
push 2
pop r8
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
test eax, eax
je 0x1400c7029
shl rsi, 0x20
or rsi, 2
push 1
pop rdi
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
jmp 0x1400c706d
movaps xmm0, xmmword [rbp + 0x40]
push 1
pop rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
movups xmmword [rbp + 0x30], xmm0
mov al, byte [0x1401a72e8]
push 0x20
pop rdx
xor ecx, ecx
call fcn.1400cfc90
test rax, rax
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
je 0x1400c7094
mov rsi, rax
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor edi, edi
call fcn.140054a3d
mov rax, rdi
mov rdx, rsi
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a450
push 8
pop rcx
mov rdx, rsi
call fcn.1400ea870
push 8
pop rcx
push 0x20
pop rdx
call fcn.1400ea870
ud2
Function at 0x1400c796e
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400c799b
xor eax, eax
jmp 0x1400c79a0
call fcn.140046524
nop
add rsp, 0x38
ret

Function at 0x1400c79cb
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x1400c79e9
add rsp, 0x28
jmp fcn.140046524
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400c9000
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0xfffffffffffffffe
dec dword [rbp - 0x7b]
invalid
je 0x1400c905b
mov rsi, r9
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.kernel32.dll_GetStdHandle]
adc eax, 0x251f7
xor edx, edx
xor eax, eax
jmp 0x1400c906b

Function at 0x1400cd080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
sub byte [rax - 0x73], cl
insb byte [rdi], dx
and al, 0x20

Function at 0x1400cd570
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
test al, 4
add byte [rax], al