Function at 0x3985e2f60
Capabilities:
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r14d, dword [rsp + 0x118]
mov r13d, dword [rsp + 0x120]
mov rbp, rcx
mov ecx, 0x4df78
mov r12d, edx
mov dword [rsp + 0x108], r9d
mov edi, r8d
call sub.msvcrt.dll_malloc
mov rcx, qword [rsp + 0x110]
mov rsi, rax
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x108]
mov qword [rcx], 0
imul eax, r12d
test rsi, rsi
mov dword [rsp + 0x38], eax
je 0x3985e390e
mov qword [rsp + 0x68], 0
lea edx, [rax + 1]
mov eax, 0x40
imul edx, edi
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
cmp edx, eax
cmovl edx, eax
add edx, 0x39
movsxd r15, edx
mov rcx, r15
mov qword [rsp + 0x58], r15
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rsp + 0x60], rax
je 0x3985e3954
mov esi, 0x29
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x4c], 0x29
mov eax, esi
lea rsi, [rcx + 1]
cmp r15, rsi
jae 0x3985e30b2
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x3985e3096
nop dword [rax + rax]
add r15, r15
mov eax, pe_nt_image_headers64
cmp r15, rax
cmovb r15, rax
cmp r15, rsi
jb 0x3985e3050
mov rcx, qword [rsp + 0x60]
mov rdx, r15
call sub.msvcrt.dll_realloc
test rax, rax
je 0x3985e3092
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r15
movzx edx, byte [rsp + 0x4c]
mov byte [rax + rcx], dl
mov qword [rsp + 0x50], rsi
mov eax, dword [rsp + 0x4c]
sub eax, 1
mov dword [rsp + 0x4c], eax
je 0x3985e30c0
mov rcx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
lea rsi, [rcx + 1]
cmp r15, rsi
jb 0x3985e3040
mov rax, qword [rsp + 0x60]
jmp 0x3985e3085
lea r8, [rsp + 0x50]
mov esi, eax
mov rcx, rbx
mov qword [rsp + 0x30], rbx
lea rdx, [0x3986923a0]
mov eax, 0xa
cmp r14d, eax
cmovbe rax, r14
mov r9d, dword [rdx + rax*4]
lea rdx, [0x3985dab70]
or r9d, 0x1000
call fcn.3985e20f0
test edi, edi
jle 0x3985e3918
test r13d, r13d
movsxd r15, dword [rsp + 0x38]
jne 0x3985e3660
mov rbx, qword [rsp + 0x30]
lea r14, [rsp + 0x70]
mov dword [rsp + 0xf8], r12d
lea rsi, [rsp + 0x4c]
nop word cs:[rax + rax]
xor r9d, r9d
mov dword [rsp + 0x28], 0
mov r8, r14
mov rdx, rsi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov qword [rsp + 0x70], 1
call fcn.3985e1a40
cmp qword [rbx], 0
mov qword [rsp + 0x70], r15
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x98], r14
mov qword [rbx + 0x90], 0
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0xb0], rbp
mov qword [rbx + 0xb8], r15
mov qword [rbx + 0xc0], 0
mov dword [rbx + 0xa8], 0
je 0x3985e3878
mov r12d, dword [rbx + 0x84]
test r12d, r12d
jne 0x3985e3878
mov eax, dword [rbx + 0x80]
test eax, eax
jne 0x3985e3878
test r15, r15
je 0x3985e31dd
test rbp, rbp
je 0x3985e3878
mov eax, dword [rbx + 0x74]
test eax, eax
jne 0x3985e32ee
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x3985e38c0
mov eax, dword [rbx + 0x10]
mov rcx, rbx
and eax, 0xb4fff
cmp eax, 0x4001
je 0x3985e38d0
call fcn.3985ddd50
test eax, eax
je 0x3985e32f5
test dword [rbx + 0x10], 0x3000
je 0x3985e323c
test rbp, rbp
je 0x3985e323c
mov r8, qword [rbx + 0xb0]
mov rdx, rbp
mov ecx, dword [rbx + 0x20]
sub r8, rbp
call fcn.3985dff90
mov dword [rbx + 0x20], eax
mov rdx, qword [rbx + 0x98]
test rdx, rdx
je 0x3985e3259
mov rax, qword [rbx + 0xb0]
sub rax, qword [rbx + 0x88]
mov qword [rdx], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
je 0x3985e32d9
mov rcx, qword [rbx + 0xc0]
mov r8, qword [rax]
mov eax, dword [rbx + 0x74]
sub r8, rcx
cmp r8, rax
cmova r8, rax
mov eax, dword [rbx + 0x70]
add rcx, qword [rbx + 0x90]
mov qword [rsp + 0x30], r8
lea rdx, [rbx + rax + 0x392aa]
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x30]
movq xmm0, qword [rbx + 0x70]
mov rax, qword [rbx + 0xa0]
movdqa xmm2, xmm0
movd xmm3, r8d
add r8, qword [rbx + 0xc0]
pshufd xmm1, xmm3, 0xe0
paddd xmm2, xmm1
psubd xmm0, xmm1
mov qword [rbx + 0xc0], r8
movss xmm0, xmm2
movq qword [rbx + 0x70], xmm0
mov qword [rax], r8
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x3985e32ee
mov r11d, dword [rbx + 0x74]
xor r12d, r12d
test r11d, r11d
sete r12b
mov dword [rbx + 0x84], r12d
add r13d, 1
add rbp, r15
cmp edi, r13d
jne 0x3985e3130
mov r12d, dword [rsp + 0xf8]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], 4
mov r8, r14
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x70], 0
call fcn.3985e1a40
cmp eax, 1
jne 0x3985e38fa
mov rsi, qword [rsp + 0x50]
lea r8, [0x398691aec]
mov qword [rsp + 0x80], 0
mov ecx, edi
mov rax, qword [rsp + 0x110]
movzx ecx, ch
mov qword [rsp + 0x88], 8
movabs rbx, 0xa1a0a0d474e5089
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x98], 0x54
lea rdx, [rsi - 0x29]
mov qword [rax], rdx
mov rbp, rdx
movabs rax, 0x524448490d000000
mov qword [rsp + 0x78], rax
movabs rax, 0x4144490000000000
mov qword [rsp + 0x90], rax
mov eax, r12d
rol ax, 8
mov word [rsp + 0x82], ax
mov eax, edi
rol ax, 8
mov word [rsp + 0x86], ax
movsxd rax, dword [rsp + 0x108]
movzx r9d, byte [r8 + rax]
lea r8, [0x398691c20]
mov eax, r12d
movzx eax, ah
xor al, 0xc4
mov eax, dword [r8 + rax*4]
mov byte [rsp + 0x89], r9b
xor eax, 0x75a723
xor r12d, eax
shr eax, 8
movzx r12d, r12b
xor eax, dword [r8 + r12*4]
lea r12, [rsi + 0x10]
movzx r10d, al
shr eax, 8
xor eax, dword [r8 + r10*4]
movzx r10d, al
shr eax, 8
xor eax, dword [r8 + r10*4]
mov r10d, ecx
movzx ecx, dh
xor r10d, eax
shr eax, 8
movzx r10d, r10b
xor eax, dword [r8 + r10*4]
xor edi, eax
shr eax, 8
movzx edi, dil
xor eax, dword [r8 + rdi*4]
mov rdi, rdx
mov r10d, eax
shr eax, 8
xor r10d, 8
movzx r10d, r10b
xor eax, dword [r8 + r10*4]
movzx r10d, dl
mov rdx, r10
xor r9d, eax
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
movzx r9d, al
shr eax, 8
xor eax, dword [r8 + r9*4]
movzx r9d, al
shr eax, 8
xor eax, dword [r8 + r9*4]
movzx r9d, al
shr eax, 8
xor eax, dword [r8 + r9*4]
not eax
mov r9d, eax
mov r8d, eax
shl r9d, 8
shr r8d, 0x18
shr r9d, 0x18
shr rdi, 0x18
movzx r8d, r8b
shl rdx, 8
shr rbp, 0x10
movzx r9d, r9b
or rdx, rcx
movzx r10d, bpl
mov rbp, qword [rsp + 0x60]
shl rdx, 8
or rdx, r10
movzx r10d, dil
shl rdx, 8
or rdx, r10
movzx r10d, al
movzx eax, ah
shl rdx, 8
or rdx, r10
mov r10, rax
mov rax, rdx
shl rax, 8
or rax, r10
shl rax, 8
or rax, r9
shl rax, 8
or rax, r8
mov qword [rsp + 0x8d], rax
mov qword [rbp], rbx
mov rax, qword [rsp + 0x78]
mov qword [rbp + 8], rax
mov rax, qword [rsp + 0x80]
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x58]
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x90]
cmp rdi, r12
mov qword [rbp + 0x20], rax
movzx eax, byte [rsp + 0x98]
mov byte [rbp + 0x28], al
jae 0x3985e38a0
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x3985e392c
mov rbx, qword [rsp + 0x30]
nop dword [rax + rax]
add rdi, rdi
mov eax, pe_nt_image_headers64
cmp rdi, rax
cmovb rdi, rax
cmp rdi, r12
jb 0x3985e3570
mov rcx, rbp
mov rdx, rdi
mov qword [rsp + 0x30], rbx
call sub.msvcrt.dll_realloc
test rax, rax
mov rbp, rax
je 0x3985e3927
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
movabs rdi, 0x826042ae444e4549
add rax, rbp
xor ecx, ecx
mov qword [rax], 0
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x110]
mov r11, qword [rsp + 0x60]
mov qword [rsp + 0x50], r12
mov rax, qword [rax]
lea rdx, [r11 + 0x25]
lea r8, [rax + 4]
call fcn.3985e00f0
mov edx, eax
shr edx, 0x18
mov byte [r11 + rsi], dl
mov rcx, qword [rsp + 0x50]
mov edx, eax
mov r8, qword [rsp + 0x60]
shl edx, 8
shr edx, 0x18
mov byte [r8 + rcx - 0xf], dl
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov byte [rcx + rdx - 0xe], ah
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov byte [rcx + rdx - 0xd], al
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x30]
add qword [rax], 0x39
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x60]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0xf8], r12d
lea r14, [rsp + 0x70]
mov rbx, qword [rsp + 0x30]
mov eax, ecx
neg eax
movsxd r13, eax
lea eax, [rdi - 1]
imul eax, ecx
cdqe
add rbp, rax
lea rax, [rsp + 0x4c]
mov r12, rbp
mov qword [rsp + 0x38], rax
nop dword [rax]
mov rdx, qword [rsp + 0x38]
xor r9d, r9d
mov r8, r14
mov rcx, rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x70], 1
call fcn.3985e1a40
cmp qword [rbx], 0
mov qword [rsp + 0x70], r15
mov qword [rbx + 0x88], r12
mov qword [rbx + 0x98], r14
mov qword [rbx + 0x90], 0
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0xb0], r12
mov qword [rbx + 0xb8], r15
mov qword [rbx + 0xc0], 0
mov dword [rbx + 0xa8], 0
je 0x3985e3890
mov ebp, dword [rbx + 0x84]
test ebp, ebp
jne 0x3985e3890
mov r10d, dword [rbx + 0x80]
test r10d, r10d
jne 0x3985e3890
test r12, r12
jne 0x3985e3747
test r15, r15
jne 0x3985e3890
mov r9d, dword [rbx + 0x74]
test r9d, r9d
jne 0x3985e385c
mov r8d, dword [rbx + 0x78]
test r8d, r8d
jne 0x3985e38b0
mov eax, dword [rbx + 0x10]
mov rcx, rbx
and eax, 0xb4fff
cmp eax, 0x4001
je 0x3985e38e8
call fcn.3985ddd50
test eax, eax
je 0x3985e3862
test dword [rbx + 0x10], 0x3000
je 0x3985e37aa
test r12, r12
je 0x3985e37aa
mov r8, qword [rbx + 0xb0]
mov rdx, r12
mov ecx, dword [rbx + 0x20]
sub r8, r12
call fcn.3985dff90
mov dword [rbx + 0x20], eax
mov rdx, qword [rbx + 0x98]
test rdx, rdx
je 0x3985e37c7
mov rax, qword [rbx + 0xb0]
sub rax, qword [rbx + 0x88]
mov qword [rdx], rax
mov rdx, qword [rbx + 0xa0]
test rdx, rdx
je 0x3985e384a
mov rax, qword [rbx + 0xc0]
mov r8, qword [rdx]
mov edx, dword [rbx + 0x74]
sub r8, rax
cmp r8, rdx
cmova r8, rdx
add rax, qword [rbx + 0x90]
mov qword [rsp + 0x30], r8
mov rcx, rax
mov eax, dword [rbx + 0x70]
lea rdx, [rbx + rax + 0x392aa]
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x30]
movq xmm0, qword [rbx + 0x70]
mov rax, qword [rbx + 0xa0]
movdqa xmm2, xmm0
movd xmm4, r8d
add r8, qword [rbx + 0xc0]
pshufd xmm1, xmm4, 0xe0
paddd xmm2, xmm1
psubd xmm0, xmm1
mov qword [rbx + 0xc0], r8
movss xmm0, xmm2
movq qword [rbx + 0x70], xmm0
mov qword [rax], r8
mov ecx, dword [rbx + 0x78]
test ecx, ecx
je 0x3985e385c
mov edx, dword [rbx + 0x74]
xor ebp, ebp
test edx, edx
sete bpl
mov dword [rbx + 0x84], ebp
add esi, 1
add r12, r13
cmp edi, esi
jne 0x3985e3698
jmp 0x3985e3305
mov dword [rbx + 0x84], 0xfffffffe
jmp 0x3985e32f5
mov dword [rbx + 0x84], 0xfffffffe
jmp 0x3985e3862
mov rax, rsi
jmp 0x3985e35af
mov ebp, 1
jmp 0x3985e385c
mov r12d, 1
jmp 0x3985e32ee
call fcn.3985dd560
test eax, eax
jne 0x3985e3216
jmp 0x3985e32f5
call fcn.3985dd560
test eax, eax
jne 0x3985e3784
jmp 0x3985e3862
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x3985e3642
mov rcx, qword [rsp + 0x30]
lea r14, [rsp + 0x70]
jmp 0x3985e3315
mov rbp, qword [rsp + 0x60]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x30]
mov qword [rax], 0
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x3985e3642
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x3985e3642