joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e20
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x00424338]
mov qword [rsp + 0x78], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
xor dil, dil
cmp qword [rcx], 0xffffffffffffffff
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x413e67
call fcn.00413af0
cmp rax, 0xffffffffffffffff
je 0x413f66
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.004187d0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor eax, eax
mov dword [rsp + 0x58], eax
mov word [rsp + 0x58], 2
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.WS2_32.dll_inet_addr]
test si, si
mov dword [rsp + 0x5c], eax
jne 0x413edc
mov word [rsp + 0x5a], si
jmp 0x413eea
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x413f55
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x413f50
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov word [rsp + 0x68], ax
mov qword [rsp + 0x6a], rax
mov dword [rsp + 0x72], eax
mov word [rsp + 0x76], ax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x413f50
movzx ecx, word [rsp + 0x6a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rbx + 0x8c], r11d
mov dil, 1
jmp 0x413f5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [rsp + 0x38]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb8]
mov al, dil
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.00419e60
add rsp, 0x98
ret
Function at 0x414100
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00424338]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rcx], 0xffffffffffffffff
mov rsi, rdx
mov byte [rcx + 8], 1
mov dword [rcx + 0x8c], 0
mov qword [rsp + 0x40], rdi
mov rdi, rcx
xor edx, edx
add rcx, 9
mov r8d, 0x80
call sub.msvcrt.dll_memset
lea r8, str.tcp_cli_socket
lea rdx, [0x0041d8b0]
lea rcx, [rdi + 9]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rcx, [rdi + 0x90]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
cmp rsi, 0xffffffffffffffff
mov rbx, qword [rsp + 0x60]
mov qword [rdi], rsi
je 0x4141d1
xor eax, eax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov word [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [rsp + 0x2a], rax
mov dword [rsp + 0x32], eax
mov word [rsp + 0x36], ax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4141d1
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rdi + 0x8c], r11d
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.00419e60
add rsp, 0x48
ret

Function at 0x414360
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbp
mov rbp, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], rsi
je 0x41443c
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x4143df
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rdi
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x0041d948]
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.004108b0
mov r9d, dword [rbp + 0x8c]
lea r8, [rbp + 9]
lea rdx, str._comm__Socket__s:_d_::accept_failed:__d
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.004109b0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
jmp 0x414409
mov rcx, qword [rbp]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x41443c
cmp rsi, 0xffffffffffffffff
je 0x41443c
mov ecx, 0x490
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x41443c
mov rdx, rsi
mov rcx, rax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
jmp fcn.00414100
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x48
ret

Function at 0x414a20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x68]
mov rbx, r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414a69
mov ecx, dword [rsp + 0x50]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret
Function at 0x415550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
sub rsp, 0x178
mov rax, qword [0x00424338]
mov qword [rsp + 0x150], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
test r8d, r8d
mov qword [r11 - 0x10], rsi
mov ebx, 0x10008
mov eax, 0x10108
cmovne ebx, eax
mov qword [r11 - 0x18], rdi
mov edi, r8d
bts ebx, 9
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
jne 0x4155a5
mov eax, 0x3f2
jmp 0x415670
call fcn.00414cd0
lea r11, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415670
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov ebx, eax
je 0x41562f
test eax, eax
jne 0x415663
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, edi
call fcn.00415550
mov ebx, eax
test eax, eax
mov eax, 0
je 0x4155d0
jmp 0x415663
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.00414cd0
test edi, edi
je 0x415655
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.00414c20
test eax, eax
mov ebx, eax
je 0x415663
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x150]
call fcn.00419e60
add rsp, 0x178
ret
Function at 0x416ff0
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x68
mov qword [rsp + 0x58], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov r13, qword [rsp + 0x90]
mov qword [rsp + 0x30], r14
mov qword [rbp], 0
mov qword [rsp + 0x28], r15
movzx r14d, r9w
mov byte [r13], 0
mov r15d, r8d
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x41714e
cmp word [rax + 0x10], 2
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
jne 0x4170fd
cmp word [rax + 0x12], 4
jne 0x4170fd
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x4170fd
nop
mov esi, dword [rcx]
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
mov rbx, rax
je 0x4170e3
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
jne 0x4170b8
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor ebx, ebx
jmp 0x4170e3
mov ecx, dword [rsp + 0x78]
mov word [rax], 2
mov word [rax + 2], r14w
mov dword [rax + 4], esi
mov dword [rbx + 8], ecx
mov dword [rbx + 4], 2
mov dword [rbx + 0xc], r15d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x417147
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x417080
mov rdx, qword [r12]
mov r8d, 0x400
mov rcx, r13
call qword [sym.imp.msvcrt.dll_strncpy]
mov byte [r13 + 0x400], 0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x68
ret
mov eax, 8
jmp 0x41711a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x417165
dec eax
je 0x417173
dec eax
je 0x41716c
dec eax
mov eax, 0x2af9
jmp 0x417129
mov eax, 0x2afb
jmp 0x417129
mov eax, 0x2afa
jmp 0x417129
Function at 0x417bb0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x00424338]
mov qword [rsp + 0x270], rax
cmp dword [0x0042da48], 0
lea rax, [0x00417510]
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
mov qword [r11 - 8], r12
mov qword [rsp + 0x30], rax
lea rax, [0x004178e0]
lea r12, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
movzx ebp, cx
mov qword [rsp + 0x40], rax
lea rax, [0x004174a0]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], rax
jne 0x417d8a
lea rcx, [r11 - 0x128]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x417d80
mov qword [rsp + 0x290], rbx
xor ebx, ebx
mov rcx, rbx
movzx eax, byte [rsp + rcx + 0x160]
inc rcx
test al, al
mov byte [rsp + rcx + 0x4f], al
jne 0x417c50
xor eax, eax
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x2a8], rdi
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.ws2_32]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x417cbb
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x417d1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rbx
nop
movzx eax, byte [rsp + rdx + 0x160]
inc rdx
test al, al
mov byte [rsp + rdx + 0x4f], al
jne 0x417cc0
xor eax, eax
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.wship6]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x417d68
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x417d1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x417d68
lea rdi, [rsp + 0x28]
mov rdx, qword [rdi - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi], rax
je 0x417d12
inc rbx
add rdi, 0x10
cmp rbx, 3
jl 0x417d22
mov rax, qword [rsp + 0x28]
mov qword [0x00424720], rax
mov rax, qword [rsp + 0x38]
mov qword [0x00424730], rax
mov rax, qword [rsp + 0x48]
mov qword [0x00424740], rax
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x290]
mov dword [0x0042da48], 1
mov r12, qword [rsp + 0x280]
movzx eax, bp
mov rbp, qword [rsp + 0x298]
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
call fcn.00419e60
add rsp, 0x288
ret
Function at 0x419b70
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x419bad
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x419c3b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x419bd1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x419c3b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x419c18
cmp ecx, 0x20b
je 0x419bf0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x419c3b
cmp dword [rax + 0x84], 0xe
ja 0x419c04
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x419c3b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x419c3b
cmp dword [rax + 0x74], 0xe
ja 0x419c29
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x419c3b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0042da78], 0xffffffffffffffff
mov qword [0x0042da80], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0042da70]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0042da6c]
mov dword [rcx], eax
call fcn.00419e20
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x419c95
lea rcx, [fcn.00419e20]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x0041ba20]
lea rcx, [0x0041ba18]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x0042da68]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0042da64]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x0041ba10]
lea rcx, [0x0041b900]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x419d36
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x419d26
cmp al, 0x22
je 0x419d26
jmp 0x419d10
cmp byte [r8], 0x22
jne 0x419d46
inc r8
mov qword [rsp + 0x30], r8
jmp 0x419d46
cmp byte [r8], 0x20
jbe 0x419d46
inc r8
mov qword [rsp + 0x30], r8
jmp 0x419d36
movzx eax, byte [r8]
test al, al
je 0x419d5c
cmp al, 0x20
ja 0x419d5c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x419d46
test byte [rsp + 0x8c], 1
je 0x419d71
movzx r9d, word [rsp + 0x90]
jmp 0x419d77
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00403a00
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x419d93
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x419db7
mov eax, edi
jmp 0x419dc0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x1800059c0
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 0x180005a1d
lea rbx, [0x18006be60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180005a04
cmp r10, 2
jb 0x180005a04
cmp byte [r9], r8b
jne 0x180005a04
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 0x1800059e0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180005a5f
lea rbx, [0x18006be60]
cmp r8b, 0x23
jne 0x180005a43
cmp byte [r9], r8b
jne 0x180005a43
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 0x180005a30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180005c20
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 0x180005c3e
mov qword [r8], r14
lea rdx, [0x18006b970]
call fcn.180005a70
mov rbx, rax
test rax, rax
jne 0x180005c63
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 0x180005d8d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180005d8d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180005d8d
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 0x180005d8d
cmp rdi, 0xffffffffffffffff
je 0x180005d8d
mov rcx, rdi
call fcn.180009100
mov rbp, rax
test rax, rax
je 0x180005d8d
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 0x180005d7a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1800812e0]
test r8, r8
je 0x180005d6f
movsx rdx, word [r8 + 0x60d0]
lea rcx, [r8 + 0x60d4]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180005d64
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 + 0x60d0], cx
movsx rax, cx
lea rcx, [r8 + 0x60d4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60cc]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180005d96
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180005d88
mov qword [rsi], rdi
mov rax, rbp
jmp 0x180005d98
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 0x18000ca00
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000ca50
lea r11, [0x18006be60]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000ca33
cmp byte [r8], r9b
jne 0x18000ca33
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18000ca20
mov rcx, qword [0x1800812e0]
not eax
movsxd rdx, dword [rcx + 0x3fe8]
mov r9, qword [rcx + 0x3ff0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000cab1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000caa9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000caac
mov rdx, r8
test rdx, rdx
jne 0x18000ca80
cmp r9, r10
je 0x18000cac0
cmp dword [r9], eax
jne 0x18000cac0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180012a60
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x108]
lea r10, [0x18006be60]
mov r8, rdx
mov r9, rcx
movsxd rdx, dword [rcx + 0x100]
mov ebx, dword [rax + rdx*4 - 4]
not ebx
movzx eax, r8b
movzx edx, bl
xor rdx, rax
shr ebx, 8
mov rax, r8
shr rax, 8
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x10
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x18
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x20
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x28
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x30
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x38
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x4054], ebx
jne 0x180012b4f
mov edx, 0xc
mov ecx, ebx
call fcn.18001d470
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180012b60
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x18006be60]
mov rax, qword [rcx + 0x108]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x4054], ebx
jne 0x180012bf6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.18001d470
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180012c00
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x108]
lea r9, [0x18006be60]
movss xmm2, dword [rcx + 0x120]
movss xmm3, dword [rcx + 0x124]
movsxd rcx, dword [rcx + 0x100]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret