Function at 0x422380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x158
mov eax, dword [esp + 0x15c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ebx
mov ebx, dword [eax + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x170]
lea ebp, [esp + 0x28]
sub ebp, edi
mov dword [esp + 0x20], ebp
lea ebp, [esp + 0x2c]
sub ebp, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x10]
xor esi, esi
lea ebp, [esp + 0x30]
sub ebp, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
lea eax, [edi + 8]
mov dword [esp + 0x10], ebp
mov edi, dword [eax - 8]
mov dword [esp + esi*4 + 0x28], edi
mov ebp, dword [esp + 0x14]
mov edi, ebx
xor edi, ecx
and edi, dword [esp + 0x1c]
mov esi, edx
xor edi, ebx
rol esi, 5
add esi, dword [eax - 8]
add eax, 0x14
add edi, esi
mov esi, dword [esp + 0x18]
lea esi, [esi + edi + 0x5a827999]
mov edi, dword [eax - 0x18]
mov dword [esp + ebp*4 + 0x2c], edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
rol esi, 0x1e
rol edi, 5
add edi, dword [eax - 0x18]
mov dword [esp + 0x1c], esi
mov ebp, ecx
xor ebp, esi
mov esi, dword [eax - 0x14]
and ebp, edx
xor ebp, ecx
add ebp, edi
mov edi, dword [esp + 0x20]
mov dword [edi + eax - 0x14], esi
mov edi, dword [esp + 0x1c]
lea ebx, [ebx + ebp + 0x5a827999]
mov ebp, dword [esp + 0x24]
rol edx, 0x1e
xor edi, edx
and edi, dword [esp + 0x18]
mov esi, ebx
xor edi, dword [esp + 0x1c]
rol esi, 5
add esi, dword [eax - 0x14]
add edi, esi
mov esi, dword [esp + 0x18]
rol esi, 0x1e
lea ecx, [ecx + edi + 0x5a827999]
mov edi, esi
mov esi, dword [eax - 0x10]
mov dword [eax + ebp - 0x14], esi
mov dword [esp + 0x18], edi
xor edi, edx
and edi, ebx
xor edi, edx
mov ebp, ecx
rol ebp, 5
add ebp, esi
mov esi, dword [esp + 0x1c]
add edi, ebp
mov ebp, dword [esp + 0x10]
lea esi, [esi + edi + 0x5a827999]
mov edi, dword [eax - 0xc]
mov dword [eax + ebp - 0x14], edi
mov edi, esi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
rol ebx, 0x1e
mov ebp, esi
xor ebp, ebx
and ebp, ecx
rol edi, 5
add edi, dword [eax - 0xc]
xor ebp, esi
mov esi, dword [esp + 0x14]
add ebp, edi
add esi, 5
rol ecx, 0x1e
cmp esi, 0xf
lea edx, [edx + ebp + 0x5a827999]
mov dword [esp + 0x14], esi
jl 0x4223d5
mov eax, dword [esp + 0x170]
mov esi, dword [eax + 0x3c]
mov eax, dword [esp + 0x1c]
mov edi, edx
rol edi, 5
add edi, esi
mov ebp, ebx
xor ebp, ecx
and ebp, eax
xor ebp, ebx
add ebp, edi
rol eax, 0x1e
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x30]
mov dword [esp + 0x64], esi
xor eax, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
xor eax, dword [esp + 0x5c]
lea esi, [esi + ebp + 0x5a827999]
rol eax, 1
mov ebp, ecx
xor ebp, dword [esp + 0x1c]
mov edi, esi
and ebp, edx
xor ebp, ecx
rol edi, 5
add edi, eax
add ebp, edi
mov edi, dword [esp + 0x1c]
lea ebx, [ebx + ebp + 0x5a827999]
mov ebp, dword [esp + 0x2c]
xor ebp, dword [esp + 0x34]
rol edx, 0x1e
xor ebp, dword [esp + 0x4c]
xor edi, edx
xor ebp, dword [esp + 0x60]
and edi, esi
rol ebp, 1
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x18], ebx
rol ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x38]
xor ebp, dword [esp + 0x50]
mov dword [esp + 0x10], edx
xor ebp, dword [esp + 0x30]
mov edx, edi
xor ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x1c]
xor edx, edi
add edx, ebx
mov ebx, dword [esp + 0x18]
lea ecx, [ecx + edx + 0x5a827999]
rol esi, 0x1e
rol ebp, 1
mov dword [esp + 0x14], ecx
rol ecx, 5
add ecx, ebp
mov edx, esi
xor edx, dword [esp + 0x10]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x3c]
xor ebp, dword [esp + 0x54]
and edx, ebx
xor edx, dword [esp + 0x10]
xor ebp, dword [esp + 0x34]
add edx, ecx
rol ebx, 0x1e
xor ebp, eax
mov ecx, esi
xor ecx, ebx
and ecx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
lea edi, [edi + edx + 0x5a827999]
rol ebp, 1
mov eax, edi
rol eax, 5
mov dword [esp + 0x74], ebp
xor ecx, esi
mov edx, dword [esp + 0x10]
add eax, ebp
mov ebp, dword [esp + 0x14]
add ecx, eax
lea eax, [edx + ecx + 0x5a827999]
rol ebp, 0x1e
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x58]
mov dword [esp + 0x20], 4
mov edx, dword [eax - 0x18]
mov ecx, dword [eax - 0x20]
xor ecx, edx
xor ecx, dword [eax + 0x14]
mov edx, ebx
xor ecx, dword [eax]
xor edx, ebp
xor edx, edi
rol ecx, 1
mov dword [esp + 0x24], ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x10]
rol ecx, 5
add ecx, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [eax - 0x1c]
xor ecx, dword [eax + 0x18]
lea esi, [esi + edx + 0x6ed9eba1]
xor ecx, dword [eax + 4]
mov edx, dword [eax - 0x14]
xor ecx, edx
mov edx, dword [esp + 0x14]
rol edi, 0x1e
xor edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
rol ecx, 1
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
xor edi, edx
mov ebp, esi
rol ebp, 5
add ebp, ecx
add edi, ebp
rol edx, 0x1e
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x1c]
xor edx, dword [eax + 8]
lea ebx, [ebx + edi + 0x6ed9eba1]
mov edi, dword [eax - 0x10]
xor edx, edi
xor edx, dword [eax - 0x18]
mov dword [esp + 0x18], ebx
rol edx, 1
rol ebx, 5
add ebx, edx
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x14]
mov edi, esi
xor edi, dword [esp + 0x1c]
mov dword [eax + 0x24], ecx
xor edi, dword [esp + 0x10]
add edi, ebx
lea edi, [edx + edi + 0x6ed9eba1]
mov edx, dword [eax - 0xc]
xor edx, dword [eax + 0xc]
rol esi, 0x1e
xor edx, dword [esp + 0x24]
mov ebx, esi
xor edx, dword [eax - 0x14]
xor ebx, dword [esp + 0x18]
rol edx, 1
xor ebx, dword [esp + 0x10]
mov dword [esp + 0x14], edi
rol edi, 5
add edi, edx
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x1c]
add ebx, edi
lea edi, [edx + ebx + 0x6ed9eba1]
mov edx, dword [eax + 0x10]
xor edx, dword [eax - 8]
mov ebx, dword [esp + 0x18]
xor edx, ecx
xor edx, dword [eax - 0x10]
rol ebx, 0x1e
rol edx, 1
mov ecx, edi
mov dword [esp + 0x24], edx
mov dword [eax + 0x30], edx
rol ecx, 5
add ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov edx, esi
xor edx, ebx
xor edx, dword [esp + 0x14]
add eax, 0x14
add edx, ecx
mov ecx, dword [esp + 0x10]
rol ebp, 0x1e
sub dword [esp + 0x20], 1
lea edx, [ecx + edx + 0x6ed9eba1]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jne 0x422607
lea eax, [esp + 0xa8]
mov dword [esp + 0x24], 4
lea esp, [esp]
mov edx, dword [eax - 0x18]
mov ecx, dword [eax - 0x20]
xor ecx, edx
xor ecx, dword [eax]
mov edx, ebp
xor ecx, dword [eax + 0x14]
or edx, edi
and edx, ebx
and ebp, edi
or edx, ebp
rol ecx, 1
mov dword [esp + 0x20], ecx
add edx, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x10]
add edx, esi
mov esi, dword [eax - 0x14]
rol ecx, 5
lea edx, [edx + ecx - 0x70e44324]
mov ecx, dword [eax - 0x1c]
xor ecx, dword [eax + 0x18]
rol edi, 0x1e
xor ecx, dword [eax + 4]
mov dword [esp + 0x18], edx
xor ecx, esi
mov esi, dword [esp + 0x10]
mov ebp, edi
or ebp, esi
and ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
and edi, esi
or ebp, edi
mov edi, dword [eax - 0x10]
rol ecx, 1
rol edx, 5
add ebp, ecx
add ebp, ebx
lea ebx, [edx + ebp - 0x70e44324]
mov edx, dword [eax + 0x1c]
xor edx, dword [eax + 8]
mov ebp, dword [esp + 0x18]
xor edx, edi
xor edx, dword [eax - 0x18]
rol esi, 0x1e
or ebp, esi
and ebp, dword [esp + 0x1c]
rol edx, 1
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
and esi, dword [esp + 0x10]
mov dword [eax + 0x28], edx
or ebp, esi
mov esi, dword [esp + 0x18]
add ebp, edx
mov edx, dword [eax - 0xc]
xor edx, dword [eax + 0xc]
add ebp, dword [esp + 0x14]
xor edx, dword [esp + 0x20]
mov edi, ebx
xor edx, dword [eax - 0x14]
rol edi, 5
rol esi, 0x1e
rol edx, 1
mov dword [esp + 0x20], edx
mov dword [eax + 0x2c], edx
lea edi, [edi + ebp - 0x70e44324]
mov edx, esi
or edx, ebx
and edx, dword [esp + 0x10]
mov ebp, esi
and ebp, ebx
or edx, ebp
add edx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
add edx, dword [esp + 0x1c]
rol edi, 5
lea edi, [edx + edi - 0x70e44324]
mov edx, dword [eax + 0x10]
rol ebx, 0x1e
xor edx, dword [eax - 8]
mov dword [eax + 0x24], ecx
xor edx, dword [eax - 0x10]
mov ebp, ebx
and ebp, dword [esp + 0x14]
xor edx, ecx
rol edx, 1
mov dword [eax + 0x30], edx
mov dword [esp + 0x20], edx
mov edx, ebx
or edx, dword [esp + 0x14]
mov ecx, edi
and edx, esi
or edx, ebp
add edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
add edx, dword [esp + 0x10]
rol ecx, 5
rol ebp, 0x1e
lea ecx, [edx + ecx - 0x70e44324]
add eax, 0x14
sub dword [esp + 0x24], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
jne 0x422750
mov eax, 0x3c
cmp eax, 0x50
jge 0x4229ee
mov edx, 0x4f
sub edx, eax
lea ecx, [esp + eax*4 + 8]
mov eax, 0xcccccccd
mul edx
shr edx, 2
inc edx
mov dword [esp + 0x24], edx
mov eax, dword [ecx - 0x20]
xor eax, dword [ecx]
mov edx, dword [ecx - 0x18]
xor eax, dword [ecx + 0x14]
xor eax, edx
rol eax, 1
mov edx, ebx
xor edx, ebp
xor edx, edi
mov dword [esp + 0x20], eax
add edx, dword [esp + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x10]
add edx, esi
rol eax, 5
lea esi, [edx + eax - 0x359d3e2a]
mov eax, dword [ecx - 0x1c]
xor eax, dword [ecx + 0x18]
mov edx, dword [ecx - 0x14]
xor eax, dword [ecx + 4]
rol edi, 0x1e
xor eax, edx
mov edx, dword [esp + 0x14]
xor edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
rol eax, 1
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
xor edi, edx
add edi, eax
add edi, ebx
mov ebx, dword [ecx - 0x10]
mov ebp, esi
rol ebp, 5
rol edx, 0x1e
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x1c]
xor edx, dword [ecx + 8]
lea edi, [edi + ebp - 0x359d3e2a]
xor edx, ebx
xor edx, dword [ecx - 0x18]
mov ebx, esi
xor ebx, dword [esp + 0x1c]
rol edx, 1
xor ebx, dword [esp + 0x10]
mov dword [ecx + 0x28], edx
add ebx, edx
add ebx, dword [esp + 0x14]
mov edx, dword [ecx - 0xc]
xor edx, dword [ecx + 0xc]
mov dword [esp + 0x18], edi
xor edx, dword [esp + 0x20]
rol edi, 5
xor edx, dword [ecx - 0x14]
lea edi, [ebx + edi - 0x359d3e2a]
rol esi, 0x1e
rol edx, 1
mov ebx, esi
xor ebx, dword [esp + 0x18]
mov dword [ecx + 0x2c], edx
xor ebx, dword [esp + 0x10]
mov dword [esp + 0x14], edi
add ebx, edx
add ebx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
xor edx, dword [ecx - 8]
rol edi, 5
xor edx, eax
xor edx, dword [ecx - 0x10]
lea edi, [ebx + edi - 0x359d3e2a]
mov ebx, dword [esp + 0x18]
rol ebx, 0x1e
rol edx, 1
mov dword [ecx + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [ecx + 0x30], edx
mov eax, edi
mov edx, esi
rol eax, 5
xor edx, ebx
xor edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
add edx, dword [esp + 0x20]
add ecx, 0x14
add edx, dword [esp + 0x10]
rol ebp, 0x1e
sub dword [esp + 0x24], 1
lea eax, [edx + eax - 0x359d3e2a]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jne 0x4228c1
mov ecx, dword [esp + 0x16c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x174]
mov dword [eax], edx
mov edx, dword [ecx + 4]
add edx, edi
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
add edx, ebp
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
add edx, ebx
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x10]
pop edi
add ecx, esi
cmp byte [esp + 0x174], 0
pop esi
pop ebp
mov dword [eax + 0x10], ecx
pop ebx
je 0x422ade
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
mov dword [eax], edx
mov edx, dword [esp + 0x120]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x124]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x128]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x12c]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x130]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x134]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x138]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x13c]
mov dword [eax + 0x20], edx
mov edx, dword [esp + 0x140]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x144]
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x148]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x14c]
mov dword [eax + 0x30], edx
mov edx, dword [esp + 0x150]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x154]
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], ecx
add esp, 0x158
ret 0x10