Function at 0x4040a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x1cc]
mov dword [esp], eax
mov dword [esp + 0x184], edx
mov dword [esp + 0x188], ecx
mov eax, ecx
mov edx, eax
sar edx, 0x1f
mov ecx, dword [esp]
add dword [ecx + 8], eax
adc dword [ecx + 0xc], edx
mov dword [esp + 0x198], 0
jmp 0x4046e1
mov eax, dword [esp + 0x188]
sub eax, dword [esp + 0x198]
cmp eax, 0x3f
jle 0x404118
mov eax, dword [esp + 0x184]
lea edx, [esp + 0x144]
mov ecx, 0x40
call fcn.004477c0
add dword [esp + 0x184], 0x40
jmp 0x404233
mov eax, dword [esp + 0x188]
mov edx, eax
sar edx, 0x1f
and edx, 0x3f
add eax, edx
and eax, 0x3f
sub eax, edx
mov dword [esp + 0x194], eax
lea eax, [esp + 0x144]
xor cl, cl
mov edx, 0x40
call fcn.00447800
mov eax, dword [esp + 0x184]
mov ecx, dword [esp + 0x194]
lea edx, [esp + 0x144]
call fcn.004477c0
mov eax, dword [esp + 0x194]
mov byte [esp + eax + 0x144], pe_nt_image_headers32
mov eax, dword [esp]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
shld eax, edx, 3
shl edx, 3
mov dword [esp + 0x18c], edx
mov dword [esp + 0x190], eax
xor edx, edx
shr eax, 0x18
mov byte [esp + 0x17c], al
mov eax, dword [esp + 0x190]
xor edx, edx
shr eax, 0x10
mov byte [esp + 0x17d], al
mov eax, dword [esp + 0x190]
xor edx, edx
shr eax, 8
mov byte [esp + 0x17e], al
xor eax, eax
mov al, byte [esp + 0x190]
mov byte [esp + 0x17f], al
mov eax, dword [esp + 0x18c]
mov edx, dword [esp + 0x190]
shrd eax, edx, 0x18
shr edx, 0x18
mov byte [esp + 0x180], al
mov eax, dword [esp + 0x18c]
mov edx, dword [esp + 0x190]
shrd eax, edx, 0x10
shr edx, 0x10
mov byte [esp + 0x181], al
mov eax, dword [esp + 0x18c]
mov edx, dword [esp + 0x190]
shrd eax, edx, 8
shr edx, 8
mov byte [esp + 0x182], al
mov al, byte [esp + 0x18c]
mov byte [esp + 0x183], al
lea edx, [esp + 4]
lea eax, [esp + 0x144]
mov ecx, 0x40
call fcn.004477c0
mov eax, dword [esp + 4]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov edx, eax
shl edx, 8
and edx, 0xff00ff00
shr eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, edx
rol eax, 0x10
mov dword [esp + 0x40], eax
mov ebx, 0xf
lea esi, [esi]
add ebx, 1
mov eax, dword [esp + ebx*4 - 0x38]
ror eax, 7
mov edx, dword [esp + ebx*4 - 0x38]
ror edx, 0x12
xor eax, edx
mov edx, dword [esp + ebx*4 - 0x38]
shr edx, 3
xor eax, edx
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + ebx*4 - 4]
ror eax, 0x11
mov edx, dword [esp + ebx*4 - 4]
ror edx, 0x13
xor eax, edx
mov edx, dword [esp + ebx*4 - 4]
shr edx, 0xa
xor eax, edx
mov dword [esp + 0x1c8], eax
lea edx, [esp + 4]
mov eax, dword [edx + ebx*4 - 0x40]
add eax, dword [esp + 0x1c4]
add eax, dword [edx + ebx*4 - 0x1c]
add eax, dword [esp + 0x1c8]
mov dword [esp + ebx*4 + 4], eax
cmp ebx, 0x3f
jl 0x404470
mov eax, dword [esp]
mov edi, dword [eax + 0x10]
mov eax, dword [esp]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1bc], edx
mov edx, dword [esp]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1a8], edx
mov eax, dword [esp]
mov esi, dword [eax + 0x20]
mov eax, dword [esp]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x1b4], edx
mov eax, dword [esp]
mov edx, dword [eax + 0x28]
mov dword [esp + 0x1b8], edx
mov edx, dword [esp]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x1ac], eax
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
mov edx, esi
ror edx, 6
mov eax, esi
ror eax, 0xb
xor edx, eax
mov eax, esi
ror eax, 0x19
xor edx, eax
mov dword [esp + 0x1c8], edx
mov edx, esi
not edx
and edx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1b4]
and eax, esi
xor edx, eax
mov dword [esp + 0x19c], edx
mov eax, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x1c8]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x19c]
lea eax, [edx + ecx]
add eax, dword [ebx*4 + 0x4aa240]
add eax, dword [esp + ebx*4 + 4]
mov dword [esp + 0x1b0], eax
mov edx, edi
ror edx, 2
mov eax, edi
ror eax, 0xd
xor edx, eax
mov eax, edi
ror eax, 0x16
xor edx, eax
mov dword [esp + 0x1c4], edx
mov edx, dword [esp + 0x1bc]
and edx, edi
mov eax, dword [esp + 0x1c0]
and eax, edi
xor edx, eax
mov eax, dword [esp + 0x1c0]
and eax, dword [esp + 0x1bc]
xor edx, eax
mov dword [esp + 0x1a4], edx
mov edx, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x1a4]
lea eax, [edx + ecx]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1b4], esi
mov edx, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1b0]
lea esi, [edx + ecx]
mov eax, dword [esp + 0x1c0]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1bc], edi
mov edx, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1a0]
lea edi, [edx + ecx]
cmp ebx, 0x3f
jl 0x404538
mov edx, dword [esp]
add dword [edx + 0x10], edi
mov edx, dword [esp]
mov eax, dword [edx + 0x14]
add eax, dword [esp + 0x1bc]
mov dword [edx + 0x14], eax
mov edx, dword [esp]
mov eax, dword [edx + 0x18]
add eax, dword [esp + 0x1c0]
mov dword [edx + 0x18], eax
mov eax, dword [esp]
mov ecx, dword [eax + 0x1c]
add ecx, dword [esp + 0x1a8]
mov dword [eax + 0x1c], ecx
mov edx, dword [esp]
add dword [edx + 0x20], esi
mov eax, dword [esp]
mov ecx, dword [eax + 0x24]
add ecx, dword [esp + 0x1b4]
mov dword [eax + 0x24], ecx
mov edx, dword [esp]
mov eax, dword [edx + 0x28]
add eax, dword [esp + 0x1b8]
mov dword [edx + 0x28], eax
mov edx, dword [esp]
mov eax, dword [edx + 0x2c]
add eax, dword [esp + 0x1ac]
mov dword [edx + 0x2c], eax
add dword [esp + 0x198], 0x40
mov eax, dword [esp + 0x188]
cmp eax, dword [esp + 0x198]
jge 0x4040e0
lea esp, [esp + 0x1cc]
pop edi
pop esi
pop ebx
ret