joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006ac70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0xa00
cmp byte [rax + 0xf09], 0
jne 0x14006ac95
cmp dword [rax + 0x9f8], 0
je 0x14006acc1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14006acc1
lea rdx, str.MDTM__s
call fcn.140081cc0
test eax, eax
jne 0x14006acce
mov dword [rbx + 0xab8], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006bb00
add rsp, 0x20
pop rbx
ret

Function at 0x14006b480
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x10], 0
je 0x14006b4b8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0xab8], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006b5d0
cmp byte [rcx + 0xf0e], 0
je 0x14006b4d0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006bfc0
cmp byte [rcx + 0xf11], 0
je 0x14006b571
mov r8, qword [rbx + 0xa88]
test r8, r8
jne 0x14006b52b
mov r8, qword [rcx + 0xc08]
test r8, r8
jne 0x14006b50e
cmp byte [rcx + 0xf0d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0xa00]
lea rdx, str.PRET__s
call fcn.140081cc0
test eax, eax
je 0x14006b561
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xf1d], 0
lea rcx, [rbx + 0xa00]
je 0x14006b551
lea rdx, str.PRET_STOR__s
call fcn.140081cc0
test eax, eax
je 0x14006b561
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140081cc0
test eax, eax
jne 0x14006b57e
mov dword [rbx + 0xab8], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006bf30
add rsp, 0x20
pop rbx
ret

Function at 0x14006b8c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 0
je 0x14006b90d
cmp qword [rcx + 0xa88], 0
je 0x14006b90d
add rcx, 0xa00
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140081cc0
test eax, eax
jne 0x14006b917
mov dword [rbx + 0xab8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14006b480
add rsp, 0x20
pop rbx
ret

Function at 0x14006baa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xa00
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 1
jne 0x14006baec
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14006baec
lea rdx, str.SIZE__s
call fcn.140081cc0
test eax, eax
jne 0x14006baf9
mov dword [rbx + 0xab8], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006b8c0
add rsp, 0x20
pop rbx
ret

Function at 0x14006bb00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf1c], 0
je 0x14006bb58
cmp qword [rcx + 0xa88], 0
je 0x14006bb58
cmp byte [r9 + 0xf0b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xaa8]
cmp eax, edx
je 0x14006bb58
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf0b]
jmp fcn.14006a3a0
jmp fcn.14006baa0
Function at 0x14006bb60
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x14006bb95
lea rdx, str.Couldnt_set_desired_mode
call fcn.14004dea0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14006bbac
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14004e020
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14006bbc8
mov rcx, rdi
call fcn.14006baa0
jmp 0x14006bcff
cmp esi, 0x14
jne 0x14006bce1
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x14006bc49
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x14006bc49
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140037610
test eax, eax
jne 0x14006bcff
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14006bc3e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14006bc49
mov rcx, qword [rsp + 0x50]
call qword [fcn.140087f44]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x14006bc6d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14009a5fa]
test rbp, rbp
mov r9, r8
lea rax, [0x14008bf84]
cmovne r9, rbp
lea rcx, [0x140090278]
cmovne r8, rax
call fcn.14003c750
mov rcx, rbp
mov r14, rax
call qword [fcn.140087f44]
test r14, r14
jne 0x14006bcac
lea ebx, [r14 + 0x1b]
jmp 0x14006bd01
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x140094a70]
call fcn.140081cc0
mov rcx, r14
mov esi, eax
call qword [fcn.140087f44]
test esi, esi
je 0x14006bcd5
mov ebx, esi
jmp 0x14006bd01
mov dword [rdi + 0xab8], 0x1f
jmp 0x14006bd01
cmp esi, 0x15
jne 0x14006bcec
lea r8d, [rsi - 8]
jmp 0x14006bcf5
cmp esi, 0x16
jne 0x14006bd01
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14006b5d0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140071a60
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140071abf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004dea0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400715f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140071c70
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140071e18
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 0x140071cd5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140071cd5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140071cd5
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 0x140071d0c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140071d62
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071d62
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071d62
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071d62
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071d62
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.140071720
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
Function at 0x140073580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a9080]
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], pe_nt_image_headers64
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 0x140073615
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 0x140073676
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14004dea0
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.140086c80
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 0x140073731
sub ecx, 1
je 0x1400737a4
sub ecx, 1
je 0x1400736e0
cmp ecx, 1
je 0x1400736c3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140094a70]
call fcn.14004dea0
jmp 0x1400737a4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400732b0
test eax, eax
je 0x1400737a4
jmp 0x14007364a
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 0x1400737a4
sub rax, rsi
cmp rax, rbp
jae 0x1400737a4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14004e020
jmp 0x1400737a4
cmp r8d, 4
jle 0x1400737a4
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 0x1400737a4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14004ddc0
mov esi, eax
test eax, eax
je 0x140073783
mov edx, 5
mov rcx, rbx
call fcn.140074270
mov eax, esi
jmp 0x14007364a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14005c6a0
mov rcx, r14
call fcn.14005c980
test eax, eax
je 0x140073648
mov edx, 5
mov rcx, rbx
call fcn.140074270
mov eax, Ordinal_46
jmp 0x14007364a
Function at 0x140086540
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 [fcn.140087f4a]
mov rdi, rax
test rax, rax
jne 0x140086582
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 0x1400865c9
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 0x140086622
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 0x1400865e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140086663
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14009a1fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009a1fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140086630
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 0x1400866c8
Capabilities:
Get geographical location

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

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

Function at 0x1400b1845
Capabilities:
Resolve dns

Disassembly:
lea rsi, [rsi + rsi + 0x71546eed]
jl 0x14028bbee
add qword [rsp], 0xe6f31
push r15
push r12
call fcn.1401cd614
xchg qword [rsp + 0x40], rdi
call fcn.1402ab07c
jns 0x140276ae4
add byte [rsp + 0x18], 0xdd
bswap r13
xor ecx, ecx

Function at 0x1400b6d01
Capabilities:
Resolve dns

Disassembly:
cmp r10d, 0x56de7cf6
bswap r10d
jno 0x140147651

Function at 0x1400b6d37
Capabilities:
Resolve dns

Disassembly:
push r13
lea rax, [rax + 0x5f0c48d9]

Function at 0x1400b9550
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400b957c
xor al, al
jmp 0x1400b96a0
movdqa xmm0, xmmword [0x1400d9ae0]
movdqa xmm1, xmmword [0x1400d9af0]
mov rax, qword [r9]
xor r11d, r11d
mov qword [rsp + 0x50], r12
mov rcx, r8
movdqa xmmword [rsp], xmm0
movdqa xmm0, xmmword [0x1400d9b00]
movdqa xmmword [rsp + 0x10], xmm1
lea r12, [r8 + rax]
mov edx, r11d
movdqa xmm1, xmmword [0x1400d9b10]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
test rbx, rbx
je 0x1400b9692
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400b95f9
mov r11d, 2
jmp 0x1400b961d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400b9613
mov r11d, 1
jmp 0x1400b961d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, r12
ja 0x1400b96b5
mov eax, r10d
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov eax, r10d
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400b965a
mov byte [rcx + 2], 0x3d
jmp 0x1400b966a
shr r10, 6
and r10d, 0x3f
movzx eax, byte [rsp + r10]
mov byte [rcx + 2], al
add rcx, 3
add r8, 3
test r11, r11
je 0x1400b967c
mov byte [rcx], 0x3d
jmp 0x1400b9683
movzx eax, byte [rsp + r9]
mov byte [rcx], al
inc rcx
inc r8
cmp rdx, rbx
jb 0x1400b95e0
sub rcx, rsi
mov al, 1
mov qword [rbp], rcx
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor al, al
jmp 0x1400b969b
Function at 0x1400c3c01
Capabilities:
Get common file path

