joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51cbc0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov ecx, dword [rcx + 0x30]
mov byte [rsp + 0x60], r8b
mov rsi, rdx
mov eax, dword [rbx + 0x38]
xor edx, edx
mov byte [rsp + 0x68], r9b
mov r8d, ecx
add r8d, eax
setb dl
add edx, dword [rbx + 0x34]
bswap edx
mov dword [rsp + 0x28], edx
mov edx, r8d
bswap edx
mov dword [rsp + 0x2c], edx
cmp eax, 0x1b8
je 0x51cdb0
cmp eax, 0x1b7
jg 0x51cd58
test eax, eax
je 0x51cd48
sub r8d, 0x1b8
lea rdx, [0x0091ac20]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call sym.blake256_update
lea rdx, [rsp + 0x68]
mov r8d, 8
mov rcx, rbx
call sym.blake256_update
mov eax, dword [rbx + 0x30]
sub eax, 8
sub eax, 0x40
lea rdx, [rsp + 0x28]
mov r8d, 0x40
mov rcx, rbx
mov dword [rbx + 0x30], eax
call sym.blake256_update
mov eax, dword [rbx]
shr eax, 0x18
mov byte [rsi], al
mov eax, dword [rbx]
shr eax, 0x10
mov byte [rsi + 1], al
mov eax, dword [rbx]
mov byte [rsi + 2], ah
mov eax, dword [rbx]
mov byte [rsi + 3], al
movzx eax, byte [rbx + 7]
mov byte [rsi + 4], al
movzx eax, word [rbx + 6]
mov byte [rsi + 5], al
mov eax, dword [rbx + 4]
mov byte [rsi + 6], ah
mov eax, dword [rbx + 4]
mov byte [rsi + 7], al
movzx eax, byte [rbx + 0xb]
mov byte [rsi + 8], al
movzx eax, word [rbx + 0xa]
mov byte [rsi + 9], al
mov eax, dword [rbx + 8]
mov byte [rsi + 0xa], ah
mov eax, dword [rbx + 8]
mov byte [rsi + 0xb], al
movzx eax, byte [rbx + 0xf]
mov byte [rsi + 0xc], al
movzx eax, word [rbx + 0xe]
mov byte [rsi + 0xd], al
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xe], ah
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xf], al
movzx eax, byte [rbx + 0x13]
mov byte [rsi + 0x10], al
movzx eax, word [rbx + 0x12]
mov byte [rsi + 0x11], al
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x12], ah
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x13], al
movzx eax, byte [rbx + 0x17]
mov byte [rsi + 0x14], al
movzx eax, word [rbx + 0x16]
mov byte [rsi + 0x15], al
mov eax, dword [rbx + 0x14]
mov byte [rsi + 0x16], ah
mov eax, dword [rbx + 0x14]
mov byte [rsi + 0x17], al
movzx eax, byte [rbx + 0x1b]
mov byte [rsi + 0x18], al
movzx eax, word [rbx + 0x1a]
mov byte [rsi + 0x19], al
mov eax, dword [rbx + 0x18]
mov byte [rsi + 0x1a], ah
mov eax, dword [rbx + 0x18]
mov byte [rsi + 0x1b], al
movzx eax, byte [rbx + 0x1f]
mov byte [rsi + 0x1c], al
movzx eax, word [rbx + 0x1e]
mov byte [rsi + 0x1d], al
mov eax, dword [rbx + 0x1c]
mov byte [rsi + 0x1e], ah
mov eax, dword [rbx + 0x1c]
mov byte [rsi + 0x1f], al
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rbx + 0x3c], 1
jmp 0x51cc17
sub r8d, 0x200
lea rdx, [0x0091ac20]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call sym.blake256_update
sub dword [rbx + 0x30], 0x1b8
mov r8d, 0x1b8
mov rcx, rbx
lea rdx, [0x0091ac21]
call sym.blake256_update
mov dword [rbx + 0x3c], 1
jmp 0x51cc3d
sub ecx, 8
lea rdx, [rsp + 0x60]
mov r8d, 8
mov dword [rbx + 0x30], ecx
mov rcx, rbx
call sym.blake256_update
mov eax, dword [rbx + 0x30]
jmp 0x51cc56

Function at 0x51cde0
Capabilities:
Enumerate pe sections

Disassembly:
mov r9d, 1
mov r8d, 0x81
jmp sym.blake256_final_h
Function at 0x51ce00
Capabilities:
Enumerate pe sections

Disassembly:
xor r9d, r9d
mov r8d, pe_nt_image_headers64
jmp sym.blake256_final_h

Function at 0x51cf60
Capabilities:
Authenticate hmac

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov r12, rdx
mov rsi, r8
cmp r8, 0x40
ja 0x51d158
movabs rax, 0xbb67ae856a09e667
mov qword [rbx + 0x20], 0
movabs rdx, 0x3636363636363636
lea r13, [rsp + 0x40]
mov qword [rbx], rax
movabs rax, 0xa54ff53a3c6ef372
mov qword [rbx + 8], rax
movabs rax, 0x9b05688c510e527f
mov qword [rbx + 0x10], rax
movabs rax, 0x5be0cd191f83d9ab
mov qword [rbx + 0x18], rax
movabs rax, 0x3636363636363636
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
test rsi, rsi
je 0x51d045
mov rax, r12
mov rcx, r13
lea r8, [rsi + r12]
mov edx, 0x36
jmp 0x51d033
movzx edx, byte [rcx]
xor dl, byte [rax]
add rax, 1
add rcx, 1
mov byte [rcx - 1], dl
cmp rax, r8
jne 0x51d030
mov rdx, r13
mov r8d, 0x200
mov rcx, rbx
call sym.blake256_update
lea r9, [rbx + 0x80]
movabs rax, 0xbb67ae856a09e667
movabs rdx, 0x5c5c5c5c5c5c5c5c
mov qword [rbx + 0x80], rax
movabs rax, 0xa54ff53a3c6ef372
mov qword [rbx + 0x88], rax
movabs rax, 0x9b05688c510e527f
mov qword [rbx + 0x90], rax
movabs rax, 0x5be0cd191f83d9ab
mov qword [rbx + 0x98], rax
movabs rax, 0x5c5c5c5c5c5c5c5c
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0xa8], 0
mov qword [rbx + 0xb0], 0
mov qword [rbx + 0xb8], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
test rsi, rsi
je 0x51d135
mov rdx, r12
mov rcx, r13
lea r8, [r12 + rsi]
mov eax, 0x5c
jmp 0x51d123
movzx eax, byte [rcx]
xor al, byte [rdx]
add rdx, 1
add rcx, 1
mov byte [rcx - 1], al
cmp r8, rdx
jne 0x51d120
mov r8d, 0x200
mov rdx, r13
mov rcx, r9
call sym.blake256_update
nop
add rsp, 0x88
pop rbx
pop rsi
pop r12
pop r13
ret
lea r13, [rsp + 0x20]
mov esi, 0x20
mov rcx, r13
mov r12, r13
call sym.blake256_hash
jmp 0x51cf80
Function at 0x51d180
Capabilities:
Authenticate hmac

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov r12, rdx
mov rsi, r8
cmp r8, 0x40
ja 0x51d378
movabs rax, 0x367cd507c1059ed8
mov qword [rbx + 0x20], 0
movabs rdx, 0x3636363636363636
lea r13, [rsp + 0x40]
mov qword [rbx], rax
movabs rax, 0xf70e59393070dd17
mov qword [rbx + 8], rax
movabs rax, 0x68581511ffc00b31
mov qword [rbx + 0x10], rax
movabs rax, 0xbefa4fa464f98fa7
mov qword [rbx + 0x18], rax
movabs rax, 0x3636363636363636
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
test rsi, rsi
je 0x51d265
mov rax, r12
mov rcx, r13
lea r8, [rsi + r12]
mov edx, 0x36
jmp 0x51d253
movzx edx, byte [rcx]
xor dl, byte [rax]
add rax, 1
add rcx, 1
mov byte [rcx - 1], dl
cmp rax, r8
jne 0x51d250
mov rdx, r13
mov r8d, 0x200
mov rcx, rbx
call sym.blake256_update
lea r9, [rbx + 0x80]
movabs rax, 0x367cd507c1059ed8
movabs rdx, 0x5c5c5c5c5c5c5c5c
mov qword [rbx + 0x80], rax
movabs rax, 0xf70e59393070dd17
mov qword [rbx + 0x88], rax
movabs rax, 0x68581511ffc00b31
mov qword [rbx + 0x90], rax
movabs rax, 0xbefa4fa464f98fa7
mov qword [rbx + 0x98], rax
movabs rax, 0x5c5c5c5c5c5c5c5c
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0xa8], 0
mov qword [rbx + 0xb0], 0
mov qword [rbx + 0xb8], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
test rsi, rsi
je 0x51d355
mov rdx, r12
mov rcx, r13
lea r8, [r12 + rsi]
mov eax, 0x5c
jmp 0x51d343
movzx eax, byte [rcx]
xor al, byte [rdx]
add rdx, 1
add rcx, 1
mov byte [rcx - 1], al
cmp r8, rdx
jne 0x51d340
mov r8d, 0x200
mov rdx, r13
mov rcx, r9
call sym.blake256_update
nop
add rsp, 0x88
pop rbx
pop rsi
pop r12
pop r13
ret
lea r13, [rsp + 0x20]
mov esi, 0x1c
mov rcx, r13
mov r12, r13
call sym.blake256_hash
jmp 0x51d1a0
Function at 0x51eef0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x120
mov rdi, rcx
mov r14, rdx
cmp r8d, 0x3f
jle 0x51f0e0
lea r12d, [r8 - 0x40]
lea rsi, [rsp + 0xe0]
shr r12d, 6
lea rbp, [rsp + 0x20]
lea r13, [rsp + 0x60]
add r12, 1
lea rbx, [rsp + 0xa0]
shl r12, 6
add r12, rdx
nop
xor eax, eax
nop word [rax + rax]
mov edx, dword [r14 + rax]
mov dword [rsi + rax], edx
xor edx, dword [rdi + rax]
mov dword [rbp + rax], edx
add rax, 4
cmp rax, 0x40
jne 0x51ef48
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x1000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x2000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x3000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x4000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x5000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x6000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x7000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x8000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x9000000
mov rdx, r13
mov rcx, rbx
call sym.RND512Q
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call sym.RND512P
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 2
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 3
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 4
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 5
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 6
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 7
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 8
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 9
mov rdx, rbp
mov rcx, rbx
call sym.RND512P
xor eax, eax
mov edx, dword [rdi + rax]
xor edx, dword [rbp + rax]
xor edx, dword [r13 + rax]
mov dword [rdi + rax], edx
add rax, 4
cmp rax, 0x40
jne 0x51f0b0
add dword [rdi + 0x40], 1
jne 0x51f0d3
add dword [rdi + 0x44], 1
add r14, 0x40
cmp r14, r12
jne 0x51ef40
add rsp, 0x120
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x520620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
je 0x520650
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x520650
shr eax, 4
and eax, 1
test bl, bl
cmovne eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x520660
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp qword [rcx + 8], 0
mov rbx, rcx
je 0x520770
mov rcx, qword [rcx]
test rcx, rcx
je 0x520698
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x520695
test al, 0x10
jne 0x520788
mov rcx, qword [rbx]
lea rdi, [rsp + 0x30]
lea rdx, [0x0091b75a]
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0
call sym.strtok
mov r12, rax
test rax, rax
je 0x5207a0
mov rbp, qword [sym.imp.msvcrt.dll__mkdir]
lea rsi, [rsp + 0x20]
movabs rbx, 0x3fffffffffffffff
nop
mov rcx, r12
call sym.strlen
mov r8, rax
mov rax, rbx
sub rax, qword [rsp + 0x28]
cmp r8, rax
ja 0x5207b1
mov rdx, r12
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_long_long_
cmp qword [rsp + 0x28], rbx
je 0x5207a5
mov r8d, 1
lea rdx, [0x0091b75a]
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_long_long_
mov rcx, qword [rsp + 0x20]
call rbp
lea rdx, [0x0091b75a]
xor ecx, ecx
mov r13d, eax
call sym.strtok
mov r12, rax
test rax, rax
jne 0x5206e0
cmp r13d, 0xffffffff
setne r12b
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x52075e
call sym.operator_delete_void_
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r12d, r12d
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12d, 1
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r12d, r12d
jmp 0x52074f
lea rcx, [0x0091b75c]
call method.std.__throw_length_error_char_const_
lea rcx, [0x0091b75c]
call method.std.__throw_length_error_char_const_
mov rcx, qword [rsp + 0x20]
mov r12, rax
cmp rcx, rdi
je 0x5207cf
call sym.operator_delete_void_
mov rcx, r12
call sym._Unwind_Resume
nop
nop dword [rax + rax]

