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

Disassembly:
cmp edx, 0x1f
jne 0x140097958
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 0x140097815
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140097815
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140097815
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 0x14009784c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400978a2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400978a2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400978a2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400978a2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400978a2
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.140097260
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 0x140097904
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400735c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140097630
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 0x140097950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400735c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400990c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d9080]
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 0x140099155
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 0x1400991b6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400735c0
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.1400aca60
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 0x140099271
sub ecx, 1
je 0x1400992e4
sub ecx, 1
je 0x140099220
cmp ecx, 1
je 0x140099203
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c1f34]
call fcn.1400735c0
jmp 0x1400992e4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140098df0
test eax, eax
je 0x1400992e4
jmp 0x14009918a
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 0x1400992e4
sub rax, rsi
cmp rax, rbp
jae 0x1400992e4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140073740
jmp 0x1400992e4
cmp r8d, 4
jle 0x1400992e4
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 0x1400992e4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400734e0
mov esi, eax
test eax, eax
je 0x1400992c3
mov edx, 5
mov rcx, rbx
call fcn.140099db0
mov eax, esi
jmp 0x14009918a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140082010
mov rcx, r14
call fcn.1400822f0
test eax, eax
je 0x140099188
mov edx, 5
mov rcx, rbx
call fcn.140099db0
mov eax, Ordinal_46
jmp 0x14009918a
Function at 0x1400ac080
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ac0c2
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 0x1400ac109
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 0x1400ac162
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 0x1400ac120
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ac1a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400bef1b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400bef1c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ac170
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 0x1400acfe4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ad02e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ad02e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ad02e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ad02e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ad02e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ad030
xor al, al
add rsp, 0x28
ret
Function at 0x14083b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14083b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14083b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14083b06f
add dl, dl
jne 0x14083b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14083b0f6
xor eax, eax
add dl, dl
jne 0x14083b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14083b1ad
add dl, dl
jne 0x14083b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14083b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14083b07e
mov eax, 1
add dl, dl
jne 0x14083b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083b0fb
sub eax, ebx
mov ebx, 1
jne 0x14083b14c
mov ecx, 1
add dl, dl
jne 0x14083b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14083b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14083b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14083b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14083b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083b15d
cmp eax, 0x7d00
jae 0x14083b19b
cmp eax, 0x500
jb 0x14083b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14083b07e
cmp eax, 0x7f
ja 0x14083b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14083b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14083b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14083b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002d5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002da6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002da6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002da6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002da6
cmp dword [rcx + 0x84], 0xe
jbe 0x140002da6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002da8
xor al, al
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001b06
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
jmp 0x140001b9f
mov byte [rbp - 2], 0
jmp 0x140001b95
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx edx, byte [rax]
movzx eax, byte [rbp - 1]
movzx ecx, byte [rbp - 2]
xor edx, r8d
mov r8, qword [rbp + 0x18]
movsxd rcx, ecx
cdqe
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x140001b27
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x140001b21
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140001bb1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x140001c24
mov byte [rbp - 2], 0
jmp 0x140001c1a
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r9d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
cdqe
lea rdx, str.cw
movzx edx, byte [rax + rdx]
mov r8, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r9d
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x140001bc9
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x140001bc3
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x1400026dc
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x14000274f
mov byte [rbp - 2], 0
jmp 0x140002745
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r9d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
cdqe
lea rdx, [0x14001e160]
movzx edx, byte [rax + rdx]
mov r8, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r9d
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x1400026f4
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x1400026ee
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x1400029a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
jmp 0x1400029eb
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx r8d, byte [rax]
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add byte [rbp - 1], 1
cmp byte [rbp - 1], 0xf
jbe 0x1400029b8
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140002f03
Capabilities:
Hide thread from debugger

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, str.kernel32
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call rax
mov qword [rbp - 8], rax
lea rax, str.ntdll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
lea rdx, str.GetCurrentThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
lea rdx, str.NtSetInformationThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x18]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x20]
mov r9d, 0
mov r8d, 0
mov edx, 0x11
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140002f96
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov dword [rbp - 4], 0
mov rax, qword gs:[0x60]
movzx edx, byte [rax + 2]
mov dword [rbp - 4], edx
cmp dword [rbp - 4], 0
setne al
movzx eax, al
add rsp, 0x10
pop rbp
ret

Function at 0x14000336d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
mov dword [rbp - 0xc], 0
mov eax, dword [rbp + 0x20]
mov dword [rbp - 0x10], eax
jmp 0x14000345f
mov eax, dword [rbp - 4]
lea edx, [rax + 1]
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov dword [rbp - 4], edx
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 8]
add edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov dword [rbp - 8], edx
mov ecx, dword [rbp - 8]
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
mov r8d, ecx
mov rcx, rax
call fcn.140003250
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
add eax, ecx
movzx edx, al
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx eax, byte [rax]
mov edx, eax
mov eax, dword [rbp - 0x14]
mov ecx, edx
xor ecx, eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, qword [rbp + 0x28]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp - 0xc], 1
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 0x10]
jl 0x1400033a5
nop
nop
add rsp, 0x40
pop rbp
ret
Function at 0x14000f1a0
Capabilities:
Hash data with crc32

Disassembly:
endbr64
vmovdqa xmm1, xmmword [0x1400225c0]
vmovdqa xmm2, xmmword [rcx]
vmovdqa xmm0, xmmword [rcx + 0x10]
vpclmulqdq xmm3, xmm2, xmm1, 0x10
vpclmulqdq xmm2, xmm2, xmm1, 1
vpternlogq xmm0, xmm2, xmm3, 0x96
vpclmulqdq xmm3, xmm0, xmm1, 0x10
vpclmulqdq xmm2, xmm0, xmm1, 1
vmovdqa xmm0, xmmword [rcx + 0x20]
vpternlogq xmm0, xmm2, xmm3, 0x96
vmovdqa xmm3, xmmword [0x1400225d0]
vpclmulqdq xmm2, xmm0, xmm1, 0x10
vpclmulqdq xmm1, xmm0, xmm1, 1
vmovdqa xmm0, xmmword [rcx + 0x30]
vpternlogq xmm0, xmm2, xmm1, 0x96
vpclmulqdq xmm1, xmm0, xmm3, 0
vpsrldq xmm0, xmm0, 8
vpxor xmm0, xmm1, xmm0
vmovdqa xmm1, xmmword [0x1400225e0]
vpslldq xmm2, xmm0, 4
vpclmulqdq xmm2, xmm2, xmm3, 0x10
vpternlogq xmm1, xmm0, xmm2, 0x60
vmovdqa xmm2, xmmword [0x1400225f0]
vmovdqa xmm0, xmmword [0x140022600]
vpclmulqdq xmm3, xmm1, xmm2, 0
vpternlogq xmm0, xmm1, xmm3, 0x60
vpclmulqdq xmm2, xmm0, xmm2, 0x10
vpternlogq xmm0, xmm1, xmm2, 0x96
vpextrd eax, xmm0, 2
not eax
mov dword [rcx + 0x40], eax
ret

Function at 0x14000fb80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140016290
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016290
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000fbf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140029104]
mov rbx, rcx
test esi, esi
jle 0x14000fd20
mov rax, qword [0x140029108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000fc3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000fcc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000fc20
mov rcx, rbx
call fcn.140010640
mov rdi, rax
test rax, rax
je 0x14000fd42
mov rax, qword [0x140029108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140010780
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140029108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fd27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000fcbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000fcd0
add dword [0x140029104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140029108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000fcbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000fb80
nop dword [rax]
xor esi, esi
jmp 0x14000fc48
mov rax, qword [0x140029108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000fb80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000fb80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400102b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140029160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140029140]
test rbx, rbx
je 0x14001030c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140010303
test rsi, rsi
je 0x140010303
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400102e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140010640
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140022f70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010660
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010668
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010660
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400106bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400106b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010660
add rax, 0x28
cmp rax, r9
jne 0x1400106a0
xor eax, eax
ret

Function at 0x1400106c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140022f70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400106df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400106e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400106df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140010780
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140022f70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001079f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400107a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret