Function at 0x4020d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x58bea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x40
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push ebx
mov esi, ecx
mov dword [ebp - 0x74], ebx
call fcn.00407140
test eax, eax
je 0x40256a
xor eax, eax
xor edi, edi
mov ecx, 0x923a564c
xor edx, edx
jmp 0x402130
add ecx, dword [ebp + eax - 0x60]
add edx, dword [ebp + eax - 0x5c]
add edi, dword [ebp + eax - 0x58]
add eax, 0xc
cmp eax, 0x3c
jb 0x402130
add edx, edi
add ecx, edx
cmp dword [ebp - 0x24], ecx
je 0x40216c
push 0x30
push 0x547694
push 0x5476a8
call fcn.00406bd0
push eax
call dword [0x547408]
push 1
call fcn.0052b588
xor dword [ebp - 0x5c], 0xfe3a53da
xor dword [ebp - 0x58], 0x37f298e8
xor dword [ebp - 0x54], 0x7a6f3a2d
xor dword [ebp - 0x40], 0x43de7c1a
xor dword [ebp - 0x3c], 0xcc65f416
xor dword [ebp - 0x38], 0xd016a93d
xor dword [ebp - 0x34], 0x97a3ba9b
xor dword [ebp - 0x30], 0xae7d39b7
xor dword [ebp - 0x2c], 0xfb73a956
xor dword [ebp - 0x28], 0x37acf832
cmp byte [ebp - 0x60], 0x43
jne 0x40214d
cmp byte [ebp - 0x5f], 0x50
jne 0x40214d
cmp byte [ebp - 0x5e], 0x5a
jne 0x40214d
cmp byte [ebp - 0x5d], 0x36
jne 0x40214d
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4021dd
push eax
call dword [0x547228]
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x4021ee
push eax
call dword [0x547228]
mov dword [esi + 8], edi
push ebx
call dword [0x54721c]
inc eax
push eax
push edi
call dword [0x547224]
push ebx
push eax
mov dword [esi + 8], eax
call dword [0x547218]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
ror edx, 5
imul edx, edx, 0x7da8f173
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x34]
lea edi, [esi + 0x1c]
add edx, 0x13712765
mov dword [esi + 0x28], eax
xor eax, eax
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 0x3c]
setne al
mov dword [esi + 0x30], edx
mov edx, dword [ebp - 0x38]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0x24], edx
mov edx, dword [ebp - 0x54]
push 0x14
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
call fcn.0052b63f
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x402275
mov ecx, eax
call fcn.004541c0
mov ebx, eax
push edi
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004019d0
test ebx, ebx
je 0x402298
mov ecx, ebx
call fcn.00411eb0
push ebx
call fcn.0052b2fa
add esp, 4
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0x14]
push ecx
push 0
call dword [0x547224]
mov edx, dword [esi + 0x10]
add edx, dword [esi + 0x14]
mov dword [esi + 4], eax
push edx
push 0x40
push 0
push eax
mov eax, dword [ebp - 0x74]
push eax
call fcn.00407140
cmp dword [esi + 0x34], 0
je 0x402390
push 0x2c
call fcn.0052b63f
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4022ec
mov ecx, eax
call fcn.0051d4b0
mov edi, eax
jmp 0x4022ee
xor edi, edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0051c950
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0x14]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, edi
call fcn.0051d340
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
call fcn.0051d3e0
xor ebx, ebx
cmp edi, ebx
je 0x40232f
mov ecx, edi
call fcn.00411eb0
push edi
call fcn.0052b2fa
add esp, 4
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp - 0x50]
jne 0x40234f
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x4c]
jne 0x40234f
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x48]
jne 0x40234f
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x44]
je 0x402390
push 0x30
push 0x547694
push 0x547664
call fcn.00406bd0
push eax
call dword [0x547408]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x402378
push eax
call dword [0x547228]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x402389
push eax
call dword [0x547228]
mov dword [esi + 8], ebx
push 1
call fcn.0052b588
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x5c]
add ecx, dword [esi + 0x14]
xor eax, 0x3795b39a
push eax
mov dword [esi + 0xc], edx
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00401a80
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00401ca0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 4]
push 0x3a
push edx
push eax
call fcn.00401d50
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea edx, [eax + 0x76a3bf29]
xor edx, dword [esi + 0x1c]
mov edi, 0x76548aef
mov dword [ebp - 0x20], edx
mov edx, dword [esi + 0x20]
xor edx, eax
mov dword [ebp - 0x1c], edx
lea edx, [eax + 0x10000000]
xor edx, dword [esi + 0x24]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x28]
xor edx, eax
mov dword [ebp - 0x14], edx
mov edx, ebx
shr edx, 2
xor eax, eax
test edx, edx
je 0x402438
mov dword [ebp - 0x74], edx
mov edx, dword [ebp + eax*4 - 0x20]
xor edx, dword [ecx]
inc eax
sub edx, 0x4a91c262
rol edx, 3
sub edx, edi
mov dword [ecx], edx
and eax, 3
add ecx, 4
add edi, 0x10fb562a
dec dword [ebp - 0x74]
jne 0x402413
and ebx, 3
mov edi, ebx
jbe 0x402456
nop
mov edx, dword [ebp + eax*4 - 0x20]
shr edx, 6
xor dl, byte [ecx]
inc eax
add dl, 0x37
mov byte [ecx], dl
and eax, 3
inc ecx
dec edi
jne 0x402440
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
add ecx, eax
xor edx, edx
mov dword [ebp - 0x7c], ecx
cmp dword [esi + 0xc], edx
jbe 0x402556
lea esp, [esp]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
inc edx
add ecx, eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edx
cmp edx, dword [esi + 0xc]
jae 0x40248b
mov ebx, dword [ecx + 8]
jmp 0x40248e
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x2c]
sub ebx, edi
mov edi, dword [eax + 0xc]
mov eax, dword [esi + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00401ca0
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
add eax, dword [ebp - 0x74]
test ebx, ebx
je 0x4024c4
mov edx, ebx
movzx ecx, byte [eax]
xor ecx, 0x7e
mov cl, byte [ecx + esi + 0xbc]
mov byte [eax], cl
inc eax
dec edx
jne 0x4024b1
mov edx, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x7c]
xor edx, edi
mov dword [ebp - 0x20], edx
mov edx, dword [esi + 0x24]
xor edx, edi
lea eax, [edi + 0x11003322]
xor eax, dword [esi + 0x20]
add edi, 0x34216785
xor edi, dword [esi + 0x28]
mov dword [ebp - 0x18], edx
mov edx, ebx
mov dword [ebp - 0x1c], eax
shr edx, 2
xor eax, eax
mov dword [ebp - 0x14], edi
mov edi, 0x2a65cb4f
test edx, edx
je 0x40252a
mov dword [ebp - 0x74], edx
mov edx, dword [ebp + eax*4 - 0x20]
xor edx, dword [ecx]
inc eax
sub edx, edi
rol edx, 2
add edx, 0x37a19e8b
mov dword [ecx], edx
and eax, 3
add ecx, 4
sub edi, 0x139fa9b
dec dword [ebp - 0x74]
jne 0x402505
and ebx, 3
jbe 0x402547
mov edi, ebx
mov edx, dword [ebp + eax*4 - 0x20]
shr edx, 4
xor dl, byte [ecx]
inc eax
add dl, 3
mov byte [ecx], dl
and eax, 3
inc ecx
dec edi
jne 0x402531
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
cmp edx, dword [esi + 0xc]
jb 0x402470
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00401ca0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b2eb
mov esp, ebp
pop ebp
ret 4