joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003600
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140003638
cmp ax, 0x17
jne 0x1400036ad
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 0x1400036ad
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140003692
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140013cf0
mov al, 1
jmp 0x1400036af
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14009eb70
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140004c00
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140004c7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004c50
test ebx, ebx
jle 0x140004c92
mov rcx, qword [rdi + 8]
call fcn.140003070
test al, al
je 0x140004c92
mov al, 1
jmp 0x140004c94
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14009eb70
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x140004d30
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x140004d17
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.140002fd0
test rax, rax
jg 0x140004d57
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140004e00
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140004da7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004d80
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140004dc5
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140004dd7
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140004e24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004e00
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004e40
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rbp, r8
mov r10, qword [rcx + 0x28]
mov r14, rdx
mov r9, qword [rcx + 0x20]
mov rdi, rcx
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r10d
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140004ecd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004ea0
test ebx, ebx
jle 0x140004f0b
mov rcx, qword [rdi + 8]
call fcn.140003070
test al, al
je 0x140004f0b
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140004f06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004ee2
mov rax, rbx
jmp 0x140004f12
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14009eb70
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140005019
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140003600
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14009eb70
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140013ab4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140013aa0
ret
Function at 0x14002f0d0
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 0x14002f195
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002f195
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 0x14002f1ae
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14002f185
cmp byte [rcx], 0x5c
jne 0x14002f17e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14002f17e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002f16c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14002f17b
test r8b, 0x10
jne 0x14002f17e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14002f17e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140025520
test edi, edi
jne 0x14002f0f0
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.140025510
int3
Function at 0x14003b4b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, edx
and r11d, 7
je 0x14003b53f
cmp edx, r11d
jge 0x14003b52e
mov r8d, dword [rcx + 0x18]
mov eax, 1
mov ecx, edx
mov r9d, edx
shl eax, cl
cmp r8d, eax
jae 0x14003b524
mov r10, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r10
jb 0x14003b4ef
xor cl, cl
jmp 0x14003b4f8
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r9 + 8]
mov ecx, r9d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x18], r8d
cmp edx, 0x18
jg 0x14003b52e
mov ecx, edx
mov eax, 1
shl eax, cl
mov r9d, edx
cmp r8d, eax
jb 0x14003b4e3
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x18]
mov ecx, r11d
shr eax, cl
sub edx, r11d
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov r9d, edx
test edx, edx
jle 0x14003b582
mov eax, dword [rbx + 0x18]
lea rcx, [rsp + 0x30]
movzx r10d, al
nop word [rax + rax]
shr eax, 8
lea edx, [r9 - 8]
mov byte [rcx], r10b
lea rcx, [rcx + 1]
inc r8d
mov dword [rbx + 0x18], eax
mov r9d, edx
movzx r10d, al
test edx, edx
jg 0x14003b560
mov dword [rbx + 0x10], edx
jns 0x14003b5a8
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14003b5d7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14003b5c1
xor dl, dl
jmp 0x14003b5ca
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14003b5b8
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14003b584
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14003b641
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x20]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x30]
jbe 0x14003b65b
mov rcx, rbx
call fcn.14003a8c0
test eax, eax
je 0x14003b634
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x20], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14004bca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x13d0
call fcn.14009fcd0
sub rsp, rax
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rsi, r8
mov rbp, rdx
lea rbx, [rcx + 0x280]
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14004bcf2
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
jne 0x14004bd0d
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdi, qword [rbp + 8]
sub rdi, qword [rbp]
sar rdi, 5
mov rbp, qword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rbp
sub rcx, rdx
sar rcx, 3
cmp rdi, rcx
jae 0x14004bd35
lea rax, [rdx + rdi*8]
jmp 0x14004bd70
jbe 0x14004bd74
mov rax, qword [rsi + 0x10]
sub rax, rdx
sar rax, 3
cmp rdi, rax
jbe 0x14004bd54
mov rdx, rdi
mov rcx, rsi
call fcn.1400524a0
jmp 0x14004bd74
sub rdi, rcx
lea rdi, [rdi*8]
mov r8, rdi
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
lea rax, [rdi + rbp]
mov qword [rsi + 8], rax
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
xor edx, edx
cmp rcx, r8
je 0x14004bda1
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
mov qword [rcx], rax
inc edx
add rcx, 8
cmp rcx, r8
jne 0x14004bd90
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov r8d, 1
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x34], eax
inc r8
cmp r8, 0x270
jb 0x14004bdc0
mov dword [rsp + 0x30], 0x270
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
lea r8, [rsp + 0x30]
call fcn.1400515c0
nop
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14009eb70
mov rbx, qword [rsp + 0x13f0]
add rsp, 0x13d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004be30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x13e0
call fcn.14009fcd0
sub rsp, rax
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
mov r14, rcx
xorps xmm0, xmm0
mov rsi, qword [rcx + 0x10]
sub rsi, qword [rcx + 8]
sar rsi, 5
movdqu xmmword [rsp + 0x20], xmm0
xor ebp, ebp
mov qword [rsp + 0x30], rbp
test rsi, rsi
je 0x14004bf08
movabs rax, 0x1fffffffffffffff
cmp rsi, rax
ja 0x14004c062
lea rsi, [rsi*8]
test rsi, rsi
jne 0x14004bea9
mov edi, ebp
jmp 0x14004bee6
cmp rsi, 0x1000
jb 0x14004bedb
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14004c05c
call fcn.14009eef0
test rax, rax
je 0x14004c028
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14004bee6
mov rcx, rsi
call fcn.14009eef0
mov rdi, rax
mov qword [rsp + 0x20], rdi
lea rbx, [rsi + rdi]
mov qword [rsp + 0x30], rbx
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], rbx
jmp 0x14004bf12
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
mov edx, ebp
cmp rdi, rbx
je 0x14004bf31
mov rcx, rdi
nop dword [rax]
movsxd rax, edx
mov qword [rcx], rax
inc edx
add rcx, 8
cmp rcx, rbx
jne 0x14004bf20
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13c4], 0xffffffff
mov dword [rsp + 0x44], eax
mov esi, 1
mov r8d, esi
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x44], eax
inc r8
cmp r8, 0x270
jb 0x14004bf50
mov dword [rsp + 0x40], 0x270
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.1400515c0
mov rbx, qword [r14]
lea rcx, [rbx + 0x280]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14004bfa9
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x2cc]
cmp eax, 0x7fffffff
jne 0x14004bfca
dec eax
mov dword [rbx + 0x2cc], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, dword [rdi]
mov rax, qword [r14]
mov dword [rax + 0x128], ecx
lea rcx, [rbx + 0x280]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, qword [r14]
xchg byte [rax + 0x16c8], bpl
mov rax, qword [r14]
xchg byte [rax + 0x16c9], sil
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c02f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c02f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009effc
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.14009eb70
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140001350
int3
call fcn.140015900
int3
Function at 0x140051280
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400512e1
lea r8, [r9 + 8]
nop dword [rax + 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 0x1400512a0
mov ecx, dword [r9]
jmp 0x1400513cb
cmp ecx, 0x4e0
jb 0x1400513cb
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]
add r10, 4
mov edx, r11d
xor edx, eax
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 0x140051300
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 0x140051350
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 0x140057f00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140057f5d
lea rbx, [0x1400c4b50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140057f44
cmp r10, 2
jb 0x140057f44
cmp byte [r9], r8b
jne 0x140057f44
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140057f20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140057f9f
lea rbx, [0x1400c4b50]
cmp r8b, 0x23
jne 0x140057f83
cmp byte [r9], r8b
jne 0x140057f83
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140057f70
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140058160
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x14005817e
mov qword [r8], r14
lea rdx, [0x1400c31c4]
call fcn.140057fb0
mov rbx, rax
test rax, rax
jne 0x1400581a3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400582cf
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400582cf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400582cf
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400582cf
cmp rdi, 0xffffffffffffffff
je 0x1400582cf
mov rcx, rdi
call fcn.14005c380
mov rbp, rax
test rax, rax
je 0x1400582cf
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400582bc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400e6080]
test r8, r8
je 0x1400582b1
movsx rdx, word [r8 + 0x60e8]
lea rcx, [r8 + 0x60ec]
mov r9d, dword [r8 + 0x3f68]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400582a6
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e8], cx
movsx rax, cx
lea rcx, [r8 + 0x60ec]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60e4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400582d8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400582ca
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1400582da
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140065ba0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
lea r15, [0x1400c4b50]
movsxd rcx, dword [rcx + 0x108]
mov r14, rdx
mov rdi, rdx
mov rbx, rdx
mov r11, rdx
shr rbx, 0x30
mov rax, qword [rsi + 0x110]
mov r10, rdx
mov r9, rdx
shr r10, 0x20
mov r8, rdx
shr r9, 0x18
shr rdx, 8
mov ebp, dword [rax + rcx*4 - 4]
not ebp
movzx eax, r14b
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
movzx eax, dl
shr r8, 0x10
shr r11, 0x28
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
movzx eax, r8b
shr rdi, 0x38
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
movzx eax, r9b
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
movzx eax, r10b
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
movzx eax, r11b
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
movzx eax, bl
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
xor ebp, dword [r15 + rcx*4]
movzx ecx, bpl
xor rcx, rdi
shr ebp, 8
xor ebp, dword [r15 + rcx*4]
mov rcx, qword [rsi]
not ebp
cmp dword [rcx + 0x405c], ebp
jne 0x140065ca5
mov r8, r14
mov edx, ntohs
mov ecx, ebp
call fcn.140070b50
mov rbx, qword [rsp + 0x60]
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140065cc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x1400c4b50]
movsxd rcx, dword [rcx + 0x108]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0x110]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x405c], ebx
jne 0x140065d54
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140070b50
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret