Function at 0x4c7840
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call 0x4c7857
pop ebp
lea ebp, [ebp + 0x2a9]
sub esp, 0x10
and esp, 0xffffffc0
shl eax, 6
add eax, edi
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
lea esp, [esp]
nop
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
push eax
push ebx
push ecx
push edx
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
bswap eax
bswap ebx
bswap ecx
bswap edx
push eax
push ebx
push ecx
push edx
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
bswap eax
bswap ebx
bswap ecx
bswap edx
push eax
push ebx
push ecx
push edx
mov eax, dword [edi + 0x30]
mov ebx, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
bswap eax
bswap ebx
bswap ecx
bswap edx
push eax
push ebx
push ecx
push edx
add edi, 0x40
sub esp, 0x20
mov dword [esp + 0x64], edi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
lea esp, [esp]
nop
mov ebx, dword [esp + 0x5c]
mov ecx, edx
ror ecx, 6
mov edi, edx
ror edi, 0xb
mov esi, dword [esp + 0x14]
xor ecx, edi
ror edi, 0xe
xor ecx, edi
mov edi, dword [esp + 0x18]
add ebx, ecx
mov dword [esp + 0x10], edx
xor esi, edi
mov ecx, eax
and esi, edx
mov edx, dword [esp + 0xc]
xor esi, edi
mov edi, eax
add ebx, esi
ror ecx, 2
add ebx, dword [esp + 0x1c]
ror edi, 0xd
mov esi, dword [esp + 4]
xor ecx, edi
ror edi, 9
add edx, ebx
xor ecx, edi
mov edi, dword [esp + 8]
add ebx, ecx
mov dword [esp], eax
mov ecx, eax
sub esp, 4
or eax, esi
and ecx, esi
and eax, edi
mov esi, dword [ebp]
or eax, ecx
add ebp, 4
add eax, ebx
add edx, esi
add eax, esi
cmp esi, 0xc19bf174
jne 0x4c7920
mov ebx, dword [esp + 0x98]
add eax, 0
mov esi, ebx
mov ecx, dword [esp + 0x64]
shr ebx, 3
ror esi, 7
xor ebx, esi
ror esi, 0xb
mov edi, ecx
xor ebx, esi
shr ecx, 0xa
mov esi, dword [esp + 0x9c]
ror edi, 0x11
xor ecx, edi
ror edi, 2
add ebx, esi
xor edi, ecx
add ebx, edi
mov ecx, edx
add ebx, dword [esp + 0x78]
ror ecx, 6
mov edi, edx
ror edi, 0xb
mov esi, dword [esp + 0x14]
xor ecx, edi
ror edi, 0xe
mov dword [esp + 0x5c], ebx
xor ecx, edi
mov edi, dword [esp + 0x18]
add ebx, ecx
mov dword [esp + 0x10], edx
xor esi, edi
mov ecx, eax
and esi, edx
mov edx, dword [esp + 0xc]
xor esi, edi
mov edi, eax
add ebx, esi
ror ecx, 2
add ebx, dword [esp + 0x1c]
ror edi, 0xd
mov esi, dword [esp + 4]
xor ecx, edi
ror edi, 9
add edx, ebx
xor ecx, edi
mov edi, dword [esp + 8]
add ebx, ecx
mov dword [esp], eax
mov ecx, eax
sub esp, 4
or eax, esi
and ecx, esi
and eax, edi
mov esi, dword [ebp]
or eax, ecx
add ebp, 4
add eax, ebx
mov ebx, dword [esp + 0x98]
add edx, esi
add eax, esi
cmp esi, 0xc67178f2
jne 0x4c79a0
mov esi, dword [esp + 0x160]
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
add eax, dword [esi]
add ebx, dword [esi + 4]
add ecx, dword [esi + 8]
add edi, dword [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x164]
add edx, dword [esi + 0x10]
add eax, dword [esi + 0x14]
add ebx, dword [esi + 0x18]
add ecx, dword [esi + 0x1c]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ecx
add esp, 0x160
sub ebp, 0x100
cmp edi, dword [esp + 8]
jb 0x4c7880
mov esp, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret