Function at 0x6b574070
Capabilities:
Encrypt data using rc4 prga
Hash data using sha256

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], 0xf3bcc908
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0xfc], eax
xor eax, eax
mov eax, 0x6b62cb60
mov dword [esp + 0x24], 0x6a09e667
mov esi, dword [esp + 0x120]
test ebx, ebx
mov dword [esp + 0x28], 0x84caa73b
mov dword [esp + 0x2c], 0xbb67ae85
cmove ebx, eax
mov dword [esp + 0x30], 0xfe94f82b
mov dword [esp + 0x34], 0x3c6ef372
mov dword [esp + 0x38], 0x5f1d36f1
mov dword [esp + 0x3c], 0xa54ff53a
mov dword [esp + 0x40], 0xade682d1
mov dword [esp + 0x44], 0x510e527f
mov dword [esp + 0x48], 0x2b3e6c1f
mov dword [esp + 0x4c], 0x9b05688c
mov dword [esp + 0x50], 0xfb41bd6b
mov dword [esp + 0x54], 0x1f83d9ab
mov dword [esp + 0x58], 0x137e2179
mov dword [esp + 0x5c], 0x5be0cd19
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], 0x40
test ebp, ebp
je 0x6b5745d0
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 0x6b574240
lea edx, [esp + 0x70]
mov edi, edx
cmp ebp, 4
jae 0x6b574798
xor eax, eax
test ebp, 2
jne 0x6b574778
test ebp, 1
jne 0x6b574760
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 0x6b574283
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 0x6b57428f
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 0x6b57429e
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 0x6b5747b9
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 0x6b5741cd
mov eax, 0x70
sub eax, ebp
cmp eax, 4
jae 0x6b574218
test eax, eax
je 0x6b57429e
mov byte [ecx], 0
test al, 2
jne 0x6b5747a8
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 0x6b574680
ja 0x6b5744a8
cmp eax, 0x1c
je 0x6b5745f0
cmp eax, 0x20
jne 0x6b574470
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 0x6b5747b4
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
jne 0x6b574470
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 0x6b574470
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 0x6b57428a
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 0x6b574470
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 0x6b574470
movzx ecx, byte [esi + eax]
mov byte [edi + eax], cl
mov dword [esp + 0xf0], ebp
jmp 0x6b5741b9
movzx eax, word [esi]
mov word [edi], ax
mov eax, 2
test ebp, 1
je 0x6b5741b2
jmp 0x6b574760
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x6b574198
xor esi, esi
mov word [ecx + eax - 2], si
jmp 0x6b57429e
call sym.___stack_chk_fail
sub ebp, eax
add esi, ebp
mov ebp, eax
jmp 0x6b574189