joyce8/EMBER2024-capa huggingface dataset:
Function at 0x551324
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x38], r8
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.00554eca
mov eax, dword [rbx]
cmp eax, 2
je 0x5514e9
test eax, eax
je 0x55149c
mov rdx, qword [rsi + 0xb8]
cmp rdx, qword [rsi + 0xb0]
jne 0x5514d3
mov rcx, qword [rsp + 0xe0]
mov r15d, dword [rsp + 0x2c]
mov r14, qword [rsp + 0x30]
mov eax, r14d
shr r14, 0x20
cmp rcx, r14
cmovb r14, rcx
lea r12, [r14 + r15]
add rax, r12
lea rbp, [rsi + 0xa0]
cmp rdx, rax
jae 0x5513ba
mov rcx, rbp
mov rdx, rax
call fcn.004b71fa
mov rdx, qword [rsi + 0xb0]
mov rcx, qword [rbp]
mov r8, r15
mov r9, r12
call fcn.00555dd9
cmp rdx, r14
jne 0x551556
mov rcx, rax
mov rdx, r13
mov r8, r14
call sub.ntdll.dll_memcpy
mov rdx, qword [rsi + 0xb0]
cmp rdx, r15
jb 0x551552
mov r13, qword [rsi + 0xa0]
mov rcx, r13
mov r8, r15
mov r9, r12
call fcn.00555dd9
mov rcx, qword [rsi + 0xb0]
cmp rcx, r12
jb 0x551552
xor r8d, r8d
test rax, rax
cmove edx, r8d
sub ecx, r12d
add r12, qword [rsi + 0xa0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rbx
lea rcx, [rsi + 0xc0]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x5514a8
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x5514ee
movabs rbx, 0x8009031700000002
jmp 0x5514ee
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0xb0], rax
jb 0x5514c4
mov qword [rsi + 0xb0], rax
and qword [rsi + 0xb8], 0
mov qword [rsi + 0x100], r14
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call fcn.00555d16
cmp qword [rbx], 0
je 0x551541
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 1
mov rcx, rbx
call fcn.0048c6ff
cmp al, 0xd
jne 0x551520
lea rcx, [rsp + 0x30]
mov qword [rdi], 2
and qword [rsi + 0x38], 0
call fcn.0054d516
jmp 0x551530
mov qword [rdi], 1
mov qword [rdi + 8], rbx
and qword [rsi + 0x38], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x100]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x55152b
ud2
call fcn.00478da7
ud2
Function at 0x553713
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x138], r8
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.00553ed6
mov eax, dword [rbx]
cmp eax, 2
je 0x5538db
test eax, eax
je 0x55388e
mov rdx, qword [rsi + 0x1b8]
cmp rdx, qword [rsi + 0x1b0]
jne 0x5538c5
mov rcx, qword [rsp + 0xe0]
mov r15d, dword [rsp + 0x2c]
mov r14, qword [rsp + 0x30]
mov eax, r14d
shr r14, 0x20
cmp rcx, r14
cmovb r14, rcx
lea r12, [r14 + r15]
add rax, r12
lea rbp, [rsi + 0x1a0]
cmp rdx, rax
jae 0x5537ac
mov rcx, rbp
mov rdx, rax
call fcn.004b71fa
mov rdx, qword [rsi + 0x1b0]
mov rcx, qword [rbp]
mov r8, r15
mov r9, r12
call fcn.00555dd9
cmp rdx, r14
jne 0x55394e
mov rcx, rax
mov rdx, r13
mov r8, r14
call sub.ntdll.dll_memcpy
mov rdx, qword [rsi + 0x1b0]
cmp rdx, r15
jb 0x55394a
mov r13, qword [rsi + 0x1a0]
mov rcx, r13
mov r8, r15
mov r9, r12
call fcn.00555dd9
mov rcx, qword [rsi + 0x1b0]
cmp rcx, r12
jb 0x55394a
xor r8d, r8d
test rax, rax
cmove edx, r8d
sub ecx, r12d
add r12, qword [rsi + 0x1a0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rbx
lea rcx, [rsi + 0x1c0]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x55389a
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x5538e0
movabs rbx, 0x8009031700000002
jmp 0x5538e0
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x1b0], rax
jb 0x5538b6
mov qword [rsi + 0x1b0], rax
and qword [rsi + 0x1b8], 0
mov qword [rsi + 0x200], r14
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call fcn.00554d8f
cmp qword [rbx], 0
je 0x553939
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 1
mov rcx, rbx
call fcn.0048c6ff
cmp al, 0xd
jne 0x553915
lea rcx, [rsp + 0x30]
mov qword [rdi], 2
and qword [rsi + 0x138], 0
call fcn.0054d516
jmp 0x553928
mov qword [rdi], 1
mov qword [rdi + 8], rbx
and qword [rsi + 0x138], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x200]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x553920
ud2
call fcn.00478da7
ud2
Function at 0x553c91
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, r8
mov r14, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.00548279
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
call fcn.00550fc6
mov rbx, rax
lea r12, [rsp + 0x40]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x553d2e
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.00433ead
mov rbx, qword [rsp + 0x40]
jmp 0x553cf9
test eax, eax
jne 0x553d50
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x553d6e
movabs rax, 0xde00000002
jmp 0x553d58
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.00433bdd
jmp 0x553d82
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.0057667d
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x554b69
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [rdx + 0x198]
cmp qword [rdx + 0x190], rax
jb 0x554d04
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x180]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0x1c0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x554c43
test eax, eax
je 0x554c62
cmp eax, 0x90317
je 0x554ce4
cmp eax, 0x90321
jne 0x554cec
mov dword [rdi + 0x140], 0x10000
xor ebx, ebx
mov byte [rdi + 0x144], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x198]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.00554d23
and qword [rdi + 0x1f8], 0
mov byte [rsi + 1], bl
jmp 0x554cfa
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x554ce8
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x180]
mov rdx, qword [rdi + 0x190]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x160]
and qword [rdi + 0x170], 0
call fcn.00554d08
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.00433e6a
and qword [rdi + 0x178], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x198]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.00554d23
xor eax, eax
cmp qword [rdi + 0x198], rbx
sete al
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x554cfa
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x554cfa
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
ud2
Function at 0x555b1d
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [rdx + 0x98]
cmp qword [rdx + 0x90], rax
jb 0x555ca6
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x80]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0xc0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x555bf1
test eax, eax
je 0x555c0d
cmp eax, 0x90317
je 0x555c86
cmp eax, 0x90321
jne 0x555c8e
mov dword [rdi + 0x40], 0x10000
xor ebx, ebx
mov byte [rdi + 0x44], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.00555caa
and qword [rdi + 0xf8], 0
mov byte [rsi + 1], bl
jmp 0x555c9c
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x555c8a
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x90]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x60]
and qword [rdi + 0x70], 0
call fcn.00554d08
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.00433e6a
and qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.00555caa
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x555c9c
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x555c9c
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
ud2
Function at 0x555f86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x6b8
mov r15, r8
mov rdi, rdx
mov qword [rsp + 0x120], rcx
mov rsi, qword [rdx + 0x400]
add rsi, 0x10
lea r14, [rsp + 0x160]
mov rcx, r14
mov rdx, rsi
call fcn.0056c700
cmp qword [r14], 0
jne 0x557945
mov rcx, qword [rsp + 0x168]
mov rax, qword [rcx + 0x168]
or rax, qword [rcx + 0x178]
mov qword [rsp + 0x48], rdi
je 0x555ff3
call sub.kernel32.dll_ReleaseSRWLockExclusive
jmp 0x556019
mov rdi, qword [rcx + 0x218]
call sub.kernel32.dll_ReleaseSRWLockExclusive
cmp rdi, 1
mov rdi, qword [rsp + 0x48]
ja 0x556019
lea rcx, [rdi + 0x3a0]
mov rdx, rsi
call fcn.0052483e
mov rdx, qword [rdi + 0x378]
cmp rdx, 2
mov qword [rsp + 0x58], r15
jne 0x556039
mov qword [rsp + 0x160], 2
jmp 0x55608a
lea rsi, [rdi + 0x378]
mov rcx, qword [rdi + 0x380]
mov rax, qword [rdi + 0x388]
test rdx, rdx
je 0x556061
mov rdx, rax
call fcn.00583d10
mov rcx, rax
mov rax, rdx
lea rdx, [rdi + 0x390]
call qword [rax + 0x70]
mov r14, rax
lea r15, [rsp + 0x160]
mov rcx, r15
mov rdx, rsi
call fcn.00583c83
mov qword [r15 + 0x18], r14
mov r15, qword [rsp + 0x58]
mov rax, qword [rdi + 0x398]
mov rcx, qword [rsp + 0x160]
mov rdx, qword [rsp + 0x168]
movups xmm0, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x450], xmm0
mov qword [rsp + 0x440], rcx
mov qword [rsp + 0x448], rdx
mov qword [rsp + 0x460], rax
cmp dword [rsp + 0x440], 2
je 0x5560e8
lea rdx, [rsp + 0x458]
lea rcx, [rsp + 0x440]
call fcn.00583d49
mov qword [rsp + 0x5c8], 2
and qword [rsp + 0x5e8], 0
lea rax, [rdi + 0x410]
mov qword [rsp + 0x140], rax
lea rbp, [rdi + 0x48]
lea r14, [rdi + 0x188]
lea rax, [rdi + 0x3a0]
mov qword [rsp + 0x148], rax
lea r12, [rsp + 0x298]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0xb8], r14
Function at 0x557ec2
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rdi, rcx
call fcn.005408ed
cmp rax, 2
jb 0x557f03
mov rcx, rax
mov rax, qword [rax + 8]
add rcx, 0x10
test rax, rax
cmove rcx, rax
jne 0x558021
call fcn.005408ed
cmp rax, 1
je 0x55801f
mov rsi, rax
test rax, rax
jne 0x557f4a
mov ecx, 0x18
mov edx, 8
call fcn.005379b3
mov rsi, rax
lea rax, [0x006b10c8]
mov qword [rsi], rax
and qword [rsi + 8], 0
call fcn.00540901
mov ecx, eax
mov rdx, rsi
call fcn.0059cc50
mov qword [rsp + 0x28], rsi
test rdi, rdi
je 0x557f7e
mov rax, qword [rdi]
and qword [rdi], 0
test rax, rax
je 0x557f7e
mov rax, qword [rdi + 8]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + 0x10]
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], rax
jmp 0x558021
call fcn.0055e1dd
movabs rcx, 0x736f6d6570736575
xor rcx, rax
mov qword [rsp + 0x30], rcx
movabs r13, 0x646f72616e646f6d
xor r13, rdx
movabs rbp, 0x6c7967656e657261
mov rbx, rax
xor rbp, rax
movabs rsi, 0x7465646279746573
mov r12, rdx
xor rsi, rdx
mov r14d, 1
lea rdi, [rsp + 0x68]
xor eax, eax
xorps xmm6, xmm6
lea r15, [rsp + 0x38]
test rax, rax
jne 0x557f64
and qword [rdi + 0x10], 0
movups xmmword [rdi], xmm6
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], r12
mov rcx, r15
mov rdx, r14
call fcn.005529f5
mov rcx, r15
call fcn.0057edc8
inc r14
jmp 0x557fd7
xor ecx, ecx
mov rax, rcx
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x5646ab
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x56470e
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x564744
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x56473d
lea r9, [0x0079ab1c]
xor r10d, r10d
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x56472c
mov dword [rsp + 0xa0], edx
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x564795
mov rax, r15
shr rax, 0x3c
jne 0x564856
mov rbx, qword [rcx]
mov ecx, 8
mov rdx, rsi
call fcn.004870ab
test rax, rax
je 0x564856
mov rdi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x564780
mov eax, r15d
jmp 0x56479c
xor eax, eax
mov edi, 8
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, [0x00771bda]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x5647f2
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x56482a
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.004870ab
test rax, rax
je 0x564856
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x56483f
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.00402efa
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2

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

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x564bd3
mov rdx, qword [rsp + 0x20]
jmp 0x564bdb
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x569d40
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 sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x569d6c
xor eax, eax
jmp 0x569d71
call fcn.00569a3f
nop
add rsp, 0x38
ret
Function at 0x56d1ed
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
lea rbx, [rsp + 0x78]
mov rcx, rbx
call fcn.0056d3bb
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.0056d45e
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x56d33f
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x56d283
lea rbp, [rsp + 0x78]
mov edi, 0x200
mov rbx, r8
jmp 0x56d2b8
sub r8, r13
lea rcx, [rsp + 0x60]
mov rdx, r8
call fcn.0056a634
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x70], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x56d2de
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x56d345
mov r8d, esi
cmp rbx, r8
jne 0x56d306
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x56d3b7
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x56d26b
jb 0x56d26b
cmp rdi, r8
jb 0x56d3b7
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.0056a64c
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.0057667d
cmp bl, 2
jne 0x56d37a
mov rbx, qword [rsp + 0x40]
jmp 0x56d362
mov byte [rdi + 0x18], 2
jmp 0x56d3a2
call fcn.00569a3f
mov rbx, rax
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x58], 2
mov rcx, r12
mov rdx, r15
call fcn.0057667d
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rax + 0x18], 2
mov rcx, rbx
call fcn.00569e1d
jmp 0x56d395
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.0057667d
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x56fd25
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.0056fd91
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
call fcn.0056d45e
mov rdi, qword [rbx]
test rdi, rdi
je 0x56fd82
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x56fd77
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
jmp 0x56fd84
mov rcx, rdi
mov rdx, rbx
call fcn.0057667d
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x570299
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
lea rcx, [rdx + 8]
call fcn.0057047c
test rax, rax
jne 0x5703e7
xor bl, 1
test r14, r14
movzx ecx, bl
mov eax, 2
cmove eax, ecx
mov r12, qword [rdi + 8]
mov rdi, qword [rdi + 0x18]
test al, al
je 0x570317
movzx eax, al
cmp eax, 1
jne 0x570305
xor eax, eax
cmp rdi, rax
je 0x57030d
movzx ecx, byte [r12 + rax]
cmp ecx, 9
je 0x570317
inc rax
cmp ecx, 0x20
jne 0x5702ec
jmp 0x570317
xor r14d, r14d
xor r15d, r15d
jmp 0x570329
test rdi, rdi
je 0x570317
mov r14b, 1
jmp 0x570308
mov rcx, rsi
mov dx, 0x22
call fcn.0056ac3c
mov r14b, 1
mov r15b, 1
add rdi, r12
lea rbx, [rsp + 0x28]
mov qword [rbx], r12
mov qword [rbx + 8], rdi
and word [rbx + 0x10], 0
xor edi, edi
mov rcx, rbx
call fcn.00569f98
test ax, ax
je 0x5703ad
mov ebp, edx
test r14b, r14b
je 0x5703a1
cmp bp, 0x22
je 0x570366
movzx eax, bp
cmp eax, 0x5c
jne 0x57039f
inc rdi
jmp 0x5703a1
mov rdx, rdi
inc rdx
je 0x5703f9
mov rcx, rsi
call fcn.0056a634
mov rcx, qword [rsi]
mov rax, qword [rsi + 0x10]
sub rdi, 1
jb 0x570392
mov word [rcx + rax*2], 0x5c
inc rax
jmp 0x570381
mov word [rcx + rax*2], 0x5c
inc rax
mov qword [rsi + 0x10], rax
xor edi, edi
mov rcx, rsi
mov edx, ebp
call fcn.0056ac3c
jmp 0x57033f
test r15b, r15b
je 0x5703e5
mov rcx, rsi
mov rdx, rdi
call fcn.0056a634
mov rcx, qword [rsi]
mov rax, qword [rsi + 0x10]
sub rdi, 1
jb 0x5703d5
mov word [rcx + rax*2], 0x5c
inc rax
jmp 0x5703c4
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov dx, 0x22
call fcn.0056ac3c
xor edx, edx
mov rax, rdx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2

Function at 0x570c0e
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x570c5f
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.ntdll.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x570c5f
lea rax, [0x0059c6c8]
mov qword [rdi], rax
add rsp, 0x1b8
pop rdi
pop rsi
ret
ud2