Disassembly:
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140050b1a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140090908]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x140050b7e
mov rcx, rbx
test r14, r14
je 0x140050b68
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140050bb6
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140050bb6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140050c78
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140050be0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140087f4a]
mov rdi, rax
test rax, rax
je 0x140050c6a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140050c6a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140050c10
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140050c24
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140050c40
mov rcx, rdi
test r14, r14
je 0x140050c61
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140050c67
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140087f44]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
add qword [rsp + 0x58], 0xffffffffbff3abe0
or byte [rsp + 0x70], 0x24
add byte [rsp + 0x70], 0x29
neg qword [rsp + 0x70]
js 0x140050b04
push qword [rsp + 0x78]
popfq
lea rsp, [rsp + 0x88]
ret

Function at 0x140110500
Capabilities:
Encode data using xor

Disassembly:
or di, di
mov rdi, qword [rsp + 0x40]
add qword [rsp + 0x28], 0xffffffffbfeb5b97
add qword [rsp + 0x30], 0xffffffffbfe5e7f4
call fcn.140153ff0
push r8
push rbp
movabs rbp, 0x1b53465e558216fc
movabs r8, 0x412e49566f885e9f
pushfq
xor r8, 0xcfb1b67
push r11
test bp, 0x481d
mov r8, qword [rsp + 0x18]
mov qword [rsp + 0x18], 0x60b98e51
push rdx
push rdi
mov r11, rbp
mov ebp, r11d
movabs rdx, 0x73822fab3b7a195b
call fcn.1401a1802
invalid

Function at 0x140122e68
Capabilities:
Resolve dns

Disassembly:
mov r12, qword [rsp + 0x18]
jge 0x14015013b
setg byte [rsp + 0x20]
push qword [rsp + 0x30]
popfq
lea rsp, [rsp + 0x40]
call fcn.1403d869f
Function at 0x14015adf3
Capabilities:
Resolve dns

Disassembly:
push rdi
lea rdx, [r10 + r10*4 + 0x61da0459]
lea rcx, [rcx + 0x5392211e]
not qword [rsp + 0x18]
or dx, dx
not r10d
xor qword [rsp + 0x18], rdx
xchg qword [rsp + 0x50], rcx
mov rdi, r12
cmovno di, word [rsp + 0x18]
push rdi
push r15
push r13
cmp di, 0xcf9
push rdx
not byte [rsp + 0x18]
mov r10, qword [rsp + 0x40]
jge 0x14028bba2

Function at 0x14017fc63
Capabilities:
Set socket configuration

Disassembly:
xchg qword [rsp + 0x18], rdx
push r12
movabs r12, 0x37bb1685098b0fb9
mov qword [rsp + 0x18], rdx
lea r12, [r12*4 + 0x74b71928]
pushfq
xor r12d, 0x739717f4
jno 0x14019eae7
or r12d, 0x23e36e18
call 0x140261aab

Function at 0x140199ec6
Capabilities:
Send data
Send data on socket

Disassembly:
mov rcx, rsi
test rcx, 0x5e48695b
push rcx
pop r15
add qword [rsp + 0x40], 0x58c7f
add r15b, sil
test rsi, r15
jo fcn.1402a471a
lea rsi, [rcx + 0x7b570f39]
push r11
mov r11, r15
mov rdi, qword [rsp + 0x48]
mov rdi, qword [rdi + r11*2 - 0x261e6604]
lea rcx, [rcx + r15*4 + 0x145a7ce2]
setns cl
setg cl
jno 0x1402ecbd9
mov ecx, 0x75411093
scasb al, byte [rdi]
xchg edx, eax
xlatb
pop rbx
xchg esi, eax
or eax, 0x1d9c27ea
invalid
add r15d, 0x6f3c59ad
lea rdi, [rdi + rcx - 0x4f8a4ae9]
add rcx, 0x1da129f3
or r11w, 0x7dde
cmp r11w, r15w
call fcn.1401db1e1

Function at 0x1401bf1d2
Capabilities:
Set socket configuration

Disassembly:
mov r8, qword [rsp + 0x28]
ja 0x14019f036
lea r8, [r8 + r8*2 + 0x35d51c56]
test dword [rsp + 0x28], r8d
mov r8, qword [rsp + 0x20]
jle 0x140308f99
test byte [rsp + 0x28], 0x28
jge 0x14020b1bd
add qword [rsp + 8], 0xffffffffbfee340a
push r13
push r11
or rdx, 0x1dd7269f
cmp edx, 0x157f2d15
call fcn.14029b0d2
mov r11, qword [rsp + 0x48]
seta byte [rsp + 0x28]
neg qword [rsp + 0x28]
jl 0x14016064a
call fcn.1401afb86
setno r8b
lea r8, [r8 + r8 + 0x441835b5]
bswap r8
neg r8
movsx r8d, r8w
add r8, r8
mov qword [rsp + 0x10], rax
xor r8, 0x7d4e7e3e
call fcn.14012f5a5
test r8b, 0x6e
lea r8, [r8 + r8*8 + 0xe2f4d84]
xchg qword [rsp + 0x18], rax
jne 0x1402b120e
call fcn.140160742

Function at 0x1401c7908
Capabilities:
Terminate process

Disassembly:
mov dil, 0xff
sub di, 0x1306
movabs r13, 0x53458e496572f8
lea rbx, [rbx + r9*2 + 0x51811ea8]
jle 0x1401dbc7e
movabs r13, 0x5465302e4ef46430
mov qword [rsp + 0x30], rdi
test r13b, 0xa8
push r9
sets dil
xchg qword [rsp + 0x40], rbx
cmp r13w, word [rsp + 4]
call fcn.1402890fe

Function at 0x1401c7951
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
mov r8, qword [rsp + 0x18]
mov qword [rsp + 0x18], rax
call fcn.1401e69dc

Function at 0x1401e604a
Capabilities:
Resolve dns

Disassembly:
sub r8b, r14b
jg 0x140223c65

Function at 0x1401e6053
Capabilities:
Resolve dns

Disassembly:
cmove rbx, qword [rsp + 0x58]
xchg qword [rsp + rdi + 0x520868a3], rcx
mov r14, rbx
jge 0x14028bb9b

Function at 0x14020393d
Capabilities:
Encode data using xor

Disassembly:
lea r13, [rax + 0x2f0f0a72]
sub ax, 0x5e01
je 0x140011764
setns r13b
je fcn.140243247
mov al, r13b
neg r12w
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + r12 - 0x7762ef26]
movabs r11, 0x45776245608f107f
mov qword [rsp + 0x28], r13
call fcn.1402af3d9
Function at 0x1402117fb
Capabilities:
Resolve dns

Disassembly:
xor qword [rsp + 0x60], 0xb3d4e3f
call fcn.1402477ed
mov rbp, qword [rsp + 0x68]
lea r12, [r15 + 0x1f3e3a5a]
not dword [rsp + 0x60]
jge 0x14015ade5

Function at 0x140254a09
Capabilities:
Send data
Send data on socket

Disassembly:
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140071dc4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004dea0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140071af0
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 0x140071e10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004dea0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea r10, [r10 + 0x642f5b5e]
setl byte [rsp + 0x88]
mov r10, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x88]
bswap rsi
lea rsi, [rsi*8 + 0x22ff0822]
js 0x140071d98
movsx rsi, si
mov rsi, qword [rsp + 0x10]
or byte [rsp + 0x88], 0xe6
or qword [rsp + 0x88], 0x4fb86b6f
xor qword [rsp + 0x88], 0x4b7c2204
setno byte [rsp + 0x88]
sub dword [rsp + 0x88], 0x37635a77
or qword [rsp + 0x88], 0x6de11d3d
neg dword [rsp + 0x88]
push qword [rsp + 0x70]
popfq
lea rsp, [rsp + 0x90]
ret
mov r8, qword [rsp + 0x60]
jne 0x1401d3fc7

Function at 0x140261b4e
Capabilities:
Resolve dns

Disassembly:
push rdx
pushfq
add qword [rsp + 0x18], 0xffffffffbfbaaf1a
movabs rdx, 0x2f5a36bc56a8561e
xor dx, dx
mov qword [rsp + 0x18], 0x7a00d537
push r8
neg dx