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

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001baa2
mov al, 1
jmp 0x14001bb02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bab3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bb00
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019be0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bb00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bb00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bb02
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1409de4d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409de657
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 0x1409de501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409de4e7
add dl, dl
jne 0x1409de50e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409de56e
xor eax, eax
add dl, dl
jne 0x1409de51d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409de625
add dl, dl
jne 0x1409de52e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de53b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409de562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409de4f6
mov eax, 1
add dl, dl
jne 0x1409de57e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de58b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409de573
sub eax, ebx
mov ebx, 1
jne 0x1409de5c4
mov ecx, 1
add dl, dl
jne 0x1409de5a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409de5b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409de59b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409de4f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409de5e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409de5ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409de5d5
cmp eax, 0x7d00
jae 0x1409de613
cmp eax, 0x500
jb 0x1409de60e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409de4f6
cmp eax, 0x7f
ja 0x1409de616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409de4f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409de64a
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 0x1409de4f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400413a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
cmp rbx, 0x20
jb 0x1400414e6
mov qword [rsp + 0x30], rsi
lea r11, [rcx - 0x1f]
mov qword [rsp + 0x38], rdi
add r11, rbx
movabs rdi, 0xc2b2ae3d27d4eb4f
xor r9d, r9d
mov r8, rdi
movabs rcx, 0x60ea27eeadc0b5d6
movabs rsi, 0x9e3779b185ebca87
movabs r10, 0x61c8864e7a143579
nop word [rax + rax]
mov rax, qword [rdx]
imul rax, rdi
add rcx, rax
mov rax, qword [rdx + 8]
imul rax, rdi
rol rcx, 0x1f
add r8, rax
mov rax, qword [rdx + 0x10]
imul rax, rdi
imul rcx, rsi
add r9, rax
rol r8, 0x1f
mov rax, qword [rdx + 0x18]
add rdx, 0x20
imul rax, rdi
imul r8, rsi
add r10, rax
rol r9, 0x1f
rol r10, 0x1f
imul r10, rsi
imul r9, rsi
cmp rdx, r11
jb 0x140041400
mov r11, r10
mov rax, r9
rol r11, 0x12
rol rax, 0xc
add r11, rax
mov rax, r8
rol rax, 7
add r11, rax
mov rax, rcx
imul rcx, rdi
imul r8, rdi
imul r9, rdi
imul r10, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 1
add r11, rax
rol rcx, 0x1f
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
imul rcx, rsi
imul r8, rsi
xor r11, rcx
rol r9, 0x1f
imul r11, rsi
imul r9, rsi
sub r11, rax
rol r10, 0x1f
xor r11, r8
imul r11, rsi
imul r10, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
imul r11, rsi
mov rsi, qword [rsp + 0x30]
sub r11, rax
jmp 0x1400414f0
movabs r11, 0x27d4eb2f165667c5
lea rcx, [r11 + rbx]
mov r9d, 1
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400412a0
Function at 0x1400416e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rbx, qword [rcx]
mov rdi, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rbx, 0x20
jb 0x1400417c8
mov r8, qword [rcx + 8]
mov r10, qword [rcx + 0x20]
mov rdx, r8
mov r9, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov rax, r9
rol rax, 0xc
mov r11, rcx
rol r11, 7
add r11, rax
rol r8, 1
mov rax, r10
imul rdx, rbp
imul rcx, rbp
imul r9, rbp
imul r10, rbp
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
add r11, r8
rol rcx, 0x1f
imul rdx, rsi
imul rcx, rsi
rol r9, 0x1f
movabs rax, 0x85ebca77c2b2ae63
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r9, rsi
imul r10, rsi
sub r11, r15
xor r11, rcx
imul r11, rsi
sub r11, r15
xor r11, r9
imul r11, rsi
sub r11, r15
xor r11, r10
imul r11, rsi
add rax, r11
jmp 0x1400417cf
mov rax, qword [rcx + 0x18]
add rax, r14
add rax, rbx
lea r8, [rdi + 0x28]
and ebx, 0x1f
cmp rbx, 8
jb 0x140041817
mov edx, ebx
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add rbx, rcx
nop dword [rax]
mov rcx, qword [r8]
add r8, 8
imul rcx, rbp
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
sub rdx, 1
jne 0x1400417f0
movabs r9, 0x165667b19e3779f9
cmp rbx, 4
jb 0x140041844
mov edx, dword [r8]
add r8, 4
imul rdx, rsi
xor rax, rdx
rol rax, 0x17
imul rax, rbp
add rax, r9
sub rbx, 4
test rbx, rbx
je 0x14004186d
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
sub rbx, 1
jne 0x140041850
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret
Function at 0x140065c30
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401fb0a0
sub rsp, rax
mov rbx, r8
call fcn.140065e90
test eax, eax
js 0x140065e84
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x140065cbd
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140065c70
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x140065e82
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140000000]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x23e2a0]
movzx eax, byte [rdi + rax*4 + 0x23cea0]
xor r8d, dword [rdi + rax*4 + 0x23daa0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x23e6a0]
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x23dea0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x23cea0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x23dea0]
movzx eax, byte [rdi + rcx*4 + 0x23cea0]
xor r8d, dword [rdi + rax*4 + 0x23e2a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x23daa0]
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x23e6a0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x23cea0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x23dea0]
movzx eax, byte [rdi + rcx*4 + 0x23cea0]
xor r8d, dword [rdi + rax*4 + 0x23e2a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x23daa0]
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x23e6a0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x23cea0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x23dea0]
movzx eax, byte [rdi + rcx*4 + 0x23cea0]
xor r8d, dword [rdi + rax*4 + 0x23e2a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x23daa0]
movzx ecx, byte [rdi + rax*4 + 0x23cea0]
xor r8d, dword [rdi + rcx*4 + 0x23e6a0]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140065ce0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140067c20
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401fb0a0
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 0x140071bd0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140071bf7
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x140071be0
movzx eax, r9b
ret

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

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14007d5ac
movzx ecx, byte [rcx]
test cl, cl
je 0x14007d5ac
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 0x14007d560
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1401fb0a0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14007d643
movzx eax, byte [rcx]
test al, al
je 0x14007d643
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.140070ab0
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 0x14007d5e0
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 0x140080e00
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140080f62
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 0x140080f1e
cmp ebx, 2
jb 0x140080f1e
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 0x140080eae
cmp rdi, r8
jae 0x140080f19
cmp r9, r10
ja 0x140080eb8
cmp rdi, r10
jae 0x140080f19
cmp r9, r11
ja 0x140080ec2
cmp rdi, r11
jae 0x140080f19
cmp r8, r10
ja 0x140080ecc
cmp rax, r10
jae 0x140080f19
cmp r8, r11
ja 0x140080ed6
cmp rax, r11
jae 0x140080f19
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 0x140080ee0
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x140080f5d
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 0x140080f30
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14008ac20
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1401fb0a0
sub rsp, rax
cmp dword [0x1404285a0], 0
jne 0x14008acda
xor edx, edx
mov dword [0x1404285a0], 1
mov r8d, 0x198
lea rcx, [0x1404285b0]
call fcn.14023a460
mov ecx, 0x202
lea rdx, [0x1404285b0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14008acda
call fcn.140069570
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140069690
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.140069790
call fcn.140069570
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140069690
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.140069790
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x14008acf0
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401fb0a0
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 0x14008ad52
call fcn.140069570
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140069690
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.140069790
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x14008ad60
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1401fb0a0
sub rsp, rax
mov rax, qword [0x140423a00]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x14008adf2
test rbx, rbx
jne 0x14008ad9a
lea eax, [r8 + 1]
jmp 0x14008adf7
xor ecx, ecx
call fcn.14020a088
mov rcx, rax
cmp rbx, rax
jge 0x14008adad
xor eax, eax
jmp 0x14008adf7
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 0x14008adf7
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401fad50
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008bb30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1401fb0a0
sub rsp, rax
mov rax, qword [0x140423a00]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140428750], 0
lea rax, [0x14008b4b0]
mov qword [rsp + 0x28], rax
lea rbx, [0x14025ce40]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x14008b8f0]
mov qword [rsp + 0x38], rax
lea rax, [0x14025ce60]
mov qword [rsp + 0x40], rax
lea rax, [0x14008b450]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x14008bd09
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14008bcff
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140213bb0
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140213c10
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14008bc2a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14008bc8a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140213bb0
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140213c10
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14008bcf7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14008bc8a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14008bcf7
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 0x14008bce6
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x14008bca0
mov rax, qword [rsp + 0x28]
mov qword [0x1404218d8], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1404218e8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1404218f8], rax
jmp 0x14008bcef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140428750], 1
mov rax, rbp
lea rcx, [0x1404218d0]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401fad50
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x14008bd40
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.1401fb0a0
sub rsp, rax
mov rax, qword [0x140423a00]
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.14023a460
xor edx, edx
mov byte [rsp + 0x450], bpl
mov r8d, 0x400
lea rcx, [rsp + 0x451]
call fcn.14023a460
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.140213c7c
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 0x14008bf4e
cmp word [rax + 0x10], 2
jne 0x14008be77
cmp word [rax + 0x12], 4
jne 0x14008be77
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x14008be72
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.14008bfb0
mov qword [rsi], rax
test rax, rax
je 0x14008bf47
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14008be40
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.140213c7c
cmp qword [r13], rbp
jne 0x14008bef0
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x14008be95
test rax, rax
je 0x14008bf68
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14008bec3
inc rax
test ecx, ecx
jne 0x14008beb0
test edx, edx
je 0x14008bf68
inc r12d
cmp r12d, 0x10
je 0x14008bf68
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x14008be00
cmp dword [rsp + 0x8c0], ebp
je 0x14008bf7b
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x14008bf00
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.140209740
mov rbx, rax
test rax, rax
jne 0x14008bf26
mov rbx, rbp
jmp 0x14008bf35
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.140213bb0
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x14008bf7b
mov ebp, 8
jmp 0x14008bf7b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x14008bf76
sub ecx, 1
je 0x14008bf6f
sub ecx, 1
jne 0x14008bf76
mov ebp, 0x2afb
jmp 0x14008bf7b
mov ebp, 0x2afa
jmp 0x14008bf7b
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1401fad50
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 0x140094b70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
mov eax, 0x40
call fcn.1401fb0a0
sub rsp, rax
mov rsi, qword [rcx + 0x78]
mov rbx, r8
mov r8d, dword [rsi + 0x70]
lea r13, [rsi + 0x70]
mov qword [rsp + 0x38], r13
mov rbp, r9
mov r14, rdx
test r8d, r8d
je 0x140094bf6
test r9, r9
je 0x140094bd2
nop dword [rax]
cmp r8d, 0x40
jae 0x140094bd2
mov eax, r8d
inc r8d
movzx ecx, byte [rax + rsi + 0x30]
xor cl, byte [rbx]
inc rbx
mov byte [r14], cl
inc r14
sub rbp, 1
jne 0x140094bb0
mov dword [r13], r8d
test rbp, rbp
je 0x140094d29
cmp r8d, 0x40
jne 0x140094bf6
mov dword [r13], 0
add dword [rsi + 0x20], 1
jne 0x140094bf6
inc dword [rsi + 0x24]
mov ecx, dword [rsi + 0x20]
lea rax, [rsi + 0x20]
mov qword [rsp + 0x80], r12
mov r12d, ebp
and r12d, 0x3f
mov qword [rsp + 0x88], r15
mov r15d, r12d
sub rbp, r15
mov dword [rsp + 0x30], r12d
cmp rbp, 0x40
jb 0x140094cb6
mov qword [rsp + 0x78], rdi
lea r13, [rsi + 0x20]
mov r12d, 0x10000000
mov r15d, ecx
nop dword [rax + rax]
mov rdx, rbp
mov qword [rsp + 0x20], r13
shr rdx, 6
mov r9, rsi
cmp rdx, r12
cmova rdx, r12
mov rdi, rdx
lea eax, [rdx + r15]
xor r15d, r15d
mov ecx, eax
cmp rcx, rdx
cmovae r15d, eax
sub rdi, rcx
cmp rcx, rdx
mov rcx, r14
cmovae rdi, rdx
mov rdx, rbx
shl rdi, 6
mov r8, rdi
call fcn.1400ce9a0
sub rbp, rdi
mov dword [r13], r15d
add rbx, rdi
add r14, rdi
test r15d, r15d
jne 0x140094c9a
inc dword [rsi + 0x24]
cmp rbp, 0x40
jae 0x140094c40
mov r12d, dword [rsp + 0x30]
lea rax, [rsi + 0x20]
mov rdi, qword [rsp + 0x78]
mov r15d, r12d
mov r13, qword [rsp + 0x38]
test r12d, r12d
je 0x140094d19
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov r9, rsi
movups xmmword [rcx], xmm0
mov r8d, 0x40
mov rdx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
call fcn.1400ce9a0
test r12d, r12d
je 0x140094d15
sub rsi, rbx
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 0x30]
xor al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub r15, 1
jne 0x140094d00
mov dword [r13], r12d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret