joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075360
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
cmp edx, 0x1f
je 0x140075390
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rcx + 0x1c8]
mov eax, 0xfffffaff
mov rdi, qword [rcx + 0x18]
mov rbp, qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbx + 0x1c4a]
lea r13, [rbx + 0x1c4b]
movzx ecx, word [rbx + 0x1c18]
mov word [rbx + 0x1c48], ax
mov qword [rsp + 0x28], r8
lea r15, [rbx + 0x1e48]
lea r14, [rbx + 0x1c48]
mov qword [rbx + 0x1e48], r13
mov byte [rbx + 0x1c4a], 0x1f
call rbp
movzx ecx, word [rbx + 0x1c1a]
mov esi, eax
call rbp
mov r9, qword [rbx + 0x1e48]
mov r8, qword [rsp + 0x28]
cmp r15, r9
jbe 0x1400754ab
lea rdx, [r9 + 1]
mov qword [rbx + 0x1e48], rdx
mov byte [r9], sil
mov r9, qword [rbx + 0x1e48]
cmp r15, r9
jbe 0x1400754ab
lea rdx, [r9 + 1]
mov qword [rbx + 0x1e48], rdx
mov edx, esi
movzx esi, dh
mov byte [r9], sil
mov r9, qword [rbx + 0x1e48]
cmp r15, r9
jbe 0x1400754ab
lea rdx, [r9 + 1]
mov qword [rbx + 0x1e48], rdx
mov byte [r9], al
mov r9, qword [rbx + 0x1e48]
cmp r15, r9
jbe 0x1400754ab
lea rdx, [r9 + 1]
movzx eax, ah
mov qword [rbx + 0x1e48], rdx
mov byte [r9], al
mov r9, qword [rbx + 0x1e48]
cmp r15, r9
jbe 0x1400754ab
lea rax, [r9 + 1]
mov qword [rbx + 0x1e48], rax
mov byte [r9], 0xff
mov r9, qword [rbx + 0x1e48]
cmp r15, r9
jbe 0x1400754ab
lea rax, [r9 + 1]
mov qword [rbx + 0x1e48], rax
mov byte [r9], 0xf0
mov r9, qword [rbx + 0x1e48]
movq xmm0, r14
movq xmm1, r9
punpcklqdq xmm0, xmm1
movups xmmword [rbx + 0x1e48], xmm0
test byte [r12 + 0xa47], 0x10
jne 0x140075548
xor r9d, r9d
mov rcx, qword [rdi + 0x238]
mov rsi, qword [sym.imp.WS2_32.dll_send]
mov rdx, r14
mov r8d, 3
call rsi
test eax, eax
js 0x140075568
mov r8d, 4
mov rdx, r13
mov rcx, r12
call sym.send_telnet_data
xor r9d, r9d
mov rcx, qword [rdi + 0x238]
lea rdx, [rbx + 0x1c4f]
mov r8d, 2
call rsi
test eax, eax
jns 0x140075378
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, r12
mov r8d, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.Curl_failf
sub r9, r14
mov edx, 0x3e
mov rcx, r12
sub r9, 2
call sym.printsub.part.0
jmp 0x1400754cb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, r12
mov r8d, eax
call sym.Curl_failf
jmp 0x1400754eb
Function at 0x1400758e0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
mov rax, qword [rcx + 0x18]
mov byte [rsp + 0x3e], dl
mov r12, rcx
mov ebx, edx
mov esi, r8d
mov byte [rsp + 0x3f], r8b
lea rdx, [rsp + 0x3d]
mov rcx, qword [rax + 0x238]
mov r8d, 3
mov byte [rsp + 0x3d], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1400759c8
test byte [r12 + 0xa47], 0x10
jne 0x140075940
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
lea r9, str.WILL
cmp ebx, 0xfb
je 0x140075976
lea r9, str.WONT
cmp ebx, 0xfc
je 0x140075976
cmp ebx, 0xfd
lea r9, [0x14016846b]
lea rax, str.DONT
cmovne r9, rax
cmp esi, 0x27
jg 0x1400759e8
movsxd rdx, esi
lea rax, str.BINARY
mov rax, qword [rax + rdx*8]
test rax, rax
je 0x1400759f0
mov rdx, qword [r12 + 0x1270]
test rdx, rdx
je 0x1400759a2
mov edx, dword [rdx + 8]
test edx, edx
jle 0x140075930
mov qword [rsp + 0x20], rax
lea r8, str.SENT
lea rdx, str._s__s__s
mov rcx, r12
call sym.Curl_infof
jmp 0x140075930
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, r12
mov r8d, eax
call sym.Curl_failf
jmp 0x140075925
cmp esi, 0xff
je 0x140075a30
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x140075a08
mov eax, dword [rax + 8]
test eax, eax
jle 0x140075930
mov dword [rsp + 0x20], esi
lea r8, str.SENT
lea rdx, str._s__s__d
mov rcx, r12
call sym.Curl_infof
jmp 0x140075930
lea rax, str.EXOPL
jmp 0x14007598e
Function at 0x140078600
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx]
mov r9, qword [rcx + 0x10]
cmp eax, 2
je 0x140078670
ja 0x140078628
test eax, eax
je 0x1400786a0
add rsp, 0x28
jmp sym.tftp_rx
cmp eax, 3
jne 0x140078680
xor eax, eax
test r9, r9
je 0x140078669
test byte [r9 + 0xa47], 0x10
je 0x140078669
mov rdx, qword [r9 + 0x1270]
test rdx, rdx
je 0x140078651
mov edx, dword [rdx + 8]
test edx, edx
jle 0x140078669
lea r8, str.TFTP_finished
lea rdx, [0x140168b05]
mov rcx, r9
call sym.Curl_infof
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.tftp_tx
lea r8, str.Internal_state_machine_error
lea rdx, [0x140168b05]
mov rcx, r9
call sym.Curl_failf
mov eax, 0x47
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.tftp_send_first
Function at 0x14007a080
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp sym.Curl_win32_random

Function at 0x14007a160
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, r8
mov r12, rcx
mov r8, r9
mov rdi, rdx
mov rcx, rsi
xor edx, edx
mov dword [rsp + 0x3c], r9d
mov rbx, r9
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
call sym.memset
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14007a1d8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14007a230
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14007a228
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007a1cb
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14007a206
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, edi
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14007a1fc
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x20], 0
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, 4
call rdi
test eax, eax
je 0x14007a1fc
mov eax, dword [rsp + 0x34]
cmp rbx, rax
jb 0x14007a1fc
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
call rdi
jmp 0x14007a1fc
Function at 0x14007ac60
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, r8
mov r12, rcx
mov r8, r9
mov rdi, rdx
mov rcx, rsi
xor edx, edx
mov dword [rsp + 0x3c], r9d
mov rbx, r9
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
call sym.memset
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14007ace0
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14007ad40
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14007ad30
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007accb
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14007ad0e
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, edi
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14007ad04
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x20], 0
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, 4
call rdi
test eax, eax
je 0x14007ad04
mov eax, dword [rsp + 0x34]
cmp rbx, rax
jb 0x14007ad04
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
call rdi
jmp 0x14007ad04
Function at 0x140085400
Capabilities:
Get hostname

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
movsxd rbx, edx
mov r12, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [r12 + rbx - 1], 0
mov r13d, eax
test eax, eax
jne 0x14008543c
mov edx, 0x2e
mov rcx, r12
call sym.strchr
test rax, rax
je 0x14008543c
mov byte [rax], 0
mov eax, r13d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret

Function at 0x140085450
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r9d, 1
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
xor edx, edx
xor r8d, r8d
mov dword [rsp + 0x4c], 8
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400854a0
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
ret
xor eax, eax
mov edx, 0x208
lea r12, [rsp + 0x60]
mov word [rsp + 0x62], ax
mov rax, qword [0x14016c260]
mov word [rsp + 0x60], dx
movzx edx, byte [rbx + 1]
mov qword [rsp + 0x64], rax
movzx eax, byte [rbx]
mov ecx, edx
shl edx, 6
shr cl, 1
mov byte [rsp + 0x6c], al
shl eax, 7
or eax, ecx
mov byte [rsp + 0x6d], al
movzx eax, byte [rbx + 2]
mov ecx, eax
shl eax, 5
shr cl, 2
or edx, ecx
mov byte [rsp + 0x6e], dl
movzx edx, byte [rbx + 3]
mov ecx, edx
shl edx, 4
shr cl, 3
or eax, ecx
mov byte [rsp + 0x6f], al
movzx eax, byte [rbx + 4]
mov ecx, eax
shl eax, 3
shr cl, 4
or edx, ecx
mov byte [rsp + 0x70], dl
movzx edx, byte [rbx + 5]
mov ecx, edx
shl edx, 2
shr cl, 5
or eax, ecx
mov byte [rsp + 0x71], al
movzx eax, byte [rbx + 6]
mov ecx, eax
add eax, eax
shr cl, 6
mov byte [rsp + 0x73], al
or edx, ecx
lea rcx, [rsp + 0x6c]
mov byte [rsp + 0x72], dl
mov edx, 8
call sym.Curl_des_set_odd_parity
lea rax, [rsp + 0x58]
xor r9d, r9d
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x50]
mov r8d, 0x14
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1400855b1
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsi], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x1400855d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rdx
mov rbx, r8
mov rsi, rcx
mov r8, rcx
mov rdx, rbx
mov rcx, r12
call sym.encrypt_des.isra.0
lea rdx, [rbx + 8]
lea r8, [rsi + 7]
mov rcx, r12
call sym.encrypt_des.isra.0
lea rdx, [rbx + 0x10]
lea r8, [rsi + 0xe]
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.encrypt_des.isra.0
Function at 0x140088500
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rcx + 0x18]
add eax, eax
mov r12, rdx
mov edx, dword [rcx + 0x20]
mov rbx, rcx
mov esi, r8d
lea rcx, [rax + rdx + 0x18]
mov rax, qword [0x1401719a0]
call qword [rax]
mov r13, rax
test rax, rax
je 0x1400885fc
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [r13 + 0x10], rax
cmp dword [rbx + 0x1c], esi
jb 0x140088610
call qword [rbx]
mov rcx, qword [r13 + 0x10]
call qword [rbx]
test rsi, rsi
je 0x1400885b2
lea rbp, [r12 + rsi]
lea rdi, [rsp + 0x2f]
nop dword [rax + rax]
movzx eax, byte [r12]
add r12, 1
mov rcx, qword [r13 + 8]
mov rdx, rdi
mov r8d, 1
xor eax, 0x36
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
movzx eax, byte [r12 - 1]
mov rcx, qword [r13 + 0x10]
mov rdx, rdi
mov r8d, 1
xor eax, 0x5c
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
cmp r12, rbp
jne 0x140088570
mov eax, dword [rbx + 0x1c]
cmp rax, rsi
jbe 0x1400885fc
lea rbp, [0x14016c521]
lea rdi, [0x14016c520]
nop dword [rax + rax]
mov rcx, qword [r13 + 8]
mov r8d, 1
mov rdx, rbp
add rsi, 1
call qword [rbx + 8]
mov rcx, qword [r13 + 0x10]
mov r8d, 1
mov rdx, rdi
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
cmp rax, rsi
ja 0x1400885d0
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [rbx]
mov r8d, esi
mov rdx, r12
mov rcx, qword [r13 + 8]
call qword [rbx + 8]
mov r12d, dword [rbx + 0x18]
add r12, qword [r13 + 0x10]
mov rcx, r12
mov rdx, qword [r13 + 8]
call qword [rbx + 0x10]
mov esi, dword [rbx + 0x20]
mov rcx, qword [r13 + 8]
jmp 0x140088555
Function at 0x140088df0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x58
pxor xmm0, xmm0
mov r9d, 1
mov r13d, 2
mov rbx, rcx
mov r14, rdx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
mov r12, r8
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140088e48
mov eax, r13d
add rsp, 0x58
pop rbx
pop r12
pop r13
pop r14
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140088f30
mov rcx, r12
lea r13, [rsp + 0x3c]
call sym.curlx_uztoui
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov rdx, r14
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
mov r9, r13
mov dword [rsp + 0x3c], 0
mov r12, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, 2
mov dword [rsp + 0x20], 0
call r12
cmp dword [rsp + 0x3c], 0x10
je 0x140088f10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x140088ef0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140088f00
xor r13d, r13d
mov eax, r13d
add rsp, 0x58
pop rbx
pop r12
pop r13
pop r14
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140088ed6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140088ed6
mov rcx, qword [rsp + 0x48]
mov r9, r13
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], 0
call r12
jmp 0x140088ec2
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140088e35

Function at 0x140089000
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
mov r9d, 1
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov r8d, eax
mov eax, 0x1b
test r8d, r8d
je 0x140089055
lea rax, [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r8d, eax
xor eax, eax
test r8d, r8d
je 0x140089060
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbx], 0
mov eax, 2
jmp 0x140089055
Function at 0x140089080
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x50
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
mov rbx, rcx
mov r13, rdx
mov r12, r8
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov r9d, eax
mov eax, 0x1b
test r9d, r9d
je 0x140089151
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400891a0
mov rcx, r12
call sym.curlx_uztoui
mov rdx, r13
lea r13, [rsp + 0x3c]
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
mov r9, r13
mov dword [rsp + 0x3c], 0
mov r12, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, 2
mov dword [rsp + 0x20], 0
call r12
cmp dword [rsp + 0x3c], 0x10
je 0x140089160
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x140089190
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140089180
xor eax, eax
add rsp, 0x50
pop rbx
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x48]
mov r9, r13
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], 0
call r12
jmp 0x14008913b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140089151
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140089145
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x140089151
Function at 0x14008a240
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x40], xmm10
mov r8, rcx
mov r10, rdx
test rdx, rdx
je 0x14008a473
lea rax, [rdx - 1]
cmp rax, 0xe
jbe 0x14008a493
and rdx, 0xfffffffffffffff0
mov rax, rcx
pxor xmm4, xmm4
movdqa xmm2, xmmword [0x14016c7a0]
movdqa xmm5, xmmword [0x14016c7b0]
movdqa xmm6, xmmword [0x14016c7c0]
add rdx, rcx
nop word [rax + rax]
movdqu xmm7, xmmword [rax]
add rax, 0x10
movdqa xmm0, xmm7
movdqa xmm3, xmm7
punpcklbw xmm0, xmm4
punpckhbw xmm3, xmm4
movdqa xmm1, xmm0
movdqa xmm8, xmm3
movdqa xmm9, xmm3
psrlw xmm1, 7
psrlw xmm8, 7
movdqa xmm10, xmm3
pand xmm8, xmm2
psrlw xmm9, 6
pand xmm1, xmm2
packuswb xmm1, xmm8
movdqa xmm8, xmm0
pand xmm9, xmm2
psrlw xmm8, 6
psrlw xmm10, 4
pand xmm8, xmm2
pand xmm10, xmm2
packuswb xmm8, xmm9
movdqa xmm9, xmm3
pxor xmm1, xmm8
psrlw xmm9, 5
movdqa xmm8, xmm0
psrlw xmm8, 5
pand xmm9, xmm2
pand xmm8, xmm2
packuswb xmm8, xmm9
movdqa xmm9, xmm0
psrlw xmm9, 4
pand xmm9, xmm2
packuswb xmm9, xmm10
movdqa xmm10, xmm3
pxor xmm8, xmm9
psrlw xmm10, 2
movdqa xmm9, xmm3
pxor xmm1, xmm8
movdqa xmm8, xmm0
pand xmm10, xmm2
psrlw xmm8, 3
psrlw xmm9, 3
pand xmm9, xmm2
psrlw xmm3, 1
pand xmm8, xmm2
packuswb xmm8, xmm9
movdqa xmm9, xmm0
pand xmm3, xmm2
psrlw xmm9, 2
psrlw xmm0, 1
pand xmm9, xmm2
pand xmm0, xmm2
packuswb xmm9, xmm10
packuswb xmm0, xmm3
pxor xmm8, xmm9
pxor xmm0, xmm8
pxor xmm0, xmm1
movdqa xmm1, xmm7
pand xmm7, xmm6
pand xmm0, xmm5
por xmm1, xmm5
pcmpeqb xmm0, xmm4
pand xmm1, xmm0
pandn xmm0, xmm7
por xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x14008a2a8
mov rcx, r10
and rcx, 0xfffffffffffffff0
test r10b, 0xf
je 0x14008a473
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
mov edx, eax
mov r9d, eax
shr r9b, 7
shr dl, 6
xor edx, r9d
mov r9d, eax
shr r9b, 5
xor edx, r9d
mov r9d, eax
shr r9b, 4
xor edx, r9d
mov r9d, eax
shr r9b, 3
xor edx, r9d
mov r9d, eax
shr r9b, 2
xor edx, r9d
mov r9d, eax
shr r9b, 1
xor edx, r9d
mov r9d, eax
or eax, 1
and r9d, 0xfffffffe
and edx, 1
cmovne eax, r9d
mov byte [r8 + rcx], al
add rcx, 1
cmp r10, rcx
ja 0x14008a410
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
xor ecx, ecx
jmp 0x14008a410
Function at 0x140093f50
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 0x140093fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1401a5234]
mov r12, rcx
test ebx, ebx
jle 0x1400940f0
mov rax, qword [0x1401a5238]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14009400c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140094093
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140093ff0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140094112
mov rax, qword [0x1401a5238]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401a5238]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400940f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009408c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400940a0
add dword [0x1401a5234], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1401a5238]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009408c
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 ebx, ebx
jmp 0x140094017
mov rax, qword [0x1401a5238]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400945d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401a52a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401a5280]
test rbx, rbx
je 0x140094624
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 0x14009461b
test r12, r12
je 0x14009461b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140094600
lea rcx, [0x1401a52a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]