joyce8/EMBER2024-capa huggingface dataset:
Function at 0x203eaed0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x203eaf18
movzx eax, byte [0x205a1f42]
movzx ecx, byte [0x205a1ffc]
mov edx, ecx
xor dl, 0xef
not cl
and cl, 0x10
or cl, dl
not cl
add cl, cl
add cl, dl
cmp al, cl
je 0x203eaf10
mov cl, 0x72
nop word [rax + rax]
mov al, 0x82
lock cmpxchg byte [0x205a1f42], cl
je 0x203eaf56
cmp al, 0x3f
jne 0x203eaf00
lea rax, [0x205a1f30]
ret
movzx eax, byte [0x205a1f0b]
cmp al, 0x1f
je 0x203eaf4e
mov cl, 0x8d
nop word cs:[rax + rax]
mov al, 0x80
lock cmpxchg byte [0x205a1f0b], cl
je 0x203eafc6
movzx edx, byte [0x205a1ffc]
add dl, 0xcf
cmp al, dl
jne 0x203eaf30
lea rax, [0x205a1f00]
ret
xor edx, edx
lea rax, [0x205a1f30]
lea rcx, [0x20494f60]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rax]
movzx r9d, byte [rdx + rcx]
add r8b, 0x7c
mov r10d, r9d
xor r10b, r9b
not r10b
and r10b, r8b
xor r10b, r9b
and r8b, r9b
add r8b, r8b
add r8b, r10b
add r8b, 0x84
mov byte [rdx + rax], r8b
mov r8d, dword [0x205a1ff8]
add edx, r8d
add edx, 0x3fa6f792
cmp edx, 0x12
jl 0x203eaf70
mov al, 0x3f
xchg byte [0x205a1f42], al
lea rax, [0x205a1f30]
ret
xor eax, eax
lea rcx, [0x205a1f00]
lea rdx, [0x20494f30]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rdx]
add r8b, 0x8b
mov r10d, r8d
xor r10b, r9b
and r8b, r9b
add r8b, r8b
add r8b, r10b
add r8b, 0x75
mov byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xa
jg 0x203eb014
inc rax
jmp 0x203eafe0
mov al, 0x1f
xchg byte [0x205a1f0b], al
lea rax, [0x205a1f00]
ret
Function at 0x203f0c30
Capabilities:
Encrypt data using speck

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov esi, edx
mov rax, qword [0x205a38a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x20499f30]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x1716151413121110
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0x1918
mov byte [rsp + 0x4a], 0x1a
mov edi, 0x1a
nop dword [rax]
mov r10d, dword [0x205a3cf8]
lea ecx, [rdi + r10]
add ecx, 0x371aeda5
mov eax, esi
xor edx, edx
div ecx
lea rax, [rsp + rdi]
add rax, 0x30
movzx r8d, byte [rsp + rdi + 0x30]
lea rcx, [rsp + rdx]
add rcx, 0x30
lea r9d, [r10 + 0x3be110e0]
add r10d, 0x9c9f3ceb
mov dword [rsp + 0x20], r10d
mov rdx, rax
call fcn.203f12b0
mov r8d, dword [0x205a3cf8]
lea edx, [r8 + 0xf581a20]
add r8d, 0xb37c7b50
mov rcx, rdi
call fcn.203f1200
test al, 1
je 0x203f0d06
imul eax, esi, 0x6255
add eax, 0x3619
mov esi, eax
xor esi, 0xffff0000
and esi, eax
dec rdi
jmp 0x203f0c80
movabs r14, 0xba4de53d68fd3935
xor r12d, r12d
lea rbp, [0x205b84c0]
xor r13d, r13d
jmp 0x203f0e2b
movzx ecx, byte [0x205a3cfc]
mov eax, ecx
xor al, 0x15
and cl, 0x15
add cl, cl
add cl, al
mov r8d, r13d
not r8b
mov eax, r13d
xor al, r8b
and al, cl
xor al, r8b
mov esi, eax
not sil
xor al, r13b
and sil, r8b
mov r8d, r13d
not r8d
mov r9d, r13d
xor r9d, 7
mov ecx, r13d
xor ecx, 0xfffffff8
and ecx, r8d
or ecx, r9d
not ecx
mov r8d, 0xffffffff
shl r8d, cl
or sil, al
not sil
add ecx, edx
mov eax, dword [0x205a3cf8]
mov r9d, eax
xor r9d, 0x371aeda3
and eax, 0x371aeda3
lea ebx, [r9 + rax*2]
shl ebx, cl
lea r15d, [rdx + r13]
not ebx
mov eax, ebx
and eax, r8d
or ebx, r8d
not ebx
or ebx, eax
shr r13d, 3
mov ecx, r13d
lea rdx, [rsp + 0x2c]
mov r8d, 0x505eef1d
mov r9d, 0xf8c80dcc
call fcn.20129ac0
movzx eax, byte [rsp + 0x2c]
mov byte [rbp + rdi*4], al
mov byte [rbp + rdi*4 + 3], sil
mov byte [rbp + rdi*4 + 1], bl
mov byte [rbp + rdi*4 + 2], bh
movabs rcx, 0xf731df68deae20a
mov rax, rcx
xor rax, r14
and rcx, r14
lea rax, [rax + rcx*2]
add rax, qword [0x205a3d00]
movabs rcx, 0x9b9b6f13972024a3
add rax, rcx
sub rax, r14
sub rax, rcx
add r12, rax
mov r13d, r15d
cmp r12, 0x1b
je 0x203f0eae
movzx edi, byte [rsp + r12 + 0x30]
mov edx, 6
cmp rdi, 0xf
ja 0x203f0d30
mov ecx, edi
mov edx, 0x1b9956eb
mov r8d, 0x4df3a6ab
call fcn.203f12a0
mov edx, 5
test al, 1
jne 0x203f0d30
mov edx, 4
cmp dil, 3
ja 0x203f0d30
mov ecx, edi
mov edx, 0x7c439f1e
mov r8d, 0x82cda445
call fcn.203f1280
mov edx, 3
test al, 1
jne 0x203f0d30
mov ecx, edi
lea rdx, [rsp + 0x2c]
mov r8d, 0xa6b469cd
mov r9d, 0x6077d9f2
call fcn.203f11e0
mov edx, dword [rsp + 0x2c]
jmp 0x203f0d30
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.204278f0
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x6d874f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8965e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8750f8
mov rax, qword [0x6d8965e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d874fbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d875045
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d874fa0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d87512d
mov rax, qword [0x6d8965e8]
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 [0x6d8965e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d875110
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d87503e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8750a0
add dword [0x6d8965e4], 1
cmp edi, 8
jae 0x6d875073
test dil, 4
jne 0x6d8750e4
test edi, edi
je 0x6d875068
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8750ff
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 0x6d875068
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 0x6d87508c
jmp 0x6d875068
add rsi, qword [0x6d8965e8]
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 0x6d87503e
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 0x6d875068
xor esi, esi
jmp 0x6d874fc7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d875068
mov rax, qword [0x6d8965e8]
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 0x6d875880
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8968c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8968a0]
test rbx, rbx
je 0x6d8758d4
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 0x6d8758cb
test rsi, rsi
je 0x6d8758cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8758b0
lea rcx, [0x6d8968c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d875b10
Capabilities:
Parse pe header

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

Function at 0x6d875b30
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 0x6d875b71
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 0x6d875b68
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d875b73
add rax, 0x28
cmp rax, r9
jne 0x6d875b54
xor eax, eax
ret

Function at 0x6d875c10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8931f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d875c7d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d875c7d
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 0x6d875c7d
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 0x6d875c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d875c7f
add rax, 0x28
cmp rax, r9
jne 0x6d875c60
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d875d80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8931f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d875da0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d875d98
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 0x6d875dfd
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 0x6d875df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d875e04
add rax, 0x28
cmp rax, r9
jne 0x6d875de0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d875e20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8931f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d875e8e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d875e8e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d875e8e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d875e8e
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 0x6d875e85
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d875e95
add rcx, 0x28
cmp rcx, rax
jne 0x6d875e70
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d875ea8
jmp 0x6d875e8e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d875eb6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d875e8e
test r9d, r9d
jg 0x6d875ea0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d876220
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 0x1409a4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409a41df
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 0x1409a4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a406f
add dl, dl
jne 0x1409a4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a40f6
xor eax, eax
add dl, dl
jne 0x1409a40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a41ad
add dl, dl
jne 0x1409a40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409a40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409a407e
mov eax, 1
add dl, dl
jne 0x1409a4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a40fb
sub eax, ebx
mov ebx, 1
jne 0x1409a414c
mov ecx, 1
add dl, dl
jne 0x1409a412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409a4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a415d
cmp eax, 0x7d00
jae 0x1409a419b
cmp eax, 0x500
jb 0x1409a4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a407e
cmp eax, 0x7f
ja 0x1409a419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409a41d2
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 0x1409a407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400186d0
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 0x14001879c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001879c
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 0x1400187b5
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 0x14001878c
cmp byte [rax], 0x5c
jne 0x140018786
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140018786
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140018772
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140018783
test r8b, 0x10
jne 0x140018786
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140018786
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001c520
test edi, edi
jne 0x1400186f0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14001a2e0
int3
Function at 0x140022670
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x1400226d4
movzx r8d, byte [rsp + 0x70]
mov rdx, rax
call fcn.140007370
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0x10
jb 0x1400226ec
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x1400226f2
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x78], rax
cmp rbx, rax
je 0x140022808
lea r8, [0x140064b10]
movzx ebx, byte [rsp + 0x70]
nop
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x14002279f
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14002277d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022772
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022795
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140003b30
lea r8, [0x140064b10]
sub rsi, 6
sub rbp, 1
jne 0x140022740
inc r15
cmp r15, qword [rsp + 0x78]
jne 0x140022710
cmp r13d, 0xfffffffa
jle 0x140022808
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rax, r14d
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400227f5
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400227ea
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022808
movzx r8d, byte [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call fcn.140003b30
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140022858
movzx ebx, byte [rsp + 0x70]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14002283b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022833
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x14002284f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140003b30
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140022816
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140027b00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140027b34
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140027b20
ret
Function at 0x1400299b0
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 0x1400299e1
cmp ax, 0x17
jne 0x140029a5b
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 fcn.14003e9b0
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 0x140029a5b
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140029a40
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001cd80
mov al, 1
jmp 0x140029a5d
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 0x14002a370
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x240
mov rdx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x20]
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x38], rdi
mov dword [r11 + 8], eax
mov dword [r11 + 0xc], edx
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x250]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14002a3d0
call fcn.140045f54
cmp dword [rax], 4
je 0x14002a3a0
test ebx, ebx
mov rbx, qword [rsp + 0x258]
setg al
add rsp, 0x240
pop rdi
ret
Function at 0x14002fa70
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 0x14002fac3
call fcn.140045f54
cmp dword [rax], 4
je 0x14002faa0
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 0x1400327e0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rcx
mov qword [rsp + 0x38], rcx
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 ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140032842
call fcn.140045f54
cmp dword [rax], 4
je 0x140032810
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140036bb9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsi + 8]
mov eax, 0x7fffffff
cmp rdi, rax
mov qword [rsp + 0x30], rbx
cmova rdi, rax
nop
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140036bf3
call fcn.140045f54
cmp dword [rax], 4
je 0x140036bd0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a72c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14003a75a
xor eax, eax
jmp 0x14003a840
cmp qword [rcx + 0x68], 0
je 0x14003a76b
call fcn.140037c40
jmp 0x14003a840
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003a782
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003a784
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003a7b6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003e310
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14003a83a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14003a7ed
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14003a816
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14004bcec
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14003a83a
cmp rsi, rbx
ja 0x14003a7f4
test rsi, rsi
je 0x14003a83a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14004bcec
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret