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

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe4]
movzx ebp, byte [esi]
cmp ebp, 3
push edi
mov edi, dword [esp + 0xec]
mov eax, dword [edi + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebp
jne 0x4c21da
cmp dword [esp + 0xf4], 0
mov byte [esi], 1
mov dword [esp + 0x28], 0
jle 0x4c21c5
lea ebp, [esi + 1]
jmp 0x4c20f0
lea ecx, [esp + 0x10]
push ecx
push 0x80
push ebp
push edi
push esi
call fcn.004c20a0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
and ecx, 7
mov ebx, 0x80
sar ebx, cl
mov cl, al
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x104]
sar eax, 3
mov dword [esp + 0x44], eax
mov al, byte [eax + edx]
mov dl, byte [esp + 0x24]
and cl, 7
and dl, 0x80
shr dl, cl
and al, bl
mov byte [esp + 0x43], cl
mov ecx, dword [esp + 0x44]
xor al, dl
mov edx, dword [esp + 0x10c]
not bl
and bl, byte [ecx + edx]
add esp, 0x14
or bl, al
mov byte [ecx + edx], bl
mov cl, 7
sub cl, byte [esp + 0x2f]
shr al, cl
mov bl, al
mov eax, 0xf
mov cl, byte [eax + ebp]
mov dl, cl
add cl, cl
xor cl, bl
mov byte [eax + ebp], cl
mov cl, byte [eax + esi]
mov bl, cl
add cl, cl
shr dl, 7
xor cl, dl
mov byte [eax + esi], cl
mov cl, byte [esi + eax - 1]
mov dl, cl
add cl, cl
shr bl, 7
xor cl, bl
mov byte [esi + eax - 1], cl
mov cl, byte [esi + eax - 2]
mov bl, cl
shr dl, 7
add cl, cl
xor cl, dl
shr bl, 7
sub eax, 4
mov byte [esi + eax + 2], cl
jns 0x4c2168
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0xf4]
mov dword [esp + 0x28], eax
jl 0x4c20f0
mov eax, dword [esp + 0xf4]
pop edi
mov byte [esi], 3
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
cmp byte [edi], 0
je 0x4c21e6
xor bl, bl
call fcn.004c1170
mov eax, dword [esp + 0x28]
lea ecx, [eax*8 + 0x20]
push ecx
lea edx, [edi + 0x84]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004db700
add esp, 0xc
cmp ebp, 2
jne 0x4c221d
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x40], ecx
jmp 0x4c2227
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x40], edx
xor eax, eax
mov ecx, dword [esp + 0xf4]
test ecx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
jle 0x4c2c9a
mov esi, dword [esp + 0xf0]
add ecx, 0xffffffff
shr ecx, 7
add ecx, 1
mov dword [esp + 0x28], ecx
mov ecx, dword [esi]
xor ecx, dword [esp + 0x44]
xor ecx, edx
mov edx, dword [esi + 4]
xor edx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
xor edx, eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 0xc]
xor esi, dword [esp + 0x50]
xor eax, dword [esp + 0x4c]
xor esi, dword [esp + 0x40]
xor eax, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0xdc]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0xe0]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0xd4]
add ebx, ebp
add ebx, esi
mov ecx, dword [esp + 0x20]
xor ecx, ebx
mov ebx, dword [esp + 0xd8]
lea ebx, [ebx + ebp*2]
add ebx, esi
rol edx, 1
xor edx, ebx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x24], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0xcc]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0xd0]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
rol edx, 1
mov ebx, dword [esp + 0xc4]
add ebx, ebp
add ebx, esi
mov ecx, dword [esp + 0x24]
xor ecx, ebx
mov ebx, dword [esp + 0xc8]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor edx, ebx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0xbc]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0xc0]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0xb4]
rol edx, 1
add ebx, ebp
add ebx, esi
mov ecx, dword [esp + 0x20]
xor ecx, ebx
mov ebx, dword [esp + 0xb8]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor edx, ebx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0xac]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0xb0]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ecx, dword [esp + 0x20]
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0xa4]
add ebx, ebp
rol edx, 1
add ebx, esi
xor ecx, ebx
mov ebx, dword [esp + 0xa8]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor edx, ebx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x9c]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0xa0]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ecx, dword [esp + 0x20]
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x94]
add ebx, ebp
add ebx, esi
rol edx, 1
xor ecx, ebx
mov ebx, dword [esp + 0x98]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor edx, ebx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x8c]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0x90]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
shr ebx, 0x18
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ecx, dword [esp + 0x20]
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x84]
add ebx, ebp
add ebx, esi
xor ecx, ebx
mov ebx, dword [esp + 0x88]
lea ebx, [ebx + ebp*2]
rol edx, 1
add ebx, esi
xor edx, ebx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x7c]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0x80]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
shr ebx, 0x18
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ecx, dword [esp + 0x20]
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x74]
add ebx, ebp
add ebx, esi
xor ecx, ebx
mov ebx, dword [esp + 0x78]
lea ebx, [ebx + ebp*2]
rol edx, 1
add ebx, esi
xor edx, ebx
mov dword [esp + 0x14], edx
ror ecx, 1
mov dword [esp + 0x10], ecx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, ecx
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, cl
xor esi, dword [edi + ebx*8 + 0x124]
mov dword [esp + 0x20], ecx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, dl
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x1c]
rol ebx, 1
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x6c]
add ebx, ebp
add ebx, esi
xor eax, ebx
mov ebx, dword [esp + 0x70]
lea ebx, [ebx + ebp*2]
add ebx, esi
xor dword [esp + 0x1c], ebx
ror eax, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov esi, eax
shr esi, 0x18
mov esi, dword [edi + esi*8 + 0x928]
xor esi, dword [edi + ebx*8 + 0x128]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi + ebx*8 + 0x924]
movzx ebx, al
xor esi, dword [edi + ebx*8 + 0x124]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebp, dword [edi + ebx*8 + 0x928]
mov ebx, dword [esp + 0x1c]
shr ecx, 8
shr ebx, 0x18
movzx ecx, cl
xor ebp, dword [edi + ecx*8 + 0x924]
mov ecx, dword [esp + 0x20]
xor ebp, dword [edi + ebx*8 + 0x124]
movzx ebx, byte [esp + 0x1c]
xor ebp, dword [edi + ebx*8 + 0x128]
mov ebx, dword [esp + 0x64]
add ebx, ebp
add ebx, esi
xor ecx, ebx
mov ebx, dword [esp + 0x68]
rol edx, 1
lea ebx, [ebx + ebp*2]
add ebx, esi
mov esi, dword [esp + 0x54]
xor edx, ebx
ror ecx, 1
xor esi, eax
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0xf8]
mov eax, dword [esp + 0x58]
xor eax, dword [esp + 0x1c]
xor ebx, ecx
mov ecx, dword [esp + 0x60]
xor ecx, edx
cmp dword [esp + 0x30], 2
mov dword [ebp], esi
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
jne 0x4c2c56
mov edx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
jmp 0x4c2c62
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0xf0]
add esi, 0x10
add ebp, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf8], ebp
jne 0x4c2256
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0xe8]
mov ecx, dword [esp + 0xf4]
cmp ebp, 2
jne 0x4c2caf
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edx
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xd4
ret