Function at 0x521300
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov r8d, 0x32
lea rdx, [0x00a59340]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, 0
test eax, eax
lea rax, [0x00a59340]
cmove rax, rdx
add rsp, 0x28
ret
Function at 0x528b40
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov r13, r8
mov rcx, rdx
mov r8d, 0x32
lea rdx, [0x00a59340]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [r12 + 0x10]
test eax, eax
je 0x528b76
cmp byte [0x00a59340], 0
jne 0x528bb0
mov qword [r12], rdx
mov r8, 0xffffffffffffffff
test r13, r13
je 0x528b93
mov rcx, r13
call sym.strlen
lea r8, [r13 + rax]
xor r9d, r9d
mov rdx, r13
mov rcx, r12
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret
mov qword [r12], rdx
lea r8, [0x00a59340]
mov edx, dword [r8]
add r8, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x528bbb
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [r8 + 2]
cmove r8, rdx
lea rdx, [0x00a59340]
mov ecx, eax
add cl, al
mov rcx, r12
sbb r8, 3
xor r9d, r9d
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x576590
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rax, qword [rax + 0xc0]
mov rsi, rdx
lea rbp, [r9 + 1]
mov rdx, qword [rdx + 8]
test byte [rax + 0x60], 1
je 0x5766a0
lea r9, [rbp + r8]
xor eax, eax
cmp r9, rdx
ja 0x576692
movq xmm0, r8
mov rax, qword [rsi + 0x20]
sub rdx, r8
sub qword [rsi + 0x10], r8
movdqu xmm1, xmmword [rsi + 0x20]
punpcklqdq xmm0, xmm0
mov qword [rsi + 8], rdx
add rax, r8
paddq xmm0, xmm1
movups xmmword [rsi + 0x20], xmm0
jmp 0x5766ab
mov ebp, 0x100
mov rdx, r11
mov r9, rbx
xor r8d, r8d
sub rdx, rbx
add rdx, qword [rsi + 0x20]
nop dword [rax]
movzx eax, byte [rdx + r9 - 1]
mov r12, r9
mov rcx, rbx
sub r9, 1
xor rcx, r8
xor r12, r8
add r8, 1
xor eax, edi
or rcx, r12
movzx eax, al
xor rcx, rbx
not rax
sar rcx, 0x3f
or rax, rcx
and r10, rax
cmp rbp, r8
ja 0x576618
mov rax, r10
not rax
movzx eax, al
or r10, 0xffffffffffffff00
add rbx, 1
sub rax, 1
and r10, rax
sar r10, 0x3f
and rbx, r10
mov dword [rsp + 0x28], r10d
not r10d
mov eax, dword [rsp + 0x28]
sub r11, rbx
mov dword [rsp + 0x2c], r10d
mov edx, dword [rsp + 0x2c]
mov qword [rsi + 8], r11
and eax, 1
or eax, edx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
cmp rbp, rdx
ja 0x576692
mov rax, qword [rsi + 0x20]
mov rcx, qword [rcx + 0x438]
movzx ebx, byte [rax + rdx - 1]
call sym.EVP_CIPHER_CTX_cipher
mov rdi, rbx
mov rcx, rax
call sym.EVP_CIPHER_flags
test eax, 0x200000
jne 0x576710
mov r11, qword [rsi + 8]
add rbp, rbx
mov rax, r11
sub rax, rbp
xor rax, rbp
xor rbp, r11
or rax, rbp
xor rax, r11
sar rax, 0x3f
mov r10, rax
not r10
cmp r11, 0xff
ja 0x576600
mov rbp, r11
test r11, r11
jne 0x576605
jmp 0x576655
not rbx
add qword [rsi + 8], rbx
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x577160
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov eax, 0x40
mov r13, qword [rdx + 0x10]
cmp r13, 0x40
cmovbe rax, r13
mov rbx, r8
mov rsi, rcx
mov rbp, rdx
xor r8d, r8d
cmp rbx, rax
jbe 0x5771b0
mov eax, r8d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x20]
mov rdx, r13
mov r8, rbx
mov rdi, qword [rbp + 8]
mov r9, rax
sub rdx, rbx
mov r14d, 0
neg r9
lea rcx, [rdx - 0x100]
and r9d, 0x3f
add r9, rax
lea rax, [rbx + 0x100]
cmp r13, rax
cmova r14, rcx
mov rcx, r9
xor edx, edx
call sym.memset
mov r9, rax
cmp r13, r14
jbe 0x577300
mov rcx, r14
mov r14, qword [rbp + 0x20]
mov r12, rdi
mov r11, r13
sub r12, rbx
sub rcx, rdi
sub r11, rdi
xor eax, eax
add r14, rdi
xor edx, edx
xor r8d, r8d
mov rbp, r14
nop dword [rax + rax]
lea r14, [rdi + rcx]
mov r13, r12
mov r15, rdi
xor r13, r14
xor r15, rcx
mov r10, r13
sub r13, 1
not r10
and r13, r10
mov r10, r13
mov r13, rdi
xor r13, r14
sar r10, 0x3f
or r13, r15
or r8, r10
and r10, rdx
xor r13, r14
or rax, r10
lea r10, [rdx + 1]
sar r13, 0x3f
and r8, r13
movzx r13d, byte [rbp + rcx]
add rcx, 1
and r13d, r8d
or byte [r9 + rdx], r13b
mov rdx, r10
mov r13, rbx
sub rdx, rbx
xor r13, r10
xor rdx, rbx
or rdx, r13
xor rdx, r10
sar rdx, 0x3f
and rdx, r10
cmp r11, rcx
jne 0x577228
lea r8, [rsi + rbx]
test rbx, rbx
je 0x5772ee
nop word [rax + rax]
mov rdx, rax
mov rcx, rbx
add rsi, 1
xor rdx, 0x20
add rdx, r9
movzx edx, byte [rdx]
lea rdx, [rax + 1]
movzx eax, byte [r9 + rax]
xor rcx, rdx
mov byte [rsi - 1], al
mov rax, rdx
sub rax, rbx
xor rax, rbx
or rax, rcx
xor rax, rdx
sar rax, 0x3f
and rax, rdx
cmp r8, rsi
jne 0x5772b0
mov r8d, 1
jmp 0x577195
xor eax, eax
jmp 0x57729e

Function at 0x590e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rcx
mov rcx, rdx
mov rax, qword [r8]
mov r8d, dword [r9 + 0x20]
mov edx, dword [rax]
test edx, edx
jne 0x590e99
test r8b, 1
jne 0x590eb5
and r8d, 2
je 0x590eae
xor r8d, r8d
test edx, edx
jns 0x590eae
neg edx
mov r8d, 1
mov edx, edx
jmp sym.i2c_uint64_int
mov eax, 0xffffffff
ret

Function at 0x590ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rcx
mov rcx, rdx
mov rax, qword [r8]
mov r8d, dword [r9 + 0x20]
mov rdx, qword [rax]
test rdx, rdx
jne 0x590edb
test r8b, 1
jne 0x590ef7
and r8d, 2
je 0x590ef2
xor r8d, r8d
test rdx, rdx
jns 0x590ef2
neg rdx
mov r8d, 1
jmp sym.i2c_uint64_int
mov eax, 0xffffffff
ret

Function at 0x591440
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x00a59584]
jmp sym.CRYPTO_THREAD_get_local
Function at 0x592310
Capabilities:
Resolve dns

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x470
xor eax, eax
mov r10d, 0x10
mov rbx, rcx
lea rdi, [rsp + 0x70]
mov ecx, 0x7e
test edx, edx
rep stosq qword [rdi], rax
mov eax, 0xa
lea r14, [rsp + 0x60]
mov rsi, r8
cmovne edx, eax
cmp word [rbx], 2
mov eax, 0x1c
mov rbp, r9
cmovne r10d, eax
mov r8, r14
mov rcx, rbx
mov qword [rsp + 0x60], 0
lea r13, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov byte [rdi], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x30], edx
mov edx, r10d
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], r13
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov r12d, eax
test eax, eax
jne 0x592518
cmp byte [rsp + 0x40], 0
jne 0x592408
movzx eax, word [rbx]
cmp ax, 2
je 0x592580
xor ecx, ecx
cmp ax, 0x17
je 0x592580
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [0x0092f654]
mov edx, 0x20
mov rcx, r13
movzx r9d, ax
call sym.BIO_snprintf
test rsi, rsi
je 0x592458
mov r8d, 0xed
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r14
call sym.CRYPTO_strdup
mov qword [rsi], rax
test rbp, rbp
jne 0x5924c0
cmp qword [rsi], 0
je 0x592560
mov r12d, 1
mov eax, r12d
add rsp, 0x470
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test rbp, rbp
je 0x592438
mov rcx, r13
mov r8d, 0xef
lea rdx, str.crypto_bio_b_addr.c
call sym.CRYPTO_strdup
mov qword [rbp], rax
mov rcx, rax
test rax, rax
jne 0x592438
mov r8d, 0x102
lea rdx, str.crypto_bio_b_addr.c
call sym.CRYPTO_free
mov qword [rbp], 0
mov r8d, 0x41
mov edx, 0x86
mov ecx, 0x20
mov dword [rsp + 0x20], 0x105
lea r9, str.crypto_bio_b_addr.c
call sym.ERR_put_error
jmp 0x59243e
mov r8d, 0xef
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r13
call sym.CRYPTO_strdup
mov qword [rbp], rax
cmp qword [rsi], 0
je 0x592590
cmp qword [rbp], 0
jne 0x592438
mov rcx, qword [rsi]
mov r8d, 0xfe
lea rdx, str.crypto_bio_b_addr.c
call sym.CRYPTO_free
mov qword [rsi], 0
mov rcx, qword [rbp]
jmp 0x59247e
mov r8d, 2
mov edx, 0x86
mov ecx, 0x20
mov dword [rsp + 0x20], 0xdb
lea r9, str.crypto_bio_b_addr.c
call sym.ERR_put_error
mov ecx, r12d
xor r12d, r12d
call dbg.gai_strerrorW
mov ecx, 1
mov rdx, rax
call sym.ERR_add_error_data
jmp 0x59243e
mov r8d, 0xfe
lea rdx, str.crypto_bio_b_addr.c
xor ecx, ecx
call sym.CRYPTO_free
mov qword [rsi], 0
jmp 0x592498
movzx ecx, word [rbx + 2]
jmp 0x5923ea
xor ecx, ecx
mov r8d, 0xfe
lea rdx, str.crypto_bio_b_addr.c
call sym.CRYPTO_free
mov qword [rsi], 0
mov rcx, qword [rbp]
jmp 0x59247e
Function at 0x592d40
Capabilities:
Resolve dns

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x60
mov r13, rcx
mov r14, rdx
mov esi, r8d
mov ebx, r9d
cmp r9d, 0x17
ja 0x592d70
mov eax, 1
mov ecx, r9d
shl rax, cl
test eax, 0x800005
jne 0x592da7
mov dword [rsp + 0x20], 0x297
lea r9, str.crypto_bio_b_addr.c
mov r8d, 0x83
xor r12d, r12d
mov edx, 0x8f
mov ecx, 0x20
call sym.ERR_put_error
mov eax, r12d
add rsp, 0x60
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call sym.BIO_sock_init
mov r12d, eax
cmp eax, 1
je 0x592dd0
xor r12d, r12d
mov eax, r12d
add rsp, 0x60
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0xb0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], eax
cmp esi, 1
jne 0x592e22
mov dword [rsp + 0x30], 1
mov rcx, r13
mov r9, qword [rsp + 0xb8]
lea r8, [rsp + 0x30]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r13d, eax
test eax, eax
je 0x592d97
cmp eax, 8
jne 0x592e80
mov dword [rsp + 0x20], 0x2cb
lea r9, str.crypto_bio_b_addr.c
mov r8d, 0x41
xor r12d, r12d
mov edx, 0x8f
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x592d97
mov dword [rsp + 0x20], 0x2da
lea r9, str.crypto_bio_b_addr.c
mov r8d, 2
xor r12d, r12d
mov edx, 0x8f
mov ecx, 0x20
call sym.ERR_put_error
mov ecx, r13d
call dbg.gai_strerrorW
mov ecx, 1
mov rdx, rax
call sym.ERR_add_error_data
jmp 0x592d97

Function at 0x592ed0
Capabilities:
Resolve dns

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x60
mov r13, rcx
mov r14, rdx
mov esi, r8d
mov ebx, r9d
cmp r9d, 0x17
ja 0x592f00
mov eax, 1
mov ecx, r9d
shl rax, cl
test eax, 0x800005
jne 0x592f37
mov dword [rsp + 0x20], 0x297
lea r9, str.crypto_bio_b_addr.c
mov r8d, 0x83
xor r12d, r12d
mov edx, 0x8f
mov ecx, 0x20
call sym.ERR_put_error
mov eax, r12d
add rsp, 0x60
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call sym.BIO_sock_init
mov r12d, eax
cmp eax, 1
je 0x592f60
xor r12d, r12d
mov eax, r12d
add rsp, 0x60
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x3c], eax
cmp esi, 1
jne 0x592fb4
mov dword [rsp + 0x30], 1
mov rcx, r13
mov r9, qword [rsp + 0xc0]
lea r8, [rsp + 0x30]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r13d, eax
test eax, eax
je 0x592f27
cmp eax, 8
jne 0x593010
mov dword [rsp + 0x20], 0x2cb
lea r9, str.crypto_bio_b_addr.c
mov r8d, 0x41
xor r12d, r12d
mov edx, 0x8f
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x592f27
mov dword [rsp + 0x20], 0x2da
lea r9, str.crypto_bio_b_addr.c
mov r8d, 2
xor r12d, r12d
mov edx, 0x8f
mov ecx, 0x20
call sym.ERR_put_error
mov ecx, r13d
call dbg.gai_strerrorW
mov ecx, 1
mov rdx, rax
call sym.ERR_add_error_data
jmp 0x592f27