joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401da890
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov rsi, r8
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rdx + 8]
xor edi, edi
test rbx, rbx
je 0x1401da945
cmp qword [rbx], rdi
je 0x1401da937
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1401da8e6
mov rax, 0xffffffffffffffff
jmp 0x1401da96e
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401da93c
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
mov rcx, rbp
call rax
jmp 0x1401da96e
cmp dword [rbx + 8], edi
jne 0x1401da945
mov rax, 0xffffffffffffffff
jmp 0x1401da96e
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1401da97b
call fcn.14005ea58
jmp 0x1401da980
mov qword [r14], rax
mov eax, edi
test eax, eax
js 0x1401daa72
lea rdx, [rsp + 0x7c]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x78], eax
cmp eax, 0xffffffff
jne 0x1401da9ac
call fcn.14005ea58
test eax, eax
js 0x1401daa72
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1401daa6d
cmp rcx, r15
ja 0x1401daa66
mov rbx, qword [r14]
lea rdx, [rsp + 0x7c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x78], eax
mov r9, qword [rsp + 0x78]
shr r9, 0x20
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1401daa10
call fcn.14005ea58
mov ebx, eax
jmp 0x1401daa72
mov rax, qword [rsp + 0x78]
mov qword [rsi + 8], rax
mov dword [rsi + 0x20], 4
mov qword [rsi + 0x18], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rsi], rax
test rax, rax
jne 0x1401daa60
call fcn.14005ea58
mov ebx, eax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], rdi
mov eax, ebx
jmp 0x1401daa72
mov ebx, edi
mov eax, ebx
jmp 0x1401daa72
mov eax, 0x800700df
jmp 0x1401daa72
mov eax, 0x800703ee
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1401dab20
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x1401dab40
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1401dab70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x1401dab98
lea r9, [rsp + 0x50]
jmp 0x1401daba2
cmp edx, 1
jne 0x1401dabeb
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x1401dac3e
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
ret

Function at 0x1401dac80
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1405a5840]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r8d, edx
mov qword [rsp + 0x258], rcx
mov eax, 0x10624dd3
mov qword [rsp + 0x48], rcx
mul edx
mov rbx, rcx
mov dword [rsp + 0x250], 1
shr edx, 6
lea r9, [rsp + 0x40]
imul eax, edx, 0x3e8
xor ecx, ecx
mov dword [rsp + 0x38], edx
xor edx, edx
mov dword [rsp + 0x40], 1
sub r8d, eax
imul eax, r8d, 0x3e8
lea r8, [rsp + 0x250]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1401dad11
jne 0x1401dad5e
mov eax, 0x5b4
jmp 0x1401dad7f
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, rbx
test eax, eax
je 0x1401dad70
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401dad5e
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1401dad5e
cmp eax, 0xffffffff
jne 0x1401dad7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x22a
cmove eax, ecx
jmp 0x1401dad7f
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401d80d0
add rsp, 0x470
pop rbx
ret
Function at 0x1401e02b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov r9, rcx
mov r10, rdx
mov rdx, qword [r8 + 0x1b8]
mov ecx, 0x3020100
mov dword [r8 + 0x1c4], ecx
mov r11, r8
mov eax, 1
add ecx, 0x4040404
mov dword [r8 + rax*4 + 0x1c4], ecx
inc rax
cmp rax, rdx
jbe 0x1401e02d1
xor r8d, r8d
test r10, r10
je 0x1401e0333
nop
movzx eax, byte [r9]
or r8, rax
movzx ecx, byte [rax + r11 + 0x1c4]
mov byte [r9], cl
mov byte [r11 + 0x1c3], cl
nop word [rax + rax]
movzx ecx, byte [rax + r11 + 0x1c3]
mov rdx, rax
sub rax, 1
mov byte [rdx + r11 + 0x1c4], cl
jns 0x1401e0310
inc r9
sub r10, 1
jne 0x1401e02f0
shr r8, 2
mov qword [r11 + 0x1b8], r8
ret
Function at 0x1401eab20
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1401eab8c
movzx ecx, byte [rcx]
test cl, cl
je 0x1401eab8c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1401eab40
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x1401eab90
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1401d84a0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1401eac23
movzx eax, byte [rcx]
test al, al
je 0x1401eac23
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1401fefc0
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x1401eabc0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1401fb660
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401d84a0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1401fd060
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1401d84a0
sub rsp, rax
cmp dword [0x1405b8c90], 0
jne 0x1401fd11a
xor edx, edx
mov dword [0x1405b8c90], 1
mov r8d, 0x198
lea rcx, [0x1405b8ca0]
call fcn.1403df320
mov ecx, 0x202
lea rdx, [0x1405b8ca0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1401fd11a
call fcn.1401faf30
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1401fb050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1401fb150
call fcn.1401faf30
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1401fb050
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1401fb150
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1401fd130
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401d84a0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x1401fd192
call fcn.1401faf30
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1401fb050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1401fb150
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x1401fd1a0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1401d84a0
sub rsp, rax
mov rax, qword [0x1405a5840]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x1401fd232
test rbx, rbx
jne 0x1401fd1da
lea eax, [r8 + 1]
jmp 0x1401fd237
xor ecx, ecx
call fcn.1403cd344
mov rcx, rax
cmp rbx, rax
jge 0x1401fd1ed
xor eax, eax
jmp 0x1401fd237
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
jmp 0x1401fd237
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401d80d0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401fdf60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1401d84a0
sub rsp, rax
mov rax, qword [0x1405a5840]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1405b8e40], 0
lea rax, [0x1401fd8e0]
mov qword [rsp + 0x28], rax
lea rbx, [0x1404a6d90]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x1401fdd20]
mov qword [rsp + 0x38], rax
lea rax, [0x1404a6db0]
mov qword [rsp + 0x40], rax
lea rax, [0x1401fd880]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1401fe139
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401fe12f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403ceb24
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403ceb84
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1401fe05a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1401fe0ba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403ceb24
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1403ceb84
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1401fe127
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1401fe0ba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1401fe127
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1401fe116
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1401fe0d0
mov rax, qword [rsp + 0x28]
mov qword [0x1405a71f0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1405a7200], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1405a7210], rax
jmp 0x1401fe11f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1405b8e40], 1
mov rax, rbp
lea rcx, [0x1405a71e8]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401d80d0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x1401fe170
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x870
call fcn.1401d84a0
sub rsp, rax
mov rax, qword [0x1405a5840]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor ebp, ebp
mov dword [rsp + 0x28], edx
mov r8d, 0x400
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x41]
mov byte [rsp + 0x40], bpl
mov r12d, ebp
mov word [rsp + 0x20], r9w
call fcn.1403df320
xor edx, edx
mov byte [rsp + 0x450], bpl
mov r8d, 0x400
lea rcx, [rsp + 0x451]
call fcn.1403df320
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
lea edx, [r9 + 1]
call fcn.1403cebf0
lea r15, [rbp - 1]
nop dword [rax]
mov rcx, r14
mov qword [r13], rbp
mov rsi, r13
mov byte [rdi], bpl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x1401fe37e
cmp word [rax + 0x10], 2
jne 0x1401fe2a7
cmp word [rax + 0x12], 4
jne 0x1401fe2a7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x1401fe2a2
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.1401fe3e0
mov qword [rsi], rax
test rax, rax
je 0x1401fe377
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x1401fe270
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.1403cebf0
cmp qword [r13], rbp
jne 0x1401fe320
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x1401fe2c5
test rax, rax
je 0x1401fe398
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1401fe2f3
inc rax
test ecx, ecx
jne 0x1401fe2e0
test edx, edx
je 0x1401fe398
inc r12d
cmp r12d, 0x10
je 0x1401fe398
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x1401fe230
cmp dword [rsp + 0x8c0], ebp
je 0x1401fe3ab
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x1401fe330
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.1403c77d4
mov rbx, rax
test rax, rax
jne 0x1401fe356
mov rbx, rbp
jmp 0x1401fe365
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.1403ceb24
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x1401fe3ab
mov ebp, 8
jmp 0x1401fe3ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x1401fe3a6
sub ecx, 1
je 0x1401fe39f
sub ecx, 1
jne 0x1401fe3a6
mov ebp, 0x2afb
jmp 0x1401fe3ab
mov ebp, 0x2afa
jmp 0x1401fe3ab
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1401d80d0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1402023e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140202542
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov ecx, dword [rdx + 0x10]
movq xmm4, rsi
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, dword [r8 + 0x14]
xor rcx, rdx
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x1402024fe
cmp ebx, 2
jb 0x1402024fe
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x14020248e
cmp rdi, r8
jae 0x1402024f9
cmp r9, r10
ja 0x140202498
cmp rdi, r10
jae 0x1402024f9
cmp r9, r11
ja 0x1402024a2
cmp rdi, r11
jae 0x1402024f9
cmp r8, r10
ja 0x1402024ac
cmp rax, r10
jae 0x1402024f9
cmp r8, r11
ja 0x1402024b6
cmp rax, r11
jae 0x1402024f9
mov eax, ebx
and eax, 0xfffffffe
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
xorps xmm3, xmm1
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x1402024c0
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x14020253d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x140202510
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14023a7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x14023a80f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x14023a80f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x14023a7f4
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x14023a83a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x14023a83a
cmp byte [rcx], 0xff
jne 0x14023a83a
dec edx
dec rcx
cmp rcx, r11
jns 0x14023a824
cmp r10d, edx
jl case.0x14023a893.2
jle 0x14023a858
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x14023a893.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0x23a908]
mov ecx, dword [r11 + rax*4 + 0x23a8e8]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x14023a8c4
mov eax, 6
jmp 0x14023a8c4
mov eax, 5
jmp 0x14023a8c4
mov eax, 4
jmp 0x14023a8c4
mov eax, 3
jmp 0x14023a8c4
mov eax, 2
jmp 0x14023a8c4
mov eax, 1
test dl, r9b
jne case.0x14023a893.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x14023a8da
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x14023b7c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1401d84a0
sub rsp, rax
mov r11, rcx
test r9, r9
jne 0x14023b80a
call fcn.1401faf30
lea r8, str.c2i_ibuf
mov edx, LoadRegTypeLib
lea rcx, str.crypto_asn1_a_int.c
call fcn.1401fb050
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.1401fb150
xor eax, eax
add rsp, 0x28
ret
movzx r10d, byte [r8]
and r10d, 0x80
test rdx, rdx
je 0x14023b81d
mov dword [rdx], r10d
cmp r9, 1
jne 0x14023b83f
test r11, r11
je 0x14023b835
movzx eax, byte [r8]
test r10d, r10d
je 0x14023b833
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x14023b851
mov eax, 1
jmp 0x14023b90a
xor eax, eax
cmp cl, 0xff
jne 0x14023b94f
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x14023b8ff
cmp rcx, 8
jb 0x14023b8f0
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop word [rax + rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [r8 + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14023b890
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14023b8ff
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14023b8f0
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x14023b94f
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r10d, ecx
jne 0x14023b94f
call fcn.1401faf30
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.1401fb050
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.1401fb150
xor eax, eax
add rsp, 0x28
ret
sub r9, rax
test r11, r11
je 0x14023b99d
add rax, r8
mov rdx, r9
neg r10d
sbb r10d, r10d
movzx r10d, r10b
mov ecx, r10d
and ecx, 1
test r9, r9
je 0x14023b99d
lea r8, [rax + r9]
mov rax, r9
sub rax, r9
add r11, rax
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, r10d
add ecx, eax
mov byte [r11 + rdx], cl
shr ecx, 8
test rdx, rdx
jne 0x14023b980
mov rax, r9
add rsp, 0x28
ret
Function at 0x14023b9b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rdi, r9
mov rbx, rcx
test rcx, rcx
je 0x14023bab1
test r10, r10
je 0x14023bab1
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14023b9f9
cmp al, 0x7f
jbe 0x14023baaa
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14023bab9
mov r11b, 0xff
cmp al, 0x80
jbe 0x14023ba0f
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14023bab9
jne 0x14023baaa
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14023ba9f
cmp rcx, 8
jb 0x14023ba91
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [rbx + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14023ba40
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14023ba9f
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14023ba91
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14023bab9
mov eax, 1
mov r10, rdx
test rdi, rdi
je 0x14023bb15
mov rcx, qword [r9]
test rcx, rcx
je 0x14023bb15
mov edx, edx
mov r8d, r11d
add rdx, rcx
mov byte [rcx], r11b
and r8d, 1
test r10, r10
je 0x14023bb12
lea r9, [r10 + rbx]
mov rbx, r10
sub rbx, r10
add rbx, rdx
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14023baf0
add qword [rdi], rax
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14023bd20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1401d84a0
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.14023b9b0