joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061ae0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140087990]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140061b3e
cmp word [rdx], r12w
jne 0x140061b3e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140061b44
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140061c9f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140061c7a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140061b7d
mov rcx, r9
jmp 0x140061ba0
cmp r9, rdx
jae 0x140061bb7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140061b61
jmp 0x140061c9f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140061c74
cmp dword [rsp + 0x80], edi
je 0x140061c74
mov rdx, r14
lea r11, [0x140087990]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140061c4d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140061c20
mov word [rbx], r12w
jmp 0x140061c9b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140061c29
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140061c9b
cmp word [rsp + 0x70], r12w
jne 0x140061c5a
cmp rbx, rsi
je 0x140061c1a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400617ac
cmp word [rsp + 0x70], r12w
je 0x140061c9f
mov word [rbx], r13w
jmp 0x140061c9b
lea r11, [0x140087990]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140061c97
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140061c9f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140064b18
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003f804
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140064ba2
cmp byte [rbp - 0x21], r15b
je 0x140064b9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140064bd8
call fcn.14004f344
test eax, eax
jne 0x140064bc4
cmp byte [rbp - 0x21], r15b
je 0x140064bbc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140064bd8
cmp byte [rbp - 0x21], r15b
je 0x140064bd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140053bc4
test eax, eax
jne 0x140064c78
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003f804
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140064c17
cmp byte [rbp - 0x21], r15b
je 0x140064c4c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140064c4c
call fcn.14004f344
test eax, eax
jne 0x140064c38
cmp byte [rbp - 0x21], r15b
je 0x140064c31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140064c4c
cmp byte [rbp - 0x21], r15b
je 0x140064c49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140053bc4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140064c78
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140064c7b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140064c89
mov rcx, rdi
call fcn.14004a72c
cmp byte [rbp + 0x3f], r15b
je 0x140064c98
mov rcx, qword [rbp + 0x27]
call fcn.14004a72c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140067414
Capabilities:
Clear file content

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
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400617ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400617ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140067564
cmp rax, 0xffffffffffffffff
je 0x140067564
xor edi, edi
test rbp, rbp
jle 0x14006750f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004e5f8
mov rbx, rax
test rax, rax
jne 0x14006749c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140067505
mov edx, 0x8000
mov ecx, r14d
call fcn.140044a0c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140051ec0
cmp eax, 0xffffffff
je 0x1400674e5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400674ac
mov edx, r15d
mov ecx, r14d
call fcn.140044a0c
jmp 0x140067505
cmp byte [rsi + 0x38], dil
je 0x1400674fc
cmp dword [rsi + 0x34], 5
jne 0x1400674fc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140067505
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004a72c
jmp 0x140067578
jns 0x140067578
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400617ac
cmp rax, 0xffffffffffffffff
jne 0x140067530
cmp byte [rsi + 0x30], dil
je 0x140067578
mov edi, dword [rsi + 0x2c]
jmp 0x140067578
mov ecx, r14d
call fcn.140057f1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140067578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140067578
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140067571
mov eax, dword [rsi + 0x2c]
jmp 0x140067576
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400617ac
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002d528]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x14002d528]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002d528]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031578], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025980]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002d550]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x1401a3e60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140516080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
xor esi, esi
call fcn.1401a1220
call fcn.1401a10e0
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401a3eca
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1401a3ece
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1401a3f1f
call fcn.1401a1220
call fcn.1401a10e0
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1401a3f06
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1401a3ee0
jmp 0x1401a3f0a
mov esi, dword [rsp + 0x28]
call fcn.1401a1220
call fcn.1401a10e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401a92a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1401a3f50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140516080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r9
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rdi, r8
mov dword [rsp + 0x40], 0
mov rcx, rdx
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a92a0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401a3ff0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rdi, r9
mov rbp, r8
mov r12, rdx
call fcn.1401a1220
movsxd rax, dword [rsp + 0x60]
add rax, 0xfffffffffffffc00
add rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1401a4118
mov r8, rdi
mov qword [rsp + 0x48], r15
mov rdx, rbp
mov rcx, rsi
call fcn.1403129d0
xor r15d, r15d
mov r9d, 0xc2cb4c5e
mov r10d, r15d
test rdi, rdi
je 0x1401a409a
nop word [rax + rax]
movzx r8d, byte [r10 + rsi]
mov edx, r9d
movzx ecx, r10b
shl r9d, 8
and cl, 3
or r9d, r8d
shl cl, 3
shr edx, cl
xor dl, r8b
mov byte [r10 + rsi], dl
inc r10
cmp r10, rdi
jb 0x1401a4070
cmp byte [rsp + 0x68], r15b
je 0x1401a40ec
lea rbp, [rdi - 7]
mov rbx, r15
test rbp, rbp
je 0x1401a40e2
mov qword [rsp + 0x40], r14
lea r14, [rbx + rsi]
mov r8d, 7
mov rcx, r14
lea rdx, str.OCWERSa
call fcn.14031dbd0
test eax, eax
je 0x1401a40d9
inc rbx
cmp rbx, rbp
jb 0x1401a40b2
jmp 0x1401a40dd
mov r15d, dword [r14 + 7]
mov r14, qword [rsp + 0x40]
test r15d, r15d
mov eax, r15d
cmovne rdi, rax
mov r9, rdi
mov r8, rsi
mov rdx, r12
call fcn.1401a3f50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x48]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1401a41e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140516080]
xor rax, rsp
mov qword [rsp + 0x90], rax
movsxd r15, dword [rsp + 0xf0]
xor esi, esi
mov ebp, esi
mov r14d, esi
mov rdi, r9
mov rbx, rdx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], sil
jne 0x1401a4221
test rax, rax
je 0x1401a426e
mov rcx, rsi
movsxd rax, r14d
lea r8, [rsp + 0x20]
add r8, rax
lea rdx, str._2hhx
add rcx, rbx
call fcn.1401a1460
add ebp, 2
mov rax, 0xffffffffffffffff
inc r14d
movsxd rcx, ebp
nop dword [rax]
inc rax
cmp byte [rbx + rax], sil
jne 0x1401a4260
cmp rcx, rax
jb 0x1401a4232
lea rbp, [0x1403e97c0]
test r15d, r15d
jle 0x1401a439f
cmp r15d, 8
jb 0x1401a439f
lea rcx, [r15 - 1]
lea rax, [rsp + 0x20]
add rax, rcx
lea rdx, [rcx + rdi]
cmp rdi, rax
ja 0x1401a42ab
lea rax, [rsp + 0x20]
cmp rdx, rax
jae 0x1401a439f
lea rax, [rcx + rbp]
cmp rdi, rax
ja 0x1401a42bd
cmp rdx, rbp
jae 0x1401a439f
cmp r15d, 0x40
jb 0x1401a436f
mov eax, r15d
and eax, 0xffffffc0
mov rdx, rbp
movsxd rbx, eax
lea r8, [rsp + 0x20]
sub rdx, rdi
lea r9, [0x1403e97d0]
sub r8, rdi
lea r10, [rsp + 0x30]
sub r9, rdi
sub r10, rdi
lea rcx, [rdi + 0x20]
mov r11, 0xffffffffffffffe0
sub r11, rdi
nop
movdqu xmm0, xmmword [rdx + rcx - 0x20]
add esi, 0x40
movdqu xmm1, xmmword [r8 + rcx - 0x20]
movdqu xmm2, xmmword [r10 + rcx - 0x20]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
lea rax, [r11 + rcx]
movdqu xmm0, xmmword [r9 + rcx - 0x60]
movdqu xmmword [rcx - 0x60], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmm1, xmmword [r8 + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [r9 + rcx - 0x40]
movdqu xmm2, xmmword [r10 + rcx - 0x40]
movdqu xmmword [rcx - 0x40], xmm1
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x30], xmm2
cmp rax, rbx
jl 0x1401a4300
mov eax, r15d
and al, 0x3f
cmp al, 8
jb 0x1401a439f
mov eax, r15d
and eax, 0xfffffff8
movsxd rcx, esi
movsxd rdx, eax
nop dword [rax + rax]
movq xmm1, qword [rcx + rbp]
add esi, 8
movq xmm0, qword [rsp + rcx + 0x20]
xorps xmm1, xmm0
movq qword [rcx + rdi], xmm1
add rcx, 8
cmp rcx, rdx
jl 0x1401a4380
movsxd rcx, esi
cmp rcx, r15
jge 0x1401a43c3
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
xor al, byte [rsp + rcx + 0x20]
mov byte [rcx + rdi], al
inc rcx
cmp rcx, r15
jl 0x1401a43b0
mov byte [r15 + rdi], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401a92a0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401a4950
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1401a4972
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1401a49ec
mov rdi, r14
mov rcx, rbx
call fcn.1401a5f00
test rax, rax
jle 0x1401a49c4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1403129d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1401a49dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_getservbyport]
cmp eax, 0xffffffff
je 0x1401a49e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1401a4986
sub r14, rdi
jmp 0x1401a4acf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1401a4a03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1401a4a05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1401a4a37
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1403129d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1401a4acc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1401a4a72
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1401a4aad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14031ec88
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1401a4acc
cmp rbp, rax
ja 0x1401a4a80
test rbp, rbp
je 0x1401a4acc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14031ec88
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1401aa038
Capabilities:
Parse pe header

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

Function at 0x1401b2580
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401a9c70
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 0x1401c34a0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1401a9c70
sub rsp, rax
mov rax, qword [0x140516080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1401c34d7
mov eax, 0xfffffffe
jmp 0x1401c35f7
test rbx, rbx
je 0x1401c35f5
cmp r8d, 0x30
jne 0x1401c35f5
mov r8d, gethostbyname
mov rdx, rdi
call fcn.1401c3380
test eax, eax
jle 0x1401c35f5
movdqa xmm0, xmmword [str.6666666666666666_]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1401c3380
test eax, eax
je 0x1401c35f5
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1401c3180
test eax, eax
je 0x1401c35f5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov rdx, rdi
mov rcx, rbx
movups xmmword [rbx + 0x24], xmm0
lea r8d, [rax + 0x30]
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.1401c3380
test eax, eax
jle 0x1401c35f5
movdqa xmm0, xmmword [0x1403624d0]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1401c3380
test eax, eax
je 0x1401c35f5
mov r8d, shutdown
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1401c3380
test eax, eax
je 0x1401c35f5
mov edx, shutdown
lea rcx, [rsp + 0x48]
call fcn.1401b2a70
mov eax, 1
jmp 0x1401c35f7
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a92a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1401c4f20
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
invalid
je 0x1401c4f47
sub r10, rcx
nop
Function at 0x1401c5b30
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401a9c70
sub rsp, rax
mov rbx, r8
call fcn.1401c5d90
test eax, eax
js 0x1401c5d84
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1401c5bbd
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 0x1401c5b70
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1401c5d82
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x14019e000]
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 + 0x1c48e0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x1c5ce0]
movzx eax, byte [rdi + rax*4 + 0x1c48e0]
xor r8d, dword [rdi + rax*4 + 0x1c54e0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x1c60e0]
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1c58e0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x1c48e0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1c58e0]
movzx eax, byte [rdi + rcx*4 + 0x1c48e0]
xor r8d, dword [rdi + rax*4 + 0x1c5ce0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x1c54e0]
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1c60e0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x1c48e0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1c58e0]
movzx eax, byte [rdi + rcx*4 + 0x1c48e0]
xor r8d, dword [rdi + rax*4 + 0x1c5ce0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x1c54e0]
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1c60e0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x1c48e0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1c58e0]
movzx eax, byte [rdi + rcx*4 + 0x1c48e0]
xor r8d, dword [rdi + rax*4 + 0x1c5ce0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x1c54e0]
movzx ecx, byte [rdi + rax*4 + 0x1c48e0]
xor r8d, dword [rdi + rcx*4 + 0x1c60e0]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1401c5be0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret