joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509410
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
cmp byte [rdx], 0
mov r12, rcx
mov r13, rdx
je 0x5094f0
mov rax, rdx
xor r8d, r8d
jmp 0x50943d
cmp r8d, 0x80000000
je 0x5094f0
add rax, 1
add r8d, 1
cmp byte [rax], 0
jne 0x509430
mov ebx, r8d
and ebx, 0x7fffffff
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r13
movsxd rcx, dword [r12 + 0x30]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r12
mov r13d, eax
call sym.BIO_clear_flags
test r13d, r13d
jle 0x509498
mov eax, r13d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea eax, [r13 + 1]
cmp eax, 1
ja case.0x5094e2.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x5094e4
cmp eax, 0x66
jg 0x5094cc
cmp eax, 4
je case.0x5094e2.103
cmp eax, 0xb
jne case.0x5094e2.104
mov edx, 0xa
mov rcx, r12
call sym.BIO_set_flags
jmp case.0x5094e2.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x5094e2.104
lea rdx, [0x005f4900]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x5094e2.104
jmp case.0x5094e2.103
xor ebx, ebx
jmp 0x509453

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

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov r12, rdx
mov ebx, r8d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r12
movsxd rcx, dword [r13 + 0x30]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r13
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x509550
mov eax, r12d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea eax, [r12 + 1]
cmp eax, 1
ja case.0x50959e.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x5095a0
cmp eax, 0x66
jg 0x509588
cmp eax, 4
je case.0x50959e.103
cmp eax, 0xb
jne case.0x50959e.104
mov edx, 0xa
mov rcx, r13
call sym.BIO_set_flags
jmp case.0x50959e.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x50959e.104
lea rdx, [0x005f4998]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x50959e.104
jmp case.0x50959e.103

Function at 0x5095b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
xor r13d, r13d
mov r14, rcx
mov r12, rdx
mov ebx, r8d
test rdx, rdx
je case.0x50965e.104
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movsxd rcx, dword [r14 + 0x30]
xor r9d, r9d
mov rdx, r12
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_recv]
mov edx, 0xf
mov rcx, r14
mov r13d, eax
call sym.BIO_clear_flags
test r13d, r13d
jle 0x509610
mov eax, r13d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
lea eax, [r13 + 1]
cmp eax, 1
ja case.0x50965e.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x509660
cmp eax, 0x66
jg 0x509648
cmp eax, 4
je case.0x50965e.103
cmp eax, 0xb
jne case.0x50965e.104
mov edx, 9
mov rcx, r14
call sym.BIO_set_flags
jmp case.0x50965e.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x50965e.104
lea rdx, [0x005f4a30]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x50965e.104
jmp case.0x50965e.103
Function at 0x5097f0
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.BLAKE2b_Init

Function at 0x509870
Capabilities:
Hash data using sha256

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.BLAKE2s_Init
Function at 0x50e060
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r13, rcx
mov r12, rdx
mov rcx, r8
mov edx, 4
mov rbx, r8
mov rsi, r9
call sym.BN_get_flags
test eax, eax
jne 0x50e0aa
mov edx, 4
mov rcx, r12
call sym.BN_get_flags
test eax, eax
je 0x50e0e0
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.BN_mod_exp_mont_consttime
mov edx, 4
mov rcx, rsi
call sym.BN_get_flags
test eax, eax
jne 0x50e0aa
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.BN_mod_exp_mont.part.0
Function at 0x519acd
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x519d2d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51a08d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51ab2d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51b30d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51bf0d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51c28d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51c52d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x51cfcd
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
Function at 0x533e70
Capabilities:
Encrypt data using curve25519

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x1b0
lea r12, [rsp + 0xd0]
mov rbx, rcx
mov rcx, rdx
mov edx, 0x20
mov r8, r12
lea rsi, [rsp + 0x40]
lea r13, [rsp + 0x70]
call sym.SHA512
movzx eax, byte [rsp + 0xef]
mov rdx, r12
lea r14, [rsp + 0x110]
mov rcx, r14
and byte [rsp + 0xd0], 0xf8
and eax, 0x3f
or eax, 0x40
mov byte [rsp + 0xef], al
call sym.ge_scalarmult_base
lea rdx, [rsp + 0x160]
mov rcx, rsi
call sym.fe_invert
mov r8, rsi
mov rdx, r14
mov rcx, r13
call sym.fe_mul
lea r14, [rsp + 0xa0]
mov r8, rsi
lea rdx, [rsp + 0x138]
mov rcx, r14
call sym.fe_mul
mov rdx, r14
mov rcx, rbx
call sym.fe_tobytes
lea rcx, [rsp + 0x20]
mov rdx, r13
call sym.fe_tobytes
movzx eax, byte [rsp + 0x20]
mov edx, 0x40
mov rcx, r12
and eax, 1
shl eax, 7
xor byte [rbx + 0x1f], al
call sym.OPENSSL_cleanse
nop
add rsp, 0x1b0
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret

Function at 0x533fa0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x178
movdqu xmm2, xmmword [rdx + 0x10]
movdqu xmm1, xmmword [rdx]
movups xmmword [rsp + 0x30], xmm2
movzx eax, byte [rsp + 0x3f]
mov r12, rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0xd0]
mov rdx, r14
movups xmmword [rsp + 0x20], xmm1
lea rbx, [rsp + 0xa0]
and eax, 0x7f
and byte [rsp + 0x20], 0xf8
lea r13, [rsp + 0x40]
or eax, 0x40
mov byte [rsp + 0x3f], al
call sym.ge_scalarmult_base
mov r8d, dword [rsp + 0x118]
movdqu xmm0, xmmword [rsp + 0xf8]
paddd xmm0, xmmword [rsp + 0x120]
mov edx, dword [rsp + 0x140]
movdqu xmm3, xmmword [rsp + 0xf8]
mov ecx, dword [rsp + 0x11c]
movups xmmword [rsp + 0x40], xmm0
lea eax, [rdx + r8]
sub edx, r8d
movdqu xmm0, xmmword [rsp + 0x108]
paddd xmm0, xmmword [rsp + 0x130]
mov dword [rsp + 0x60], eax
movdqu xmm4, xmmword [rsp + 0x108]
mov eax, dword [rsp + 0x144]
mov dword [rsp + 0x90], edx
lea rdx, [rsp + 0x70]
movups xmmword [rsp + 0x50], xmm0
movdqu xmm0, xmmword [rsp + 0x120]
lea r9d, [rax + rcx]
sub eax, ecx
mov rcx, rbx
psubd xmm0, xmm3
mov dword [rsp + 0x64], r9d
movups xmmword [rsp + 0x70], xmm0
movdqu xmm0, xmmword [rsp + 0x130]
mov dword [rsp + 0x94], eax
psubd xmm0, xmm4
movups xmmword [rsp + 0x80], xmm0
call sym.fe_invert
mov r8, rbx
mov rdx, r13
mov rcx, r13
call sym.fe_mul
mov rdx, r13
mov rcx, r12
call sym.fe_tobytes
mov edx, 0x20
mov rcx, r14
call sym.OPENSSL_cleanse
nop
add rsp, 0x178
pop rbx
pop r12
pop r13
pop r14
ret
Function at 0x57a9cd
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8

Function at 0x57bc0d
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
Function at 0x59aba0
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
xor eax, eax
movdqu xmm0, xmmword [0x00616160]
mov rdx, rcx
mov word [rsp + 0x10], ax
xor ecx, ecx
lea rdi, [rdx + 0x48]
mov eax, edx
mov word [rsp + 0x1e], cx
and rdi, 0xfffffffffffffff8
mov qword [rsp], 0x1010040
sub eax, edi
mov dword [rsp + 0x1a], 0
lea ecx, [rax + 0xe8]
xor eax, eax
mov qword [rsp + 8], 0
shr ecx, 3
mov qword [rsp + 0x12], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rdx + 0x40], 0
mov qword [rdx + 0xe0], 0
rep stosq qword [rdi], rax
mov eax, 1
pxor xmm0, xmmword [rsp]
movups xmmword [rdx], xmm0
movdqu xmm0, xmmword [0x00616170]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [rdx + 0x10], xmm0
movdqu xmm0, xmmword [0x00616180]
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx + 0x20], xmm0
movdqu xmm0, xmmword [0x00616190]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x30], xmm0
add rsp, 0x40
pop rdi
ret
Function at 0x59c130
Capabilities:
Hash data using sha256

Disassembly:
push rdi
sub rsp, 0x20
movdqu xmm0, xmmword [0x006161a0]
lea rdi, [rcx + 0x28]
mov eax, ecx
mov rdx, rcx
mov qword [rsp], 0x1010020
mov qword [rsp + 8], 0
and rdi, 0xfffffffffffffff8
mov qword [rsp + 0x10], 0
sub eax, edi
mov qword [rsp + 0x18], 0
mov qword [rcx + 0x20], 0
mov qword [rcx + 0x70], 0
lea ecx, [rax + 0x78]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov eax, 1
pxor xmm0, xmmword [rsp]
movups xmmword [rdx], xmm0
movdqu xmm0, xmmword [0x006161b0]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [rdx + 0x10], xmm0
add rsp, 0x20
pop rdi
ret

Function at 0x59c350
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rbx, rdx
mov edx, dword [rdx + 8]
mov r12, rcx
mov rsi, r8
cmp edx, eax
jge 0x59c377
mov edx, eax
mov rax, rbx
mov rbx, r8
mov rsi, rax
mov rcx, r12
call sym.bn_wexpand
test rax, rax
je 0x59c4e0
mov eax, dword [rsi + 8]
test eax, eax
jle 0x59c518
mov r10, qword [rbx]
mov r9, qword [r12]
lea edx, [rax - 1]
mov rcx, qword [rsi]
lea r8, [r10 + 0xf]
sub r8, r9
cmp r8, 0x1e
lea r8, [rcx + 0xf]
seta r11b
sub r8, r9
cmp r8, 0x1e
seta r8b
test r11b, r8b
je 0x59c4f0
cmp edx, 2
jbe 0x59c4f0
mov r8d, eax
xor edx, edx
shr r8d, 1
shl r8, 4
nop dword [rax]
movdqu xmm0, xmmword [r10 + rdx]
movdqu xmm1, xmmword [rcx + rdx]
pxor xmm0, xmm1
movups xmmword [r9 + rdx], xmm0
add rdx, 0x10
cmp rdx, r8
jne 0x59c3e0
mov edx, eax
and edx, 0xfffffffe
test al, 1
je 0x59c412
mov r8, qword [r10 + rdx*8]
xor r8, qword [rcx + rdx*8]
mov qword [r9 + rdx*8], r8
mov r11d, dword [rbx + 8]
cmp eax, r11d
jge 0x59c4a7
mov r9, qword [rbx]
mov r8, qword [r12]
movsxd rdx, eax
lea r10, [rdx*8 + 0x10]
lea rcx, [rdx*8]
lea rsi, [r9 + r10]
lea rbx, [r8 + rcx]
add rcx, r9
cmp rbx, rsi
setae sil
add r10, r8
cmp rcx, r10
setae r10b
or sil, r10b
je 0x59c4c8
lea r10d, [r11 - 1]
sub r10d, eax
cmp r10d, 3
jbe 0x59c4c8
mov esi, r11d
xor edx, edx
sub esi, eax
mov r10d, esi
shr r10d, 1
shl r10, 4
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + rdx]
movups xmmword [rbx + rdx], xmm2
add rdx, 0x10
cmp rdx, r10
jne 0x59c480
mov edx, esi
and edx, 0xfffffffe
add eax, edx
cmp esi, edx
je 0x59c4a7
cdqe
mov rdx, qword [r9 + rax*8]
mov qword [r8 + rax*8], rdx
mov dword [r12 + 8], r11d
mov rcx, r12
call sym.bn_correct_top
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rax, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rax
add rdx, 1
cmp r11d, edx
jg 0x59c4c8
jmp 0x59c4a7
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov r11d, edx
xor edx, edx
nop dword [rax]
mov r8, qword [r10 + rdx*8]
xor r8, qword [rcx + rdx*8]
mov qword [r9 + rdx*8], r8
mov r8, rdx
add rdx, 1
cmp r8, r11
jne 0x59c4f8
jmp 0x59c412
xor eax, eax
jmp 0x59c412
Function at 0x5a2200
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rsi, rdx
mov r12, r8
test r8, r8
je 0x5a22a9
test rcx, rcx
je 0x5a22d0
mov rcx, qword [rcx + 0x10]
lea r13, [rsp + 0x20]
test rdx, rdx
je 0x5a228b
movq xmm0, rdx
movq xmm1, r8
lea r13, [rsp + 0x20]
punpcklqdq xmm0, xmm1
mov rdx, r13
movups xmmword [rsp + 0x20], xmm0
call sym.OPENSSL_LH_retrieve
test rax, rax
je 0x5a2270
mov rax, qword [rax + 0x10]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov ecx, 4
lea rdi, [0x00616277]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x5a22c0
mov rcx, qword [rbx + 0x10]
lea rax, [0x0061627b]
mov rdx, r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call sym.OPENSSL_LH_retrieve
test rax, rax
jne 0x5a2259
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r12
call sym.getenv
test rax, rax
jne 0x5a225d
jmp 0x5a2287
mov rcx, r8
call sym.getenv
jmp 0x5a225d

Function at 0x5a6700
Capabilities:
Encode data using base64

Disassembly:
push rbx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test rcx, rcx
je 0x5a671c
test byte [rcx + 0x5c], 2
lea rax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmovne r10, rax
xor r11d, r11d
test r9d, r9d
jg 0x5a6781
jmp 0x5a67c3
movzx eax, byte [r8 + 1]
add r8, 3
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 - 1]
mov ebx, eax
shr ebx, 0x12
or ecx, eax
shr eax, 0xc
movzx ebx, byte [r10 + rbx]
and eax, 0x3f
mov byte [rdx - 4], bl
movzx eax, byte [r10 + rax]
mov byte [rdx - 3], al
mov eax, ecx
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rdx - 2], al
movzx eax, byte [r10 + rcx]
mov byte [rdx - 1], al
sub r9d, 3
je 0x5a67c3
movzx eax, byte [r8]
mov rbx, rdx
add r11d, 4
add rdx, 4
shl eax, 0x10
mov ecx, eax
cmp r9d, 2
jg 0x5a6730
je 0x5a67d0
shr eax, 0x12
movzx eax, byte [r10 + rax]
mov byte [rbx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x30
movzx eax, byte [r10 + rax]
mov byte [rbx + 1], al
mov eax, 0x3d
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
mov eax, r11d
mov byte [rdx], 0
pop rbx
ret
movzx r8d, byte [r8 + 1]
shl r8d, 8
or r8d, eax
shr eax, 0x12
movzx eax, byte [r10 + rax]
mov byte [rbx], al
mov eax, r8d
shr r8d, 6
shr eax, 0xc
and r8d, 0x3c
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rbx + 1], al
movzx eax, byte [r10 + r8]
jmp 0x5a67bc

Function at 0x5a6cf0
Capabilities:
Encode data using base64

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp sym.evp_encodeblock_int
Function at 0x5b09e0
Capabilities:
Query environment variable

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
lea rcx, str.CTLOG_FILE
call sym.getenv
mov rcx, r12
test rax, rax
mov rdx, rax
lea rax, str._usr_x86_64_w64_mingw32_ssl_ct_log_list.cnf
cmove rdx, rax
add rsp, 0x20
pop r12
jmp sym.CTLOG_STORE_load_file

Function at 0x5b1660
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x5b16d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00640194]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x5b1878
mov rax, qword [0x00640198]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x5b171c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x5b17a7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x5b1700
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x5b18b2
mov rax, qword [0x00640198]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00640198]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x5b18c1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x5b17a0
sub eax, 4
and eax, 0xfffffffb
jne 0x5b1830
add dword [0x00640194], 1
cmp ebx, 8
jae 0x5b17d8
test bl, 4
jne 0x5b1880
test ebx, ebx
je 0x5b17c9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x5b18a0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x5b17c9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x5b180a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00640198]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5b17a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x5b1727
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x5b17c9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x5b17c9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00640198]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x5b20a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00640480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00640460]
test rbx, rbx
je 0x5b20f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x5b20eb
test r12, r12
je 0x5b20eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x5b20d0
lea rcx, [0x00640480]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x5b2320
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x5b2330
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x5b2340
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x5b2385
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x5b237c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x5b2387
add rax, 0x28
cmp rax, r9
jne 0x5b2368
xor eax, eax
ret

Function at 0x5b2430
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00619920]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x5b24a9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x5b24a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x5b24a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x5b249d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x5b24a9
add r8, 0x28
cmp r8, r9
jne 0x5b2488
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x5b2590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00619920]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x5b25ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x5b25ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x5b25fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x5b25f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x5b2608
add rax, 0x28
cmp rax, r9
jne 0x5b25e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x5b2620
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00619920]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x5b2698
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x5b2698
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x5b2698
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x5b2698
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x5b268c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x5b26a0
add rdx, 0x28
cmp rdx, r10
jne 0x5b2678
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x5b26b0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x5b26be
mov edx, dword [rax + 0xc]
test edx, edx
je 0x5b2695
test r8d, r8d
jg 0x5b26a8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14003f2f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14003f3ac
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14003f3ac
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x14003b30e.0]
cmp eax, 0xffffffff
je 0x14003f3aa
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x14003b30e.0]
cmp eax, 3
je 0x14003f3c3
cmp eax, 1
je 0x14003f379
test eax, eax
jne 0x14003f3aa
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14003f3a0
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14003f3aa
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14003f3ac
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003bec0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
jmp 0x14003f3ac