Function at 0x500820
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x535530]
mov eax, dword [ebx + 8]
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x2c], eax
movaps xmm0, xmmword [0x535520]
mov eax, dword [ebx + 0xc]
movups xmmword [ebp - 0x15c], xmm0
push esi
movaps xmm0, xmmword [0x535550]
mov esi, 0x20
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x28], eax
lea eax, [ecx + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x238], ecx
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movaps xmm0, xmmword [0x535540]
push edi
mov dword [ebp - 0x134], 2
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x164], 3
mov dword [ebp - 0x160], 3
mov dword [ebp - 0x200], esi
movaps xmmword [ebp - 0x260], xmm0
mov dword [ebp - 0x23c], eax
push 0x8a
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x11c], 0xffffff
lea eax, [ebp - 0xc0]
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0xffffff
push 0
push eax
mov dword [ebp - 0x114], 0xffffff
mov dword [ebp - 0x110], 0xffffff
mov dword [ebp - 0x10c], 0xffffff
mov dword [ebp - 0x234], 0
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0xe8], 0
movups xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xd4], xmm0
call fcn.004c6150
mov edx, dword [ebp - 0x23c]
xor eax, eax
xor edi, edi
mov dword [ebp - 0xc], eax
add esp, 0xc
mov word [ebp - 8], ax
xor ecx, ecx
mov dword [ebp - 0x220], eax
mov word [ebp - 9], 0x101
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 0x218], al
mov dword [ebp - 0x230], edx
jmp 0x5009dc
mov edi, dword [ebp - 0x20c]
jmp 0x5009d6
mov edi, dword [ebp - 0x20c]
nop dword [eax]
mov ecx, dword [ebp - 0x204]
mov esi, dword [ebp - 0x200]
cmp dword [ebp - 0x108], 0x2d
mov edx, dword [ebp - 0x21c]
mov eax, edx
jl 0x500a0c
cmp dword [ebp - 0x104], 0x2d
jl 0x500a0c
cmp dword [ebp - 0x100], 0x2d
jl 0x500a0c
cmp dword [ebp - 0xfc], 0x2d
jge 0x500fdb
cmp edi, 0x40
jge 0x500fdb
inc edx
mov dword [ebp - 0x21c], edx
cmp eax, 0x100
jge 0x500fdb
lea eax, [esi + 1]
cmp eax, 0x20
jbe 0x500afb
push 0
push 0x100
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1f8], 0x6a09e667
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1f4], 0xbb67ae85
mov dword [ebp - 0x1f0], 0x3c6ef372
mov dword [ebp - 0x1ec], 0xa54ff53a
mov dword [ebp - 0x1e8], 0x510e527f
mov dword [ebp - 0x1e4], 0x9b05688c
mov dword [ebp - 0x1e0], 0x1f83d9ab
mov dword [ebp - 0x1dc], 0x5be0cd19
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
call fcn.0050eb90
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1f8]
call fcn.0050e960
add esp, 8
xor esi, esi
mov cl, byte [ebp + esi - 0x2c]
inc esi
mov dl, cl
mov byte [ebp - 0x1f9], cl
and dl, 7
mov dword [ebp - 0x200], esi
cmp dl, 5
jne 0x500c0d
lea eax, [esi + 1]
cmp eax, 0x20
jbe 0x500bf4
push 0
push 0x100
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1f8], 0x6a09e667
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1f4], 0xbb67ae85
mov dword [ebp - 0x1f0], 0x3c6ef372
mov dword [ebp - 0x1ec], 0xa54ff53a
mov dword [ebp - 0x1e8], 0x510e527f
mov dword [ebp - 0x1e4], 0x9b05688c
mov dword [ebp - 0x1e0], 0x1f83d9ab
mov dword [ebp - 0x1dc], 0x5be0cd19
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
call fcn.0050eb90
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1f8]
call fcn.0050e960
mov cl, byte [ebp - 0x1f9]
add esp, 8
xor esi, esi
lea eax, [ebp - 0x2c]
add eax, esi
inc esi
mov dword [ebp - 0x200], esi
mov dl, byte [eax]
sar dl, 7
and dl, 1
add dl, 3
jmp 0x500c22
cmp dl, 6
jb 0x500c16
mov dl, 5
jmp 0x500c22
cmp dl, 2
ja 0x500c1f
xor dl, dl
jmp 0x500c22
add dl, 0xfe
mov al, cl
shr cl, 5
shr al, 3
and al, 3
mov byte [ebp - 0x1f9], cl
movzx edi, al
mov byte [ebp - 0x205], al
mov dword [ebp - 0x24c], edi
movzx esi, cl
cmp dl, 1
je 0x500c53
cmp dl, 2
je 0x500c53
cmp dl, 5
jne 0x500c63
cmp edi, esi
jne 0x500c63
mov esi, 8
mov byte [ebp - 0x1f9], 8
movzx ecx, dl
mov dword [ebp - 0x214], ecx
mov dh, byte [ebp + ecx - 0xc]
test dh, dh
je 0x500c82
cmp byte [ebp + edi - 0x220], 0
jne 0x5009c7
test dl, dl
je 0x500cba
movzx ecx, byte [ebp + esi*4 - 0x12c]
mov eax, dword [ebp + edi*4 - 0x12c]
shl ecx, 8
and eax, 0xffff00
add ecx, dword [ebp - 0x214]
shl ecx, 8
cmp eax, ecx
mov ecx, dword [ebp - 0x204]
je 0x5009bf
mov ecx, dword [ebp - 0x214]
lea eax, [esi*4]
mov dword [ebp - 0x22c], 0xffffffff
lea esi, [edi*4]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + eax - 0x108]
lea edi, [ebp - 0x108]
mov dword [ebp - 0x210], esi
add esi, edi
mov dword [ebp - 0x248], esi
mov edi, dword [esi]
cmp edi, eax
mov esi, edi
mov dword [ebp - 0x244], edi
cmovle esi, eax
cmp esi, 0x2d
jge 0x500d84
mov eax, dword [ebp + ecx*4 - 0x174]
dec eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0xbd]
add eax, esi
lea edi, [eax + esi*2]
mov eax, dword [ebp - 0x240]
test eax, eax
js 0x500d6b
nop word [eax + eax]
cmp byte [edi + eax - 3], 0
jne 0x500d66
cmp dl, 1
jne 0x500d42
cmp byte [edi + eax], 0
jne 0x500d66
test dh, dh
je 0x500f98
mov ecx, dword [ebp + ecx*4 - 0x144]
imul ecx, dword [ebp - 0x234]
cmp esi, ecx
mov ecx, dword [ebp - 0x214]
jge 0x500f98
sub eax, 1
jns 0x500d30
mov eax, dword [ebp - 0x22c]
test eax, eax
jns 0x500d7e
inc esi
add edi, 3
cmp esi, 0x2d
jl 0x500d20
mov edi, dword [ebp - 0x244]
lea eax, [edi + 7]
mov edi, dword [ebp - 0x20c]
cmp esi, eax
jg 0x5009d0
mov edi, dword [ebp + ecx*4 - 0x144]
add esi, edi
cmp esi, 0x2d
jg 0x500fc9
mov ecx, dword [ebp - 0x234]
test dh, dh
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, esi
mov dword [ebp - 0x234], eax
sub ecx, edi
mov eax, dword [ebp - 0x22c]
lea edi, [eax + ecx*2]
mov eax, dword [ebp - 0x248]
add edi, ecx
mov dword [eax], esi
mov esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x224]
mov byte [ebp + edi - 0xc0], 1
mov ecx, dword [ebp + esi - 0xe4]
mov eax, dword [ebp + eax - 0xe4]
cmp ecx, eax
mov esi, dword [ebp - 0x214]
cmovle ecx, eax
mov eax, dword [ebp - 0x210]
add ecx, dword [ebp + esi*4 - 0x15c]
mov dword [ebp + eax - 0xe4], ecx
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x218]
movzx ecx, cl
mov dword [ebp - 0x218], ecx
mov byte [ebp + eax - 0x220], dh
mov eax, dword [ebp - 0x224]
movzx eax, byte [ebp + eax - 0x12c]
shl eax, 8
add eax, esi
mov esi, dword [ebp - 0x210]
shl eax, 8
add eax, dword [ebp - 0x204]
mov dword [ebp + esi - 0x12c], eax
mov esi, dword [ebp - 0x230]
mov al, byte [ebp - 0x205]
mov byte [esi - 3], al
mov al, byte [ebp - 0x1f9]
mov byte [esi - 2], al
cmp al, 8
mov eax, ecx
mov byte [esi - 4], dl
mov ecx, 1
mov dword [esi], 0
mov esi, dword [ebp - 0x200]
cmove eax, ecx
cmp dl, cl
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x204]
jne 0x500fa3
lea eax, [esi + 4]
mov byte [ebp + edi - 0xbd], 1
cmp eax, 0x20
jbe 0x500f81
push 0
push 0x100
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1f8], 0x6a09e667
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1f4], 0xbb67ae85
mov dword [ebp - 0x1f0], 0x3c6ef372
mov dword [ebp - 0x1ec], 0xa54ff53a
mov dword [ebp - 0x1e8], 0x510e527f
mov dword [ebp - 0x1e4], 0x9b05688c
mov dword [ebp - 0x1e0], 0x1f83d9ab
mov dword [ebp - 0x1dc], 0x5be0cd19
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d8], 0
call fcn.0050eb90
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1f8]
call fcn.0050e960
mov ecx, dword [ebp - 0x204]
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + esi - 0x2c]
add esi, 4
mov dword [ebp - 0x200], esi
mov dword [edx], eax
jmp 0x500fa9
mov dword [ebp - 0x22c], eax
jmp 0x500d71
mov edx, dword [ebp - 0x230]
inc ecx
add edx, 8
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x230], edx
cmp ecx, 0x3c
jge 0x500fdb
mov edi, dword [ebp - 0x20c]
jmp 0x5009dc
mov edi, dword [ebp - 0x20c]
inc edi
mov dword [ebp - 0x20c], edi
jmp 0x5009d0
cmp ecx, 0x46
jge 0x50112c
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], 0
lea eax, [eax + ecx*8]
add eax, 2
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0xe4]
cmp edx, 0x2d
jge 0x50112c
mov esi, dword [ebp - 0xe0]
cmp esi, 0x2d
jge 0x50112c
mov edi, dword [ebp - 0xdc]
cmp edi, 0x2d
jge 0x50112c
cmp dword [ebp - 0xd8], 0x2d
jge 0x50112c
xor ecx, ecx
mov byte [ebp - 0x226], 0
cmp esi, edx
setl cl
xor eax, eax
cmp esi, edx
mov edx, 2
mov esi, 3
setg al
mov word [ebp - 0x228], si
cmp edi, dword [ebp + ecx*4 - 0xe4]
cmovl ecx, edx
cmp edi, dword [ebp + eax*4 - 0xe4]
mov edi, dword [ebp - 0x21c]
cmovg eax, edx
mov edx, dword [ebp - 0xd8]
cmp edx, dword [ebp + ecx*4 - 0xe4]
cmovl ecx, esi
cmp edx, dword [ebp + eax*4 - 0xe4]
mov dword [ebp - 0x220], ecx
cmovg eax, esi
mov dword [ebp - 0x224], eax
mov eax, edi
cdq
inc edi
idiv esi
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x21c], edi
mov dl, byte [ebp + edx - 0x228]
movzx ecx, dl
mov eax, dword [ebp + ecx*4 - 0x144]
add eax, dword [ebp + esi*4 - 0x108]
mov esi, dword [ebp - 0x220]
mov dword [ebp + esi*4 - 0x108], eax
mov eax, dword [ebp + ecx*4 - 0x15c]
mov ecx, dword [ebp - 0x224]
add eax, dword [ebp + ecx*4 - 0xe4]
mov dword [ebp + esi*4 - 0xe4], eax
mov esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x220]
mov byte [esi], cl
mov ecx, dword [ebp - 0x204]
inc ecx
mov byte [esi - 2], dl
mov byte [esi - 1], al
mov dword [esi + 2], 0
add esi, 8
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x210], esi
cmp ecx, 0x46
jl 0x501000
cmp byte [ebp - 0x218], 0
movaps xmm0, xmmword [ebp - 0x260]
mov esi, dword [ebp - 0x200]
je 0x5008f4
movaps xmm0, xmmword [ebp - 0x260]
add ecx, 0xffffffc4
cmp ecx, 0xa
ja 0x5008f4
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x204]
pop edi
pop esi
mov word [ecx + eax*8], 6
mov byte [ecx + eax*8 + 2], 0
mov dword [ecx + eax*8 + 4], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c3717
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret