joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014ad30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x14014ad91
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14014ad50
mov ecx, dword [r9]
jmp 0x14014ae7b
cmp ecx, 0x4e0
jb 0x14014ae7b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14014adb0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14014ae00
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140150e70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
cmp qword [0x14051e358], 0xf
lea rdx, [0x14051e340]
mov rdi, rcx
mov rcx, 0xffffffff80000001
cmova rdx, qword [0x14051e340]
call fcn.140150fc0
cmp qword [rdi + 0x18], 0xf
mov rsi, rax
mov rdx, rdi
jbe 0x140150eb9
mov rdx, qword [rdi]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.1401358f0
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140150f10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x14051e358], 0xf
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x14051e340]
cmova rdx, qword [0x14051e340]
mov rcx, 0xffffffff80000001
call fcn.140150fc0
cmp qword [rsi + 0x18], 0xf
mov rbp, rax
mov eax, dword [rsi + 0x10]
mov rcx, rsi
jbe 0x140150f60
mov rcx, qword [rsi]
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
jbe 0x140150f6d
mov rdx, qword [rdi]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.1401358f0
mov rcx, rsi
call fcn.1401358f0
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140152600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140152791
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140152791
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14015269b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x1401527b8
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1401526b2
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x1401526b2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1401526c5
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140152712
mov r9d, eax
cmp eax, 0x800
jae 0x1401526df
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140152712
cmp eax, 0x10000
jae 0x1401526f9
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140152712
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140152791
add qword [r14], 2
test sil, sil
jne 0x140152733
cmp r10d, 3
jae 0x14015273f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x14015276e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140152750
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14015264f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14015279f
Function at 0x140154430
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
movups xmm0, xmmword [str.vEgYZRTqTW_2rz]
movzx eax, byte [0x140492a88]
xor ecx, ecx
cmp dword [0x1404bc010], 2
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x48], al
movsd xmm0, qword [0x140492a80]
movsd qword [rsp + 0x40], xmm0
jl 0x1401545a9
movdqa xmm0, xmmword [0x140495530]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x140495430]
movdqa xmm4, xmmword [0x140495560]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x140495450]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1404954d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1404954d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x1401544a0
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x19
jge 0x1401545ed
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x19
jl 0x1401545c0
mov rcx, qword [0x14051e320]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140154606
call rax
mov rcx, qword [0x14051e320]
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x48], al
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x68
ret
Function at 0x140154f90
Capabilities:
Encode data using base64

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x78], rbp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rsp + 0x48], rsi
xor ebp, ebp
mov qword [rsp + 0x40], rdi
mov rbx, rcx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov rdi, rdx
mov qword [rcx + 0x10], rbp
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], r15
lea r15, [rcx + 0x18]
mov byte [rcx], bpl
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140154fea
mov rdx, rax
call fcn.140171d20
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
mov r13d, 0xfffffffa
mov qword [rsp + 0x28], r14
lea r14, [rbx + 0x10]
jbe 0x140155014
mov r15, qword [rdi]
lea r8, [rbx + 0x18]
mov qword [rsp + 0x60], r8
mov rcx, r15
mov rdi, r15
jmp 0x140155022
mov r8, r15
mov qword [rsp + 0x60], r15
mov r15, rdi
mov rcx, rdi
add rax, rcx
mov qword [rsp + 0x70], rax
cmp rdi, rax
je 0x14015513f
mov qword [rsp + 0x38], r12
nop dword [rax + rax]
movzx eax, byte [r15]
shl ebp, 8
add ebp, eax
add r13d, 8
mov qword [rsp + 0x68], rbp
js 0x1401550d6
lea ecx, [r13 + 6]
movsxd r12, ebp
mov eax, 0xaaaaaaab
movsxd rdi, r13d
mul ecx
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr edx, 2
imul eax, edx, 0xfffffffa
mov esi, edx
add r13d, eax
nop dword [rax + rax]
mov rdx, qword [r8]
mov rcx, rdi
mov rax, r12
sar rax, cl
mov rcx, qword [r14]
and eax, 0x3f
movzx r9d, byte [rax + rbp]
cmp rcx, rdx
jae 0x1401550ba
lea rax, [rcx + 1]
mov qword [r14], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1401550af
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1401550c7
mov rcx, rbx
call fcn.14013c630
mov r8, qword [rsp + 0x60]
sub rdi, 6
sub rsi, 1
jne 0x140155080
mov rbp, qword [rsp + 0x68]
inc r15
cmp r15, qword [rsp + 0x70]
jne 0x140155040
mov r12, qword [rsp + 0x38]
mov rdx, qword [rbx + 0x10]
cmp r13d, 0xfffffffa
jle 0x14015513f
shl ebp, 8
lea ecx, [r13 + 8]
movsxd rax, ebp
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sar rax, cl
mov rcx, qword [rbx + 0x18]
and eax, 0x3f
movzx r9d, byte [rax + r9]
cmp rdx, rcx
jae 0x140155137
lea rax, [rdx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rcx, 0xf
jbe 0x14015512c
mov rax, qword [rbx]
mov byte [rax + rdx], r9b
mov byte [rax + rdx + 1], 0
jmp 0x14015513f
mov rcx, rbx
call fcn.14013c630
mov rcx, qword [rbx + 0x10]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x78]
test cl, 3
je 0x14015519f
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14015518b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140155183
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140155196
mov r9b, 0x3d
mov rcx, rbx
call fcn.14013c630
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140155166
mov rax, rbx
add rsp, 0x50
pop rbx
ret
Function at 0x140155e00
Capabilities:
Receive data
Receive data on socket

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, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140155e54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140155e30
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140155e80
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x240
mov qword [rsp + 0x38], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x30], 1
mov dword [rax + 0x10], edx
mov dword [rax + 0x14], r8d
nop word [rax + rax]
lea rax, [rsp + 0x258]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140155ee2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140155eb0
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x140155f00
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x240
mov qword [rsp + 0x38], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x30], 1
mov dword [rax + 0x10], edx
mov dword [rax + 0x14], r8d
nop word [rax + rax]
lea rax, [rsp + 0x258]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140155f61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140155f30
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1401565d0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140156601
cmp ax, 0x17
jne 0x14015667b
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14015667b
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140156660
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140135a30
mov al, 1
jmp 0x14015667d
xor al, al
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14015a600
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbp, rdx
mov r8, qword [rcx + 0x28]
mov rbx, rcx
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 8]
call fcn.140155f00
test rax, rax
jle 0x14015a680
mov rcx, qword [rbx + 8]
call fcn.140155f80
test al, al
je 0x14015a680
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 8]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14015a668
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14015a644
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x38]
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rcx, qword [rcx + 8]
mov rbx, r8
mov rdi, rdx
mov dword [rax + 8], 0x80
lea r8, [rax + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14015a74a
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8, rdi
call fcn.1401565d0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140161640
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rcx + 0x450]
lea rbp, [rcx + 0x458]
mov r15, qword [rdx]
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov rbx, rdx
mov rcx, rbp
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140161809
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x14016179b
mov rcx, rsi
call fcn.140363fd0
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rsi, rsi
je 0x1401617d8
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r15d
call fcn.1401d51b0
xor r9d, r9d
mov rcx, rax
mov r12, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.1401d9430
mov r8, r12
mov rdx, r12
mov rcx, rsi
call fcn.140364490
cmp qword [r14 + 0x20], 0xf
lea r9, [r14 + 8]
jbe 0x14016170f
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x37]
call fcn.1403637a0
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140161820
cmp al, 1
jne 0x14016177c
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x66]
call fcn.1401d9430
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
mov qword [rbx + 8], rsi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140364a10
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140161809
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
jne 0x1401617ac
dec eax
mov ecx, 6
mov dword [rbp + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rsi
call fcn.140363900
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1401617ec
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140161802
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
xor al, al
jmp 0x140161762
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140161be0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
xor ebx, ebx
mov byte [rsp + 0x90], 0
cmp qword [rcx + 0x20], 0xf
lea rsi, [rcx + 8]
xorps xmm0, xmm0
mov dword [rsp + 0x98], ebx
mov rbp, rdx
mov edi, 2
movups xmmword [rsp + 0x28], xmm0
mov r15d, ebx
mov rdx, rsi
jbe 0x140161c26
mov rdx, qword [rsi]
lea r8, [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140161c42
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140161c69
cmp qword [rsi + 0x18], 0xf
jbe 0x140161c4c
mov rsi, qword [rsi]
lea r8, [rsp + 0x98]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140161c6e
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.1401d3c30
mov r12, rax
test rax, rax
je 0x140161d5e
mov qword [rsp + 0x88], r13
mov rcx, rax
mov qword [rsp + 0x40], r14
xor r13b, r13b
xor r14b, r14b
call fcn.1401d60c0
mov dword [rsp + 0x20], eax
test eax, eax
jle 0x140161d51
test r14b, r14b
jne 0x140161d49
mov edx, ebx
mov rcx, r12
call fcn.1401d63c0
mov rsi, rax
cmp dword [rax], edi
jne 0x140161d33
mov rcx, qword [rax + 8]
call fcn.1401d4080
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.1401d4090
movsxd r8, eax
cmp edi, 2
je 0x140161d1f
cmp edi, 7
jne 0x140161d33
mov r8, r15
lea rcx, [rsp + 0x28]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140161d1a
mov r8, r15
lea rcx, [rsp + 0x98]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140161d33
mov r13b, 1
jmp 0x140161d33
mov rcx, qword [rsp + 0x80]
mov rdx, rbp
call fcn.140161d80
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x20]
jl 0x140161cb3
test r14b, r14b
jne 0x140161d49
test r13b, r13b
je 0x140161d51
mov byte [rsp + 0x90], 1
mov r13, qword [rsp + 0x88]
mov r14, qword [rsp + 0x40]
mov rcx, r12
call fcn.1401d67b0
movzx eax, byte [rsp + 0x90]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14016dde0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14016de14
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14016de00
ret
Function at 0x140176490
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
sar rdi, 2
test rdi, rdi
je 0x140176673
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14051f9d0]
sub rbx, qword [0x14051f9c8]
mov qword [rsp + 0x50], r13
sar rbx, 2
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x1401764e3
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x140176511
cmp rdi, 0x44
jb 0x1401764f0
mov eax, 7
jmp 0x140176511
cmp rdi, 0x27
jb 0x1401764fd
mov eax, 5
jmp 0x140176511
cmp rdi, 7
jb 0x14017650a
mov eax, 3
jmp 0x140176511
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x14017652a
mov r15, rdi
mov r8, rdi
mov qword [rsp + 0x48], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r15, r15
je 0x1401765dd
nop
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [rsi + rdx*4]
mov r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [rbp]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14017659d
mov rax, rbx
jmp 0x1401765b5
cmp rcx, rbx
ja 0x1401765b2
mov rax, qword [0x14051f9c8]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x1401765b5
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r15
jb 0x140176550
add r15, rdi
cmp rcx, r15
jae 0x14017665a
inc r14
lea rbp, [rcx - 1]
inc r13
nop
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, dword [rsi + r9*4]
add ecx, r10d
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x1401765f0
mov rbp, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14017add0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14017ae9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14017ae9c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14017aeb5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14017ae8c
cmp byte [rax], 0x5c
jne 0x14017ae86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14017ae86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14017ae72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14017ae83
test r8b, 0x10
jne 0x14017ae86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14017ae86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140175f60
test edi, edi
jne 0x14017adf0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140175f50
int3