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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x1402b6a0f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x140447040]
mov rcx, rbx
mov r8d, eax
call fcn.140267cd0
mov r9d, edi
lea rdx, [0x14044705c]
mov r8d, esi
mov rcx, rbx
call fcn.1402b6550
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1402b6d59
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x1402b6c17
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1402b6c17
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1402b6c17
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 ebp, 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 0x1402b6c4d
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x1402b6ca3
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402b6ca3
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402b6ca3
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402b6ca3
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402b6ca3
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.1402b6680
mov rcx, qword [r15 + 0x1e8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1402b6d05
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x140447040]
mov rcx, rsi
mov r8d, eax
call fcn.140267cd0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1402b6a40
mov rcx, qword [r15 + 0x1e8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x1402b6d51
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x140447040]
mov rcx, rsi
mov r8d, eax
call fcn.140267cd0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x1402b84a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1404f2b48]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x700]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x1402b8537
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1403cc5a0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x1402b859d
lea rdx, [0x140447760]
mov rcx, rsi
call fcn.140267cd0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1403cb150
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1402b85d3.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x2b86ec]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1402b85d3.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1402b85d3.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140267bf0
mov ebx, eax
test eax, eax
je 0x1402b8632
mov edx, 5
mov rcx, rdi
call fcn.1402b9100
mov eax, ebx
jmp 0x1402b856c
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.1402a01b0
jmp case.0x1402b85d3.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1402b9170
cmp rax, rbx
jae case.0x1402b85d3.4
mov r8, rbp
lea rdx, [0x140447780]
mov rcx, rsi
call fcn.140267e40
jmp case.0x1402b85d3.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1402b81d0
test eax, eax
je case.0x1402b85d3.4
jmp 0x1402b856c
lea r8, [0x140447790]
mov rcx, rsi
lea rdx, [0x1404ca228]
call fcn.140267cd0
mov rcx, rsi
call fcn.1402a04c0
test eax, eax
je 0x1402b856a
mov edx, 5
mov rcx, rdi
call fcn.1402b9100
mov eax, 0x2a
jmp 0x1402b856c
Function at 0x1402c0060
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
mov eax, 0x20
call fcn.1403cb200
sub rsp, rax
xor edi, edi
cmp dword [0x1405456e0], edi
jne 0x1402c01c9
lea r14, [0x140545680]
mov dword [0x1405456e0], 1
mov rdx, r14
lea r8d, [rax + 0x10]
lea rcx, [0x1404480f8]
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x1402c01a4
movzx ebx, word [0x140545680]
lea r15d, [rdi + 2]
cmp bx, 0x7e
mov ecx, edi
cmove ecx, r15d
add rcx, r14
call fcn.1402c01f0
mov rsi, rax
cmp bx, 0x7e
jne 0x1402c011d
lea rcx, [0x1405497b0]
call fcn.140010030
mov rcx, rsi
movabs rdx, 0xedfff7fdffffffff
not rcx
and rax, rcx
mov rcx, rsi
mov rsi, rax
and ecx, 0x1000000
and rsi, rdx
test rcx, rcx
cmove rsi, rax
jmp 0x1402c0136
cmp word [0x140545680], 0x3a
jne 0x1402c0136
lea rcx, [0x1405497b0]
call fcn.140010030
mov rsi, rax
movzx eax, word [0x140545680]
jmp 0x1402c014c
cmp ax, 0x3a
je 0x1402c015a
add r14, r15
movzx eax, word [r14]
test ax, ax
jne 0x1402c013f
mov qword [0x1405497b8], rdi
jmp 0x1402c01b3
test r14, r14
je 0x1402c0151
lea rax, [r14 + 2]
movzx ebx, word [rax]
cmp bx, 0x7e
cmove rdi, r15
lea rcx, [rax + rdi]
call fcn.1402c01f0
mov rcx, rax
shr rcx, 0x20
cmp bx, 0x7e
jne 0x1402c0196
not eax
not ecx
and dword [0x1405497b8], eax
and dword [0x1405497bc], ecx
jmp 0x1402c01b3
mov dword [0x1405497b8], eax
mov dword [0x1405497bc], ecx
jmp 0x1402c01b3
lea rcx, [0x1405497b0]
call fcn.140010030
mov rsi, rax
mov eax, esi
bts eax, 0xa
shr rsi, 0x20
mov dword [0x1405497b4], esi
mov dword [0x1405497b0], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x1402ca110
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x30
call fcn.1403cb200
sub rsp, rax
lea edx, [rax - 0x2f]
mov rbx, rcx
call fcn.1402c9d40
mov rdx, rax
mov rcx, rbx
mov rsi, rax
call fcn.1402c9c40
mov rbp, rax
test rax, rax
je 0x1402ca1b7
xor edi, edi
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
lea r9d, [rdi + 1]
call qword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
je 0x1402ca193
mov rcx, qword [rsp + 0x48]
mov r8, rbp
mov edx, esi
call qword [sym.imp.advapi32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rdi, rsi
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
lea r8, [rdi*8]
mov rdx, rdi
mov rcx, rbx
call fcn.1402c9cd0
mov rcx, rbx
call fcn.1402c9e30
test rax, rax
jne 0x1402ca24b
mov edx, 1
mov rcx, rbx
call fcn.1402c9d40
mov rdx, rax
mov rcx, rbx
mov rsi, rax
call fcn.1402c9c40
mov rbp, rax
test rax, rax
je 0x1402ca243
xor edi, edi
mov dword [rsp + 0x20], 0xf0000040
lea r8, [0x1404490b0]
xor edx, edx
lea rcx, [rsp + 0x48]
lea r9d, [rdi + 0x16]
call qword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
je 0x1402ca223
mov rcx, qword [rsp + 0x48]
mov r8, rbp
mov edx, esi
call qword [sym.imp.advapi32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rdi, rsi
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
lea r8, [rdi*8]
mov rdx, rdi
mov rcx, rbx
call fcn.1402c9cd0
mov rcx, rbx
call fcn.1402c9e30
test rax, rax
jne 0x1402ca24b
mov rcx, rbx
call fcn.1402c9e30
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1402d6ab0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x58
call fcn.1403cb200
sub rsp, rax
mov r14d, dword [rsp + 0xc0]
lea ebx, [rax - 0x57]
mov rsi, rcx
movsxd r15, edx
mov ecx, r14d
mov edx, r15d
shl ebx, cl
mov r12d, r9d
mov rcx, rsi
mov rdi, r8
call fcn.14027aab0
test rax, rax
je 0x1402d6d2c
mov rbp, r15
cmp r14d, 3
jg 0x1402d6b76
test r15d, r15d
jle 0x1402d6d23
xor edx, edx
movsxd r9, ebx
shl r9, 3
xor r10d, r10d
xor r8d, r8d
test ebx, ebx
jle 0x1402d6b5f
mov r11, rdi
mov ecx, r8d
inc r8d
xor ecx, r12d
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov rax, qword [r11]
neg ecx
lea r11, [r11 + 8]
and ecx, 1
neg rcx
and rcx, rax
or r10, rcx
cmp r8d, ebx
jl 0x1402d6b2f
mov rax, qword [rsi]
add rdi, r9
mov qword [rax + rdx*8], r10
inc rdx
cmp rdx, r15
jl 0x1402d6b22
jmp 0x1402d6d23
lea ecx, [r14 - 2]
mov edx, r12d
sar edx, cl
mov r8d, 1
shl r8d, cl
movsxd r11, r8d
lea ecx, [rdx - 1]
shr ecx, 0x1f
lea eax, [r8 - 1]
and r12d, eax
mov eax, edx
not eax
mov dword [rsp + 0xb8], r12d
shr eax, 0x1f
and eax, ecx
mov ecx, edx
neg eax
xor ecx, 1
and eax, 1
neg rax
mov qword [rsp + 0x30], rax
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and eax, ecx
mov ecx, edx
xor ecx, 2
neg eax
and eax, 1
xor edx, 3
neg rax
mov qword [rsp + 0x38], rax
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and eax, ecx
lea ecx, [rdx - 1]
shr ecx, 0x1f
neg eax
and eax, 1
not edx
shr edx, 0x1f
neg rax
and ecx, edx
mov qword [rsp + 0x40], rax
neg ecx
and ecx, 1
neg rcx
mov qword [rsp + 0x28], rcx
test r15d, r15d
jle 0x1402d6d23
xor r10d, r10d
movsxd r14, ebx
shl r14, 3
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x20], r10
xor r13d, r13d
and dword [rsp + 0xc0], r13d
test r11, r11
jle 0x1402d6cfb
mov ebp, dword [rsp + 0xc0]
mov r9, r11
mov r15d, dword [rsp + 0xb8]
mov r12, r11
mov r14, qword [rsp + 0x30]
mov rbx, r11
mov r10, qword [rsp + 0x38]
neg r12
shl r9, 4
neg rbx
add r9, rdi
mov rsi, r11
mov rdi, qword [rsp + 0x40]
add rbx, rbx
mov rax, qword [r9 + r11*8]
mov r8d, ebp
and rax, rcx
xor r8d, r15d
mov rcx, qword [r9]
inc ebp
mov rdx, qword [r9 + r12*8]
and rcx, rdi
or rcx, rax
and rdx, r10
mov rax, qword [r9 + rbx*8]
or rdx, rcx
lea ecx, [r8 - 1]
and rax, r14
shr ecx, 0x1f
lea r9, [r9 + 8]
or rax, rdx
not r8d
shr r8d, 0x1f
and ecx, r8d
neg ecx
and ecx, 1
neg rcx
and rcx, rax
or r13, rcx
mov rcx, qword [rsp + 0x28]
sub rsi, 1
jne 0x1402d6c7c
movsxd r15, dword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rbp, r15
mov r10, qword [rsp + 0x20]
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x48]
mov rcx, qword [rsi]
add rdi, r14
mov qword [rsp + 0xb0], rdi
mov qword [rcx + r10*8], r13
inc r10
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], r10
cmp r10, rbp
jl 0x1402d6c2e
mov dword [rsi + 8], r15d
mov eax, 1
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402d70f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x30
call fcn.1403cb200
sub rsp, rax
movsxd rbx, ecx
mov edi, r8d
mov dword [rsp + 0x40], 1
mov rbp, rdx
cmp ebx, 0xffffffff
jne 0x1402d7147
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0x87
jmp 0x1402d72e2
mov edx, edi
mov ecx, ebx
shr edx, 3
and edx, 1
call fcn.14027e310
test eax, eax
je 0x1402d72ee
mov rsi, rbx
mov ebx, 4
test bl, dil
je 0x1402d71df
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], ebx
mov edx, 0xffff
lea r8d, [rbx + 4]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_setsockopt]
test eax, eax
je 0x1402d71df
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
lea r8, [0x140449dd0]
lea ecx, [rbx - 2]
call fcn.1402740c0
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0x89
jmp 0x1402d72e2
test dil, 0x10
je 0x1402d725b
mov edx, 6
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x40]
mov rcx, rsi
lea r8d, [rdx - 5]
call qword [sym.imp.ws2_32.dll_setsockopt]
test eax, eax
je 0x1402d725b
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea r8, [0x140449dd0]
mov ecx, 2
mov edx, eax
call fcn.1402740c0
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0x8a
jmp 0x1402d72e2
mov rcx, rbp
call fcn.14027f2f0
mov rcx, rbp
mov ebx, eax
call fcn.140198ad0
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1402d7305
or ecx, eax
call fcn.1402d7060
test eax, eax
jne 0x1402d72ee
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea r8, [0x140449de8]
mov ecx, 2
mov edx, eax
call fcn.1402740c0
call fcn.140273ec0
lea r8, [0x140449dc0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0x67
xor r8d, r8d
lea ecx, [r8 + 0x20]
call fcn.1402740c0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x1402d72f0
Function at 0x1402f2740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.1403cb200
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x1402f278d
call fcn.140273ec0
lea r8, [0x1404553c0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0xde
xor r8d, r8d
lea ecx, [r8 + 0xd]
call fcn.1402740c0
xor eax, eax
jmp 0x1402f2883
movzx ecx, byte [r8]
and ecx, 0x80
test rdx, rdx
je 0x1402f279e
mov dword [rdx], ecx
mov edi, 1
cmp r9, rdi
jne 0x1402f27c1
test r10, r10
je 0x1402f27b9
mov al, byte [r8]
test ecx, ecx
je 0x1402f27b6
neg al
mov byte [r10], al
mov rax, rdi
jmp 0x1402f2883
mov al, byte [r8]
xor edx, edx
test al, al
jne 0x1402f27d1
mov edx, edi
mov rbx, rdi
jmp 0x1402f2805
xor ebx, ebx
cmp al, 0xff
jne 0x1402f2837
xor r11d, r11d
mov rdx, rdi
cmp rdi, r9
jae 0x1402f27f2
movzx eax, byte [rdx + r8]
add rdx, rdi
or r11d, eax
cmp rdx, r9
jb 0x1402f27e2
xor edx, edx
test r11d, r11d
setne dl
test r11d, r11d
setne bl
test r11d, r11d
je 0x1402f2837
movzx eax, byte [r8 + 1]
and eax, 0x80
cmp ecx, eax
jne 0x1402f2837
call fcn.140273ec0
lea r8, [0x1404553c0]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0xdd
jmp 0x1402f277a
mov eax, edx
sub r9, rax
test r10, r10
je 0x1402f2880
neg ecx
lea rax, [rbx + r8]
sbb r11d, r11d
movzx r11d, r11b
mov edx, r11d
and edx, edi
test r9, r9
je 0x1402f2880
lea r8, [rax + r9]
mov rcx, r8
sub rcx, r8
add rcx, r9
sub r8, rdi
sub rcx, rdi
movzx eax, byte [r8]
xor eax, r11d
add edx, eax
mov byte [r10 + rcx], dl
shr edx, 8
test rcx, rcx
jne 0x1402f2865
mov rax, r9
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1402f2890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r10d, r10d
xor r11b, r11b
mov rbx, r9
mov rdi, rcx
test rcx, rcx
je 0x1402f2908
test rdx, rdx
je 0x1402f2908
mov al, byte [rcx]
lea r9d, [r10 + 1]
test r8d, r8d
jne 0x1402f28c6
cmp al, 0x7f
jbe 0x1402f2900
jmp 0x1402f28cd
mov r11b, 0xff
cmp al, 0x80
jbe 0x1402f28d2
mov r10d, r9d
jmp 0x1402f2900
jne 0x1402f2900
xor r8d, r8d
mov rcx, r9
cmp r9, rdx
jae 0x1402f28ee
movzx eax, byte [rcx + rdi]
add rcx, r9
or r8d, eax
cmp rcx, rdx
jb 0x1402f28df
neg r8d
sbb al, al
and al, r11b
movzx r11d, al
mov r10d, r11d
and r10d, r9d
mov eax, r10d
add rax, rdx
jmp 0x1402f2913
mov r9d, 1
xor edx, edx
mov eax, r9d
test rbx, rbx
je 0x1402f2963
mov rcx, qword [rbx]
test rcx, rcx
je 0x1402f2963
mov esi, r10d
movzx r8d, r11b
add rsi, rcx
and r8d, r9d
mov byte [rcx], r11b
test rdx, rdx
je 0x1402f2960
add rdi, rdx
mov r10, rdi
sub r10, rdi
add r10, rdx
sub rdi, r9
movzx ecx, r11b
sub r10, r9
movzx edx, byte [rdi]
xor edx, ecx
add r8d, edx
mov byte [rsi + r10], r8b
shr r8d, 8
test r10, r10
jne 0x1402f2941
add qword [rbx], rax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x1402f2b40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1403cb200
sub rsp, rax
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.1402f2890
Function at 0x1402f3ae0
Capabilities:
Encode data using base64

Disassembly:
xor r11d, r11d
test rcx, rcx
je 0x1402f3af5
test byte [rcx + 0x5c], 2
lea r10, [0x1404555b0]
jne 0x1402f3afc
lea r10, [0x140455560]
test r9d, r9d
jle 0x1402f3bd6
inc r8
cmp r9d, 3
jb 0x1402f3b65
movzx eax, byte [r8]
movzx ecx, byte [r8 - 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [r8 + 1]
shl rcx, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [rdx], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [rdx + 1], al
mov rax, rcx
shr rax, 6
add rdx, 2
and eax, 0x3f
and ecx, 0x3f
mov al, byte [rax + r10]
mov byte [rdx], al
mov al, byte [rcx + r10]
jmp 0x1402f3bb7
movzx ecx, byte [r8 - 1]
shl ecx, 0x10
cmp r9d, 2
jne 0x1402f3b7c
movzx eax, byte [r8]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [rdx], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [rdx + 1], al
add rdx, 2
cmp r9d, 1
jne 0x1402f3ba8
mov al, 0x3d
jmp 0x1402f3bb3
shr rcx, 6
and ecx, 0x3f
mov al, byte [rcx + r10]
mov byte [rdx], al
mov al, 0x3d
lea rcx, [rdx + 1]
add r11d, 4
add r8, 3
mov byte [rcx], al
sub r9d, 3
lea rdx, [rcx + 1]
test r9d, r9d
jg 0x1402f3b08
mov byte [rdx], 0
mov eax, r11d
ret
Function at 0x1402fac90
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1404f2b48]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x14025c7d9.0
mov r13, rax
test rax, rax
jne 0x1402fad0e
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14024b1d0
mov r9, rax
lea rdx, [0x140456728]
mov r8, r12
mov rcx, r15
call fcn.140267cd0
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1403d8820]
jmp 0x1402faec8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1402fad81
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14024b1d0
mov r9, rax
lea rdx, [0x140456760]
mov r8, r12
mov rcx, r15
call fcn.140267cd0
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1402faeb2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x1402fadca
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14024b1d0
mov r9, rax
lea rdx, [0x140456790]
mov r8, r12
mov rcx, r15
call fcn.140267cd0
mov ebx, 0x4d
jmp 0x1402faea6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1402fadff
mov r8d, 0x100000
lea rdx, [0x1404567c8]
mov rcx, r15
call fcn.140267cd0
mov ebx, 0x4d
jmp 0x1402fae9e
lea rcx, [rdi + 1]
call qword [section._________1]
mov rbp, rax
test rax, rax
jne 0x1402fae19
lea ebx, [rax + 0x1b]
jmp 0x1402fae9e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1402fae78
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1402faeea
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1402fae6f
mov edi, esi
jmp 0x1402fae71
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1402fae30
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1402fa9f0
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1403d8820]
mov rcx, r13
call fcn.1403d8820
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1403cb150
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14024b1d0
mov r9, rax
lea rdx, [0x1404567f8]
mov r8, r12
mov rcx, r15
call fcn.140267cd0
mov ebx, 0x4d
jmp 0x1402fae96
Function at 0x140306f70
Capabilities:
Create new key via cryptacquirecontext

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
mov eax, 0x30
call fcn.1403cb200
sub rsp, rax
mov r15, r8
mov r12, rdx
mov rbp, rcx
lea rdx, [0x1404c05a8]
xor r8d, r8d
lea ecx, [rax - 0x10]
mov r14d, r9d
call fcn.14026ec50
mov rsi, rax
test rax, rax
jne 0x140306fc3
xor eax, eax
jmp 0x140307104
cmp r14d, 1
jne 0x140306ff0
cmp dword [0x140545bd0], 0
je 0x140306ff0
lea rdx, [0x140458580]
mov rcx, r15
call fcn.1403e5ff0
test eax, eax
jne 0x140306ff0
lea r15, [0x140458510]
lea r14d, [rax + 0x18]
test rbp, rbp
je 0x140307056
cmp dword [rbp], 2
jl 0x140307056
cmp qword [rbp + 8], 0
je 0x140307056
mov rcx, r12
call fcn.1403088a0
mov rcx, r15
mov rdi, rax
call fcn.1403088a0
mov r9, rax
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, [0x140458d40]
mov rcx, rbp
mov rbx, rax
call fcn.140305de0
xor r8d, r8d
lea rdx, [0x1404c05a8]
mov rcx, rbx
call fcn.14026eca0
xor r8d, r8d
lea rdx, [0x1404c05a8]
mov rcx, rdi
call fcn.14026eca0
mov eax, dword [rbp + 0x38]
lea rdi, [rsi + 8]
shr eax, 0xc
mov r9d, r14d
and eax, 0x20
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], eax
mov rcx, rdi
call qword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1403070a0
xor r9d, r9d
lea r8, [0x1404c05a8]
lea edx, [rax + 0x68]
xor ecx, ecx
call fcn.140305e70
call qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
call fcn.1403060a0
jmp 0x1403070e3
mov ebx, dword [rsp + 0x70]
lea r8, [rsi + 0x10]
mov rcx, qword [rdi]
mov edx, ebx
call qword [sym.imp.advapi32.dll_CryptGetUserKey]
test eax, eax
jne 0x1403070fa
xor r9d, r9d
lea r8, [0x1404c05a8]
lea edx, [rax + 0x75]
xor ecx, ecx
call fcn.140305e70
call qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
call fcn.1403060a0
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
xor r8d, r8d
lea rdx, [0x1404c05a8]
mov rcx, rsi
call fcn.14026eca0
jmp 0x140306fbc
and qword [rsi], 0
mov rax, rsi
mov dword [rsi + 0x18], ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret