Function at 0x6b573910
Capabilities:
Encrypt data using rc4 prga
Hash data using sha224

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x20], 0xc1059ed8
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0xfc], eax
xor eax, eax
mov eax, 0x6b62cba0
mov dword [esp + 0x24], 0xcbbb9d5d
mov esi, dword [esp + 0x120]
test ebx, ebx
mov dword [esp + 0x28], 0x367cd507
mov dword [esp + 0x2c], 0x629a292a
cmove ebx, eax
mov dword [esp + 0x30], 0x3070dd17
mov dword [esp + 0x34], 0x9159015a
mov dword [esp + 0x38], 0xf70e5939
mov dword [esp + 0x3c], 0x152fecd8
mov dword [esp + 0x40], 0xffc00b31
mov dword [esp + 0x44], 0x67332667
mov dword [esp + 0x48], 0x68581511
mov dword [esp + 0x4c], 0x8eb44a87
mov dword [esp + 0x50], 0x64f98fa7
mov dword [esp + 0x54], 0xdb0c2e0d
mov dword [esp + 0x58], 0xbefa4fa4
mov dword [esp + 0x5c], 0x47b5481d
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0x30
test ebp, ebp
je 0x6b573e70
mov eax, ebp
xor edx, edx
shl eax, 3
shld edx, ebp, 3
mov dword [esp + 0x60], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
mov dword [esp + 0x18], eax
cmp ebp, 0x7f
ja 0x6b573ae0
lea edx, [esp + 0x70]
mov edi, edx
cmp ebp, 4
jae 0x6b574038
xor eax, eax
test ebp, 2
jne 0x6b574018
test ebp, 1
jne 0x6b574000
mov dword [esp + 0xf0], ebp
mov byte [esp + ebp + 0x70], pe_nt_image_headers32
add ebp, 1
lea ecx, [edx + ebp]
cmp ebp, 0x70
jbe 0x6b573b23
mov eax, pe_nt_image_headers32
mov dword [esp], ecx
sub eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edx
call sym._memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._sha512_block_data_order
mov edx, dword [esp + 0x1c]
mov eax, 0x70
mov ecx, edx
cmp eax, 4
jb 0x6b573b2f
lea edi, [ecx + 4]
mov dword [ecx], 0
and edi, 0xfffffffc
mov dword [ecx + eax - 4], 0
sub ecx, edi
add ecx, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x6b573b3e
mov eax, ebp
mov dword [esp + 4], esi
shr eax, 7
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._sha512_block_data_order
mov eax, ebp
and eax, 0x7f
jne 0x6b574059
mov ebp, dword [esp + 0xf0]
lea edx, [esp + 0x70]
mov byte [esp + ebp + 0x70], pe_nt_image_headers32
add ebp, 1
lea ecx, [edx + ebp]
cmp ebp, 0x70
ja 0x6b573a6d
mov eax, 0x70
sub eax, ebp
cmp eax, 4
jae 0x6b573ab8
test eax, eax
je 0x6b573b3e
mov byte [ecx], 0
test al, 2
jne 0x6b574048
mov eax, dword [esp + 0x6c]
xor ecx, ecx
mov edi, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
shr eax, 0x18
mov cl, al
mov eax, dword [esp + 0x6c]
shr eax, 0x10
mov ch, al
mov eax, dword [esp + 0x6c]
movzx esi, ah
movzx eax, cx
mov ecx, dword [esp + 0x6c]
shl esi, 0x10
or eax, esi
mov esi, dword [esp + 0x68]
shl ecx, 0x18
or ecx, eax
xor eax, eax
shrd esi, edi, 0x18
mov dword [esp + 0xe0], ecx
mov edi, dword [esp + 0x6c]
mov ecx, esi
mov esi, dword [esp + 0x68]
mov al, cl
shrd esi, edi, 0x10
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x68]
mov ah, byte [esp + 0x1c]
shrd esi, edi, 8
mov edi, dword [esp + 0x64]
mov ecx, esi
movzx eax, ax
movzx esi, cl
mov ecx, dword [esp + 0x68]
shl esi, 0x10
or eax, esi
shl ecx, 0x18
or ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xe4], ecx
xor ecx, ecx
shr eax, 0x18
mov cl, al
mov eax, dword [esp + 0x64]
shr eax, 0x10
mov ch, al
mov eax, dword [esp + 0x64]
movzx esi, ah
movzx eax, cx
mov ecx, dword [esp + 0x64]
shl esi, 0x10
or eax, esi
mov esi, dword [esp + 0x60]
shl ecx, 0x18
or ecx, eax
xor eax, eax
shrd esi, edi, 0x18
mov dword [esp + 0xe8], ecx
mov edi, dword [esp + 0x64]
mov ecx, esi
mov esi, dword [esp + 0x60]
mov al, cl
shrd esi, edi, 0x10
mov edi, dword [esp + 0x64]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x60]
mov ah, byte [esp + 0x1c]
shrd esi, edi, 8
mov ecx, esi
movzx eax, ax
movzx esi, cl
mov ecx, dword [esp + 0x60]
shl esi, 0x10
or eax, esi
shl ecx, 0x18
or ecx, eax
mov dword [esp + 0xec], ecx
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._sha512_block_data_order
mov eax, dword [esp + 0xf4]
cmp eax, 0x30
je 0x6b573f20
ja 0x6b573d48
cmp eax, 0x1c
je 0x6b573e90
cmp eax, 0x20
jne 0x6b573d10
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x28]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov byte [ebx + 0x12], ah
shr ecx, 0x18
mov byte [ebx + 0x13], al
mov byte [ebx + 0x10], cl
mov ecx, eax
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 0x11], cl
mov ecx, eax
shr ecx, 0x18
bswap edx
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x38]
mov byte [ebx + 0x18], cl
mov ecx, eax
shr ecx, 0x10
bswap edx
mov byte [ebx + 0x1a], ah
mov byte [ebx + 0x19], cl
mov byte [ebx + 0x1b], al
mov dword [ebx + 0x1c], edx
lea esi, [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 0xd8
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov eax, dword [esp + 0xfc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b574054
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
jne 0x6b573d10
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x28]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov byte [ebx + 0x12], ah
shr ecx, 0x18
mov byte [ebx + 0x13], al
mov byte [ebx + 0x10], cl
mov ecx, eax
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 0x11], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0x1a], ah
bswap edx
mov byte [ebx + 0x18], cl
mov ecx, eax
mov byte [ebx + 0x1b], al
mov eax, dword [esp + 0x44]
shr ecx, 0x10
mov byte [ebx + 0x19], cl
mov ecx, eax
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x38]
shr ecx, 0x18
mov byte [ebx + 0x20], cl
mov ecx, eax
bswap edx
shr ecx, 0x10
mov dword [ebx + 0x1c], edx
mov edx, dword [esp + 0x40]
mov byte [ebx + 0x21], cl
mov byte [ebx + 0x22], ah
bswap edx
mov byte [ebx + 0x23], al
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x48]
mov ecx, eax
mov byte [ebx + 0x2a], ah
shr ecx, 0x18
mov byte [ebx + 0x2b], al
bswap edx
mov byte [ebx + 0x28], cl
mov ecx, eax
mov eax, dword [esp + 0x54]
shr ecx, 0x10
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0x50]
mov byte [ebx + 0x29], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0x32], ah
bswap edx
mov byte [ebx + 0x30], cl
mov ecx, eax
mov byte [ebx + 0x33], al
mov eax, dword [esp + 0x5c]
shr ecx, 0x10
mov byte [ebx + 0x31], cl
mov ecx, eax
mov dword [ebx + 0x34], edx
mov edx, dword [esp + 0x58]
shr ecx, 0x18
mov byte [ebx + 0x3a], ah
mov byte [ebx + 0x38], cl
mov ecx, eax
bswap edx
shr ecx, 0x10
mov byte [ebx + 0x3b], al
mov byte [ebx + 0x39], cl
mov dword [ebx + 0x3c], edx
jmp 0x6b573d10
lea edi, [esp + 0x20]
mov byte [esp + 0x70], pe_nt_image_headers32
lea ecx, [esp + 0x71]
mov eax, 0x6f
mov dword [esp + 0x18], edi
lea edx, [esp + 0x70]
jmp 0x6b573b2a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x28]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x30]
shr ecx, 0x18
mov byte [ebx + 0x12], ah
mov byte [ebx + 0x10], cl
mov ecx, eax
bswap edx
mov byte [ebx + 0x13], al
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov dword [ebx + 0x14], edx
mov edx, eax
mov byte [ebx + 0x11], cl
shr edx, 0x18
mov byte [ebx + 0x1a], ah
mov byte [ebx + 0x18], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 0x1b], al
mov byte [ebx + 0x19], dl
jmp 0x6b573d10
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x28]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov byte [ebx + 0x12], ah
shr ecx, 0x18
mov byte [ebx + 0x13], al
mov byte [ebx + 0x10], cl
mov ecx, eax
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 0x11], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0x1a], ah
bswap edx
mov byte [ebx + 0x18], cl
mov ecx, eax
mov byte [ebx + 0x1b], al
mov eax, dword [esp + 0x44]
shr ecx, 0x10
mov byte [ebx + 0x19], cl
mov ecx, eax
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x38]
shr ecx, 0x18
mov byte [ebx + 0x20], cl
mov ecx, eax
bswap edx
shr ecx, 0x10
mov dword [ebx + 0x1c], edx
mov edx, dword [esp + 0x40]
mov byte [ebx + 0x21], cl
mov byte [ebx + 0x22], ah
bswap edx
mov byte [ebx + 0x23], al
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x48]
mov ecx, eax
mov byte [ebx + 0x2a], ah
shr ecx, 0x18
bswap edx
mov byte [ebx + 0x2b], al
mov byte [ebx + 0x28], cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebx + 0x2c], edx
mov byte [ebx + 0x29], cl
jmp 0x6b573d10
movzx ecx, byte [esi + eax]
mov byte [edi + eax], cl
mov dword [esp + 0xf0], ebp
jmp 0x6b573a59
movzx eax, word [esi]
mov word [edi], ax
mov eax, 2
test ebp, 1
je 0x6b573a52
jmp 0x6b574000
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x6b573a38
xor esi, esi
mov word [ecx + eax - 2], si
jmp 0x6b573b3e
call sym.___stack_chk_fail
sub ebp, eax
add esi, ebp
mov ebp, eax
jmp 0x6b573a29