joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, r9d
mov r12, r8
mov r14, rdx
mov rsi, rcx
mov ebx, 0xffffffff
call fcn.140076d70
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140076b22
lea rcx, [rsi + 0x50]
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, r15d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140076ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140076b12
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140076b06
mov r8d, dword [rsp + 0x88]
test r8d, r8d
je 0x140076b06
mov r9, qword [rsp + 0x90]
mov rcx, rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140076ac2
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov rdx, r14
mov rcx, rsi
call fcn.140077000
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140088550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, rdx
mov r14, rcx
mov rcx, rbp
mov rdx, r8
mov rdi, r8
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1400885bb
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400885ec
cmp eax, 2
jne 0x1400885dc
lea rcx, str.Key_not_found._n
call fcn.140088780
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401d0310
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
lea rcx, str.Error_opening_key._n
call fcn.140088780
xor eax, eax
jmp 0x1400885c0
mov qword [rsp + 0x288], rbx
mov rcx, rdi
mov qword [rsp + 0x280], rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor ebx, ebx
cmp word [rdi + rcx*2 - 2], 0x5c
lea rsi, [rdi + rcx*2]
je 0x140088622
mov word [rsi], 0x5c
add rsi, 2
mov word [rsi], bx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140088741
nop dword [rax]
nop word [rax + rax]
mov word [rsi], bx
mov ecx, 0x208
mov rax, rdi
nop dword [rax + rax]
cmp word [rax], bx
je 0x14008868f
add rax, 2
sub rcx, 1
jne 0x140088680
mov eax, 0x208
sub rax, rcx
test rcx, rcx
cmove rax, rbx
je 0x1400886ef
mov edx, 0x208
lea rcx, [rdi + rax*2]
sub rdx, rax
je 0x1400886e1
lea r9, [rsp + 0x60]
mov eax, 0x7ffffffe
sub r9, rcx
nop dword [rax + rax]
test rax, rax
je 0x1400886e1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400886e1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400886c0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
mov r8, rdi
mov rdx, rbp
mov rcx, r14
call fcn.140088550
test eax, eax
je 0x140088741
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140088670
mov word [rsi - 2], bx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rsi, qword [rsp + 0x280]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x288]
jmp 0x1400885c0
Function at 0x1400887e0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movzx r9d, byte [r8]
mov rdi, rdx
mov rbx, qword [0x140267e70]
test r9d, r9d
je 0x140088880
sub r9d, 1
je 0x140088856
cmp r9d, 1
jne 0x1400888c1
movzx edx, byte [r8 + 1]
sub edx, r9d
je 0x14008883a
cmp edx, r9d
jne 0x1400888c1
mov edx, r9d
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140089f80
movzx r8d, byte [r8 + 2]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140089c90
mov ecx, dword [r8 + 1]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400888c1
mov rdx, qword [rcx]
xor r8d, r8d
movd xmm1, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rdx + gethostname]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008889f
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x48]
test eax, eax
js 0x14008889f
movss xmm0, dword [rsp + 0x30]
jmp 0x1400888a7
movss xmm0, dword [0x140249100]
mov rax, qword [rdi]
lea rdx, [rsp + 0x40]
mov r8d, 4
movss dword [rsp + 0x40], xmm0
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008a690
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 0x18]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rdx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x28], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
add rsp, 0x58
ret

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

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x70]
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x28], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
add rsp, 0x58
ret

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

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov rcx, qword [rcx + 0x18]
xor eax, eax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rax
mov dword [rsp + 0x70], eax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x10], rdx
lea rdx, [r11 - 0x18]
mov dword [r11 - 0x18], r8d
mov r8d, 1
mov qword [r11 - 0x38], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x58
ret
Function at 0x140094a30
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
lea r8, str.SOFTWAREMonectPCRemoteReceiver
mov qword [rbp - 0x70], 0xffffffff80000002
mov edx, 0x100
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x68]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140094acb
xor ecx, ecx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rcx
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], 0x100
lea r15, [0x140267d60]
mov qword [rsp + 0x20], rax
mov r9, r15
lea rdx, str.hwid
lea rcx, [rbp - 0x70]
call fcn.1400882b0
test eax, eax
jne 0x140094c05
mov qword [rsp + 0x2d0], rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x2d8], rsi
mov qword [rsp + 0x2e0], rdi
mov qword [rsp + 0x2b0], r14
call qword [sym.imp.ole32.dll_CoCreateGuid]
xor edx, edx
mov r8d, 0x100
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
movzx ecx, byte [rbp - 0x7a]
mov edx, 0x100
movzx r8d, byte [rbp - 0x7b]
movzx r9d, byte [rbp - 0x7c]
movzx eax, byte [rbp - 0x79]
movzx r10d, byte [rbp - 0x7d]
movzx r11d, byte [rbp - 0x7e]
movzx ebx, byte [rbp - 0x7f]
movzx edi, byte [rbp - 0x80]
movzx esi, word [rsp + 0x7e]
movzx r14d, word [rsp + 0x7c]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov rcx, r15
mov dword [rsp + 0x58], r8d
lea r8, str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x50], r9d
mov r9d, dword [rsp + 0x78]
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
call fcn.140086b80
mov edx, 0x100
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, qword [rbp - 0x68]
mov r14, qword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x2d8]
mov rbx, qword [rsp + 0x2d0]
test rcx, rcx
je 0x140094c14
mov dword [rsp + 0x28], eax
lea rdx, str.hwid
mov r9d, 1
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140094c14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r15
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401d0310
add rsp, 0x2b8
pop r15
pop rbp
ret
Function at 0x140095380
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [r9]
mov rsi, rcx
mov rdi, r9
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x34]
mov rcx, rdi
mov r8d, 0x400
mov rbx, rdx
call qword [rax + Ordinal_41]
test eax, eax
jne 0x140095520
cmp dword [rsp + 0x34], eax
je 0x140095520
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
call qword [rax + 0x68]
movzx ebp, al
cmp al, 1
jne 0x140095460
cmp byte [rbx], 0x7f
jne 0x14009548a
lea rdx, [rdi + 0x30]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rdx
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov byte [rsp + 0x30], 0x7f
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_sendto]
mov r8d, dword [rsp + 0x34]
lea rdx, [rbx + 1]
mov rcx, qword [rsi + 0x18]
dec r8d
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsi + 0x24]
xor eax, eax
mov r14d, dword [rsp + 0x34]
mov rdi, rbx
rep stosb byte [rdi], al
mov rdx, qword [rsi + 0x18]
lea r8d, [r14 - 1]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14009548f
cmp bpl, 4
jne 0x14009548a
cmp byte [rbx], 0x7f
jne 0x14009548a
movaps xmm0, xmmword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x20], rax
jmp 0x14009540f
mov r14d, dword [rsp + 0x34]
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rsi + 0x20]
xor edx, edx
mov rax, qword [rsi]
div rcx
mov eax, dword [rsi + 0x2c]
mov ecx, dword [rsi + 0x24]
imul rdx, rax
xor eax, eax
mov r8d, r14d
add rdx, qword [rsi + 0x10]
lea r9, [rdx + 0x15]
mov rdi, r9
rep stosb byte [rdi], al
mov dword [rdx], r14d
mov rcx, r9
mov byte [rdx + 4], bpl
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx + 5], xmm0
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsi]
mov ecx, dword [rsi + 0x20]
inc rdi
mov r14, qword [rsp + 0x78]
mov rdx, rdi
sub rdx, qword [rsi + 8]
mov rbp, qword [rsp + 0xb0]
mov qword [rsi], rdi
cmp rdx, rcx
jb 0x14009550a
sub rdi, rcx
inc rdi
mov qword [rsi + 8], rdi
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15, qword [rsp + 0x70]
mov eax, 1
jmp 0x140095522
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401d0310
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140095860
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov rbp, rdx
mov r8d, dword [rcx + 0x30]
lea rdx, [rcx + 0x34]
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov r14, r9
test r8, r8
je 0x1400958b2
test rcx, rcx
je 0x1400958a0
test rdx, rdx
je 0x14009589b
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400958b2
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, dword [rdi + 0x30]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, esi
mov dword [rsp + 0x38], 0
mov rdx, rbp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
jns 0x140095912
mov eax, 1
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x78], rbx
mov rbx, qword [rsp + 0x90]
mov ecx, dword [rbx]
cmp eax, ecx
jbe 0x140095932
mov dword [rbx], eax
mov eax, 2
jmp 0x14009597e
mov eax, dword [rdi + 0x30]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov r8d, esi
mov qword [rsp + 0x40], rbx
mov rdx, rbp
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
jns 0x14009597c
mov dword [rbx], 0
mov eax, 3
jmp 0x14009597e
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400959a0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov rbp, rdx
mov r8d, dword [rcx + 0x30]
lea rdx, [rcx + 0x34]
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
mov r14, r9
test r8, r8
je 0x1400959f2
test rcx, rcx
je 0x1400959e0
test rdx, rdx
je 0x1400959db
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400959f2
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, dword [rdi + 0x30]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, esi
mov dword [rsp + 0x38], 0
mov rdx, rbp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jns 0x140095a52
mov eax, 1
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x78], rbx
mov rbx, qword [rsp + 0x90]
mov ecx, dword [rbx]
cmp eax, ecx
jbe 0x140095a72
mov dword [rbx], eax
mov eax, 2
jmp 0x140095abe
mov eax, dword [rdi + 0x30]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov r8d, esi
mov qword [rsp + 0x40], rbx
mov rdx, rbp
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jns 0x140095abc
mov dword [rbx], 0
mov eax, 3
jmp 0x140095abe
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140095ae0
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
mov rsi, r9
mov rbp, r8
mov qword [rax - 0x28], r12
mov r14d, edx
mov qword [rax - 0x20], r12
mov r15, rcx
mov dword [rax - 0x30], r12d
xor r9d, r9d
mov dword [rax - 0x34], r12d
xor r8d, r8d
mov dword [rax - 0x38], r12d
lea rdx, str.SHA256
mov ebx, r12d
lea rcx, [rax - 0x28]
mov edi, 1
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140095c31
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r12d
lea r9d, [rdi + 3]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x140095c31
mov ebx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140095c31
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r12d
lea r9d, [rdi + 3]
lea r8, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea rdx, str.HashDigestLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x140095c31
mov r9d, dword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r8, rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x140095c31
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
js 0x140095c31
mov r8d, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
js 0x140095c31
mov eax, dword [rsp + 0x44]
mov edi, r12d
mov dword [rsi], eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140095c43
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140095c53
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
test rbx, rbx
je 0x140095c6c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140095c90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x4c0
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rdi, rdx
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
jne 0x140095cec
lea eax, [rsi + 1]
jmp 0x140095d6a
lea rcx, [rsp + 0x50]
call fcn.1401077e0
nop word [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 0x400
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140095d5c
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.140107830
cmp dword [rsp + 0x40], esi
jne 0x140095d00
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140107670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140095d6a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140096a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140268298]
call fcn.14008a240
mov rax, qword [0x140268298]
cmp dword [rax + 8], 0
je 0x140096b64
mov rcx, qword [0x140268250]
test rcx, rcx
je 0x140096abd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140096c09
mov rdi, qword [0x140268298]
xor ebx, ebx
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0xc], ebx
test rcx, rcx
je 0x140096adc
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x10], rbx
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140096aef
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x18], rbx
mov rcx, qword [rdi + 0x270]
test rcx, rcx
je 0x140096b08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x270], rbx
mov rcx, qword [0x140268298]
call fcn.14008a350
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140098960]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x140268298]
lea rdx, [rsp + 0x40]
mov qword [0x140268250], rax
mov r8d, 0x100
mov rax, qword [rcx]
call qword [rax + 0x58]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add eax, eax
jmp 0x140096bdc
mov rdi, qword [0x140268298]
xor ebx, ebx
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0xc], ebx
test rcx, rcx
je 0x140096b83
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x10], rbx
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140096b96
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x18], rbx
mov rcx, qword [rdi + 0x270]
test rcx, rcx
je 0x140096baf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x270], rbx
mov rcx, qword [0x140268250]
test rcx, rcx
je 0x140096bda
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140268250]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140268250], rbx
mov eax, ebx
mov rcx, qword [0x140268120]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov r8d, 1
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov rdx, qword [rcx + 8]
mov dword [rsp + 0x20], eax
call fcn.140076b40
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401d0310
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x14009e000
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc00
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0xbf0], rax
mov rsi, r8
mov ebx, r9d
mov rdi, rcx
mov r8d, 0x5d2
lea rcx, [rsp + 0x34]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x610]
mov r8d, 0x5d4
call sub.VCRUNTIME140.dll_memset
cmp ebx, 0x5d2
ja 0x14009e101
mov word [rsp + 0x30], bx
mov eax, 2
mov word [rsp + 0x32], ax
test rsi, rsi
je 0x14009e0ab
mov r8d, ebx
test ebx, ebx
je 0x14009e0ab
lea rcx, [rsp + 0x34]
cmp rbx, 0x5d2
ja 0x14009e08c
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14009e0ab
xor edx, edx
mov r8d, 0x5d2
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r8, [rsp + 0x610]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.14009e130
mov r8d, eax
test eax, eax
jns 0x14009e0ce
mov eax, 0xffffffff
jmp 0x14009e106
mov rcx, qword [rdi + 8]
lea rax, [rdi + 0x10]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x610]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
mov ecx, 0xfffffffd
cmove eax, ecx
jmp 0x14009e106
mov eax, 0xfffffffe
mov rcx, qword [rsp + 0xbf0]
xor rcx, rsp
call fcn.1401d0310
add rsp, 0xc00
pop rdi
pop rsi
pop rbx
ret

Function at 0x14009ee00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
mov eax, 0xffffffff
test r8, r8
je 0x14009eeb3
movzx ecx, byte [r9]
lea r9, [r9 + 1]
xor eax, ecx
mov ecx, eax
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
sub r8, 1
jne 0x14009ee11
not eax
ret