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

Disassembly:
cmp edx, 0x1f
jne 0x14011f178
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14011f035
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14011f035
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14011f035
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14011f06c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14011f0c2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011f0c2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011f0c2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011f0c2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011f0c2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14011ea80
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14011f124
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400fb010
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14011ee50
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14011f170
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400fb010
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401208e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140d6a4c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140120975
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1401209d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400fb010
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140134350
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140120a91
sub ecx, 1
je 0x140120b04
sub ecx, 1
je 0x140120a40
cmp ecx, 1
je 0x140120a23
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14013c488]
call fcn.1400fb010
jmp 0x140120b04
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140120610
test eax, eax
je 0x140120b04
jmp 0x1401209aa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140120b04
sub rax, rsi
cmp rax, rbp
jae 0x140120b04
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400fb190
jmp 0x140120b04
cmp r8d, 4
jle 0x140120b04
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140120b04
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400faf30
mov esi, eax
test eax, eax
je 0x140120ae3
mov edx, 5
mov rcx, rbx
call fcn.1401215d0
mov eax, esi
jmp 0x1401209aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140109a00
mov rcx, r14
call fcn.140109ce0
test eax, eax
je 0x1401209a8
mov edx, 5
mov rcx, rbx
call fcn.1401215d0
mov eax, Ordinal_45
jmp 0x1401209aa
Function at 0x1401338a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1401338e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140133929
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140133982
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140133940
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401339c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14017ec42]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14017ec43]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140133990
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140133a34
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140133a6e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140133a73
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140133abc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140133abc
dec r8
sub rdx, 1
jne 0x140133aa2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14013520c
Capabilities:
Parse pe header

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

Function at 0x1405c8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405c81df
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 0x1405c8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c806f
add dl, dl
jne 0x1405c8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c80f6
xor eax, eax
add dl, dl
jne 0x1405c80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c81ad
add dl, dl
jne 0x1405c80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405c80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405c807e
mov eax, 1
add dl, dl
jne 0x1405c8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c80fb
sub eax, ebx
mov ebx, 1
jne 0x1405c814c
mov ecx, 1
add dl, dl
jne 0x1405c812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405c8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c815d
cmp eax, 0x7d00
jae 0x1405c819b
cmp eax, 0x500
jb 0x1405c8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c807e
cmp eax, 0x7f
ja 0x1405c819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405c81d2
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 0x1405c807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140596058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405961df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140596089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059606f
add dl, dl
jne 0x140596096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405960f6
xor eax, eax
add dl, dl
jne 0x1405960a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405961ad
add dl, dl
jne 0x1405960b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405960c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405960d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405960dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405960ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14059607e
mov eax, 1
add dl, dl
jne 0x140596106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140596113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405960fb
sub eax, ebx
mov ebx, 1
jne 0x14059614c
mov ecx, 1
add dl, dl
jne 0x14059612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140596123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140596168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140596175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059615d
cmp eax, 0x7d00
jae 0x14059619b
cmp eax, 0x500
jb 0x140596196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059607e
cmp eax, 0x7f
ja 0x14059619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405961d2
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 0x14059607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011226
Capabilities:
Terminate process

Disassembly:
jmp 0x1400133e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014770
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014790
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147a3
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400147cd
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147e1
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400147f3
xor al, al
jmp 0x140014811
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001480f
xor al, al
jmp 0x140014811
mov al, 1
add rsp, 0x38
ret
Function at 0x140011398
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140011850
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x1400240ac]
call fcn.1400113bb
xor edx, edx
mov ecx, 2
call fcn.1400111b8
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400118c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_snapshot:__d_n
call fcn.140011032
xor eax, eax
jmp 0x140011934
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011258
test eax, eax
je 0x140011915
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140011904
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x38]
jmp 0x140011934
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001136b
test eax, eax
jne 0x1400118e0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x420]
lea rcx, str.Process__s_not_found._n
call fcn.140011032
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011343
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x180001be0
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x180015010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rcx + 0x48]
mov r10, r8
mov rsi, qword [rsp + 0x110]
mov r8, rdx
xor ebp, ebp
mov dword [rcx + 0x58], 0xffffffff
mov qword [rcx + 0x50], rbp
mov rbx, rcx
mov qword [rcx + 0x60], rbp
mov rdx, r10
mov rcx, r8
mov qword [rsp + 0x80], r10
mov rdi, r9
call rax
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x80]
mov qword [rbx + 0x50], rax
lea edx, [rbp + 1]
mov rax, qword [rcx]
mov r9, qword [rax + 0x4b8]
call r9
test eax, eax
jne 0x180001ce6
mov rcx, qword [rbx + 0x70]
sub rcx, qword [rbx + 0x68]
je 0x180001ce6
mov dword [rbx + 0x58], ecx
movsxd rcx, ecx
call fcn.18000f474
mov qword [rdi], rax
mov r9d, ebp
mov r8, qword [rbx + 0x68]
cmp qword [rbx + 0x70], r8
je 0x180001cb6
mov edx, ebp
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
lea rdx, [rdx + 1]
mov rcx, qword [rdi]
inc r9d
mov byte [rdx + rcx - 1], al
mov r8, qword [rbx + 0x68]
mov rcx, qword [rbx + 0x70]
sub rcx, r8
movsxd rax, r9d
cmp rax, rcx
jb 0x180001c90
mov eax, dword [rbx + 0x58]
mov dword [rsi], eax
mov qword [rbx + 0x50], rbp
mov dword [rbx + 0x58], 0xffffffff
mov qword [rbx + 0x60], rbp
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000f410
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1800014f0
mov rcx, rax
call fcn.180001e40
movabs rcx, 0xbcd0fc9997f81d1d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x90], rcx
mov r9d, reloc.WS2_32.dll_recv
movabs rcx, 0x74722540b455e56
mov r8, rax
mov qword [rsp + 0x98], rcx
movabs rcx, 0x3a55108766f9fcc7
movdqa xmm0, xmmword [rsp + 0x90]
mov qword [rsp + 0xa0], rcx
movabs rcx, 0x95c9276a0d2fffe8
mov qword [rsp + 0xa8], rcx
movabs rcx, 0xee82b9b9d5bb5a53
mov qword [rsp + 0x20], rcx
movabs rcx, 0x732e50032b6b0c19
mov qword [rsp + 0x28], rcx
movabs rcx, 0x4a2063a7098ddca2
movups xmm1, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rcx
movabs rcx, 0x95c9274b795d9098
mov qword [rsp + 0x38], rcx
xor ecx, ecx
movups xmm2, xmmword [rsp + 0x30]
xorps xmm0, xmm1
xorps xmm2, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0x50], xmm2
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [rsp + 0x60]
call fcn.180001ed0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x180004580
Capabilities:
Encode data using base64

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
sub rsp, 0x40
mov r15, rdx
mov qword [rsp + 0x30], rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea r14d, [rbp - 6]
mov r13d, ebp
cmp qword [rdx + 0x10], r13
jbe 0x180004714
mov r12d, ebp
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1800045f0
mov rax, qword [r15]
movsx eax, byte [r12 + rax]
shl ebp, 8
add eax, ebp
movsxd rbp, eax
add r14d, 8
js 0x18000469a
mov r8, rbp
movsxd rdi, r14d
lea ecx, [r14 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r14d, eax
lea r15, [0x180015bf8]
nop word [rax + rax]
mov rdx, r15
cmp qword [0x180015c10], 0x10
cmovae rdx, qword [0x180015bf8]
mov rax, r8
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180004680
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180004675
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000468b
mov rcx, rbx
call fcn.1800029d0
mov r8, rbp
sub rdi, 6
sub rsi, 1
jne 0x180004630
mov r15, qword [rsp + 0x30]
mov ecx, r14d
inc r13d
inc r12
movsxd rax, r13d
cmp rax, qword [r15 + 0x10]
jb 0x1800045e3
cmp ecx, 0xfffffffa
jle 0x180004714
cmp qword [0x180015c10], 0x10
lea r9, [0x180015bf8]
cmovae r9, qword [0x180015bf8]
shl ebp, 8
movsxd rax, ebp
add cl, 8
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r9]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000470c
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180004701
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180004714
mov rcx, rbx
call fcn.1800029d0
mov rax, qword [rbx + 0x10]
test al, 3
je 0x180004758
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rax, rdx
jae 0x180004745
lea rcx, [rax + 1]
mov qword [rbx + 0x10], rcx
mov rcx, rbx
cmp rdx, 0x10
jb 0x18000473d
mov rcx, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x180004750
mov r9b, 0x3d
mov rcx, rbx
call fcn.1800029d0
mov rax, qword [rbx + 0x10]
test al, 3
jne 0x180004720
mov rax, rbx
lea r11, [rsp + 0x40]
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 0x180004c00
Capabilities:
Connect socket
Create thread
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x180015010]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rdi, rcx
xor ebp, ebp
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x101
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180004da0
mov rcx, qword [rdi + 0x10]
inc rcx
call fcn.18000f474
mov rbx, rax
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180004c7a
mov rdx, qword [rdi]
add r8, rdx
jmp 0x180004c80
add r8, rdi
mov rdx, rdi
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], bpl
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r8, rax
test rax, rax
je 0x180004da0
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
test rdx, rdx
je 0x180004cd6
mov rcx, rbp
nop word [rax + rax]
mov eax, dword [rdx]
lea rcx, [rcx + 1]
mov dword [rdi + 0x44], eax
mov rax, qword [r8 + 0x18]
mov rdx, qword [rax + rcx*8]
test rdx, rdx
jne 0x180004cc0
movzx ecx, word [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 0x42], ax
mov ecx, 2
mov word [rdi + 0x40], cx
lea edx, [rcx - 1]
lea r8d, [rcx + 4]
call qword [sym.imp.WS2_32.dll_socket]
lea rsi, [rdi + 0x38]
mov qword [rsi], rax
mov r8d, dword [rdi + 0x50]
lea rdx, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x180004da0
lea ecx, [rax + 0x10]
call fcn.18000f430
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], rsi
mov qword [rax + 8], rbp
mov qword [rdi + 0x30], rax
mov ecx, 8
call fcn.18000f430
mov qword [rax], rdi
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x180005bf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004d90
cmp dword [rdi + 0x60], 0
jne 0x180004d89
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0x58], xmm1
mov al, 1
jmp 0x180004da2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor al, al
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18000f410
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret